Sha256: fcd3b0e6efee67b11249804cc64bf4d22c883395491f79bfb484869d61823600

Contents?: true

Size: 492 Bytes

Versions: 154

Compression:

Stored size: 492 Bytes

Contents

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.assertValidPattern = void 0;
const MAX_PATTERN_LENGTH = 1024 * 64;
const assertValidPattern = (pattern) => {
    if (typeof pattern !== 'string') {
        throw new TypeError('invalid pattern');
    }
    if (pattern.length > MAX_PATTERN_LENGTH) {
        throw new TypeError('pattern is too long');
    }
};
exports.assertValidPattern = assertValidPattern;
//# sourceMappingURL=assert-valid-pattern.js.map

Version data entries

154 entries across 41 versions & 2 rubygems

Version Path
immosquare-cleaner-0.1.46 node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js
immosquare-cleaner-0.1.46 node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js
immosquare-cleaner-0.1.46 node_modules/@tufjs/models/node_modules/minimatch/dist/cjs/assert-valid-pattern.js
immosquare-cleaner-0.1.45 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
immosquare-cleaner-0.1.45 node_modules/ignore-walk/node_modules/minimatch/dist/cjs/assert-valid-pattern.js
immosquare-cleaner-0.1.45 node_modules/eslint-plugin-sonarjs/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js
immosquare-cleaner-0.1.45 node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js
immosquare-cleaner-0.1.45 node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js
immosquare-cleaner-0.1.45 node_modules/@tufjs/models/node_modules/minimatch/dist/cjs/assert-valid-pattern.js
immosquare-cleaner-0.1.44 node_modules/ignore-walk/node_modules/minimatch/dist/cjs/assert-valid-pattern.js
immosquare-cleaner-0.1.44 node_modules/@tufjs/models/node_modules/minimatch/dist/cjs/assert-valid-pattern.js
immosquare-cleaner-0.1.43 node_modules/ignore-walk/node_modules/minimatch/dist/cjs/assert-valid-pattern.js
immosquare-cleaner-0.1.43 node_modules/@tufjs/models/node_modules/minimatch/dist/cjs/assert-valid-pattern.js
immosquare-cleaner-0.1.42 node_modules/ignore-walk/node_modules/minimatch/dist/cjs/assert-valid-pattern.js
immosquare-cleaner-0.1.42 node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/assert-valid-pattern.js
immosquare-cleaner-0.1.42 node_modules/minimatch/dist/cjs/assert-valid-pattern.js
immosquare-cleaner-0.1.42 node_modules/glob/node_modules/minimatch/dist/cjs/assert-valid-pattern.js
immosquare-cleaner-0.1.42 node_modules/@tufjs/models/node_modules/minimatch/dist/cjs/assert-valid-pattern.js
immosquare-cleaner-0.1.41 node_modules/@tufjs/models/node_modules/minimatch/dist/cjs/assert-valid-pattern.js
immosquare-cleaner-0.1.41 node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/assert-valid-pattern.js