@platform/util.string
Advanced tools
Comparing version 0.5.32 to 0.5.33
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.convert = void 0; | ||
var convert = require("underscore.string"); | ||
var tslib_1 = require("tslib"); | ||
var convert = tslib_1.__importStar(require("underscore.string")); | ||
exports.convert = convert; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.filter = exports.isMatch = exports.match = void 0; | ||
var fuzzy = require("fuzzy"); | ||
var tslib_1 = require("tslib"); | ||
var fuzzy = tslib_1.__importStar(require("fuzzy")); | ||
function match(pattern, input) { | ||
@@ -6,0 +7,0 @@ var res = fuzzy.match(pattern, input); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.fuzzy = void 0; | ||
var fuzzy = require("./fuzzy"); | ||
var tslib_1 = require("tslib"); | ||
var fuzzy = tslib_1.__importStar(require("./fuzzy")); | ||
exports.fuzzy = fuzzy; |
@@ -5,5 +5,5 @@ "use strict"; | ||
var tslib_1 = require("tslib"); | ||
var str = require("./str"); | ||
var str = tslib_1.__importStar(require("./str")); | ||
exports.str = str; | ||
tslib_1.__exportStar(require("./QueryString"), exports); | ||
tslib_1.__exportStar(require("./types"), exports); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.QueryString = void 0; | ||
var QueryString = require("./QueryString"); | ||
var tslib_1 = require("tslib"); | ||
var QueryString = tslib_1.__importStar(require("./QueryString")); | ||
exports.QueryString = QueryString; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.tmpl = void 0; | ||
var tmpl = require("./tmpl"); | ||
var tslib_1 = require("tslib"); | ||
var tmpl = tslib_1.__importStar(require("./tmpl")); | ||
exports.tmpl = tmpl; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.wildcard = void 0; | ||
var wildcard = require("./wildcard"); | ||
var tslib_1 = require("tslib"); | ||
var wildcard = tslib_1.__importStar(require("./wildcard")); | ||
exports.wildcard = wildcard; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isMatch = exports.filter = void 0; | ||
var escapeStringRegexp = require("escape-string-regexp"); | ||
var cache = new Map(); | ||
var escapeStringRegex_1 = require("./escapeStringRegex"); | ||
function filter(patterns, inputs) { | ||
@@ -49,3 +49,3 @@ if (patterns === undefined || patterns === null) { | ||
} | ||
pattern = escapeStringRegexp(pattern).replace(/\\\*/g, '.*'); | ||
pattern = escapeStringRegex_1.escapeStringRegex(pattern).replace(/\\\*/g, '.*'); | ||
if (negated && shouldNegate) { | ||
@@ -52,0 +52,0 @@ pattern = "(?!" + pattern + ")"; |
{ | ||
"name": "@platform/util.string", | ||
"version": "0.5.32", | ||
"version": "0.5.33", | ||
"description": "String helpers.", | ||
@@ -16,3 +16,2 @@ "main": "lib/index", | ||
"@types/underscore.string": "0.0.38", | ||
"escape-string-regexp": "5.0.0", | ||
"fuzzy": "0.1.3", | ||
@@ -23,4 +22,3 @@ "underscore.string": "3.3.5" | ||
"@platform/test": "0.2.6", | ||
"@platform/ts": "4.1.10", | ||
"@types/escape-string-regexp": "2.0.1" | ||
"@platform/ts": "4.1.11" | ||
}, | ||
@@ -27,0 +25,0 @@ "files": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17863
3
2
64
488
- Removedescape-string-regexp@5.0.0
- Removedescape-string-regexp@5.0.0(transitive)