@mainsail/utils 0.0.1-rc.7 → 0.0.1-rc.9
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/distribution/assert.d.ts +1 -1
- package/distribution/assert.d.ts.map +1 -1
- package/distribution/assert.js.map +1 -1
- package/distribution/assign.d.ts +1 -1
- package/distribution/assign.d.ts.map +1 -1
- package/distribution/assign.js +1 -2
- package/distribution/assign.js.map +1 -1
- package/distribution/at.d.ts +1 -1
- package/distribution/at.d.ts.map +1 -1
- package/distribution/at.js +2 -2
- package/distribution/at.js.map +1 -1
- package/distribution/big-number.d.ts +1 -2
- package/distribution/big-number.d.ts.map +1 -1
- package/distribution/big-number.js.map +1 -1
- package/distribution/byte-buffer.d.ts.map +1 -1
- package/distribution/capped-set.d.ts.map +1 -1
- package/distribution/capped-set.js.map +1 -1
- package/distribution/cast-array.d.ts +1 -1
- package/distribution/cast-array.d.ts.map +1 -1
- package/distribution/cast-array.js.map +1 -1
- package/distribution/clone-deep.d.ts.map +1 -1
- package/distribution/clone-deep.js +2 -2
- package/distribution/clone-deep.js.map +1 -1
- package/distribution/clone-object.d.ts +1 -1
- package/distribution/clone-object.d.ts.map +1 -1
- package/distribution/clone-object.js.map +1 -1
- package/distribution/clone.d.ts +1 -1
- package/distribution/clone.d.ts.map +1 -1
- package/distribution/clone.js.map +1 -1
- package/distribution/dot-env.d.ts +1 -1
- package/distribution/dot-env.d.ts.map +1 -1
- package/distribution/dot-env.js.map +1 -1
- package/distribution/every.d.ts +1 -1
- package/distribution/every.d.ts.map +1 -1
- package/distribution/filter-array.d.ts +2 -2
- package/distribution/filter-array.d.ts.map +1 -1
- package/distribution/filter-array.js +3 -2
- package/distribution/filter-array.js.map +1 -1
- package/distribution/filter-object.d.ts +2 -2
- package/distribution/filter-object.d.ts.map +1 -1
- package/distribution/filter-object.js +8 -6
- package/distribution/filter-object.js.map +1 -1
- package/distribution/filter.d.ts +2 -2
- package/distribution/filter.d.ts.map +1 -1
- package/distribution/filter.js +9 -1
- package/distribution/filter.js.map +1 -1
- package/distribution/find-index.d.ts +1 -1
- package/distribution/find-index.d.ts.map +1 -1
- package/distribution/find-key.d.ts +2 -2
- package/distribution/find-key.d.ts.map +1 -1
- package/distribution/find-key.js +5 -1
- package/distribution/find-key.js.map +1 -1
- package/distribution/find.d.ts +1 -1
- package/distribution/find.d.ts.map +1 -1
- package/distribution/format-string.d.ts +1 -1
- package/distribution/format-string.d.ts.map +1 -1
- package/distribution/format-string.js +4 -5
- package/distribution/format-string.js.map +1 -1
- package/distribution/group-by.d.ts +2 -2
- package/distribution/group-by.d.ts.map +1 -1
- package/distribution/group-by.js +4 -4
- package/distribution/group-by.js.map +1 -1
- package/distribution/http.d.ts +8 -7
- package/distribution/http.d.ts.map +1 -1
- package/distribution/http.js +5 -4
- package/distribution/http.js.map +1 -1
- package/distribution/immutable/index.d.ts +1 -1
- package/distribution/immutable/index.d.ts.map +1 -1
- package/distribution/immutable/index.js +1 -1
- package/distribution/immutable/index.js.map +1 -1
- package/distribution/immutable/order-by.d.ts +1 -1
- package/distribution/immutable/order-by.d.ts.map +1 -1
- package/distribution/immutable/order-by.js.map +1 -1
- package/distribution/immutable/sort-by-desc.d.ts +1 -1
- package/distribution/immutable/sort-by-desc.d.ts.map +1 -1
- package/distribution/immutable/sort-by.d.ts +1 -1
- package/distribution/immutable/sort-by.d.ts.map +1 -1
- package/distribution/index-of.d.ts +1 -1
- package/distribution/index-of.d.ts.map +1 -1
- package/distribution/index-of.js.map +1 -1
- package/distribution/index.d.ts +29 -28
- package/distribution/index.d.ts.map +1 -1
- package/distribution/index.js +29 -28
- package/distribution/index.js.map +1 -1
- package/distribution/internal/types.d.ts +2 -2
- package/distribution/internal/types.d.ts.map +1 -1
- package/distribution/ip-address.d.ts.map +1 -1
- package/distribution/ip-address.js.map +1 -1
- package/distribution/is-blacklisted.js +2 -2
- package/distribution/is-blacklisted.js.map +1 -1
- package/distribution/is-constructor.d.ts +1 -1
- package/distribution/is-constructor.d.ts.map +1 -1
- package/distribution/is-constructor.js +1 -1
- package/distribution/is-constructor.js.map +1 -1
- package/distribution/is-empty.d.ts +1 -1
- package/distribution/is-empty.d.ts.map +1 -1
- package/distribution/is-empty.js +7 -4
- package/distribution/is-empty.js.map +1 -1
- package/distribution/is-false.d.ts +1 -1
- package/distribution/is-false.d.ts.map +1 -1
- package/distribution/is-false.js.map +1 -1
- package/distribution/is-match.d.ts +1 -1
- package/distribution/is-match.d.ts.map +1 -1
- package/distribution/is-match.js.map +1 -1
- package/distribution/is-not-between.d.ts +1 -1
- package/distribution/is-not-between.d.ts.map +1 -1
- package/distribution/is-not-between.js.map +1 -1
- package/distribution/is-true.d.ts +1 -1
- package/distribution/is-true.d.ts.map +1 -1
- package/distribution/is-true.js.map +1 -1
- package/distribution/is-whitelisted.js +2 -2
- package/distribution/is-whitelisted.js.map +1 -1
- package/distribution/key-by.d.ts +2 -2
- package/distribution/key-by.d.ts.map +1 -1
- package/distribution/key-by.js +2 -1
- package/distribution/key-by.js.map +1 -1
- package/distribution/keys.d.ts +1 -1
- package/distribution/keys.d.ts.map +1 -1
- package/distribution/keys.js.map +1 -1
- package/distribution/map-array.d.ts +1 -2
- package/distribution/map-array.d.ts.map +1 -1
- package/distribution/map-array.js.map +1 -1
- package/distribution/map-object.d.ts +1 -2
- package/distribution/map-object.d.ts.map +1 -1
- package/distribution/map-object.js.map +1 -1
- package/distribution/map-values.d.ts +1 -2
- package/distribution/map-values.d.ts.map +1 -1
- package/distribution/map-values.js.map +1 -1
- package/distribution/map.d.ts +1 -2
- package/distribution/map.d.ts.map +1 -1
- package/distribution/map.js +7 -1
- package/distribution/map.js.map +1 -1
- package/distribution/max-by.d.ts +2 -2
- package/distribution/max-by.d.ts.map +1 -1
- package/distribution/max-by.js.map +1 -1
- package/distribution/min-by.d.ts +2 -2
- package/distribution/min-by.d.ts.map +1 -1
- package/distribution/min-by.js.map +1 -1
- package/distribution/omit-by.d.ts +2 -2
- package/distribution/omit-by.d.ts.map +1 -1
- package/distribution/omit-by.js.map +1 -1
- package/distribution/order-by.d.ts +2 -2
- package/distribution/order-by.d.ts.map +1 -1
- package/distribution/order-by.js +11 -12
- package/distribution/order-by.js.map +1 -1
- package/distribution/parse-git-url.d.ts.map +1 -1
- package/distribution/parse-git-url.js.map +1 -1
- package/distribution/partition.d.ts +1 -1
- package/distribution/partition.d.ts.map +1 -1
- package/distribution/pick-by.d.ts +1 -2
- package/distribution/pick-by.d.ts.map +1 -1
- package/distribution/pick-by.js +13 -2
- package/distribution/pick-by.js.map +1 -1
- package/distribution/pull-all-by.d.ts +2 -2
- package/distribution/pull-all-by.d.ts.map +1 -1
- package/distribution/pull-all-by.js +6 -4
- package/distribution/pull-all-by.js.map +1 -1
- package/distribution/pull-all.d.ts +1 -1
- package/distribution/pull-all.d.ts.map +1 -1
- package/distribution/pull-all.js +1 -1
- package/distribution/pull-all.js.map +1 -1
- package/distribution/pull.d.ts +1 -1
- package/distribution/pull.d.ts.map +1 -1
- package/distribution/pull.js.map +1 -1
- package/distribution/reduce-array.d.ts +1 -1
- package/distribution/reduce-array.d.ts.map +1 -1
- package/distribution/reduce-array.js.map +1 -1
- package/distribution/reduce-object.d.ts +2 -2
- package/distribution/reduce-object.d.ts.map +1 -1
- package/distribution/reduce-object.js +2 -1
- package/distribution/reduce-object.js.map +1 -1
- package/distribution/reduce-right-array.d.ts +2 -2
- package/distribution/reduce-right-array.d.ts.map +1 -1
- package/distribution/reduce-right-array.js.map +1 -1
- package/distribution/reduce-right-object.d.ts +2 -2
- package/distribution/reduce-right-object.d.ts.map +1 -1
- package/distribution/reduce-right-object.js +2 -1
- package/distribution/reduce-right-object.js.map +1 -1
- package/distribution/reduce-right.d.ts +5 -2
- package/distribution/reduce-right.d.ts.map +1 -1
- package/distribution/reduce-right.js +5 -3
- package/distribution/reduce-right.js.map +1 -1
- package/distribution/reduce.d.ts +2 -2
- package/distribution/reduce.d.ts.map +1 -1
- package/distribution/reduce.js +8 -1
- package/distribution/reduce.js.map +1 -1
- package/distribution/reject.d.ts +2 -2
- package/distribution/reject.d.ts.map +1 -1
- package/distribution/reject.js +1 -1
- package/distribution/reject.js.map +1 -1
- package/distribution/semver.d.ts.map +1 -1
- package/distribution/semver.js +5 -5
- package/distribution/semver.js.map +1 -1
- package/distribution/set-timeout-async.d.ts +2 -0
- package/distribution/set-timeout-async.d.ts.map +1 -0
- package/distribution/set-timeout-async.js +6 -0
- package/distribution/set-timeout-async.js.map +1 -0
- package/distribution/some.d.ts +2 -2
- package/distribution/some.d.ts.map +1 -1
- package/distribution/some.js.map +1 -1
- package/distribution/sort-by-desc.d.ts +1 -1
- package/distribution/sort-by-desc.d.ts.map +1 -1
- package/distribution/sort-by-desc.js.map +1 -1
- package/distribution/sort-by.d.ts +1 -1
- package/distribution/sort-by.d.ts.map +1 -1
- package/distribution/sort-by.js.map +1 -1
- package/distribution/union-by.d.ts +1 -1
- package/distribution/union-by.d.ts.map +1 -1
- package/distribution/union-by.js +3 -0
- package/distribution/union-by.js.map +1 -1
- package/distribution/uniq-by.d.ts +2 -2
- package/distribution/uniq-by.d.ts.map +1 -1
- package/distribution/uniq-by.js.map +1 -1
- package/distribution/validator-set-pack.d.ts.map +1 -1
- package/distribution/validator-set-pack.js +13 -3
- package/distribution/validator-set-pack.js.map +1 -1
- package/package.json +13 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../source/immutable/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../source/immutable/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/immutable/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/immutable/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order-by.d.ts","sourceRoot":"","sources":["../../source/immutable/order-by.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"order-by.d.ts","sourceRoot":"","sources":["../../source/immutable/order-by.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAIrD,eAAO,MAAM,OAAO,GAAI,CAAC,EAAE,QAAQ,CAAC,EAAE,EAAE,WAAW,QAAQ,GAAG,QAAQ,EAAE,EAAE,QAAQ,MAAM,GAAG,MAAM,EAAE,KAAG,CAAC,EAC3D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order-by.js","sourceRoot":"","sources":["../../source/immutable/order-by.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"order-by.js","sourceRoot":"","sources":["../../source/immutable/order-by.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAExD,MAAM,CAAC,MAAM,OAAO,GAAG,CAAI,MAAW,EAAE,SAAgC,EAAE,MAAyB,EAAO,EAAE,CAC3G,WAAW,CAAC,CAAC,GAAG,MAAM,CAAC,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ISortBy, ISortByFunction } from "fast-sort";
|
|
1
|
+
import type { ISortBy, ISortByFunction } from "fast-sort";
|
|
2
2
|
export declare const sortByDesc: <T>(values: T[], iteratees?: ISortByFunction<T> | keyof T | (ISortByFunction<T> | keyof T)[] | ISortBy<T>[]) => T[];
|
|
3
3
|
//# sourceMappingURL=sort-by-desc.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sort-by-desc.d.ts","sourceRoot":"","sources":["../../source/immutable/sort-by-desc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"sort-by-desc.d.ts","sourceRoot":"","sources":["../../source/immutable/sort-by-desc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAI1D,eAAO,MAAM,UAAU,GAAI,CAAC,EAC3B,QAAQ,CAAC,EAAE,EACX,YAAY,eAAe,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,KACxF,CAAC,EAA4C,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ISortBy, ISortByFunction } from "fast-sort";
|
|
1
|
+
import type { ISortBy, ISortByFunction } from "fast-sort";
|
|
2
2
|
export declare const sortBy: <T>(values: T[], iteratees?: ISortByFunction<T> | keyof T | (ISortByFunction<T> | keyof T)[] | ISortBy<T>[]) => T[];
|
|
3
3
|
//# sourceMappingURL=sort-by.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sort-by.d.ts","sourceRoot":"","sources":["../../source/immutable/sort-by.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"sort-by.d.ts","sourceRoot":"","sources":["../../source/immutable/sort-by.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAI1D,eAAO,MAAM,MAAM,GAAI,CAAC,EACvB,QAAQ,CAAC,EAAE,EACX,YAAY,eAAe,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,KACxF,CAAC,EAAwC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const indexOf: <T>(iterable: T[], value:
|
|
1
|
+
export declare const indexOf: <T>(iterable: T[], value: T, fromIndex?: number) => number;
|
|
2
2
|
//# sourceMappingURL=index-of.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-of.d.ts","sourceRoot":"","sources":["../source/index-of.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,GAAI,CAAC,EAAE,UAAU,CAAC,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"index-of.d.ts","sourceRoot":"","sources":["../source/index-of.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,GAAI,CAAC,EAAE,UAAU,CAAC,EAAE,EAAE,OAAO,CAAC,EAAE,YAAY,MAAM,KAAG,MAwBxE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-of.js","sourceRoot":"","sources":["../source/index-of.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,CAAI,QAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"index-of.js","sourceRoot":"","sources":["../source/index-of.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,CAAI,QAAa,EAAE,KAAQ,EAAE,SAAkB,EAAU,EAAE;IACjF,MAAM,MAAM,GAAW,QAAQ,CAAC,MAAM,CAAC;IAEvC,IAAI,KAAK,GAAG,CAAC,CAAC;IAEd,IAAI,SAAS,EAAE,CAAC;QACf,KAAK,GAAG,SAAS,CAAC;QAElB,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;YACf,KAAK,IAAI,MAAM,CAAC;YAEhB,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;gBACf,KAAK,GAAG,CAAC,CAAC;YACX,CAAC;QACF,CAAC;IACF,CAAC;IAED,OAAO,KAAK,GAAG,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;QAChC,IAAI,QAAQ,CAAC,KAAK,CAAC,KAAK,KAAK,EAAE,CAAC;YAC/B,OAAO,KAAK,CAAC;QACd,CAAC;IACF,CAAC;IAED,OAAO,CAAC,CAAC,CAAC;AACX,CAAC,CAAC"}
|
package/distribution/index.d.ts
CHANGED
|
@@ -11,10 +11,10 @@ export * from "./capped-set.js";
|
|
|
11
11
|
export * from "./cast-array.js";
|
|
12
12
|
export * from "./chars.js";
|
|
13
13
|
export * from "./chunk.js";
|
|
14
|
-
export * from "./clone.js";
|
|
15
14
|
export * from "./clone-array.js";
|
|
16
15
|
export * from "./clone-deep.js";
|
|
17
16
|
export * from "./clone-object.js";
|
|
17
|
+
export * from "./clone.js";
|
|
18
18
|
export * from "./collection.js";
|
|
19
19
|
export * from "./concat.js";
|
|
20
20
|
export * from "./constant-case.js";
|
|
@@ -24,12 +24,12 @@ export * from "./every.js";
|
|
|
24
24
|
export * from "./expand-tilde.js";
|
|
25
25
|
export * from "./extension.js";
|
|
26
26
|
export * from "./fill.js";
|
|
27
|
-
export * from "./filter.js";
|
|
28
27
|
export * from "./filter-array.js";
|
|
29
28
|
export * from "./filter-object.js";
|
|
30
|
-
export * from "./
|
|
29
|
+
export * from "./filter.js";
|
|
31
30
|
export * from "./find-index.js";
|
|
32
31
|
export * from "./find-key.js";
|
|
32
|
+
export * from "./find.js";
|
|
33
33
|
export * from "./first-map-entry.js";
|
|
34
34
|
export * from "./first-map-key.js";
|
|
35
35
|
export * from "./first-map-value.js";
|
|
@@ -37,13 +37,13 @@ export * from "./flatten.js";
|
|
|
37
37
|
export * from "./format-ecdsa-signature.js";
|
|
38
38
|
export * from "./format-number.js";
|
|
39
39
|
export * from "./format-string.js";
|
|
40
|
-
export * from "./get.js";
|
|
41
40
|
export * from "./get-path-segments.js";
|
|
42
41
|
export * from "./get-type.js";
|
|
42
|
+
export * from "./get.js";
|
|
43
43
|
export * from "./group-by.js";
|
|
44
|
-
export * from "./has.js";
|
|
45
44
|
export * from "./has-property.js";
|
|
46
45
|
export * from "./has-some-property.js";
|
|
46
|
+
export * from "./has.js";
|
|
47
47
|
export * from "./hash-string.js";
|
|
48
48
|
export * from "./head.js";
|
|
49
49
|
export * from "./header-case.js";
|
|
@@ -56,51 +56,51 @@ export * from "./internal/index.js";
|
|
|
56
56
|
export * from "./intersection.js";
|
|
57
57
|
export * as IpAddress from "./ip-address.js";
|
|
58
58
|
export * from "./is-arguments.js";
|
|
59
|
-
export * from "./is-array.js";
|
|
60
59
|
export * from "./is-array-of-type.js";
|
|
60
|
+
export * from "./is-array.js";
|
|
61
61
|
export * from "./is-async-function.js";
|
|
62
62
|
export * from "./is-between.js";
|
|
63
63
|
export * from "./is-bigint.js";
|
|
64
64
|
export * from "./is-blacklisted.js";
|
|
65
|
-
export * from "./is-boolean.js";
|
|
66
65
|
export * from "./is-boolean-array.js";
|
|
66
|
+
export * from "./is-boolean.js";
|
|
67
67
|
export * from "./is-buffer.js";
|
|
68
68
|
export * from "./is-constructor.js";
|
|
69
69
|
export * from "./is-date.js";
|
|
70
|
-
export * from "./is-empty.js";
|
|
71
70
|
export * from "./is-empty-array.js";
|
|
72
71
|
export * from "./is-empty-map.js";
|
|
73
72
|
export * from "./is-empty-object.js";
|
|
74
73
|
export * from "./is-empty-set.js";
|
|
74
|
+
export * from "./is-empty.js";
|
|
75
75
|
export * from "./is-enumerable.js";
|
|
76
76
|
export * from "./is-equal.js";
|
|
77
77
|
export * from "./is-error.js";
|
|
78
78
|
export * from "./is-false.js";
|
|
79
79
|
export * from "./is-function.js";
|
|
80
80
|
export * from "./is-git.js";
|
|
81
|
-
export * from "./is-greater-than.js";
|
|
82
81
|
export * from "./is-greater-than-or-equal.js";
|
|
83
|
-
export * from "./is-
|
|
82
|
+
export * from "./is-greater-than.js";
|
|
84
83
|
export * from "./is-less-than-or-equal.js";
|
|
84
|
+
export * from "./is-less-than.js";
|
|
85
85
|
export * from "./is-map.js";
|
|
86
86
|
export * from "./is-match.js";
|
|
87
|
-
export * from "./is-negative.js";
|
|
88
87
|
export * from "./is-negative-zero.js";
|
|
88
|
+
export * from "./is-negative.js";
|
|
89
89
|
export * from "./is-nil.js";
|
|
90
90
|
export * from "./is-not-between.js";
|
|
91
91
|
export * from "./is-not-equal.js";
|
|
92
92
|
export * from "./is-null.js";
|
|
93
|
-
export * from "./is-number.js";
|
|
94
93
|
export * from "./is-number-array.js";
|
|
94
|
+
export * from "./is-number.js";
|
|
95
95
|
export * from "./is-object.js";
|
|
96
|
-
export * from "./is-positive.js";
|
|
97
96
|
export * from "./is-positive-zero.js";
|
|
97
|
+
export * from "./is-positive.js";
|
|
98
98
|
export * from "./is-promise.js";
|
|
99
99
|
export * from "./is-reg-exp.js";
|
|
100
100
|
export * from "./is-set.js";
|
|
101
101
|
export * from "./is-ssh.js";
|
|
102
|
-
export * from "./is-string.js";
|
|
103
102
|
export * from "./is-string-array.js";
|
|
103
|
+
export * from "./is-string.js";
|
|
104
104
|
export * from "./is-symbol.js";
|
|
105
105
|
export * from "./is-sync-function.js";
|
|
106
106
|
export * from "./is-true.js";
|
|
@@ -112,69 +112,70 @@ export * from "./is-weak-set.js";
|
|
|
112
112
|
export * from "./is-whitelisted.js";
|
|
113
113
|
export * from "./kebab-case.js";
|
|
114
114
|
export * from "./key-by.js";
|
|
115
|
-
export * from "./keys.js";
|
|
116
115
|
export * from "./keys-in.js";
|
|
117
|
-
export * from "./
|
|
116
|
+
export * from "./keys.js";
|
|
118
117
|
export * from "./last-index-of.js";
|
|
119
118
|
export * from "./last-map-entry.js";
|
|
120
119
|
export * from "./last-map-key.js";
|
|
121
120
|
export * from "./last-map-value.js";
|
|
121
|
+
export * from "./last.js";
|
|
122
122
|
export * from "./lock.js";
|
|
123
123
|
export * from "./lower-case.js";
|
|
124
124
|
export * from "./lower-first.js";
|
|
125
|
-
export * from "./map.js";
|
|
126
125
|
export * from "./map-array.js";
|
|
127
126
|
export * from "./map-object.js";
|
|
128
127
|
export * from "./map-values.js";
|
|
128
|
+
export * from "./map.js";
|
|
129
129
|
export * from "./match.js";
|
|
130
|
-
export * from "./max.js";
|
|
131
130
|
export * from "./max-by.js";
|
|
131
|
+
export * from "./max.js";
|
|
132
132
|
export * from "./merge.js";
|
|
133
|
-
export * from "./min.js";
|
|
134
133
|
export * from "./min-by.js";
|
|
134
|
+
export * from "./min.js";
|
|
135
135
|
export * from "./nsect.js";
|
|
136
136
|
export * from "./number-array.js";
|
|
137
137
|
export * from "./number-to-hex.js";
|
|
138
138
|
export * from "./omit-by.js";
|
|
139
139
|
export * from "./order-by.js";
|
|
140
140
|
export * from "./ordinal.js";
|
|
141
|
-
export * from "./parse.js";
|
|
142
141
|
export * from "./parse-git-url.js";
|
|
143
142
|
export * from "./parse-uri.js";
|
|
143
|
+
export * from "./parse.js";
|
|
144
144
|
export * from "./partition.js";
|
|
145
145
|
export * from "./pascal-case.js";
|
|
146
146
|
export * from "./path-case.js";
|
|
147
|
-
export * from "./pick.js";
|
|
148
147
|
export * from "./pick-by.js";
|
|
148
|
+
export * from "./pick.js";
|
|
149
149
|
export * from "./pluck.js";
|
|
150
150
|
export * from "./pluralize.js";
|
|
151
151
|
export * from "./pretty-bytes.js";
|
|
152
152
|
export * from "./pretty-time.js";
|
|
153
153
|
export * from "./protocols.js";
|
|
154
|
-
export * from "./pull.js";
|
|
155
|
-
export * from "./pull-all.js";
|
|
156
154
|
export * from "./pull-all-by.js";
|
|
155
|
+
export * from "./pull-all.js";
|
|
156
|
+
export * from "./pull.js";
|
|
157
157
|
export * from "./random-base64.js";
|
|
158
158
|
export * from "./random-bits.js";
|
|
159
159
|
export * from "./random-hex.js";
|
|
160
160
|
export * from "./random-number.js";
|
|
161
|
-
export * from "./reduce.js";
|
|
162
161
|
export * from "./reduce-array.js";
|
|
163
162
|
export * from "./reduce-object.js";
|
|
164
|
-
export * from "./reduce-right.js";
|
|
165
163
|
export * from "./reduce-right-array.js";
|
|
166
164
|
export * from "./reduce-right-object.js";
|
|
165
|
+
export * from "./reduce-right.js";
|
|
166
|
+
export * from "./reduce.js";
|
|
167
167
|
export * from "./reject.js";
|
|
168
168
|
export * from "./reverse.js";
|
|
169
169
|
export * from "./sample.js";
|
|
170
170
|
export * from "./semver.js";
|
|
171
|
+
export * from "./set-timeout-async.js";
|
|
171
172
|
export * from "./set.js";
|
|
172
173
|
export * from "./shuffle.js";
|
|
173
174
|
export * from "./sleep.js";
|
|
174
175
|
export * from "./snake-case.js";
|
|
175
176
|
export * from "./some.js";
|
|
176
|
-
export * from "./sort-by.js";
|
|
177
177
|
export * from "./sort-by-desc.js";
|
|
178
|
+
export * from "./sort-by.js";
|
|
178
179
|
export * from "./start-case.js";
|
|
179
180
|
export * from "./stringify.js";
|
|
180
181
|
export * from "./tail.js";
|
|
@@ -184,10 +185,10 @@ export * from "./to-string.js";
|
|
|
184
185
|
export * from "./to-upper.js";
|
|
185
186
|
export * from "./trim-trailing-slash.js";
|
|
186
187
|
export * from "./truncate.js";
|
|
187
|
-
export * from "./union.js";
|
|
188
188
|
export * from "./union-by.js";
|
|
189
|
-
export * from "./
|
|
189
|
+
export * from "./union.js";
|
|
190
190
|
export * from "./uniq-by.js";
|
|
191
|
+
export * from "./uniq.js";
|
|
191
192
|
export * from "./unset.js";
|
|
192
193
|
export * from "./upper-case.js";
|
|
193
194
|
export * from "./upper-first.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,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ChC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC"}
|
package/distribution/index.js
CHANGED
|
@@ -11,10 +11,10 @@ export * from "./capped-set.js";
|
|
|
11
11
|
export * from "./cast-array.js";
|
|
12
12
|
export * from "./chars.js";
|
|
13
13
|
export * from "./chunk.js";
|
|
14
|
-
export * from "./clone.js";
|
|
15
14
|
export * from "./clone-array.js";
|
|
16
15
|
export * from "./clone-deep.js";
|
|
17
16
|
export * from "./clone-object.js";
|
|
17
|
+
export * from "./clone.js";
|
|
18
18
|
export * from "./collection.js";
|
|
19
19
|
export * from "./concat.js";
|
|
20
20
|
export * from "./constant-case.js";
|
|
@@ -24,12 +24,12 @@ export * from "./every.js";
|
|
|
24
24
|
export * from "./expand-tilde.js";
|
|
25
25
|
export * from "./extension.js";
|
|
26
26
|
export * from "./fill.js";
|
|
27
|
-
export * from "./filter.js";
|
|
28
27
|
export * from "./filter-array.js";
|
|
29
28
|
export * from "./filter-object.js";
|
|
30
|
-
export * from "./
|
|
29
|
+
export * from "./filter.js";
|
|
31
30
|
export * from "./find-index.js";
|
|
32
31
|
export * from "./find-key.js";
|
|
32
|
+
export * from "./find.js";
|
|
33
33
|
export * from "./first-map-entry.js";
|
|
34
34
|
export * from "./first-map-key.js";
|
|
35
35
|
export * from "./first-map-value.js";
|
|
@@ -37,13 +37,13 @@ export * from "./flatten.js";
|
|
|
37
37
|
export * from "./format-ecdsa-signature.js";
|
|
38
38
|
export * from "./format-number.js";
|
|
39
39
|
export * from "./format-string.js";
|
|
40
|
-
export * from "./get.js";
|
|
41
40
|
export * from "./get-path-segments.js";
|
|
42
41
|
export * from "./get-type.js";
|
|
42
|
+
export * from "./get.js";
|
|
43
43
|
export * from "./group-by.js";
|
|
44
|
-
export * from "./has.js";
|
|
45
44
|
export * from "./has-property.js";
|
|
46
45
|
export * from "./has-some-property.js";
|
|
46
|
+
export * from "./has.js";
|
|
47
47
|
export * from "./hash-string.js";
|
|
48
48
|
export * from "./head.js";
|
|
49
49
|
export * from "./header-case.js";
|
|
@@ -56,51 +56,51 @@ export * from "./internal/index.js";
|
|
|
56
56
|
export * from "./intersection.js";
|
|
57
57
|
export * as IpAddress from "./ip-address.js";
|
|
58
58
|
export * from "./is-arguments.js";
|
|
59
|
-
export * from "./is-array.js";
|
|
60
59
|
export * from "./is-array-of-type.js";
|
|
60
|
+
export * from "./is-array.js";
|
|
61
61
|
export * from "./is-async-function.js";
|
|
62
62
|
export * from "./is-between.js";
|
|
63
63
|
export * from "./is-bigint.js";
|
|
64
64
|
export * from "./is-blacklisted.js";
|
|
65
|
-
export * from "./is-boolean.js";
|
|
66
65
|
export * from "./is-boolean-array.js";
|
|
66
|
+
export * from "./is-boolean.js";
|
|
67
67
|
export * from "./is-buffer.js";
|
|
68
68
|
export * from "./is-constructor.js";
|
|
69
69
|
export * from "./is-date.js";
|
|
70
|
-
export * from "./is-empty.js";
|
|
71
70
|
export * from "./is-empty-array.js";
|
|
72
71
|
export * from "./is-empty-map.js";
|
|
73
72
|
export * from "./is-empty-object.js";
|
|
74
73
|
export * from "./is-empty-set.js";
|
|
74
|
+
export * from "./is-empty.js";
|
|
75
75
|
export * from "./is-enumerable.js";
|
|
76
76
|
export * from "./is-equal.js";
|
|
77
77
|
export * from "./is-error.js";
|
|
78
78
|
export * from "./is-false.js";
|
|
79
79
|
export * from "./is-function.js";
|
|
80
80
|
export * from "./is-git.js";
|
|
81
|
-
export * from "./is-greater-than.js";
|
|
82
81
|
export * from "./is-greater-than-or-equal.js";
|
|
83
|
-
export * from "./is-
|
|
82
|
+
export * from "./is-greater-than.js";
|
|
84
83
|
export * from "./is-less-than-or-equal.js";
|
|
84
|
+
export * from "./is-less-than.js";
|
|
85
85
|
export * from "./is-map.js";
|
|
86
86
|
export * from "./is-match.js";
|
|
87
|
-
export * from "./is-negative.js";
|
|
88
87
|
export * from "./is-negative-zero.js";
|
|
88
|
+
export * from "./is-negative.js";
|
|
89
89
|
export * from "./is-nil.js";
|
|
90
90
|
export * from "./is-not-between.js";
|
|
91
91
|
export * from "./is-not-equal.js";
|
|
92
92
|
export * from "./is-null.js";
|
|
93
|
-
export * from "./is-number.js";
|
|
94
93
|
export * from "./is-number-array.js";
|
|
94
|
+
export * from "./is-number.js";
|
|
95
95
|
export * from "./is-object.js";
|
|
96
|
-
export * from "./is-positive.js";
|
|
97
96
|
export * from "./is-positive-zero.js";
|
|
97
|
+
export * from "./is-positive.js";
|
|
98
98
|
export * from "./is-promise.js";
|
|
99
99
|
export * from "./is-reg-exp.js";
|
|
100
100
|
export * from "./is-set.js";
|
|
101
101
|
export * from "./is-ssh.js";
|
|
102
|
-
export * from "./is-string.js";
|
|
103
102
|
export * from "./is-string-array.js";
|
|
103
|
+
export * from "./is-string.js";
|
|
104
104
|
export * from "./is-symbol.js";
|
|
105
105
|
export * from "./is-sync-function.js";
|
|
106
106
|
export * from "./is-true.js";
|
|
@@ -112,69 +112,70 @@ export * from "./is-weak-set.js";
|
|
|
112
112
|
export * from "./is-whitelisted.js";
|
|
113
113
|
export * from "./kebab-case.js";
|
|
114
114
|
export * from "./key-by.js";
|
|
115
|
-
export * from "./keys.js";
|
|
116
115
|
export * from "./keys-in.js";
|
|
117
|
-
export * from "./
|
|
116
|
+
export * from "./keys.js";
|
|
118
117
|
export * from "./last-index-of.js";
|
|
119
118
|
export * from "./last-map-entry.js";
|
|
120
119
|
export * from "./last-map-key.js";
|
|
121
120
|
export * from "./last-map-value.js";
|
|
121
|
+
export * from "./last.js";
|
|
122
122
|
export * from "./lock.js";
|
|
123
123
|
export * from "./lower-case.js";
|
|
124
124
|
export * from "./lower-first.js";
|
|
125
|
-
export * from "./map.js";
|
|
126
125
|
export * from "./map-array.js";
|
|
127
126
|
export * from "./map-object.js";
|
|
128
127
|
export * from "./map-values.js";
|
|
128
|
+
export * from "./map.js";
|
|
129
129
|
export * from "./match.js";
|
|
130
|
-
export * from "./max.js";
|
|
131
130
|
export * from "./max-by.js";
|
|
131
|
+
export * from "./max.js";
|
|
132
132
|
export * from "./merge.js";
|
|
133
|
-
export * from "./min.js";
|
|
134
133
|
export * from "./min-by.js";
|
|
134
|
+
export * from "./min.js";
|
|
135
135
|
export * from "./nsect.js";
|
|
136
136
|
export * from "./number-array.js";
|
|
137
137
|
export * from "./number-to-hex.js";
|
|
138
138
|
export * from "./omit-by.js";
|
|
139
139
|
export * from "./order-by.js";
|
|
140
140
|
export * from "./ordinal.js";
|
|
141
|
-
export * from "./parse.js";
|
|
142
141
|
export * from "./parse-git-url.js";
|
|
143
142
|
export * from "./parse-uri.js";
|
|
143
|
+
export * from "./parse.js";
|
|
144
144
|
export * from "./partition.js";
|
|
145
145
|
export * from "./pascal-case.js";
|
|
146
146
|
export * from "./path-case.js";
|
|
147
|
-
export * from "./pick.js";
|
|
148
147
|
export * from "./pick-by.js";
|
|
148
|
+
export * from "./pick.js";
|
|
149
149
|
export * from "./pluck.js";
|
|
150
150
|
export * from "./pluralize.js";
|
|
151
151
|
export * from "./pretty-bytes.js";
|
|
152
152
|
export * from "./pretty-time.js";
|
|
153
153
|
export * from "./protocols.js";
|
|
154
|
-
export * from "./pull.js";
|
|
155
|
-
export * from "./pull-all.js";
|
|
156
154
|
export * from "./pull-all-by.js";
|
|
155
|
+
export * from "./pull-all.js";
|
|
156
|
+
export * from "./pull.js";
|
|
157
157
|
export * from "./random-base64.js";
|
|
158
158
|
export * from "./random-bits.js";
|
|
159
159
|
export * from "./random-hex.js";
|
|
160
160
|
export * from "./random-number.js";
|
|
161
|
-
export * from "./reduce.js";
|
|
162
161
|
export * from "./reduce-array.js";
|
|
163
162
|
export * from "./reduce-object.js";
|
|
164
|
-
export * from "./reduce-right.js";
|
|
165
163
|
export * from "./reduce-right-array.js";
|
|
166
164
|
export * from "./reduce-right-object.js";
|
|
165
|
+
export * from "./reduce-right.js";
|
|
166
|
+
export * from "./reduce.js";
|
|
167
167
|
export * from "./reject.js";
|
|
168
168
|
export * from "./reverse.js";
|
|
169
169
|
export * from "./sample.js";
|
|
170
170
|
export * from "./semver.js";
|
|
171
|
+
export * from "./set-timeout-async.js";
|
|
171
172
|
export * from "./set.js";
|
|
172
173
|
export * from "./shuffle.js";
|
|
173
174
|
export * from "./sleep.js";
|
|
174
175
|
export * from "./snake-case.js";
|
|
175
176
|
export * from "./some.js";
|
|
176
|
-
export * from "./sort-by.js";
|
|
177
177
|
export * from "./sort-by-desc.js";
|
|
178
|
+
export * from "./sort-by.js";
|
|
178
179
|
export * from "./start-case.js";
|
|
179
180
|
export * from "./stringify.js";
|
|
180
181
|
export * from "./tail.js";
|
|
@@ -184,10 +185,10 @@ export * from "./to-string.js";
|
|
|
184
185
|
export * from "./to-upper.js";
|
|
185
186
|
export * from "./trim-trailing-slash.js";
|
|
186
187
|
export * from "./truncate.js";
|
|
187
|
-
export * from "./union.js";
|
|
188
188
|
export * from "./union-by.js";
|
|
189
|
-
export * from "./
|
|
189
|
+
export * from "./union.js";
|
|
190
190
|
export * from "./uniq-by.js";
|
|
191
|
+
export * from "./uniq.js";
|
|
191
192
|
export * from "./unset.js";
|
|
192
193
|
export * from "./upper-case.js";
|
|
193
194
|
export * from "./upper-first.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,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AC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC;AACvC,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type FunctionReturning = (...arguments_:
|
|
2
|
-
export type Iteratee =
|
|
1
|
+
export type FunctionReturning<Arguments extends unknown[] = unknown[], R = unknown> = (...arguments_: Arguments) => R;
|
|
2
|
+
export type Iteratee<T = unknown> = keyof T | FunctionReturning<[T], unknown>;
|
|
3
3
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../source/internal/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../source/internal/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,CAAC,SAAS,SAAS,OAAO,EAAE,GAAG,OAAO,EAAE,EAAE,CAAC,GAAG,OAAO,IAAI,CAAC,GAAG,UAAU,EAAE,SAAS,KAAK,CAAC,CAAC;AAEtH,MAAM,MAAM,QAAQ,CAAC,CAAC,GAAG,OAAO,IAAI,MAAM,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ip-address.d.ts","sourceRoot":"","sources":["../source/ip-address.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,GAAI,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"ip-address.d.ts","sourceRoot":"","sources":["../source/ip-address.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,GAAI,IAAI,MAAM,KAAG,OAA2C,CAAC;AAExF,eAAO,MAAM,aAAa,GAAI,IAAI,MAAM,KAAG,OAM1C,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,IAAI,MAAM,KAAG,MAQ7C,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,IAAI,MAAM,KAAG,MAA8C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ip-address.js","sourceRoot":"","sources":["../source/ip-address.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,WAAW,CAAC;AAE/B,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAU,
|
|
1
|
+
{"version":3,"file":"ip-address.js","sourceRoot":"","sources":["../source/ip-address.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,WAAW,CAAC;AAE/B,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAU,EAAW,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,CAAC;AAExF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAU,EAAW,EAAE;IACpD,IAAI,CAAC;QACJ,OAAO,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,MAAM,CAAC;IACzD,CAAC;IAAC,MAAM,CAAC,CAAA,CAAC;IAEV,OAAO,KAAK,CAAC;AACd,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAAU,EAAU,EAAE;IACtD,EAAE,GAAG,YAAY,CAAC,EAAE,CAAC,CAAC;IAEtB,IAAI,aAAa,CAAC,EAAE,CAAC,EAAE,CAAC;QACvB,OAAO,IAAI,EAAE,GAAG,CAAC;IAClB,CAAC;IAED,OAAO,EAAE,CAAC;AACX,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAU,EAAU,EAAE,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import mm from "micromatch";
|
|
2
2
|
// @TODO review the implementation
|
|
3
3
|
export const isBlacklisted = (blacklist, remoteAddress) => {
|
|
4
4
|
if (!Array.isArray(blacklist) || blacklist.length === 0) {
|
|
@@ -6,7 +6,7 @@ export const isBlacklisted = (blacklist, remoteAddress) => {
|
|
|
6
6
|
}
|
|
7
7
|
for (const ip of blacklist) {
|
|
8
8
|
try {
|
|
9
|
-
if (
|
|
9
|
+
if (mm.isMatch(remoteAddress, ip)) {
|
|
10
10
|
return true;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-blacklisted.js","sourceRoot":"","sources":["../source/is-blacklisted.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"is-blacklisted.js","sourceRoot":"","sources":["../source/is-blacklisted.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,kCAAkC;AAClC,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,SAAmB,EAAE,aAAqB,EAAW,EAAE;IACpF,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzD,OAAO,KAAK,CAAC;IACd,CAAC;IAED,KAAK,MAAM,EAAE,IAAI,SAAS,EAAE,CAAC;QAC5B,IAAI,CAAC;YACJ,IAAI,EAAE,CAAC,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,EAAE,CAAC;gBACnC,OAAO,IAAI,CAAC;YACb,CAAC;QACF,CAAC;QAAC,MAAM,CAAC,CAAA,CAAC;IACX,CAAC;IAED,OAAO,KAAK,CAAC;AACd,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const isConstructor: (value:
|
|
1
|
+
export declare const isConstructor: (value: unknown) => boolean;
|
|
2
2
|
//# sourceMappingURL=is-constructor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-constructor.d.ts","sourceRoot":"","sources":["../source/is-constructor.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,GAAI,OAAO,
|
|
1
|
+
{"version":3,"file":"is-constructor.d.ts","sourceRoot":"","sources":["../source/is-constructor.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,OAC2D,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const isConstructor = (value) => !!value.prototype &&
|
|
1
|
+
export const isConstructor = (value) => typeof value === "function" && !!value.prototype && typeof value.prototype.constructor?.name === "string";
|
|
2
2
|
//# sourceMappingURL=is-constructor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-constructor.js","sourceRoot":"","sources":["../source/is-constructor.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"is-constructor.js","sourceRoot":"","sources":["../source/is-constructor.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAc,EAAW,EAAE,CACxD,OAAO,KAAK,KAAK,UAAU,IAAI,CAAC,CAAC,KAAK,CAAC,SAAS,IAAI,OAAO,KAAK,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,KAAK,QAAQ,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const isEmpty:
|
|
1
|
+
export declare const isEmpty: (value: unknown) => boolean;
|
|
2
2
|
//# sourceMappingURL=is-empty.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-empty.d.ts","sourceRoot":"","sources":["../source/is-empty.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,GAAI,
|
|
1
|
+
{"version":3,"file":"is-empty.d.ts","sourceRoot":"","sources":["../source/is-empty.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,GAAI,OAAO,OAAO,KAAG,OAkBxC,CAAC"}
|
package/distribution/is-empty.js
CHANGED
|
@@ -3,11 +3,14 @@ export const isEmpty = (value) => {
|
|
|
3
3
|
return true;
|
|
4
4
|
}
|
|
5
5
|
if (value instanceof Map || value instanceof Set) {
|
|
6
|
-
return value.size
|
|
6
|
+
return value.size === 0;
|
|
7
7
|
}
|
|
8
|
-
if (typeof value === "
|
|
9
|
-
return
|
|
8
|
+
if (typeof value === "string" || Array.isArray(value)) {
|
|
9
|
+
return value.length === 0;
|
|
10
|
+
}
|
|
11
|
+
if (typeof value === "object") {
|
|
12
|
+
return Object.keys(value).length === 0;
|
|
10
13
|
}
|
|
11
|
-
return
|
|
14
|
+
return false;
|
|
12
15
|
};
|
|
13
16
|
//# sourceMappingURL=is-empty.js.map
|