Sha256: 31bcf7c9a19bbc30fb6228d9fdddee6ea5517fe5e2cc223a873ce5225470416d

Contents?: true

Size: 802 Bytes

Versions: 141

Compression:

Stored size: 802 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;AAC7B,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;AAVY,QAAA,kBAAkB,sBAU9B","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

141 entries across 41 versions & 2 rubygems

Version Path
immosquare-cleaner-0.1.62 node_modules/eslint-plugin-sonarjs/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map
immosquare-cleaner-0.1.61 node_modules/eslint-plugin-sonarjs/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map
immosquare-cleaner-0.1.60 node_modules/ignore-walk/node_modules/minimatch/dist/cjs/assert-valid-pattern.js.map
immosquare-cleaner-0.1.60 node_modules/@tufjs/models/node_modules/minimatch/dist/cjs/assert-valid-pattern.js.map
immosquare-cleaner-0.1.60 node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map
immosquare-cleaner-0.1.60 node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map
immosquare-cleaner-0.1.60 node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map
immosquare-cleaner-0.1.60 node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map
immosquare-cleaner-0.1.59 node_modules/ignore-walk/node_modules/minimatch/dist/cjs/assert-valid-pattern.js.map
immosquare-cleaner-0.1.59 node_modules/@tufjs/models/node_modules/minimatch/dist/cjs/assert-valid-pattern.js.map
immosquare-cleaner-0.1.59 node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map
immosquare-cleaner-0.1.59 node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map
immosquare-cleaner-0.1.59 node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map
immosquare-cleaner-0.1.59 node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map
immosquare-cleaner-0.1.58 node_modules/ignore-walk/node_modules/minimatch/dist/cjs/assert-valid-pattern.js.map
immosquare-cleaner-0.1.58 node_modules/@tufjs/models/node_modules/minimatch/dist/cjs/assert-valid-pattern.js.map
immosquare-cleaner-0.1.58 node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map
immosquare-cleaner-0.1.58 node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map
immosquare-cleaner-0.1.58 node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map
immosquare-cleaner-0.1.58 node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map