@vinicunca/perkakas 1.0.4 → 1.0.6
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/add-prop.d.cts +1 -1
- package/dist/add-prop.d.ts +1 -1
- package/dist/{chunk-LG37S75J.js → chunk-23TPDBES.js} +1 -1
- package/dist/chunk-46GBCFAG.js +1 -0
- package/dist/chunk-5SEDUH3U.cjs +1 -0
- package/dist/{chunk-A62OZTSJ.js → chunk-6B6SBF6V.js} +1 -1
- package/dist/chunk-AFO7BV2X.js +1 -0
- package/dist/chunk-AQRYBCA3.cjs +1 -0
- package/dist/{chunk-7IYJC2PM.cjs → chunk-C6NFG7IS.cjs} +1 -1
- package/dist/chunk-CRWFVSUP.cjs +1 -0
- package/dist/{chunk-U32YSACL.cjs → chunk-CT4EPN4Q.cjs} +1 -1
- package/dist/{chunk-A6WT2DZU.cjs → chunk-D774SJZI.cjs} +1 -1
- package/dist/chunk-DQ5MWM7I.cjs +1 -0
- package/dist/{chunk-BF6VQFQK.js → chunk-FFGIG2SO.js} +1 -1
- package/dist/{chunk-6ALZHU2N.js → chunk-FOP5KNRT.js} +1 -1
- package/dist/chunk-G5M5BNF3.cjs +1 -0
- package/dist/{chunk-PKGL5JK6.js → chunk-HBSV33EM.js} +1 -1
- package/dist/chunk-HXYRD63B.cjs +1 -0
- package/dist/chunk-IOSBDH5J.cjs +1 -0
- package/dist/{chunk-IZZFU26S.cjs → chunk-K43ZLBUS.cjs} +1 -1
- package/dist/{chunk-Z5UEQBZP.cjs → chunk-LBLAWGUH.cjs} +1 -1
- package/dist/chunk-LCHZ57HW.js +1 -0
- package/dist/chunk-LWCPA2K5.cjs +1 -0
- package/dist/chunk-MUD45PL6.js +1 -0
- package/dist/chunk-NWEPH7CD.cjs +1 -0
- package/dist/chunk-QIZDLB7Z.js +1 -0
- package/dist/chunk-QT66COHU.js +1 -0
- package/dist/chunk-RJ4SY2RW.js +1 -0
- package/dist/chunk-S4XCRT2B.cjs +1 -0
- package/dist/{chunk-BGPRJNRQ.js → chunk-SOCUEKNU.js} +1 -1
- package/dist/{chunk-C6L5NLLB.js → chunk-SS3ILCPB.js} +1 -1
- package/dist/{chunk-NLX7PGPI.cjs → chunk-SU7H3HVP.cjs} +1 -1
- package/dist/{chunk-3X6SAJDQ.cjs → chunk-SW6GJ7UA.cjs} +1 -1
- package/dist/chunk-T4LCVT74.js +1 -0
- package/dist/chunk-TYOJTJP6.js +1 -0
- package/dist/chunk-VPLMRR25.cjs +1 -0
- package/dist/{chunk-EPHUNAE5.js → chunk-WDT4BJAH.js} +1 -1
- package/dist/{chunk-MLLA7SGZ.cjs → chunk-WYRK6YJU.cjs} +1 -1
- package/dist/chunk-XYMW4QIS.js +1 -0
- package/dist/chunk-Y5OLUMVB.js +1 -0
- package/dist/{chunk-LSXNPOLD.js → chunk-Y7ACNJIO.js} +1 -1
- package/dist/{chunk-I6VXEY44.cjs → chunk-Y7L64OLN.cjs} +1 -1
- package/dist/chunk.d.cts +1 -1
- package/dist/chunk.d.ts +1 -1
- package/dist/concat.d.cts +1 -1
- package/dist/concat.d.ts +1 -1
- package/dist/conditional.d.cts +1 -1
- package/dist/conditional.d.ts +1 -1
- package/dist/conditional.spec-d.cjs +1 -1
- package/dist/conditional.spec-d.js +1 -1
- package/dist/debounce.spec-d.cjs +1 -1
- package/dist/debounce.spec-d.js +1 -1
- package/dist/difference-with.cjs +1 -1
- package/dist/difference-with.js +1 -1
- package/dist/difference.cjs +1 -1
- package/dist/difference.js +1 -1
- package/dist/do-nothing.cjs +1 -1
- package/dist/do-nothing.d.cts +1 -1
- package/dist/do-nothing.d.ts +1 -1
- package/dist/do-nothing.js +1 -1
- package/dist/do-nothing.spec-d.cjs +1 -1
- package/dist/do-nothing.spec-d.js +1 -1
- package/dist/drop-first-by.d.cts +1 -1
- package/dist/drop-first-by.d.ts +1 -1
- package/dist/drop-last-while.d.cts +1 -1
- package/dist/drop-last-while.d.ts +1 -1
- package/dist/drop-last-while.spec-d.cjs +1 -1
- package/dist/drop-last-while.spec-d.js +1 -1
- package/dist/drop-last.d.cts +1 -1
- package/dist/drop-last.d.ts +1 -1
- package/dist/drop-last.spec-d.cjs +1 -1
- package/dist/drop-last.spec-d.js +1 -1
- package/dist/drop-while.d.cts +1 -1
- package/dist/drop-while.d.ts +1 -1
- package/dist/drop-while.spec-d.cjs +1 -1
- package/dist/drop-while.spec-d.js +1 -1
- package/dist/drop.cjs +1 -1
- package/dist/drop.d.cts +20 -7
- package/dist/drop.d.ts +20 -7
- package/dist/drop.js +1 -1
- package/dist/drop.spec-d.cjs +1 -1
- package/dist/drop.spec-d.js +1 -1
- package/dist/evolve.d.cts +1 -1
- package/dist/evolve.d.ts +1 -1
- package/dist/evolve.spec-d.cjs +1 -1
- package/dist/evolve.spec-d.js +1 -1
- package/dist/filter.cjs +1 -1
- package/dist/filter.js +1 -1
- package/dist/filter.spec-d.cjs +1 -1
- package/dist/filter.spec-d.js +1 -1
- package/dist/find.cjs +1 -1
- package/dist/find.js +1 -1
- package/dist/find.spec-d.cjs +1 -1
- package/dist/find.spec-d.js +1 -1
- package/dist/first-by.d.cts +1 -1
- package/dist/first-by.d.ts +1 -1
- package/dist/first-by.spec-d.cjs +1 -1
- package/dist/first-by.spec-d.js +1 -1
- package/dist/first.d.cts +1 -1
- package/dist/first.d.ts +1 -1
- package/dist/flat.cjs +1 -1
- package/dist/flat.d.cts +1 -1
- package/dist/flat.d.ts +1 -1
- package/dist/flat.js +1 -1
- package/dist/flat.spec-d.cjs +1 -1
- package/dist/flat.spec-d.js +1 -1
- package/dist/for-each-obj.d.cts +1 -1
- package/dist/for-each-obj.d.ts +1 -1
- package/dist/for-each-obj.spec-d.cjs +1 -1
- package/dist/for-each-obj.spec-d.js +1 -1
- package/dist/for-each.d.cts +1 -1
- package/dist/for-each.d.ts +1 -1
- package/dist/for-each.spec-d.cjs +1 -1
- package/dist/for-each.spec-d.js +1 -1
- package/dist/from-entries.d.cts +1 -1
- package/dist/from-entries.d.ts +1 -1
- package/dist/from-keys.d.cts +1 -1
- package/dist/from-keys.d.ts +1 -1
- package/dist/from-keys.spec-d.cjs +1 -1
- package/dist/from-keys.spec-d.js +1 -1
- package/dist/group-by.d.cts +1 -1
- package/dist/group-by.d.ts +1 -1
- package/dist/has-at-least.d.cts +1 -1
- package/dist/has-at-least.d.ts +1 -1
- package/dist/has-sub-object.d.cts +1 -1
- package/dist/has-sub-object.d.ts +1 -1
- package/dist/has-sub-object.spec-d.cjs +1 -1
- package/dist/has-sub-object.spec-d.js +1 -1
- package/dist/human-readable-file-size.d.cts +1 -0
- package/dist/human-readable-file-size.d.ts +1 -0
- package/dist/identity.cjs +1 -1
- package/dist/identity.d.cts +1 -1
- package/dist/identity.d.ts +1 -1
- package/dist/identity.js +1 -1
- package/dist/identity.spec-d.cjs +1 -1
- package/dist/identity.spec-d.js +1 -1
- package/dist/index-by.d.cts +1 -1
- package/dist/index-by.d.ts +1 -1
- package/dist/index-by.spec-d.cjs +1 -1
- package/dist/index-by.spec-d.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/intersection-with.cjs +1 -1
- package/dist/intersection-with.js +1 -1
- package/dist/intersection.cjs +1 -1
- package/dist/intersection.js +1 -1
- package/dist/intersection.spec-d.cjs +1 -1
- package/dist/intersection.spec-d.js +1 -1
- package/dist/is-array.d.cts +1 -1
- package/dist/is-array.d.ts +1 -1
- package/dist/is-big-int.d.cts +1 -1
- package/dist/is-big-int.d.ts +1 -1
- package/dist/is-boolean.d.cts +1 -1
- package/dist/is-boolean.d.ts +1 -1
- package/dist/is-deep-equal.spec-d.cjs +1 -1
- package/dist/is-deep-equal.spec-d.js +1 -1
- package/dist/is-empty.d.cts +1 -1
- package/dist/is-empty.d.ts +1 -1
- package/dist/is-included-in.d.cts +1 -1
- package/dist/is-included-in.d.ts +1 -1
- package/dist/is-nullish.d.cts +1 -1
- package/dist/is-nullish.d.ts +1 -1
- package/dist/is-number.d.cts +1 -1
- package/dist/is-number.d.ts +1 -1
- package/dist/is-object-type.d.cts +1 -1
- package/dist/is-object-type.d.ts +1 -1
- package/dist/is-plain-object.d.cts +1 -1
- package/dist/is-plain-object.d.ts +1 -1
- package/dist/is-shallow-equal.spec-d.cjs +1 -1
- package/dist/is-shallow-equal.spec-d.js +1 -1
- package/dist/is-strict-equal.spec-d.cjs +1 -1
- package/dist/is-strict-equal.spec-d.js +1 -1
- package/dist/is-string.d.cts +1 -1
- package/dist/is-string.d.ts +1 -1
- package/dist/is-symbol.d.cts +1 -1
- package/dist/is-symbol.d.ts +1 -1
- package/dist/keys.d.cts +1 -1
- package/dist/keys.d.ts +1 -1
- package/dist/keys.spec-d.cjs +1 -1
- package/dist/keys.spec-d.js +1 -1
- package/dist/last.d.cts +1 -1
- package/dist/last.d.ts +1 -1
- package/dist/last.spec-d.cjs +1 -1
- package/dist/last.spec-d.js +1 -1
- package/dist/map-keys.d.cts +1 -1
- package/dist/map-keys.d.ts +1 -1
- package/dist/map-keys.spec-d.cjs +1 -1
- package/dist/map-keys.spec-d.js +1 -1
- package/dist/map-values.d.cts +1 -1
- package/dist/map-values.d.ts +1 -1
- package/dist/map-values.spec-d.cjs +1 -1
- package/dist/map-values.spec-d.js +1 -1
- package/dist/map-with-feedback.cjs +1 -1
- package/dist/map-with-feedback.d.cts +1 -1
- package/dist/map-with-feedback.d.ts +1 -1
- package/dist/map-with-feedback.js +1 -1
- package/dist/map-with-feedback.spec-d.cjs +1 -1
- package/dist/map-with-feedback.spec-d.js +1 -1
- package/dist/map.d.cts +1 -1
- package/dist/map.d.ts +1 -1
- package/dist/nth-by.d.cts +1 -1
- package/dist/nth-by.d.ts +1 -1
- package/dist/nth-by.spec-d.cjs +1 -1
- package/dist/nth-by.spec-d.js +1 -1
- package/dist/omit-by.d.cts +1 -1
- package/dist/omit-by.d.ts +1 -1
- package/dist/omit-by.spec-d.cjs +1 -1
- package/dist/omit-by.spec-d.js +1 -1
- package/dist/omit.spec-d.cjs +1 -1
- package/dist/omit.spec-d.js +1 -1
- package/dist/only.d.cts +1 -1
- package/dist/only.d.ts +1 -1
- package/dist/partition.spec-d.cjs +1 -1
- package/dist/partition.spec-d.js +1 -1
- package/dist/pick-by.d.cts +1 -1
- package/dist/pick-by.d.ts +1 -1
- package/dist/pick-by.spec-d.cjs +1 -1
- package/dist/pick-by.spec-d.js +1 -1
- package/dist/pick.spec-d.cjs +1 -1
- package/dist/pick.spec-d.js +1 -1
- package/dist/pipe.cjs +1 -1
- package/dist/pipe.js +1 -1
- package/dist/piped.cjs +1 -1
- package/dist/piped.js +1 -1
- package/dist/product.d.cts +1 -1
- package/dist/product.d.ts +1 -1
- package/dist/product.spec-d.cjs +1 -1
- package/dist/product.spec-d.js +1 -1
- package/dist/prop.spec-d.cjs +1 -1
- package/dist/prop.spec-d.js +1 -1
- package/dist/pull-object.d.cts +1 -1
- package/dist/pull-object.d.ts +1 -1
- package/dist/pull-object.spec-d.cjs +1 -1
- package/dist/pull-object.spec-d.js +1 -1
- package/dist/random-integer.cjs +1 -0
- package/dist/random-integer.d.cts +20 -0
- package/dist/random-integer.d.ts +20 -0
- package/dist/random-integer.js +1 -0
- package/dist/random-integer.spec-d.cjs +1 -0
- package/dist/random-integer.spec-d.d.cts +2 -0
- package/dist/random-integer.spec-d.d.ts +2 -0
- package/dist/random-integer.spec-d.js +1 -0
- package/dist/rank-by.d.cts +1 -1
- package/dist/rank-by.d.ts +1 -1
- package/dist/reverse.spec-d.cjs +1 -1
- package/dist/reverse.spec-d.js +1 -1
- package/dist/sample.d.cts +1 -1
- package/dist/sample.d.ts +1 -1
- package/dist/set-path.spec-d.cjs +1 -1
- package/dist/set-path.spec-d.js +1 -1
- package/dist/set.d.cts +1 -1
- package/dist/set.d.ts +1 -1
- package/dist/shuffle.d.cts +1 -1
- package/dist/shuffle.d.ts +1 -1
- package/dist/shuffle.spec-d.cjs +1 -1
- package/dist/shuffle.spec-d.js +1 -1
- package/dist/sort-by.d.cts +1 -1
- package/dist/sort-by.d.ts +1 -1
- package/dist/sort-by.spec-d.cjs +1 -1
- package/dist/sort-by.spec-d.js +1 -1
- package/dist/sort.d.cts +1 -1
- package/dist/sort.d.ts +1 -1
- package/dist/sum.d.cts +1 -1
- package/dist/sum.d.ts +1 -1
- package/dist/sum.spec-d.cjs +1 -1
- package/dist/sum.spec-d.js +1 -1
- package/dist/swap-indices.d.cts +1 -1
- package/dist/swap-indices.d.ts +1 -1
- package/dist/take-first-by.d.cts +1 -1
- package/dist/take-first-by.d.ts +1 -1
- package/dist/take-last-while.d.cts +1 -1
- package/dist/take-last-while.d.ts +1 -1
- package/dist/take-last-while.spec-d-.cjs +1 -1
- package/dist/take-last-while.spec-d-.js +1 -1
- package/dist/take-last.d.cts +1 -1
- package/dist/take-last.d.ts +1 -1
- package/dist/take-last.spec-d.cjs +1 -1
- package/dist/take-last.spec-d.js +1 -1
- package/dist/take-while.d.cts +1 -1
- package/dist/take-while.d.ts +1 -1
- package/dist/take-white.spec-d.cjs +1 -1
- package/dist/take-white.spec-d.js +1 -1
- package/dist/take.cjs +1 -1
- package/dist/take.d.cts +1 -1
- package/dist/take.d.ts +1 -1
- package/dist/take.js +1 -1
- package/dist/take.spec-d.cjs +1 -1
- package/dist/take.spec-d.js +1 -1
- package/dist/tap.spec-d.cjs +1 -1
- package/dist/tap.spec-d.js +1 -1
- package/dist/times.spec-d.cjs +1 -1
- package/dist/times.spec-d.js +1 -1
- package/dist/{types-BE3YOWVA.d.cts → types-CC8iZVKO.d.cts} +12 -2
- package/dist/{types-BE3YOWVA.d.ts → types-CC8iZVKO.d.ts} +12 -2
- package/dist/unique-by.cjs +1 -1
- package/dist/unique-by.d.cts +1 -1
- package/dist/unique-by.d.ts +1 -1
- package/dist/unique-by.js +1 -1
- package/dist/unique-with.cjs +1 -1
- package/dist/unique-with.d.cts +1 -1
- package/dist/unique-with.d.ts +1 -1
- package/dist/unique-with.js +1 -1
- package/dist/unique.cjs +1 -1
- package/dist/unique.d.cts +1 -1
- package/dist/unique.d.ts +1 -1
- package/dist/unique.js +1 -1
- package/dist/values.d.cts +1 -1
- package/dist/values.d.ts +1 -1
- package/dist/values.spec-d.cjs +1 -1
- package/dist/values.spec-d.js +1 -1
- package/dist/zip-with.d.cts +1 -1
- package/dist/zip-with.d.ts +1 -1
- package/dist/zip-with.spec-d.cjs +1 -1
- package/dist/zip-with.spec-d.js +1 -1
- package/dist/zip.d.cts +1 -1
- package/dist/zip.d.ts +1 -1
- package/dist/zip.spec-d.cjs +1 -1
- package/dist/zip.spec-d.js +1 -1
- package/package.json +14 -13
- package/dist/chunk-A535Z4LW.cjs +0 -1
- package/dist/chunk-AKGWT6GC.js +0 -1
- package/dist/chunk-BRLENORL.js +0 -1
- package/dist/chunk-E6RBEL5Z.cjs +0 -1
- package/dist/chunk-EKYCE7XE.cjs +0 -1
- package/dist/chunk-FNZCH7TN.cjs +0 -1
- package/dist/chunk-GNPFJJSC.cjs +0 -1
- package/dist/chunk-HTO3K3VA.cjs +0 -1
- package/dist/chunk-IRH6TGG5.js +0 -1
- package/dist/chunk-JLRJ44YR.js +0 -1
- package/dist/chunk-KITVKWLP.cjs +0 -1
- package/dist/chunk-MADDQNAR.cjs +0 -1
- package/dist/chunk-MYLYERXO.js +0 -1
- package/dist/chunk-NULDWRPD.cjs +0 -1
- package/dist/chunk-PHKKU45J.js +0 -1
- package/dist/chunk-RCENCAXY.cjs +0 -1
- package/dist/chunk-UNKQWZT6.js +0 -1
- package/dist/chunk-WQDEYM64.js +0 -1
- package/dist/chunk-WRKGH4XX.js +0 -1
- package/dist/chunk-WUAU3LTQ.js +0 -1
package/dist/add-prop.d.cts
CHANGED
package/dist/add-prop.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as y}from"./chunk-
|
|
1
|
+
import{a as y}from"./chunk-SS3ILCPB.js";import{a as o,c as a}from"./chunk-T4LCVT74.js";function d(...e){return y(f,e)}function f(e){if(e.length===0)return a;let n=new Map;for(let r of e)n.set(r,(n.get(r)??0)+1);return r=>{let t=n.get(r);return t===void 0||t===0?{done:!1,hasNext:!0,next:r}:(n.set(r,t-1),o)}}export{d as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function i(){return t}function t(n,...e){return n}export{i as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var _chunkSU7H3HVPcjs = require('./chunk-SU7H3HVP.cjs');var _chunkSW6GJ7UAcjs = require('./chunk-SW6GJ7UA.cjs');function l(...e){return _chunkSU7H3HVPcjs.a.call(void 0, y,e)}function y(e){if(e.length===0)return _chunkSW6GJ7UAcjs.b;let n=new Map;for(let r of e)n.set(r,(_nullishCoalesce(n.get(r), () => (0)))+1);return r=>{let t=n.get(r);return t===void 0||t===0?_chunkSW6GJ7UAcjs.a:(t===1?n.delete(r):n.set(r,t-1),{hasNext:!0,next:r,done:n.size===0})}}exports.a = l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r}from"./chunk-
|
|
1
|
+
import{c as r}from"./chunk-T4LCVT74.js";import{a as n}from"./chunk-KQGY2DBY.js";function u(e,t){return typeof e=="object"?a(e,t):n(a,e===void 0?[]:[e],o)}function a(e,t){return t===void 0?e.flat():e.flat(t)}function o(e){return e===void 0||e===1?l:e<=0?r:t=>Array.isArray(t)?{next:t.flat(e-1),hasNext:!0,hasMany:!0,done:!1}:{next:t,hasNext:!0,done:!1}}function l(e){return Array.isArray(e)?{next:e,hasNext:!0,hasMany:!0,done:!1}:{next:e,hasNext:!0,done:!1}}export{u as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function t(){return n}function n(...o){}export{t as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});function i(){return t}function t(n,...e){return n}exports.a = i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSW6GJ7UAcjs = require('./chunk-SW6GJ7UA.cjs');var _chunkY74ER22Ocjs = require('./chunk-Y74ER22O.cjs');function T(...a){return _chunkY74ER22Ocjs.a.call(void 0, l,a,y)}function l(a,r){return a.filter(r)}function y(a){return(r,t,o)=>a(r,t,o)?{done:!1,hasNext:!0,next:r}:_chunkSW6GJ7UAcjs.a}exports.a = T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkY7L64OLNcjs = require('./chunk-Y7L64OLN.cjs');function i(...n){return o=>_chunkY7L64OLNcjs.a.call(void 0, o,...n)}exports.a = i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGPGITOFNcjs = require('./chunk-GPGITOFN.cjs');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGPGITOFNcjs = require('./chunk-GPGITOFN.cjs');var _chunkSW6GJ7UAcjs = require('./chunk-SW6GJ7UA.cjs');var _chunkY74ER22Ocjs = require('./chunk-Y74ER22O.cjs');function f(...e){return _chunkY74ER22Ocjs.a.call(void 0, i,e,_chunkGPGITOFNcjs.a.call(void 0, u))}function i(e,n){return e.find(n)}function u(e){return(n,t,o)=>e(n,t,o)?{done:!0,hasNext:!0,next:n}:_chunkSW6GJ7UAcjs.a}exports.a = f;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSU7H3HVPcjs = require('./chunk-SU7H3HVP.cjs');function p(...e){return _chunkSU7H3HVPcjs.a.call(void 0, l,e)}function l(e,n){let a=n;return(t,u,o)=>(a=e(a,t,u,o),{done:!1,hasNext:!0,next:a})}exports.a = p;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSU7H3HVPcjs = require('./chunk-SU7H3HVP.cjs');var _chunkSW6GJ7UAcjs = require('./chunk-SW6GJ7UA.cjs');function p(...e){return _chunkSU7H3HVPcjs.a.call(void 0, d,e)}function d(e){let n=new Set;return(t,u,i)=>{let r=e(t,u,i);return n.has(r)?_chunkSW6GJ7UAcjs.a:(n.add(r),{done:!1,hasNext:!0,next:t})}}exports.a = p;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as d}from"./chunk-SME5FGMA.js";import{a as r}from"./chunk-
|
|
1
|
+
import{a as d}from"./chunk-SME5FGMA.js";import{a as r}from"./chunk-T4LCVT74.js";import{a}from"./chunk-JFXZ246Y.js";function f(...e){return a(i,e,d(u))}function i(e,n){return e.find(n)}function u(e){return(n,t,o)=>e(n,t,o)?{done:!0,hasNext:!0,next:n}:r}export{f as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
1
|
+
import{a as s}from"./chunk-T4LCVT74.js";function x(t,...o){let p=t,u=o.map(e=>"lazy"in e?A(e):void 0),n=0;for(;n<o.length;){if(u[n]===void 0||!B(p)){let i=o[n];p=i(p),n+=1;continue}let r=[];for(let i=n;i<o.length;i++){let l=u[i];if(l===void 0||(r.push(l),l.isSingle))break}let a=[];for(let i of p)if(f(i,a,r))break;let{isSingle:y}=r.at(-1);p=y?a[0]:a,n+=r.length}return p}function f(t,o,p){if(p.length===0)return o.push(t),!1;let u=t,n=s,e=!1;for(let[r,a]of p.entries()){let{index:y,items:i}=a;if(i.push(u),n=a(u,y,i),a.index+=1,n.hasNext){if(n.hasMany??!1){for(let l of n.next)if(f(l,o,p.slice(r+1)))return!0;return e}u=n.next}if(!n.hasNext)break;n.done&&(e=!0)}return n.hasNext&&o.push(u),e}function A(t){let{lazy:o,lazyArgs:p}=t,u=o(...p);return Object.assign(u,{isSingle:o.single??!1,index:0,items:[]})}function B(t){return typeof t=="string"||typeof t=="object"&&t!==null&&Symbol.iterator in t}export{x as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSW6GJ7UAcjs = require('./chunk-SW6GJ7UA.cjs');var _chunkY74ER22Ocjs = require('./chunk-Y74ER22O.cjs');function i(...e){return _chunkY74ER22Ocjs.a.call(void 0, p,e,u)}function p(e,r){return r<0?[...e]:e.slice(r)}function u(e){if(e<=0)return _chunkSW6GJ7UAcjs.c;let r=e;return a=>r>0?(r-=1,_chunkSW6GJ7UAcjs.a):{done:!1,hasNext:!0,next:a}}exports.a = i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
1
|
+
import{a as i}from"./chunk-SS3ILCPB.js";import{a as o,b as a}from"./chunk-T4LCVT74.js";function l(...e){return i(y,e)}function y(e){if(e.length===0)return a;let n=new Map;for(let r of e)n.set(r,(n.get(r)??0)+1);return r=>{let t=n.get(r);return t===void 0||t===0?o:(t===1?n.delete(r):n.set(r,t-1),{hasNext:!0,next:r,done:n.size===0})}}export{l as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSU7H3HVPcjs = require('./chunk-SU7H3HVP.cjs');var _chunkSW6GJ7UAcjs = require('./chunk-SW6GJ7UA.cjs');function c(...r){return _chunkSU7H3HVPcjs.a.call(void 0, i,r)}function i(r,a){return o=>r.some(e=>a(o,e))?{done:!1,hasNext:!0,next:o}:_chunkSW6GJ7UAcjs.a}exports.a = c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});function t(r,n){let e=Math.ceil(r),o=Math.floor(n);if(o<e)throw new RangeError(`randomInt: The range [${r},${n}] contains no integer`);return Math.floor(Math.random()*(o-e+1)+e)}exports.a = t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSW6GJ7UAcjs = require('./chunk-SW6GJ7UA.cjs');var _chunk7T4AVFYJcjs = require('./chunk-7T4AVFYJ.cjs');function u(e,t){return typeof e=="object"?a(e,t):_chunk7T4AVFYJcjs.a.call(void 0, a,e===void 0?[]:[e],o)}function a(e,t){return t===void 0?e.flat():e.flat(t)}function o(e){return e===void 0||e===1?l:e<=0?_chunkSW6GJ7UAcjs.c:t=>Array.isArray(t)?{next:t.flat(e-1),hasNext:!0,hasMany:!0,done:!1}:{next:t,hasNext:!0,done:!1}}function l(e){return Array.isArray(e)?{next:e,hasNext:!0,hasMany:!0,done:!1}:{next:e,hasNext:!0,done:!1}}exports.a = u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSW6GJ7UAcjs = require('./chunk-SW6GJ7UA.cjs');var _chunkY74ER22Ocjs = require('./chunk-Y74ER22O.cjs');function p(...r){return _chunkY74ER22Ocjs.a.call(void 0, o,r,u)}function o(r,e){return e<0?[]:r.slice(0,e)}function u(r){if(r<=0)return _chunkSW6GJ7UAcjs.b;let e=r;return a=>(e-=1,{done:e<=0,hasNext:!0,next:a})}exports.a = p;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r}from"./chunk-SS3ILCPB.js";import{a as n}from"./chunk-T4LCVT74.js";function i(...e){return r(o,e)}function o(){let e=new Set;return t=>e.has(t)?n:(e.add(t),{done:!1,hasNext:!0,next:t})}export{i as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSU7H3HVPcjs = require('./chunk-SU7H3HVP.cjs');var _chunkSW6GJ7UAcjs = require('./chunk-SW6GJ7UA.cjs');function l(...e){return _chunkSU7H3HVPcjs.a.call(void 0, i,e)}function i(e){return(n,a,o)=>o.findIndex(u=>e(n,u))===a?{done:!1,hasNext:!0,next:n}:_chunkSW6GJ7UAcjs.a}exports.a = l;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as n}from"./chunk-SS3ILCPB.js";import{a as t}from"./chunk-T4LCVT74.js";function c(...r){return n(i,r)}function i(r,a){return o=>r.some(e=>a(o,e))?{done:!1,hasNext:!0,next:o}:t}export{c as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var _chunkSU7H3HVPcjs = require('./chunk-SU7H3HVP.cjs');var _chunkSW6GJ7UAcjs = require('./chunk-SW6GJ7UA.cjs');function d(...e){return _chunkSU7H3HVPcjs.a.call(void 0, f,e)}function f(e){if(e.length===0)return _chunkSW6GJ7UAcjs.c;let n=new Map;for(let r of e)n.set(r,(_nullishCoalesce(n.get(r), () => (0)))+1);return r=>{let t=n.get(r);return t===void 0||t===0?{done:!1,hasNext:!0,next:r}:(n.set(r,t-1),_chunkSW6GJ7UAcjs.a)}}exports.a = d;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r}from"./chunk-SS3ILCPB.js";import{a as t}from"./chunk-T4LCVT74.js";function l(...e){return r(i,e)}function i(e){return(n,a,o)=>o.findIndex(u=>e(n,u))===a?{done:!1,hasNext:!0,next:n}:t}export{l as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function t(r,n){let e=Math.ceil(r),o=Math.floor(n);if(o<e)throw new RangeError(`randomInt: The range [${r},${n}] contains no integer`);return Math.floor(Math.random()*(o-e+1)+e)}export{t as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as o}from"./chunk-SS3ILCPB.js";import{a}from"./chunk-T4LCVT74.js";function p(...e){return o(d,e)}function d(e){let n=new Set;return(t,u,i)=>{let r=e(t,u,i);return n.has(r)?a:(n.add(r),{done:!1,hasNext:!0,next:t})}}export{p as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSU7H3HVPcjs = require('./chunk-SU7H3HVP.cjs');var _chunkSW6GJ7UAcjs = require('./chunk-SW6GJ7UA.cjs');function y(...r){return _chunkSU7H3HVPcjs.a.call(void 0, i,r)}function i(r,t){return e=>r.every(a=>!t(e,a))?{done:!1,hasNext:!0,next:e}:_chunkSW6GJ7UAcjs.a}exports.a = y;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-T4LCVT74.js";import{a as e}from"./chunk-JFXZ246Y.js";function T(...a){return e(l,a,y)}function l(a,r){return a.filter(r)}function y(a){return(r,t,o)=>a(r,t,o)?{done:!1,hasNext:!0,next:r}:n}export{T as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-FOP5KNRT.js";function f(t,i){let o=i.length-t.length;if(o===1){let[n,...r]=i;return a(n,{lazy:t,lazyArgs:r})}if(o===0){let n={lazy:t,lazyArgs:i};return Object.assign(e=>a(e,n),n)}throw new Error("Wrong number of arguments")}export{f as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkY7L64OLNcjs = require('./chunk-Y7L64OLN.cjs');function f(t,i){let o=i.length-t.length;if(o===1){let[n,...r]=i;return _chunkY7L64OLNcjs.a.call(void 0, n,{lazy:t,lazyArgs:r})}if(o===0){let n={lazy:t,lazyArgs:i};return Object.assign(e=>_chunkY7L64OLNcjs.a.call(void 0, e,n),n)}throw new Error("Wrong number of arguments")}exports.a = f;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var e={done:!0,hasNext:!1},a= exports.a ={done:!1,hasNext:!1};function
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var e={done:!0,hasNext:!1},a= exports.a ={done:!1,hasNext:!1};function o(){return e}function s(t){return{hasNext:!0,next:t,done:!1}}exports.a = a; exports.b = o; exports.c = s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={done:!0,hasNext:!1},a={done:!1,hasNext:!1};function o(){return e}function s(t){return{hasNext:!0,next:t,done:!1}}export{a,o as b,s as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as o}from"./chunk-SS3ILCPB.js";import{a as n}from"./chunk-T4LCVT74.js";function y(...r){return o(i,r)}function i(r,t){return e=>r.every(a=>!t(e,a))?{done:!1,hasNext:!0,next:e}:n}export{y as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSU7H3HVPcjs = require('./chunk-SU7H3HVP.cjs');var _chunkSW6GJ7UAcjs = require('./chunk-SW6GJ7UA.cjs');function i(...e){return _chunkSU7H3HVPcjs.a.call(void 0, o,e)}function o(){let e=new Set;return t=>e.has(t)?_chunkSW6GJ7UAcjs.a:(e.add(t),{done:!1,hasNext:!0,next:t})}exports.a = i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as t}from"./chunk-
|
|
1
|
+
import{b as t}from"./chunk-T4LCVT74.js";import{a as n}from"./chunk-JFXZ246Y.js";function p(...r){return n(o,r,u)}function o(r,e){return e<0?[]:r.slice(0,e)}function u(r){if(r<=0)return t;let e=r;return a=>(e-=1,{done:e<=0,hasNext:!0,next:a})}export{p as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});function t(){return n}function n(...o){}exports.a = t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as n,c as o}from"./chunk-T4LCVT74.js";import{a as t}from"./chunk-JFXZ246Y.js";function i(...e){return t(p,e,u)}function p(e,r){return r<0?[...e]:e.slice(r)}function u(e){if(e<=0)return o;let r=e;return a=>r>0?(r-=1,n):{done:!1,hasNext:!0,next:a}}export{i as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as p}from"./chunk-FOP5KNRT.js";function i(...n){return o=>p(o,...n)}export{i as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"./chunk-
|
|
1
|
+
import{a as r}from"./chunk-SS3ILCPB.js";function p(...e){return r(l,e)}function l(e,n){let a=n;return(t,u,o)=>(a=e(a,t,u,o),{done:!1,hasNext:!0,next:a})}export{p as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var _chunkSW6GJ7UAcjs = require('./chunk-SW6GJ7UA.cjs');function x(t,...o){let p=t,u=o.map(e=>"lazy"in e?A(e):void 0),n=0;for(;n<o.length;){if(u[n]===void 0||!B(p)){let i=o[n];p=i(p),n+=1;continue}let r=[];for(let i=n;i<o.length;i++){let l=u[i];if(l===void 0||(r.push(l),l.isSingle))break}let a=[];for(let i of p)if(f(i,a,r))break;let{isSingle:y}=r.at(-1);p=y?a[0]:a,n+=r.length}return p}function f(t,o,p){if(p.length===0)return o.push(t),!1;let u=t,n=_chunkSW6GJ7UAcjs.a,e=!1;for(let[r,a]of p.entries()){let{index:y,items:i}=a;if(i.push(u),n=a(u,y,i),a.index+=1,n.hasNext){if(_nullishCoalesce(n.hasMany, () => (!1))){for(let l of n.next)if(f(l,o,p.slice(r+1)))return!0;return e}u=n.next}if(!n.hasNext)break;n.done&&(e=!0)}return n.hasNext&&o.push(u),e}function A(t){let{lazy:o,lazyArgs:p}=t,u=o(...p);return Object.assign(u,{isSingle:_nullishCoalesce(o.single, () => (!1)),index:0,items:[]})}function B(t){return typeof t=="string"||typeof t=="object"&&t!==null&&Symbol.iterator in t}exports.a = x;
|
package/dist/chunk.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IsNumericLiteral, LessThan, IfNever, Subtract, ValueOf, IntRange } from 'type-fest';
|
|
2
|
-
import { I as IterableContainer, T as TupleParts, N as NTuple, a as NonEmptyArray } from './types-
|
|
2
|
+
import { I as IterableContainer, T as TupleParts, N as NTuple, a as NonEmptyArray } from './types-CC8iZVKO.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* This prevents typescript from failing on complex arrays and large chunks.
|
package/dist/chunk.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IsNumericLiteral, LessThan, IfNever, Subtract, ValueOf, IntRange } from 'type-fest';
|
|
2
|
-
import { I as IterableContainer, T as TupleParts, N as NTuple, a as NonEmptyArray } from './types-
|
|
2
|
+
import { I as IterableContainer, T as TupleParts, N as NTuple, a as NonEmptyArray } from './types-CC8iZVKO.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* This prevents typescript from failing on complex arrays and large chunks.
|
package/dist/concat.d.cts
CHANGED
package/dist/concat.d.ts
CHANGED
package/dist/conditional.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as GuardType } from './types-
|
|
1
|
+
import { G as GuardType } from './types-CC8iZVKO.cjs';
|
|
2
2
|
import 'type-fest';
|
|
3
3
|
|
|
4
4
|
type Case<In, Out, When extends (x: In) => boolean = (x: In) => boolean> = readonly [when: When, then: (x: GuardType<When, In> & In) => Out];
|
package/dist/conditional.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as GuardType } from './types-
|
|
1
|
+
import { G as GuardType } from './types-CC8iZVKO.js';
|
|
2
2
|
import 'type-fest';
|
|
3
3
|
|
|
4
4
|
type Case<In, Out, When extends (x: In) => boolean = (x: In) => boolean> = readonly [when: When, then: (x: GuardType<When, In> & In) => Out];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var _chunkYWTY4X2Rcjs = require('./chunk-YWTY4X2R.cjs');var _chunkDAFN5EJRcjs = require('./chunk-DAFN5EJR.cjs');var _chunkXUEOOIR6cjs = require('./chunk-XUEOOIR6.cjs');var _chunkSXTSJOEEcjs = require('./chunk-SXTSJOEE.cjs');var _chunkEHJK4JRFcjs = require('./chunk-EHJK4JRF.cjs');var _chunkDHNCWVVTcjs = require('./chunk-DHNCWVVT.cjs');var
|
|
1
|
+
"use strict";var _chunkYWTY4X2Rcjs = require('./chunk-YWTY4X2R.cjs');var _chunkDAFN5EJRcjs = require('./chunk-DAFN5EJR.cjs');var _chunkXUEOOIR6cjs = require('./chunk-XUEOOIR6.cjs');var _chunkSXTSJOEEcjs = require('./chunk-SXTSJOEE.cjs');var _chunkEHJK4JRFcjs = require('./chunk-EHJK4JRF.cjs');var _chunkDHNCWVVTcjs = require('./chunk-DHNCWVVT.cjs');var _chunkY7L64OLNcjs = require('./chunk-Y7L64OLN.cjs');require('./chunk-SW6GJ7UA.cjs');require('./chunk-FWQYL4Y4.cjs');require('./chunk-G66EZBJS.cjs');var _chunkE6JSDI5Scjs = require('./chunk-E6JSDI5S.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');describe("data-first",()=>{it("narrows types in the transformers",()=>{_chunkE6JSDI5Scjs.a.call(void 0, 3,[_chunkEHJK4JRFcjs.a,e=>{expectTypeOf(e).toEqualTypeOf()}],[_chunkYWTY4X2Rcjs.a,e=>{expectTypeOf(e).toEqualTypeOf()}],[_chunkXUEOOIR6cjs.a,e=>{expectTypeOf(e).toEqualTypeOf()}],[_chunkDAFN5EJRcjs.a,e=>{expectTypeOf(e).toEqualTypeOf()}],[e=>e===3,e=>{expectTypeOf(e).toEqualTypeOf()}])}),it("narrows types when using `isNullish`/`isNonNullish` with complex data",()=>{let t=_chunkDHNCWVVTcjs.a.call(void 0, [{x:10},{x:20}],_chunkSXTSJOEEcjs.a.call(void 0, "x"));_chunkE6JSDI5Scjs.a.call(void 0, t,[_chunkXUEOOIR6cjs.a,e=>{expectTypeOf(e).toEqualTypeOf()}],[_chunkDAFN5EJRcjs.a,e=>{expectTypeOf(e).toEqualTypeOf()}])}),it("passes the trivial defaultCase's type to the output",()=>{let t=_chunkE6JSDI5Scjs.a.call(void 0, "Jokic",[_chunkEHJK4JRFcjs.a,()=>"hello"],_chunkE6JSDI5Scjs.a.defaultCase());expectTypeOf(t).toEqualTypeOf()}),it("passes the defaultCase's type to the output",()=>{let t=_chunkE6JSDI5Scjs.a.call(void 0, "Jokic",[_chunkEHJK4JRFcjs.a,()=>"hello"],_chunkE6JSDI5Scjs.a.defaultCase(()=>123));expectTypeOf(t).toEqualTypeOf()})});describe("data-last",()=>{it("narrows types in the transformers",()=>{_chunkY7L64OLNcjs.a.call(void 0, 3,_chunkE6JSDI5Scjs.a.call(void 0, [_chunkEHJK4JRFcjs.a,e=>{expectTypeOf(e).toEqualTypeOf()}],[_chunkYWTY4X2Rcjs.a,e=>{expectTypeOf(e).toEqualTypeOf()}],[_chunkXUEOOIR6cjs.a,e=>{expectTypeOf(e).toEqualTypeOf()}],[_chunkDAFN5EJRcjs.a,e=>{expectTypeOf(e).toEqualTypeOf()}],[e=>e===3,e=>{expectTypeOf(e).toEqualTypeOf()}]))}),it("narrows types when using `isNullish`/`isNonNullish` with complex data",()=>{_chunkY7L64OLNcjs.a.call(void 0, [{x:10},{x:20}],_chunkDHNCWVVTcjs.a.call(void 0, _chunkSXTSJOEEcjs.a.call(void 0, "x")),_chunkE6JSDI5Scjs.a.call(void 0, [_chunkXUEOOIR6cjs.a,t=>{expectTypeOf(t).toEqualTypeOf()}],[_chunkDAFN5EJRcjs.a,t=>{expectTypeOf(t).toEqualTypeOf()}]))}),it("passes the trivial defaultCase's type to the output",()=>{let t=_chunkY7L64OLNcjs.a.call(void 0, "Jokic",_chunkE6JSDI5Scjs.a.call(void 0, [_chunkEHJK4JRFcjs.a,()=>"hello"],_chunkE6JSDI5Scjs.a.defaultCase()));expectTypeOf(t).toEqualTypeOf()}),it("passes the defaultCase's type to the output",()=>{let t=_chunkY7L64OLNcjs.a.call(void 0, "Jokic",_chunkE6JSDI5Scjs.a.call(void 0, [_chunkEHJK4JRFcjs.a,()=>"hello"],_chunkE6JSDI5Scjs.a.defaultCase(()=>123)));expectTypeOf(t).toEqualTypeOf()})});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"./chunk-Q2HW4RVT.js";import{a as o}from"./chunk-QPP664N4.js";import{a}from"./chunk-TBXEXWSK.js";import{a as f}from"./chunk-USNHLUEU.js";import{a as p}from"./chunk-UYLVIAK4.js";import{a as l}from"./chunk-J5PNUDDU.js";import{a as i}from"./chunk-
|
|
1
|
+
import{a as r}from"./chunk-Q2HW4RVT.js";import{a as o}from"./chunk-QPP664N4.js";import{a}from"./chunk-TBXEXWSK.js";import{a as f}from"./chunk-USNHLUEU.js";import{a as p}from"./chunk-UYLVIAK4.js";import{a as l}from"./chunk-J5PNUDDU.js";import{a as i}from"./chunk-FOP5KNRT.js";import"./chunk-T4LCVT74.js";import"./chunk-JXXXUJM5.js";import"./chunk-73BYESBE.js";import{a as s}from"./chunk-H2E5GCCP.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";describe("data-first",()=>{it("narrows types in the transformers",()=>{s(3,[p,e=>{expectTypeOf(e).toEqualTypeOf()}],[r,e=>{expectTypeOf(e).toEqualTypeOf()}],[a,e=>{expectTypeOf(e).toEqualTypeOf()}],[o,e=>{expectTypeOf(e).toEqualTypeOf()}],[e=>e===3,e=>{expectTypeOf(e).toEqualTypeOf()}])}),it("narrows types when using `isNullish`/`isNonNullish` with complex data",()=>{let t=l([{x:10},{x:20}],f("x"));s(t,[a,e=>{expectTypeOf(e).toEqualTypeOf()}],[o,e=>{expectTypeOf(e).toEqualTypeOf()}])}),it("passes the trivial defaultCase's type to the output",()=>{let t=s("Jokic",[p,()=>"hello"],s.defaultCase());expectTypeOf(t).toEqualTypeOf()}),it("passes the defaultCase's type to the output",()=>{let t=s("Jokic",[p,()=>"hello"],s.defaultCase(()=>123));expectTypeOf(t).toEqualTypeOf()})});describe("data-last",()=>{it("narrows types in the transformers",()=>{i(3,s([p,e=>{expectTypeOf(e).toEqualTypeOf()}],[r,e=>{expectTypeOf(e).toEqualTypeOf()}],[a,e=>{expectTypeOf(e).toEqualTypeOf()}],[o,e=>{expectTypeOf(e).toEqualTypeOf()}],[e=>e===3,e=>{expectTypeOf(e).toEqualTypeOf()}]))}),it("narrows types when using `isNullish`/`isNonNullish` with complex data",()=>{i([{x:10},{x:20}],l(f("x")),s([a,t=>{expectTypeOf(t).toEqualTypeOf()}],[o,t=>{expectTypeOf(t).toEqualTypeOf()}]))}),it("passes the trivial defaultCase's type to the output",()=>{let t=i("Jokic",s([p,()=>"hello"],s.defaultCase()));expectTypeOf(t).toEqualTypeOf()}),it("passes the defaultCase's type to the output",()=>{let t=i("Jokic",s([p,()=>"hello"],s.defaultCase(()=>123)));expectTypeOf(t).toEqualTypeOf()})});
|
package/dist/debounce.spec-d.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict"; function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var
|
|
1
|
+
"use strict"; function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var _chunkAQRYBCA3cjs = require('./chunk-AQRYBCA3.cjs');var _chunkOLZEQGPJcjs = require('./chunk-OLZEQGPJ.cjs');it("returns undefined on 'trailing' timing",()=>{let t=_chunkOLZEQGPJcjs.a.call(void 0, ()=>"Hello, World!",{waitMs:32,timing:"trailing"}).call();expectTypeOf(t).toEqualTypeOf()});it("doesn't return undefined on 'leading' timing",()=>{let t=_chunkOLZEQGPJcjs.a.call(void 0, ()=>"Hello, World!",{waitMs:32,timing:"leading"}).call();expectTypeOf(t).toEqualTypeOf()});it("doesn't return undefined on 'both' timing",()=>{let t=_chunkOLZEQGPJcjs.a.call(void 0, ()=>"Hello, World!",{waitMs:32,timing:"both"}).call();expectTypeOf(t).toEqualTypeOf()});test("argument typing to be good (all required)",()=>{let e=_chunkOLZEQGPJcjs.a.call(void 0, (t,a,l)=>`${t}${a}${l?"y":"n"}`,{});e.call(),e.call("a"),e.call("a",1),e.call(!0,1,!0),e.call("a",1,!0)});test("argument typing to be good (with optional)",()=>{let e=_chunkOLZEQGPJcjs.a.call(void 0, (t,a,l)=>`${t}${_nullishCoalesce(a, () => ("undefined"))}${l===void 0?"undefined":l?"y":"n"}`,{});e.call(),e.call(!0,1,!0),e.call("a"),e.call("a",1),e.call("a",1,!0)});test("argument typing to be good (with defaults)",()=>{let e=_chunkOLZEQGPJcjs.a.call(void 0, (t,a=2,l=!0)=>`${t}${a}${l?"y":"n"}`,{});e.call(),e.call(!0,1,!0),e.call("a"),e.call("a",1),e.call("a",1,!0)});test("argument typing to be good (with rest param)",()=>{let e=_chunkOLZEQGPJcjs.a.call(void 0, (t,...a)=>`${t}${a.map(l=>l?"y":"n").join(",")}`,{timing:"leading"});e.call(),e.call(!0),e.call("a","b"),e.call(!0,"b"),e.call("a"),e.call("a",!0),e.call("a",!0,!1)});it("doesn't accept maxWaitMs when timing is 'leading'",()=>{_chunkOLZEQGPJcjs.a.call(void 0, _chunkAQRYBCA3cjs.a.call(void 0, ),{timing:"trailing",maxWaitMs:32}),_chunkOLZEQGPJcjs.a.call(void 0, _chunkAQRYBCA3cjs.a.call(void 0, ),{timing:"both",maxWaitMs:32}),_chunkOLZEQGPJcjs.a.call(void 0, _chunkAQRYBCA3cjs.a.call(void 0, ),{timing:"leading",maxWaitMs:32})});
|
package/dist/debounce.spec-d.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
1
|
+
import{a as i}from"./chunk-46GBCFAG.js";import{a as n}from"./chunk-ENPSKQUH.js";it("returns undefined on 'trailing' timing",()=>{let t=n(()=>"Hello, World!",{waitMs:32,timing:"trailing"}).call();expectTypeOf(t).toEqualTypeOf()});it("doesn't return undefined on 'leading' timing",()=>{let t=n(()=>"Hello, World!",{waitMs:32,timing:"leading"}).call();expectTypeOf(t).toEqualTypeOf()});it("doesn't return undefined on 'both' timing",()=>{let t=n(()=>"Hello, World!",{waitMs:32,timing:"both"}).call();expectTypeOf(t).toEqualTypeOf()});test("argument typing to be good (all required)",()=>{let e=n((t,a,l)=>`${t}${a}${l?"y":"n"}`,{});e.call(),e.call("a"),e.call("a",1),e.call(!0,1,!0),e.call("a",1,!0)});test("argument typing to be good (with optional)",()=>{let e=n((t,a,l)=>`${t}${a??"undefined"}${l===void 0?"undefined":l?"y":"n"}`,{});e.call(),e.call(!0,1,!0),e.call("a"),e.call("a",1),e.call("a",1,!0)});test("argument typing to be good (with defaults)",()=>{let e=n((t,a=2,l=!0)=>`${t}${a}${l?"y":"n"}`,{});e.call(),e.call(!0,1,!0),e.call("a"),e.call("a",1),e.call("a",1,!0)});test("argument typing to be good (with rest param)",()=>{let e=n((t,...a)=>`${t}${a.map(l=>l?"y":"n").join(",")}`,{timing:"leading"});e.call(),e.call(!0),e.call("a","b"),e.call(!0,"b"),e.call("a"),e.call("a",!0),e.call("a",!0,!1)});it("doesn't accept maxWaitMs when timing is 'leading'",()=>{n(i(),{timing:"trailing",maxWaitMs:32}),n(i(),{timing:"both",maxWaitMs:32}),n(i(),{timing:"leading",maxWaitMs:32})});
|
package/dist/difference-with.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkS4XCRT2Bcjs = require('./chunk-S4XCRT2B.cjs');require('./chunk-SU7H3HVP.cjs');require('./chunk-Y7L64OLN.cjs');require('./chunk-SW6GJ7UA.cjs');exports.differenceWith = _chunkS4XCRT2Bcjs.a;
|
package/dist/difference-with.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-TYOJTJP6.js";import"./chunk-SS3ILCPB.js";import"./chunk-FOP5KNRT.js";import"./chunk-T4LCVT74.js";export{a as differenceWith};
|
package/dist/difference.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNWEPH7CDcjs = require('./chunk-NWEPH7CD.cjs');require('./chunk-SU7H3HVP.cjs');require('./chunk-Y7L64OLN.cjs');require('./chunk-SW6GJ7UA.cjs');exports.difference = _chunkNWEPH7CDcjs.a;
|
package/dist/difference.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-23TPDBES.js";import"./chunk-SS3ILCPB.js";import"./chunk-FOP5KNRT.js";import"./chunk-T4LCVT74.js";export{a as difference};
|
package/dist/do-nothing.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWYRK6YJUcjs = require('./chunk-WYRK6YJU.cjs');exports.doNothing = _chunkWYRK6YJUcjs.a;
|
package/dist/do-nothing.d.cts
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* @dataLast
|
|
21
21
|
* @category Function
|
|
22
22
|
*/
|
|
23
|
-
declare
|
|
23
|
+
declare function doNothing(): typeof doesNothing;
|
|
24
24
|
declare function doesNothing<Args extends ReadonlyArray<unknown>>(..._args: Args): void;
|
|
25
25
|
|
|
26
26
|
export { doNothing };
|
package/dist/do-nothing.d.ts
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* @dataLast
|
|
21
21
|
* @category Function
|
|
22
22
|
*/
|
|
23
|
-
declare
|
|
23
|
+
declare function doNothing(): typeof doesNothing;
|
|
24
24
|
declare function doesNothing<Args extends ReadonlyArray<unknown>>(..._args: Args): void;
|
|
25
25
|
|
|
26
26
|
export { doNothing };
|
package/dist/do-nothing.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-AFO7BV2X.js";export{a as doNothing};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var _chunkWYRK6YJUcjs = require('./chunk-WYRK6YJU.cjs');test("supported in any api",()=>{_chunkWYRK6YJUcjs.a.call(void 0, ),_chunkWYRK6YJUcjs.a.call(void 0, ),_chunkWYRK6YJUcjs.a.call(void 0, )});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
1
|
+
import{a as o}from"./chunk-AFO7BV2X.js";test("supported in any api",()=>{o(),o(),o()});
|
package/dist/drop-first-by.d.cts
CHANGED
package/dist/drop-first-by.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var _chunkG7BJFBAZcjs = require('./chunk-G7BJFBAZ.cjs');var
|
|
1
|
+
"use strict";var _chunkG7BJFBAZcjs = require('./chunk-G7BJFBAZ.cjs');var _chunkY7L64OLNcjs = require('./chunk-Y7L64OLN.cjs');require('./chunk-SW6GJ7UA.cjs');var _chunkWLNQOMKLcjs = require('./chunk-WLNQOMKL.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');describe("data-first",()=>{test("empty array",()=>{let e=_chunkG7BJFBAZcjs.a.call(void 0, [],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("regular array",()=>{let e=_chunkG7BJFBAZcjs.a.call(void 0, [],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("regular array with union type",()=>{let e=_chunkG7BJFBAZcjs.a.call(void 0, [],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("prefix array",()=>{let e=_chunkG7BJFBAZcjs.a.call(void 0, [1],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("suffix array",()=>{let e=_chunkG7BJFBAZcjs.a.call(void 0, [1],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("array with suffix and prefix",()=>{let e=_chunkG7BJFBAZcjs.a.call(void 0, [1,"a"],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("tuple",()=>{let e=_chunkG7BJFBAZcjs.a.call(void 0, [1,"a",!0],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("union of arrays",()=>{let e=_chunkG7BJFBAZcjs.a.call(void 0, [],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()})});describe("data-last",()=>{test("empty array",()=>{let e=_chunkY7L64OLNcjs.a.call(void 0, [],_chunkG7BJFBAZcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("regular array",()=>{let e=_chunkY7L64OLNcjs.a.call(void 0, [],_chunkG7BJFBAZcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("regular array with union type",()=>{let e=_chunkY7L64OLNcjs.a.call(void 0, [],_chunkG7BJFBAZcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("prefix array",()=>{let e=_chunkY7L64OLNcjs.a.call(void 0, [1],_chunkG7BJFBAZcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("suffix array",()=>{let e=_chunkY7L64OLNcjs.a.call(void 0, [1],_chunkG7BJFBAZcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("array with suffix and prefix",()=>{let e=_chunkY7L64OLNcjs.a.call(void 0, [1,"a"],_chunkG7BJFBAZcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("tuple",()=>{let e=_chunkY7L64OLNcjs.a.call(void 0, [1,"a",!0],_chunkG7BJFBAZcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("union of arrays",()=>{let e=_chunkY7L64OLNcjs.a.call(void 0, [],_chunkG7BJFBAZcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),describe("predicate is typed correctly",()=>{test("empty array",()=>{_chunkY7L64OLNcjs.a.call(void 0, [],_chunkG7BJFBAZcjs.a.call(void 0, (e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("regular array",()=>{_chunkY7L64OLNcjs.a.call(void 0, [],_chunkG7BJFBAZcjs.a.call(void 0, (e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("regular array with union type",()=>{_chunkY7L64OLNcjs.a.call(void 0, [],_chunkG7BJFBAZcjs.a.call(void 0, (e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("prefix array",()=>{_chunkY7L64OLNcjs.a.call(void 0, [1],_chunkG7BJFBAZcjs.a.call(void 0, (e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("suffix array",()=>{_chunkY7L64OLNcjs.a.call(void 0, [1],_chunkG7BJFBAZcjs.a.call(void 0, (e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("array with suffix and prefix",()=>{_chunkY7L64OLNcjs.a.call(void 0, [1,"a"],_chunkG7BJFBAZcjs.a.call(void 0, (e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("tuple",()=>{_chunkY7L64OLNcjs.a.call(void 0, [1,"a",!0],_chunkG7BJFBAZcjs.a.call(void 0, (e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("union of arrays",()=>{_chunkY7L64OLNcjs.a.call(void 0, [],_chunkG7BJFBAZcjs.a.call(void 0, (e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))})})});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"./chunk-QTQTKNWA.js";import{a as t}from"./chunk-
|
|
1
|
+
import{a as r}from"./chunk-QTQTKNWA.js";import{a as t}from"./chunk-FOP5KNRT.js";import"./chunk-T4LCVT74.js";import{a}from"./chunk-T5XG33UI.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";describe("data-first",()=>{test("empty array",()=>{let e=r([],a(!0));expectTypeOf(e).toEqualTypeOf()}),test("regular array",()=>{let e=r([],a(!0));expectTypeOf(e).toEqualTypeOf()}),test("regular array with union type",()=>{let e=r([],a(!0));expectTypeOf(e).toEqualTypeOf()}),test("prefix array",()=>{let e=r([1],a(!0));expectTypeOf(e).toEqualTypeOf()}),test("suffix array",()=>{let e=r([1],a(!0));expectTypeOf(e).toEqualTypeOf()}),test("array with suffix and prefix",()=>{let e=r([1,"a"],a(!0));expectTypeOf(e).toEqualTypeOf()}),test("tuple",()=>{let e=r([1,"a",!0],a(!0));expectTypeOf(e).toEqualTypeOf()}),test("union of arrays",()=>{let e=r([],a(!0));expectTypeOf(e).toEqualTypeOf()})});describe("data-last",()=>{test("empty array",()=>{let e=t([],r(a(!0)));expectTypeOf(e).toEqualTypeOf()}),test("regular array",()=>{let e=t([],r(a(!0)));expectTypeOf(e).toEqualTypeOf()}),test("regular array with union type",()=>{let e=t([],r(a(!0)));expectTypeOf(e).toEqualTypeOf()}),test("prefix array",()=>{let e=t([1],r(a(!0)));expectTypeOf(e).toEqualTypeOf()}),test("suffix array",()=>{let e=t([1],r(a(!0)));expectTypeOf(e).toEqualTypeOf()}),test("array with suffix and prefix",()=>{let e=t([1,"a"],r(a(!0)));expectTypeOf(e).toEqualTypeOf()}),test("tuple",()=>{let e=t([1,"a",!0],r(a(!0)));expectTypeOf(e).toEqualTypeOf()}),test("union of arrays",()=>{let e=t([],r(a(!0)));expectTypeOf(e).toEqualTypeOf()}),describe("predicate is typed correctly",()=>{test("empty array",()=>{t([],r((e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("regular array",()=>{t([],r((e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("regular array with union type",()=>{t([],r((e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("prefix array",()=>{t([1],r((e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("suffix array",()=>{t([1],r((e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("array with suffix and prefix",()=>{t([1,"a"],r((e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("tuple",()=>{t([1,"a",!0],r((e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("union of arrays",()=>{t([],r((e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))})})});
|
package/dist/drop-last.d.cts
CHANGED
package/dist/drop-last.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var _chunkAACZ5UGGcjs = require('./chunk-AACZ5UGG.cjs');var
|
|
1
|
+
"use strict";var _chunkAACZ5UGGcjs = require('./chunk-AACZ5UGG.cjs');var _chunkY7L64OLNcjs = require('./chunk-Y7L64OLN.cjs');require('./chunk-SW6GJ7UA.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');describe("data-first",()=>{test("empty array",()=>{let r=_chunkAACZ5UGGcjs.a.call(void 0, [],2);expectTypeOf(r).toEqualTypeOf()}),test("regular array",()=>{let r=_chunkAACZ5UGGcjs.a.call(void 0, [],2);expectTypeOf(r).toEqualTypeOf()}),test("regular array with union type",()=>{let r=_chunkAACZ5UGGcjs.a.call(void 0, [],2);expectTypeOf(r).toEqualTypeOf()}),test("prefix array",()=>{let r=_chunkAACZ5UGGcjs.a.call(void 0, [1],2);expectTypeOf(r).toEqualTypeOf()}),test("suffix array",()=>{let r=_chunkAACZ5UGGcjs.a.call(void 0, [1],2);expectTypeOf(r).toEqualTypeOf()}),test("array with suffix and prefix",()=>{let r=_chunkAACZ5UGGcjs.a.call(void 0, [1,"a"],2);expectTypeOf(r).toEqualTypeOf()}),test("tuple",()=>{let r=_chunkAACZ5UGGcjs.a.call(void 0, [1,"a",!0],2);expectTypeOf(r).toEqualTypeOf()}),test("union of arrays",()=>{let r=_chunkAACZ5UGGcjs.a.call(void 0, [],2);expectTypeOf(r).toEqualTypeOf()})});describe("data-last",()=>{test("empty array",()=>{let r=_chunkY7L64OLNcjs.a.call(void 0, [],_chunkAACZ5UGGcjs.a.call(void 0, 2));expectTypeOf(r).toEqualTypeOf()}),test("regular array",()=>{let r=_chunkY7L64OLNcjs.a.call(void 0, [],_chunkAACZ5UGGcjs.a.call(void 0, 2));expectTypeOf(r).toEqualTypeOf()}),test("regular array with union type",()=>{let r=_chunkY7L64OLNcjs.a.call(void 0, [],_chunkAACZ5UGGcjs.a.call(void 0, 2));expectTypeOf(r).toEqualTypeOf()}),test("prefix array",()=>{let r=_chunkY7L64OLNcjs.a.call(void 0, [1],_chunkAACZ5UGGcjs.a.call(void 0, 2));expectTypeOf(r).toEqualTypeOf()}),test("suffix array",()=>{let r=_chunkY7L64OLNcjs.a.call(void 0, [1],_chunkAACZ5UGGcjs.a.call(void 0, 2));expectTypeOf(r).toEqualTypeOf()}),test("array with suffix and prefix",()=>{let r=_chunkY7L64OLNcjs.a.call(void 0, [1,"a"],_chunkAACZ5UGGcjs.a.call(void 0, 2));expectTypeOf(r).toEqualTypeOf()}),test("tuple",()=>{let r=_chunkY7L64OLNcjs.a.call(void 0, [1,"a",!0],_chunkAACZ5UGGcjs.a.call(void 0, 2));expectTypeOf(r).toEqualTypeOf()}),test("union of arrays",()=>{let r=_chunkY7L64OLNcjs.a.call(void 0, [],_chunkAACZ5UGGcjs.a.call(void 0, 2));expectTypeOf(r).toEqualTypeOf()})});
|
package/dist/drop-last.spec-d.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./chunk-U2BXIRBJ.js";import{a as t}from"./chunk-
|
|
1
|
+
import{a as e}from"./chunk-U2BXIRBJ.js";import{a as t}from"./chunk-FOP5KNRT.js";import"./chunk-T4LCVT74.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";describe("data-first",()=>{test("empty array",()=>{let r=e([],2);expectTypeOf(r).toEqualTypeOf()}),test("regular array",()=>{let r=e([],2);expectTypeOf(r).toEqualTypeOf()}),test("regular array with union type",()=>{let r=e([],2);expectTypeOf(r).toEqualTypeOf()}),test("prefix array",()=>{let r=e([1],2);expectTypeOf(r).toEqualTypeOf()}),test("suffix array",()=>{let r=e([1],2);expectTypeOf(r).toEqualTypeOf()}),test("array with suffix and prefix",()=>{let r=e([1,"a"],2);expectTypeOf(r).toEqualTypeOf()}),test("tuple",()=>{let r=e([1,"a",!0],2);expectTypeOf(r).toEqualTypeOf()}),test("union of arrays",()=>{let r=e([],2);expectTypeOf(r).toEqualTypeOf()})});describe("data-last",()=>{test("empty array",()=>{let r=t([],e(2));expectTypeOf(r).toEqualTypeOf()}),test("regular array",()=>{let r=t([],e(2));expectTypeOf(r).toEqualTypeOf()}),test("regular array with union type",()=>{let r=t([],e(2));expectTypeOf(r).toEqualTypeOf()}),test("prefix array",()=>{let r=t([1],e(2));expectTypeOf(r).toEqualTypeOf()}),test("suffix array",()=>{let r=t([1],e(2));expectTypeOf(r).toEqualTypeOf()}),test("array with suffix and prefix",()=>{let r=t([1,"a"],e(2));expectTypeOf(r).toEqualTypeOf()}),test("tuple",()=>{let r=t([1,"a",!0],e(2));expectTypeOf(r).toEqualTypeOf()}),test("union of arrays",()=>{let r=t([],e(2));expectTypeOf(r).toEqualTypeOf()})});
|
package/dist/drop-while.d.cts
CHANGED
package/dist/drop-while.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var _chunkRJAVPEJTcjs = require('./chunk-RJAVPEJT.cjs');var
|
|
1
|
+
"use strict";var _chunkRJAVPEJTcjs = require('./chunk-RJAVPEJT.cjs');var _chunkY7L64OLNcjs = require('./chunk-Y7L64OLN.cjs');require('./chunk-SW6GJ7UA.cjs');var _chunkWLNQOMKLcjs = require('./chunk-WLNQOMKL.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');describe("data-first",()=>{test("empty array",()=>{let e=_chunkRJAVPEJTcjs.a.call(void 0, [],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("regular array",()=>{let e=_chunkRJAVPEJTcjs.a.call(void 0, [],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("regular array with union type",()=>{let e=_chunkRJAVPEJTcjs.a.call(void 0, [],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("prefix array",()=>{let e=_chunkRJAVPEJTcjs.a.call(void 0, [1],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("suffix array",()=>{let e=_chunkRJAVPEJTcjs.a.call(void 0, [1],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("array with suffix and prefix",()=>{let e=_chunkRJAVPEJTcjs.a.call(void 0, [1,"a"],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("tuple",()=>{let e=_chunkRJAVPEJTcjs.a.call(void 0, [1,"a",!0],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("union of arrays",()=>{let e=_chunkRJAVPEJTcjs.a.call(void 0, [],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()})});describe("data-last",()=>{test("empty array",()=>{let e=_chunkY7L64OLNcjs.a.call(void 0, [],_chunkRJAVPEJTcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("regular array",()=>{let e=_chunkY7L64OLNcjs.a.call(void 0, [],_chunkRJAVPEJTcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("regular array with union type",()=>{let e=_chunkY7L64OLNcjs.a.call(void 0, [],_chunkRJAVPEJTcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("prefix array",()=>{let e=_chunkY7L64OLNcjs.a.call(void 0, [1],_chunkRJAVPEJTcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("suffix array",()=>{let e=_chunkY7L64OLNcjs.a.call(void 0, [1],_chunkRJAVPEJTcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("array with suffix and prefix",()=>{let e=_chunkY7L64OLNcjs.a.call(void 0, [1,"a"],_chunkRJAVPEJTcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("tuple",()=>{let e=_chunkY7L64OLNcjs.a.call(void 0, [1,"a",!0],_chunkRJAVPEJTcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("union of arrays",()=>{let e=_chunkY7L64OLNcjs.a.call(void 0, [],_chunkRJAVPEJTcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),describe("predicate is typed correctly",()=>{test("empty array",()=>{_chunkY7L64OLNcjs.a.call(void 0, [],_chunkRJAVPEJTcjs.a.call(void 0, (e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("regular array",()=>{_chunkY7L64OLNcjs.a.call(void 0, [],_chunkRJAVPEJTcjs.a.call(void 0, (e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("regular array with union type",()=>{_chunkY7L64OLNcjs.a.call(void 0, [],_chunkRJAVPEJTcjs.a.call(void 0, (e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("prefix array",()=>{_chunkY7L64OLNcjs.a.call(void 0, [1],_chunkRJAVPEJTcjs.a.call(void 0, (e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("suffix array",()=>{_chunkY7L64OLNcjs.a.call(void 0, [1],_chunkRJAVPEJTcjs.a.call(void 0, (e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("array with suffix and prefix",()=>{_chunkY7L64OLNcjs.a.call(void 0, [1,"a"],_chunkRJAVPEJTcjs.a.call(void 0, (e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("tuple",()=>{_chunkY7L64OLNcjs.a.call(void 0, [1,"a",!0],_chunkRJAVPEJTcjs.a.call(void 0, (e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("union of arrays",()=>{_chunkY7L64OLNcjs.a.call(void 0, [],_chunkRJAVPEJTcjs.a.call(void 0, (e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))})})});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"./chunk-IABWIMQT.js";import{a as t}from"./chunk-
|
|
1
|
+
import{a as r}from"./chunk-IABWIMQT.js";import{a as t}from"./chunk-FOP5KNRT.js";import"./chunk-T4LCVT74.js";import{a}from"./chunk-T5XG33UI.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";describe("data-first",()=>{test("empty array",()=>{let e=r([],a(!0));expectTypeOf(e).toEqualTypeOf()}),test("regular array",()=>{let e=r([],a(!0));expectTypeOf(e).toEqualTypeOf()}),test("regular array with union type",()=>{let e=r([],a(!0));expectTypeOf(e).toEqualTypeOf()}),test("prefix array",()=>{let e=r([1],a(!0));expectTypeOf(e).toEqualTypeOf()}),test("suffix array",()=>{let e=r([1],a(!0));expectTypeOf(e).toEqualTypeOf()}),test("array with suffix and prefix",()=>{let e=r([1,"a"],a(!0));expectTypeOf(e).toEqualTypeOf()}),test("tuple",()=>{let e=r([1,"a",!0],a(!0));expectTypeOf(e).toEqualTypeOf()}),test("union of arrays",()=>{let e=r([],a(!0));expectTypeOf(e).toEqualTypeOf()})});describe("data-last",()=>{test("empty array",()=>{let e=t([],r(a(!0)));expectTypeOf(e).toEqualTypeOf()}),test("regular array",()=>{let e=t([],r(a(!0)));expectTypeOf(e).toEqualTypeOf()}),test("regular array with union type",()=>{let e=t([],r(a(!0)));expectTypeOf(e).toEqualTypeOf()}),test("prefix array",()=>{let e=t([1],r(a(!0)));expectTypeOf(e).toEqualTypeOf()}),test("suffix array",()=>{let e=t([1],r(a(!0)));expectTypeOf(e).toEqualTypeOf()}),test("array with suffix and prefix",()=>{let e=t([1,"a"],r(a(!0)));expectTypeOf(e).toEqualTypeOf()}),test("tuple",()=>{let e=t([1,"a",!0],r(a(!0)));expectTypeOf(e).toEqualTypeOf()}),test("union of arrays",()=>{let e=t([],r(a(!0)));expectTypeOf(e).toEqualTypeOf()}),describe("predicate is typed correctly",()=>{test("empty array",()=>{t([],r((e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("regular array",()=>{t([],r((e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("regular array with union type",()=>{t([],r((e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("prefix array",()=>{t([1],r((e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("suffix array",()=>{t([1],r((e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("array with suffix and prefix",()=>{t([1,"a"],r((e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("tuple",()=>{t([1,"a",!0],r((e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("union of arrays",()=>{t([],r((e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))})})});
|
package/dist/drop.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkG5M5BNF3cjs = require('./chunk-G5M5BNF3.cjs');require('./chunk-SW6GJ7UA.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');exports.drop = _chunkG5M5BNF3cjs.a;
|