foxts 3.11.0 → 3.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,11 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Escape characters with special meaning either inside or outside character sets.
|
|
3
|
-
* Use a simple backslash escape when it’s always valid, and a `\xnn` escape when the simpler form would be disallowed by Unicode patterns’ stricter grammar.
|
|
4
|
-
*
|
|
5
|
-
* When the `unicodeMode` is `true` (default), the `-` character is escaped as `\x2d` to ensure compatibility with Unicode patterns, PCRE, and MongoDB.
|
|
6
|
-
*
|
|
7
|
-
* You should disable this option if you are using JavaScript regular expressions without the `u` flag.
|
|
8
|
-
*/
|
|
9
|
-
declare function escapeStringRegexp(str: string, unicodeMode?: boolean): string;
|
|
10
|
-
|
|
11
|
-
export { escapeStringRegexp };
|
|
1
|
+
export { escapeRegexp as escapeStringRegexp } from 'fast-escape-regexp';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0});
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});var e=require("fast-escape-regexp");Object.defineProperty(exports,"escapeStringRegexp",{enumerable:!0,get:function(){return e.escapeRegexp}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export{escapeRegexp as escapeStringRegexp}from"fast-escape-regexp";
|
package/dist/repool.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ interface Reusifiable {
|
|
|
7
7
|
* Do not use this to store class instances, please use https://github.com/mcollina/reusify instead.
|
|
8
8
|
*/
|
|
9
9
|
declare class Repool<T extends Reusifiable> {
|
|
10
|
-
private createObject;
|
|
10
|
+
private readonly createObject;
|
|
11
11
|
private head;
|
|
12
12
|
private tail;
|
|
13
13
|
constructor(createObject: () => T);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "foxts",
|
|
3
|
-
"version": "3.11.
|
|
3
|
+
"version": "3.11.1",
|
|
4
4
|
"description": "Opinionated collection of common TypeScript utils by @SukkaW",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "https://github.com/SukkaW/foxts"
|
|
@@ -235,41 +235,34 @@
|
|
|
235
235
|
"author": "SukkaW <https://skk.moe>",
|
|
236
236
|
"license": "MIT",
|
|
237
237
|
"dependencies": {
|
|
238
|
-
"fast-escape-html": "^1.1.0"
|
|
238
|
+
"fast-escape-html": "^1.1.0",
|
|
239
|
+
"fast-escape-regexp": "^1.0.1"
|
|
239
240
|
},
|
|
240
241
|
"devDependencies": {
|
|
241
|
-
"@eslint-sukka/node": "^6.
|
|
242
|
+
"@eslint-sukka/node": "^6.23.1",
|
|
242
243
|
"@istanbuljs/nyc-config-typescript": "^1.0.2",
|
|
243
244
|
"@mitata/counters": "^0.0.8",
|
|
244
245
|
"@monyone/aho-corasick": "^1.0.4",
|
|
245
246
|
"@package-json/types": "^0.0.11",
|
|
246
247
|
"@swc-node/register": "^1.10.10",
|
|
247
|
-
"@swc/core": "^1.
|
|
248
|
-
"@types/escape-regexp": "^0.0.3",
|
|
249
|
-
"@types/lodash.escaperegexp": "^4.1.9",
|
|
248
|
+
"@swc/core": "^1.13.3",
|
|
250
249
|
"@types/mocha": "^10.0.10",
|
|
251
|
-
"@types/node": "^22.
|
|
252
|
-
"@types/regex-escape": "^3.4.1",
|
|
250
|
+
"@types/node": "^22.17.1",
|
|
253
251
|
"@types/sinon": "^17.0.4",
|
|
254
|
-
"bumpp": "^10.2.
|
|
255
|
-
"bunchee": "^6.
|
|
252
|
+
"bumpp": "^10.2.3",
|
|
253
|
+
"bunchee": "^6.6.0",
|
|
256
254
|
"devalue": "^5.1.1",
|
|
257
|
-
"
|
|
258
|
-
"
|
|
259
|
-
"eslint": "^
|
|
260
|
-
"
|
|
261
|
-
"eslint-formatter-sukka": "^6.22.1",
|
|
262
|
-
"expect": "^30.0.4",
|
|
255
|
+
"eslint": "^9.33.0",
|
|
256
|
+
"eslint-config-sukka": "^6.23.1",
|
|
257
|
+
"eslint-formatter-sukka": "^6.23.1",
|
|
258
|
+
"expect": "^30.0.5",
|
|
263
259
|
"fastscan": "^1.0.6",
|
|
264
260
|
"fdir": "^6.4.6",
|
|
265
|
-
"hexo-util": "^3.3.0",
|
|
266
|
-
"lodash.escaperegexp": "^4.1.2",
|
|
267
261
|
"mitata": "^1.0.34",
|
|
268
262
|
"mocha": "^11.7.1",
|
|
269
263
|
"modern-ahocorasick": "^2.0.4",
|
|
270
264
|
"nyc": "^17.1.0",
|
|
271
|
-
"
|
|
272
|
-
"sinon": "^19.0.5"
|
|
265
|
+
"sinon": "^21.0.0"
|
|
273
266
|
},
|
|
274
267
|
"scripts": {
|
|
275
268
|
"lint": "eslint --format=sukka .",
|