foxts 3.10.1 → 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.
- package/dist/chunk.d.ts +3 -0
- package/dist/chunk.js +1 -0
- package/dist/chunk.mjs +1 -0
- package/dist/escape-string-regexp.d.ts +1 -11
- package/dist/escape-string-regexp.js +1 -1
- package/dist/escape-string-regexp.mjs +1 -1
- package/dist/repool.d.ts +1 -1
- package/package.json +19 -20
package/dist/chunk.d.ts
ADDED
package/dist/chunk.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.chunk=function(e,t){let r=Math.ceil(e.length/t),l=Array(r),n=0,o=0;for(let c=0;c<r;c++)o=(n=c*t)+t,l[c]=e.slice(n,o);return l};
|
package/dist/chunk.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,t){let r=Math.ceil(e.length/t),l=Array(r),n=0,c=0;for(let h=0;h<r;h++)c=(n=h*t)+t,l[h]=e.slice(n,c);return l}export{e as chunk};
|
|
@@ -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.
|
|
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"
|
|
@@ -218,6 +218,12 @@
|
|
|
218
218
|
"import": "./dist/available-parallelism.mjs",
|
|
219
219
|
"require": "./dist/available-parallelism.js",
|
|
220
220
|
"default": "./dist/available-parallelism.js"
|
|
221
|
+
},
|
|
222
|
+
"./chunk": {
|
|
223
|
+
"types": "./dist/chunk.d.ts",
|
|
224
|
+
"import": "./dist/chunk.mjs",
|
|
225
|
+
"require": "./dist/chunk.js",
|
|
226
|
+
"default": "./dist/chunk.js"
|
|
221
227
|
}
|
|
222
228
|
},
|
|
223
229
|
"sideEffects": false,
|
|
@@ -229,41 +235,34 @@
|
|
|
229
235
|
"author": "SukkaW <https://skk.moe>",
|
|
230
236
|
"license": "MIT",
|
|
231
237
|
"dependencies": {
|
|
232
|
-
"fast-escape-html": "^1.1.0"
|
|
238
|
+
"fast-escape-html": "^1.1.0",
|
|
239
|
+
"fast-escape-regexp": "^1.0.1"
|
|
233
240
|
},
|
|
234
241
|
"devDependencies": {
|
|
235
|
-
"@eslint-sukka/node": "^6.
|
|
242
|
+
"@eslint-sukka/node": "^6.23.1",
|
|
236
243
|
"@istanbuljs/nyc-config-typescript": "^1.0.2",
|
|
237
244
|
"@mitata/counters": "^0.0.8",
|
|
238
245
|
"@monyone/aho-corasick": "^1.0.4",
|
|
239
246
|
"@package-json/types": "^0.0.11",
|
|
240
247
|
"@swc-node/register": "^1.10.10",
|
|
241
|
-
"@swc/core": "^1.
|
|
242
|
-
"@types/escape-regexp": "^0.0.3",
|
|
243
|
-
"@types/lodash.escaperegexp": "^4.1.9",
|
|
248
|
+
"@swc/core": "^1.13.3",
|
|
244
249
|
"@types/mocha": "^10.0.10",
|
|
245
|
-
"@types/node": "^22.
|
|
246
|
-
"@types/regex-escape": "^3.4.1",
|
|
250
|
+
"@types/node": "^22.17.1",
|
|
247
251
|
"@types/sinon": "^17.0.4",
|
|
248
|
-
"bumpp": "^10.2.
|
|
249
|
-
"bunchee": "^6.
|
|
252
|
+
"bumpp": "^10.2.3",
|
|
253
|
+
"bunchee": "^6.6.0",
|
|
250
254
|
"devalue": "^5.1.1",
|
|
251
|
-
"
|
|
252
|
-
"
|
|
253
|
-
"eslint": "^
|
|
254
|
-
"
|
|
255
|
-
"eslint-formatter-sukka": "^6.22.1",
|
|
256
|
-
"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",
|
|
257
259
|
"fastscan": "^1.0.6",
|
|
258
260
|
"fdir": "^6.4.6",
|
|
259
|
-
"hexo-util": "^3.3.0",
|
|
260
|
-
"lodash.escaperegexp": "^4.1.2",
|
|
261
261
|
"mitata": "^1.0.34",
|
|
262
262
|
"mocha": "^11.7.1",
|
|
263
263
|
"modern-ahocorasick": "^2.0.4",
|
|
264
264
|
"nyc": "^17.1.0",
|
|
265
|
-
"
|
|
266
|
-
"sinon": "^19.0.5"
|
|
265
|
+
"sinon": "^21.0.0"
|
|
267
266
|
},
|
|
268
267
|
"scripts": {
|
|
269
268
|
"lint": "eslint --format=sukka .",
|