Socket
Socket
Sign inDemoInstall

@platform/util.string

Package Overview
Dependencies
Maintainers
1
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@platform/util.string - npm Package Compare versions

Comparing version 0.5.32 to 0.5.33

lib/wildcard/escapeStringRegex.d.ts

3

lib/convert/convert.js
"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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc