Sha256: 29216b40937a33a232eb6b1dca4ce55465f42be733c541f5e2319217327462bd

Contents?: true

Size: 785 Bytes

Versions: 85

Compression:

Stored size: 785 Bytes

Contents

{"version":3,"file":"assert-valid-pattern.js","sourceRoot":"","sources":["../../src/assert-valid-pattern.ts"],"names":[],"mappings":"AAAA,MAAM,kBAAkB,GAAG,IAAI,GAAG,EAAE,CAAA;AACpC,MAAM,CAAC,MAAM,kBAAkB,GAA2B,CACxD,OAAY,EACe,EAAE;IAC7B,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;QAC/B,MAAM,IAAI,SAAS,CAAC,iBAAiB,CAAC,CAAA;KACvC;IAED,IAAI,OAAO,CAAC,MAAM,GAAG,kBAAkB,EAAE;QACvC,MAAM,IAAI,SAAS,CAAC,qBAAqB,CAAC,CAAA;KAC3C;AACH,CAAC,CAAA","sourcesContent":["const MAX_PATTERN_LENGTH = 1024 * 64\nexport const assertValidPattern: (pattern: any) => void = (\n  pattern: any\n): asserts pattern is string => {\n  if (typeof pattern !== 'string') {\n    throw new TypeError('invalid pattern')\n  }\n\n  if (pattern.length > MAX_PATTERN_LENGTH) {\n    throw new TypeError('pattern is too long')\n  }\n}\n"]}

Version data entries

85 entries across 30 versions & 2 rubygems

Version Path
immosquare-cleaner-0.1.51 node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map
immosquare-cleaner-0.1.51 node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map
immosquare-cleaner-0.1.51 node_modules/ignore-walk/node_modules/minimatch/dist/mjs/assert-valid-pattern.js.map
immosquare-cleaner-0.1.51 node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map
immosquare-cleaner-0.1.51 node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map
immosquare-cleaner-0.1.51 node_modules/@tufjs/models/node_modules/minimatch/dist/mjs/assert-valid-pattern.js.map
immosquare-cleaner-0.1.50 node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map
immosquare-cleaner-0.1.50 node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map
immosquare-cleaner-0.1.50 node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map
immosquare-cleaner-0.1.50 node_modules/ignore-walk/node_modules/minimatch/dist/mjs/assert-valid-pattern.js.map
immosquare-cleaner-0.1.50 node_modules/@tufjs/models/node_modules/minimatch/dist/mjs/assert-valid-pattern.js.map
immosquare-cleaner-0.1.50 node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map
immosquare-cleaner-0.1.49 node_modules/@tufjs/models/node_modules/minimatch/dist/mjs/assert-valid-pattern.js.map
immosquare-cleaner-0.1.49 node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map
immosquare-cleaner-0.1.49 node_modules/ignore-walk/node_modules/minimatch/dist/mjs/assert-valid-pattern.js.map
immosquare-cleaner-0.1.49 node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map
immosquare-cleaner-0.1.49 node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map
immosquare-cleaner-0.1.48 node_modules/@tufjs/models/node_modules/minimatch/dist/mjs/assert-valid-pattern.js.map
immosquare-cleaner-0.1.48 node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map
immosquare-cleaner-0.1.48 node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map