foxts 3.3.1 → 3.3.2

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 +1 @@
1
- Object.defineProperty(exports,"__esModule",{value:!0});const e=/["&'<>]/;exports.escapeHTML=function(t){let a=e.exec(t);if(null===a)return t;let c="",r="",s=a.index,l=0;for(let e=t.length;s<e;s++){switch(t.charCodeAt(s)){case 34:c="&quot;";break;case 38:c="&amp;";break;case 39:c="&#39;";break;case 60:c="&lt;";break;case 62:c="&gt;";break;default:continue}l!==s&&(r+=t.slice(l,s)),l=s+1,r+=c}return l===s?r:r+t.slice(l,s)};
1
+ Object.defineProperty(exports,"__esModule",{value:!0});const e=/["&'<>]/;exports.escapeHTML=function(t){let a=e.exec(t);if(null===a)return t;let c="",r="",s=a.index,l=0,n=t.length;for(;s<n;s++){switch(t.charCodeAt(s)){case 34:c="&quot;";break;case 38:c="&amp;";break;case 39:c="&#39;";break;case 60:c="&lt;";break;case 62:c="&gt;";break;default:continue}l!==s&&(r+=t.slice(l,s)),r+=c,l=s+1}return l!==s&&(r+=t.slice(l,s)),r};
@@ -1,5 +1,5 @@
1
1
  /**
2
- * A 65% faster join than the native `Array.prototype.join` for string arrays and string separator.
2
+ * A 200% faster join than the native `Array.prototype.join` for string arrays and string separator.
3
3
  */
4
4
  declare function fastStringArrayJoin(arr: string[], sep: string): string;
5
5
 
@@ -1 +1 @@
1
- let e=/["&'<>]/;function t(t){let a=e.exec(t);if(null===a)return t;let c="",r="",l=a.index,n=0;for(let e=t.length;l<e;l++){switch(t.charCodeAt(l)){case 34:c="&quot;";break;case 38:c="&amp;";break;case 39:c="&#39;";break;case 60:c="&lt;";break;case 62:c="&gt;";break;default:continue}n!==l&&(r+=t.slice(n,l)),n=l+1,r+=c}return n===l?r:r+t.slice(n,l)}export{t as escapeHTML};
1
+ let e=/["&'<>]/;function t(t){let a=e.exec(t);if(null===a)return t;let c="",r="",l=a.index,n=0,s=t.length;for(;l<s;l++){switch(t.charCodeAt(l)){case 34:c="&quot;";break;case 38:c="&amp;";break;case 39:c="&#39;";break;case 60:c="&lt;";break;case 62:c="&gt;";break;default:continue}n!==l&&(r+=t.slice(n,l)),r+=c,n=l+1}return n!==l&&(r+=t.slice(n,l)),r}export{t as escapeHTML};
@@ -1,5 +1,5 @@
1
1
  /**
2
- * A 65% faster join than the native `Array.prototype.join` for string arrays and string separator.
2
+ * A 200% faster join than the native `Array.prototype.join` for string arrays and string separator.
3
3
  */
4
4
  declare function fastStringArrayJoin(arr: string[], sep: string): string;
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foxts",
3
- "version": "3.3.1",
3
+ "version": "3.3.2",
4
4
  "description": "Opinionated collection of common TypeScript utils by @SukkaW",
5
5
  "repository": {
6
6
  "url": "https://github.com/SukkaW/foxts"
@@ -339,32 +339,33 @@
339
339
  "author": "SukkaW <https://skk.moe>",
340
340
  "license": "MIT",
341
341
  "devDependencies": {
342
- "@eslint-sukka/node": "^6.19.0",
342
+ "@eslint-sukka/node": "^6.20.0",
343
343
  "@istanbuljs/nyc-config-typescript": "^1.0.2",
344
344
  "@mitata/counters": "^0.0.8",
345
345
  "@monyone/aho-corasick": "^1.0.4",
346
+ "@napi-rs/escape": "^1.0.1",
346
347
  "@package-json/types": "^0.0.11",
347
348
  "@swc-node/register": "^1.10.10",
348
- "@swc/core": "^1.11.24",
349
+ "@swc/core": "^1.11.29",
349
350
  "@types/escape-html": "^1.0.4",
350
351
  "@types/escape-regexp": "^0.0.3",
351
352
  "@types/html-escaper": "^3.0.4",
352
353
  "@types/lodash.escape": "^4.0.9",
353
354
  "@types/lodash.escaperegexp": "^4.1.9",
354
355
  "@types/mocha": "^10.0.10",
355
- "@types/node": "^22.15.17",
356
+ "@types/node": "^22.15.21",
356
357
  "@types/regex-escape": "^3.4.1",
357
358
  "@types/sinon": "^17.0.4",
358
- "bumpp": "^10.1.0",
359
- "bunchee": "^6.5.1",
359
+ "bumpp": "^10.1.1",
360
+ "bunchee": "^6.5.2",
360
361
  "devalue": "^5.1.1",
361
362
  "escape-goat": "^3.0.0",
362
363
  "escape-html": "^1.0.3",
363
364
  "escape-regexp": "^0.0.1",
364
365
  "escape-string-regexp": "4",
365
- "eslint": "^9.26.0",
366
- "eslint-config-sukka": "^6.19.0",
367
- "eslint-formatter-sukka": "^6.19.0",
366
+ "eslint": "^9.27.0",
367
+ "eslint-config-sukka": "^6.20.0",
368
+ "eslint-formatter-sukka": "^6.20.0",
368
369
  "expect": "^29.7.0",
369
370
  "fastscan": "^1.0.6",
370
371
  "fdir": "^6.4.4",
@@ -373,7 +374,7 @@
373
374
  "lodash.escape": "^4.0.1",
374
375
  "lodash.escaperegexp": "^4.1.2",
375
376
  "mitata": "^1.0.34",
376
- "mocha": "^11.2.2",
377
+ "mocha": "^11.4.0",
377
378
  "modern-ahocorasick": "^2.0.4",
378
379
  "nyc": "^17.1.0",
379
380
  "regex-escape": "^3.4.11",