foxts 1.1.1 → 1.1.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.
- package/package.json +19 -19
- package/retrie/index.cjs +1 -1
- package/retrie/index.mjs +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "foxts",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Opinionated collection of common TypeScript utils by @SukkaW",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "https://github.com/SukkaW/foxts"
|
|
@@ -155,15 +155,6 @@
|
|
|
155
155
|
"require": "./is-probably-ip/index.cjs",
|
|
156
156
|
"default": "./is-probably-ip/index.cjs"
|
|
157
157
|
},
|
|
158
|
-
"./noop": {
|
|
159
|
-
"types": "./noop/index.d.ts",
|
|
160
|
-
"import": {
|
|
161
|
-
"types": "./noop/index.d.ts",
|
|
162
|
-
"default": "./noop/index.mjs"
|
|
163
|
-
},
|
|
164
|
-
"require": "./noop/index.cjs",
|
|
165
|
-
"default": "./noop/index.cjs"
|
|
166
|
-
},
|
|
167
158
|
"./merge-headers": {
|
|
168
159
|
"types": "./merge-headers/index.d.ts",
|
|
169
160
|
"import": {
|
|
@@ -173,6 +164,15 @@
|
|
|
173
164
|
"require": "./merge-headers/index.cjs",
|
|
174
165
|
"default": "./merge-headers/index.cjs"
|
|
175
166
|
},
|
|
167
|
+
"./noop": {
|
|
168
|
+
"types": "./noop/index.d.ts",
|
|
169
|
+
"import": {
|
|
170
|
+
"types": "./noop/index.d.ts",
|
|
171
|
+
"default": "./noop/index.mjs"
|
|
172
|
+
},
|
|
173
|
+
"require": "./noop/index.cjs",
|
|
174
|
+
"default": "./noop/index.cjs"
|
|
175
|
+
},
|
|
176
176
|
"./repool": {
|
|
177
177
|
"types": "./repool/index.d.ts",
|
|
178
178
|
"import": {
|
|
@@ -191,15 +191,6 @@
|
|
|
191
191
|
"require": "./retrie/index.cjs",
|
|
192
192
|
"default": "./retrie/index.cjs"
|
|
193
193
|
},
|
|
194
|
-
"./simple-string-hash": {
|
|
195
|
-
"types": "./simple-string-hash/index.d.ts",
|
|
196
|
-
"import": {
|
|
197
|
-
"types": "./simple-string-hash/index.d.ts",
|
|
198
|
-
"default": "./simple-string-hash/index.mjs"
|
|
199
|
-
},
|
|
200
|
-
"require": "./simple-string-hash/index.cjs",
|
|
201
|
-
"default": "./simple-string-hash/index.cjs"
|
|
202
|
-
},
|
|
203
194
|
"./serialized-memo": {
|
|
204
195
|
"types": "./serialized-memo/index.d.ts",
|
|
205
196
|
"import": {
|
|
@@ -218,6 +209,15 @@
|
|
|
218
209
|
"require": "./tagged/index.cjs",
|
|
219
210
|
"default": "./tagged/index.cjs"
|
|
220
211
|
},
|
|
212
|
+
"./simple-string-hash": {
|
|
213
|
+
"types": "./simple-string-hash/index.d.ts",
|
|
214
|
+
"import": {
|
|
215
|
+
"types": "./simple-string-hash/index.d.ts",
|
|
216
|
+
"default": "./simple-string-hash/index.mjs"
|
|
217
|
+
},
|
|
218
|
+
"require": "./simple-string-hash/index.cjs",
|
|
219
|
+
"default": "./simple-string-hash/index.cjs"
|
|
220
|
+
},
|
|
221
221
|
"./wait": {
|
|
222
222
|
"types": "./wait/index.d.ts",
|
|
223
223
|
"import": {
|
package/retrie/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=new Set([".","?","*","+","^","$","|","(",")","{","[","\\"]);function e(n,o=!1){const r={},i=(t,e)=>{let n;let o=r;for(let r=0,i=t.length;r<i;++r)(n=t.charAt(r))in o||(o[n]=e?{"":""}:{}),o=o[n];e&&(o[""]="")};for(let t=0,e=n.length;t<e;++t)i(n[t],o);const s=()=>(function e(n){let o,r,i=!1,s=!1;const c=[],l=[];for(const o in n){if(!o){i=!0;continue}((r=e(n[o]))?c:l).push((t.has(o)?"\\"+o:o)+r)}return i&&null==r?"":(s=!c.length,l.length&&c.push(l[1]?"["+l.join("")+"]":l[0]),o=c[1]?"(?:"+c.join("|")+")":c[0],i&&(o=s?o+"?":"(?:"+o+")?"),o||"")})(r);return{add:i,toString:s,toRe:()=>new RegExp((o?"^":"")+s())}}exports.createRetrieKeywordFilter=function(t,n=!1){const o=e(t,n).toRe();return o.test.bind(o)},exports.retrie=e;
|
|
1
|
+
"use strict";const t=new Set([".","?","*","+","^","$","|","(",")","{","[","\\"]);function e(n,o=!1){const r={},i=(t,e)=>{let n;let o=r;for(let r=0,i=t.length;r<i;++r)(n=t.charAt(r))in o||(o[n]=e?{"":""}:{}),o=o[n];e&&(o[""]="")};for(let t=0,e=n.length;t<e;++t)i(n[t],o);const s=()=>(function e(n){let o,r,i=!1,s=!1;const c=[],l=[];for(const o in n){if(!o){i=!0;continue}((r=e(n[o]))?c:l).push(("-"===o?"\\x2d":t.has(o)?"\\"+o:o)+r)}return i&&null==r?"":(s=!c.length,l.length&&c.push(l[1]?"["+l.join("")+"]":l[0]),o=c[1]?"(?:"+c.join("|")+")":c[0],i&&(o=s?o+"?":"(?:"+o+")?"),o||"")})(r);return{add:i,toString:s,toRe:()=>new RegExp((o?"^":"")+s())}}exports.createRetrieKeywordFilter=function(t,n=!1){const o=e(t,n).toRe();return o.test.bind(o)},exports.retrie=e;
|
package/retrie/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const t=new Set([".","?","*","+","^","$","|","(",")","{","[","\\"]);function e(n,o=!1){const r={},i=(t,e)=>{let n;let o=r;for(let r=0,i=t.length;r<i;++r)(n=t.charAt(r))in o||(o[n]=e?{"":""}:{}),o=o[n];e&&(o[""]="")};for(let t=0,e=n.length;t<e;++t)i(n[t],o);const c=()=>(function e(n){let o,r,i=!1,c=!1;const l=[],s=[];for(const o in n){if(!o){i=!0;continue}((r=e(n[o]))?l:s).push((t.has(o)?"\\"+o:o)+r)}return i&&null==r?"":(c=!l.length,s.length&&l.push(s[1]?"["+s.join("")+"]":s[0]),o=l[1]?"(?:"+l.join("|")+")":l[0],i&&(o=c?o+"?":"(?:"+o+")?"),o||"")})(r);return{add:i,toString:c,toRe:()=>new RegExp((o?"^":"")+c())}}function n(t,o=!1){const r=e(t,o).toRe();return r.test.bind(r)}export{n as createRetrieKeywordFilter,e as retrie};
|
|
1
|
+
const t=new Set([".","?","*","+","^","$","|","(",")","{","[","\\"]);function e(n,o=!1){const r={},i=(t,e)=>{let n;let o=r;for(let r=0,i=t.length;r<i;++r)(n=t.charAt(r))in o||(o[n]=e?{"":""}:{}),o=o[n];e&&(o[""]="")};for(let t=0,e=n.length;t<e;++t)i(n[t],o);const c=()=>(function e(n){let o,r,i=!1,c=!1;const l=[],s=[];for(const o in n){if(!o){i=!0;continue}((r=e(n[o]))?l:s).push(("-"===o?"\\x2d":t.has(o)?"\\"+o:o)+r)}return i&&null==r?"":(c=!l.length,s.length&&l.push(s[1]?"["+s.join("")+"]":s[0]),o=l[1]?"(?:"+l.join("|")+")":l[0],i&&(o=c?o+"?":"(?:"+o+")?"),o||"")})(r);return{add:i,toString:c,toRe:()=>new RegExp((o?"^":"")+c())}}function n(t,o=!1){const r=e(t,o).toRe();return r.test.bind(r)}export{n as createRetrieKeywordFilter,e as retrie};
|