extra-utils 4.0.1 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/array/index.d.ts +2 -2
- package/lib/array/index.js +2 -18
- package/lib/array/index.js.map +1 -1
- package/lib/array/is-array.js +2 -7
- package/lib/array/is-array.js.map +1 -1
- package/lib/array/is-empty-array.js +2 -7
- package/lib/array/is-empty-array.js.map +1 -1
- package/lib/boolean/index.d.ts +2 -2
- package/lib/boolean/index.js +2 -18
- package/lib/boolean/index.js.map +1 -1
- package/lib/boolean/is-boolean.js +2 -7
- package/lib/boolean/is-boolean.js.map +1 -1
- package/lib/boolean/is-falsy.js +2 -7
- package/lib/boolean/is-falsy.js.map +1 -1
- package/lib/in-enum.js +2 -7
- package/lib/in-enum.js.map +1 -1
- package/lib/index.d.ts +13 -13
- package/lib/index.js +13 -29
- package/lib/index.js.map +1 -1
- package/lib/is-date.js +2 -7
- package/lib/is-date.js.map +1 -1
- package/lib/is-function.js +2 -7
- package/lib/is-function.js.map +1 -1
- package/lib/is-regexp.js +2 -7
- package/lib/is-regexp.js.map +1 -1
- package/lib/is-symbol.js +2 -7
- package/lib/is-symbol.js.map +1 -1
- package/lib/json/index.d.ts +2 -2
- package/lib/json/index.js +2 -18
- package/lib/json/index.js.map +1 -1
- package/lib/json/is-json-serializable.js +6 -11
- package/lib/json/is-json-serializable.js.map +1 -1
- package/lib/json/is-json-value.js +14 -19
- package/lib/json/is-json-value.js.map +1 -1
- package/lib/nullish/index.d.ts +3 -3
- package/lib/nullish/index.js +3 -19
- package/lib/nullish/index.js.map +1 -1
- package/lib/nullish/is-null.js +2 -7
- package/lib/nullish/is-null.js.map +1 -1
- package/lib/nullish/is-nullish.js +6 -11
- package/lib/nullish/is-nullish.js.map +1 -1
- package/lib/nullish/is-undefined.js +2 -7
- package/lib/nullish/is-undefined.js.map +1 -1
- package/lib/number/index.d.ts +5 -5
- package/lib/number/index.js +5 -21
- package/lib/number/index.js.map +1 -1
- package/lib/number/is-bigint.js +2 -7
- package/lib/number/is-bigint.js.map +1 -1
- package/lib/number/is-finite.js +1 -5
- package/lib/number/is-finite.js.map +1 -1
- package/lib/number/is-infinity.js +2 -7
- package/lib/number/is-infinity.js.map +1 -1
- package/lib/number/is-nan.js +2 -7
- package/lib/number/is-nan.js.map +1 -1
- package/lib/number/is-number.js +2 -7
- package/lib/number/is-number.js.map +1 -1
- package/lib/object/index.d.ts +3 -3
- package/lib/object/index.js +3 -19
- package/lib/object/index.js.map +1 -1
- package/lib/object/is-empty-object.js +2 -7
- package/lib/object/is-empty-object.js.map +1 -1
- package/lib/object/is-object.js +2 -7
- package/lib/object/is-object.js.map +1 -1
- package/lib/object/is-plain-object.js +4 -12
- package/lib/object/is-plain-object.js.map +1 -1
- package/lib/pipe.js +1 -5
- package/lib/pipe.js.map +1 -1
- package/lib/string/index.d.ts +7 -7
- package/lib/string/index.js +7 -23
- package/lib/string/index.js.map +1 -1
- package/lib/string/is-char.js +4 -9
- package/lib/string/is-char.js.map +1 -1
- package/lib/string/is-string.js +2 -7
- package/lib/string/is-string.js.map +1 -1
- package/lib/string/is-url-string.js +2 -7
- package/lib/string/is-url-string.js.map +1 -1
- package/lib/string/remove-blank-lines.js +3 -7
- package/lib/string/remove-blank-lines.js.map +1 -1
- package/lib/string/remove-extra-indents.js +3 -7
- package/lib/string/remove-extra-indents.js.map +1 -1
- package/lib/string/remove-leading-blank-lines.js +3 -7
- package/lib/string/remove-leading-blank-lines.js.map +1 -1
- package/lib/string/remove-trailing-blank-lines.js +3 -7
- package/lib/string/remove-trailing-blank-lines.js.map +1 -1
- package/lib/string/utils.js +2 -7
- package/lib/string/utils.js.map +1 -1
- package/package.json +25 -21
package/lib/array/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './is-array';
|
|
2
|
-
export * from './is-empty-array';
|
|
1
|
+
export * from './is-array.js';
|
|
2
|
+
export * from './is-empty-array.js';
|
package/lib/array/index.js
CHANGED
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./is-array"), exports);
|
|
18
|
-
__exportStar(require("./is-empty-array"), exports);
|
|
1
|
+
export * from './is-array.js';
|
|
2
|
+
export * from './is-empty-array.js';
|
|
19
3
|
//# sourceMappingURL=index.js.map
|
package/lib/array/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/array/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/array/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA"}
|
package/lib/array/is-array.js
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isntArray = exports.isArray = void 0;
|
|
4
|
-
function isArray(val) {
|
|
1
|
+
export function isArray(val) {
|
|
5
2
|
return Array.isArray(val);
|
|
6
3
|
}
|
|
7
|
-
|
|
8
|
-
function isntArray(val) {
|
|
4
|
+
export function isntArray(val) {
|
|
9
5
|
return !isArray(val);
|
|
10
6
|
}
|
|
11
|
-
exports.isntArray = isntArray;
|
|
12
7
|
//# sourceMappingURL=is-array.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-array.js","sourceRoot":"","sources":["../../src/array/is-array.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"is-array.js","sourceRoot":"","sources":["../../src/array/is-array.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,OAAO,CAAI,GAAY;IACrC,OAAO,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;AAC3B,CAAC;AAED,MAAM,UAAU,SAAS,CAAI,GAAM;IACjC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;AACtB,CAAC"}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isntEmptyArray = exports.isEmptyArray = void 0;
|
|
4
|
-
function isEmptyArray(val) {
|
|
1
|
+
export function isEmptyArray(val) {
|
|
5
2
|
return val.length === 0;
|
|
6
3
|
}
|
|
7
|
-
|
|
8
|
-
function isntEmptyArray(val) {
|
|
4
|
+
export function isntEmptyArray(val) {
|
|
9
5
|
return val.length !== 0;
|
|
10
6
|
}
|
|
11
|
-
exports.isntEmptyArray = isntEmptyArray;
|
|
12
7
|
//# sourceMappingURL=is-empty-array.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-empty-array.js","sourceRoot":"","sources":["../../src/array/is-empty-array.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"is-empty-array.js","sourceRoot":"","sources":["../../src/array/is-empty-array.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,YAAY,CAAC,GAAc;IACzC,OAAO,GAAG,CAAC,MAAM,KAAK,CAAC,CAAA;AACzB,CAAC;AAED,MAAM,UAAU,cAAc,CAAI,GAAQ;IACxC,OAAO,GAAG,CAAC,MAAM,KAAK,CAAC,CAAA;AACzB,CAAC"}
|
package/lib/boolean/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './is-boolean';
|
|
2
|
-
export * from './is-falsy';
|
|
1
|
+
export * from './is-boolean.js';
|
|
2
|
+
export * from './is-falsy.js';
|
package/lib/boolean/index.js
CHANGED
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./is-boolean"), exports);
|
|
18
|
-
__exportStar(require("./is-falsy"), exports);
|
|
1
|
+
export * from './is-boolean.js';
|
|
2
|
+
export * from './is-falsy.js';
|
|
19
3
|
//# sourceMappingURL=index.js.map
|
package/lib/boolean/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/boolean/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/boolean/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA"}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isntBoolean = exports.isBoolean = void 0;
|
|
4
|
-
function isBoolean(val) {
|
|
1
|
+
export function isBoolean(val) {
|
|
5
2
|
return typeof val === 'boolean';
|
|
6
3
|
}
|
|
7
|
-
|
|
8
|
-
function isntBoolean(val) {
|
|
4
|
+
export function isntBoolean(val) {
|
|
9
5
|
return !isBoolean(val);
|
|
10
6
|
}
|
|
11
|
-
exports.isntBoolean = isntBoolean;
|
|
12
7
|
//# sourceMappingURL=is-boolean.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-boolean.js","sourceRoot":"","sources":["../../src/boolean/is-boolean.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"is-boolean.js","sourceRoot":"","sources":["../../src/boolean/is-boolean.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,SAAS,CAAC,GAAY;IACpC,OAAO,OAAO,GAAG,KAAK,SAAS,CAAA;AACjC,CAAC;AAED,MAAM,UAAU,WAAW,CAAI,GAAY;IACzC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA;AACxB,CAAC"}
|
package/lib/boolean/is-falsy.js
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isntFalsy = exports.isFalsy = void 0;
|
|
4
|
-
function isFalsy(val) {
|
|
1
|
+
export function isFalsy(val) {
|
|
5
2
|
return !val;
|
|
6
3
|
}
|
|
7
|
-
|
|
8
|
-
function isntFalsy(val) {
|
|
4
|
+
export function isntFalsy(val) {
|
|
9
5
|
return !isFalsy(val);
|
|
10
6
|
}
|
|
11
|
-
exports.isntFalsy = isntFalsy;
|
|
12
7
|
//# sourceMappingURL=is-falsy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-falsy.js","sourceRoot":"","sources":["../../src/boolean/is-falsy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"is-falsy.js","sourceRoot":"","sources":["../../src/boolean/is-falsy.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,OAAO,CAAC,GAAY;IAClC,OAAO,CAAC,GAAG,CAAA;AACb,CAAC;AAED,MAAM,UAAU,SAAS,CAAI,GAAM;IACjC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;AACtB,CAAC"}
|
package/lib/in-enum.js
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.notInEnum = exports.inEnum = void 0;
|
|
4
|
-
function inEnum(val, _enum) {
|
|
1
|
+
export function inEnum(val, _enum) {
|
|
5
2
|
return Object.values(_enum).includes(val);
|
|
6
3
|
}
|
|
7
|
-
|
|
8
|
-
function notInEnum(val, _enum) {
|
|
4
|
+
export function notInEnum(val, _enum) {
|
|
9
5
|
return !inEnum(val, _enum);
|
|
10
6
|
}
|
|
11
|
-
exports.notInEnum = notInEnum;
|
|
12
7
|
//# sourceMappingURL=in-enum.js.map
|
package/lib/in-enum.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"in-enum.js","sourceRoot":"","sources":["../src/in-enum.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"in-enum.js","sourceRoot":"","sources":["../src/in-enum.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,MAAM,CAAI,GAAY,EAAE,KAAa;IACnD,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;AAC3C,CAAC;AAED,MAAM,UAAU,SAAS,CAAO,GAAM,EAAE,KAAa;IACnD,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;AAC5B,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export * from './array';
|
|
2
|
-
export * from './boolean';
|
|
3
|
-
export * from './number';
|
|
4
|
-
export * from './object';
|
|
5
|
-
export * from './json';
|
|
6
|
-
export * from './string';
|
|
7
|
-
export * from './nullish';
|
|
8
|
-
export * from './in-enum';
|
|
9
|
-
export * from './is-regexp';
|
|
10
|
-
export * from './is-symbol';
|
|
11
|
-
export * from './is-date';
|
|
12
|
-
export * from './is-function';
|
|
13
|
-
export * from './pipe';
|
|
1
|
+
export * from './array/index.js';
|
|
2
|
+
export * from './boolean/index.js';
|
|
3
|
+
export * from './number/index.js';
|
|
4
|
+
export * from './object/index.js';
|
|
5
|
+
export * from './json/index.js';
|
|
6
|
+
export * from './string/index.js';
|
|
7
|
+
export * from './nullish/index.js';
|
|
8
|
+
export * from './in-enum.js';
|
|
9
|
+
export * from './is-regexp.js';
|
|
10
|
+
export * from './is-symbol.js';
|
|
11
|
+
export * from './is-date.js';
|
|
12
|
+
export * from './is-function.js';
|
|
13
|
+
export * from './pipe.js';
|
package/lib/index.js
CHANGED
|
@@ -1,30 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./array"), exports);
|
|
18
|
-
__exportStar(require("./boolean"), exports);
|
|
19
|
-
__exportStar(require("./number"), exports);
|
|
20
|
-
__exportStar(require("./object"), exports);
|
|
21
|
-
__exportStar(require("./json"), exports);
|
|
22
|
-
__exportStar(require("./string"), exports);
|
|
23
|
-
__exportStar(require("./nullish"), exports);
|
|
24
|
-
__exportStar(require("./in-enum"), exports);
|
|
25
|
-
__exportStar(require("./is-regexp"), exports);
|
|
26
|
-
__exportStar(require("./is-symbol"), exports);
|
|
27
|
-
__exportStar(require("./is-date"), exports);
|
|
28
|
-
__exportStar(require("./is-function"), exports);
|
|
29
|
-
__exportStar(require("./pipe"), exports);
|
|
1
|
+
export * from './array/index.js';
|
|
2
|
+
export * from './boolean/index.js';
|
|
3
|
+
export * from './number/index.js';
|
|
4
|
+
export * from './object/index.js';
|
|
5
|
+
export * from './json/index.js';
|
|
6
|
+
export * from './string/index.js';
|
|
7
|
+
export * from './nullish/index.js';
|
|
8
|
+
export * from './in-enum.js';
|
|
9
|
+
export * from './is-regexp.js';
|
|
10
|
+
export * from './is-symbol.js';
|
|
11
|
+
export * from './is-date.js';
|
|
12
|
+
export * from './is-function.js';
|
|
13
|
+
export * from './pipe.js';
|
|
30
14
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA"}
|
package/lib/is-date.js
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isntDate = exports.isDate = void 0;
|
|
4
|
-
function isDate(val) {
|
|
1
|
+
export function isDate(val) {
|
|
5
2
|
return val instanceof Date;
|
|
6
3
|
}
|
|
7
|
-
|
|
8
|
-
function isntDate(val) {
|
|
4
|
+
export function isntDate(val) {
|
|
9
5
|
return !isDate(val);
|
|
10
6
|
}
|
|
11
|
-
exports.isntDate = isntDate;
|
|
12
7
|
//# sourceMappingURL=is-date.js.map
|
package/lib/is-date.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-date.js","sourceRoot":"","sources":["../src/is-date.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"is-date.js","sourceRoot":"","sources":["../src/is-date.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,MAAM,CAAC,GAAY;IACjC,OAAO,GAAG,YAAY,IAAI,CAAA;AAC5B,CAAC;AAED,MAAM,UAAU,QAAQ,CAAI,GAAM;IAChC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;AACrB,CAAC"}
|
package/lib/is-function.js
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isntFunction = exports.isFunction = void 0;
|
|
4
|
-
function isFunction(val) {
|
|
1
|
+
export function isFunction(val) {
|
|
5
2
|
return typeof val === 'function';
|
|
6
3
|
}
|
|
7
|
-
|
|
8
|
-
function isntFunction(val) {
|
|
4
|
+
export function isntFunction(val) {
|
|
9
5
|
return !isFunction(val);
|
|
10
6
|
}
|
|
11
|
-
exports.isntFunction = isntFunction;
|
|
12
7
|
//# sourceMappingURL=is-function.js.map
|
package/lib/is-function.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-function.js","sourceRoot":"","sources":["../src/is-function.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"is-function.js","sourceRoot":"","sources":["../src/is-function.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,UAAU,CACxB,GAAY;IAEZ,OAAO,OAAO,GAAG,KAAK,UAAU,CAAA;AAClC,CAAC;AAED,MAAM,UAAU,YAAY,CAAI,GAAM;IACpC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;AACzB,CAAC"}
|
package/lib/is-regexp.js
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isntRegExp = exports.isRegExp = void 0;
|
|
4
|
-
function isRegExp(val) {
|
|
1
|
+
export function isRegExp(val) {
|
|
5
2
|
return val instanceof RegExp;
|
|
6
3
|
}
|
|
7
|
-
|
|
8
|
-
function isntRegExp(val) {
|
|
4
|
+
export function isntRegExp(val) {
|
|
9
5
|
return !isRegExp(val);
|
|
10
6
|
}
|
|
11
|
-
exports.isntRegExp = isntRegExp;
|
|
12
7
|
//# sourceMappingURL=is-regexp.js.map
|
package/lib/is-regexp.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-regexp.js","sourceRoot":"","sources":["../src/is-regexp.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"is-regexp.js","sourceRoot":"","sources":["../src/is-regexp.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,QAAQ,CAAC,GAAY;IACnC,OAAO,GAAG,YAAY,MAAM,CAAA;AAC9B,CAAC;AAED,MAAM,UAAU,UAAU,CAAI,GAAM;IAClC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;AACvB,CAAC"}
|
package/lib/is-symbol.js
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isntSymbol = exports.isSymbol = void 0;
|
|
4
|
-
function isSymbol(val) {
|
|
1
|
+
export function isSymbol(val) {
|
|
5
2
|
return typeof val === 'symbol';
|
|
6
3
|
}
|
|
7
|
-
|
|
8
|
-
function isntSymbol(val) {
|
|
4
|
+
export function isntSymbol(val) {
|
|
9
5
|
return !isSymbol(val);
|
|
10
6
|
}
|
|
11
|
-
exports.isntSymbol = isntSymbol;
|
|
12
7
|
//# sourceMappingURL=is-symbol.js.map
|
package/lib/is-symbol.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-symbol.js","sourceRoot":"","sources":["../src/is-symbol.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"is-symbol.js","sourceRoot":"","sources":["../src/is-symbol.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,QAAQ,CAAC,GAAY;IACnC,OAAO,OAAO,GAAG,KAAK,QAAQ,CAAA;AAChC,CAAC;AAED,MAAM,UAAU,UAAU,CAAI,GAAM;IAClC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;AACvB,CAAC"}
|
package/lib/json/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './is-json-value';
|
|
2
|
-
export * from './is-json-serializable';
|
|
1
|
+
export * from './is-json-value.js';
|
|
2
|
+
export * from './is-json-serializable.js';
|
package/lib/json/index.js
CHANGED
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./is-json-value"), exports);
|
|
18
|
-
__exportStar(require("./is-json-serializable"), exports);
|
|
1
|
+
export * from './is-json-value.js';
|
|
2
|
+
export * from './is-json-serializable.js';
|
|
19
3
|
//# sourceMappingURL=index.js.map
|
package/lib/json/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/json/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/json/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,2BAA2B,CAAA"}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const is_function_1 = require("../is-function");
|
|
6
|
-
function isJSONSerializable(val) {
|
|
7
|
-
return (0, object_1.isObject)(val)
|
|
1
|
+
import { isObject } from "../object/index.js";
|
|
2
|
+
import { isFunction } from "../is-function.js";
|
|
3
|
+
export function isJSONSerializable(val) {
|
|
4
|
+
return isObject(val)
|
|
8
5
|
&& 'toJSON' in val
|
|
9
|
-
&&
|
|
6
|
+
&& isFunction(val.toJSON);
|
|
10
7
|
}
|
|
11
|
-
|
|
12
|
-
function isntJSONSerializable(val) {
|
|
8
|
+
export function isntJSONSerializable(val) {
|
|
13
9
|
return !isJSONSerializable(val);
|
|
14
10
|
}
|
|
15
|
-
exports.isntJSONSerializable = isntJSONSerializable;
|
|
16
11
|
//# sourceMappingURL=is-json-serializable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-json-serializable.js","sourceRoot":"","sources":["../../src/json/is-json-serializable.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"is-json-serializable.js","sourceRoot":"","sources":["../../src/json/is-json-serializable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,2BAA4B;AAC/C,OAAO,EAAE,UAAU,EAAE,0BAA2B;AAEhD,MAAM,UAAU,kBAAkB,CAIhC,GAAY;IACZ,OAAO,QAAQ,CAAC,GAAG,CAAC;WACb,QAAQ,IAAI,GAAG;WACf,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;AAC/B,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAI,GAAM;IAC5C,OAAO,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAA;AACjC,CAAC"}
|
|
@@ -1,23 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|| (
|
|
13
|
-
|| (
|
|
14
|
-
|| (0, number_1.isNumber)(val)
|
|
15
|
-
|| ((0, array_1.isArray)(val) && val.every(isJSONValue))
|
|
16
|
-
|| ((0, object_1.isPlainObject)(val) && Object.values(val).every(isJSONValue));
|
|
1
|
+
import { isNull } from "../nullish/index.js";
|
|
2
|
+
import { isBoolean } from "../boolean/index.js";
|
|
3
|
+
import { isString } from "../string/index.js";
|
|
4
|
+
import { isNumber } from "../number/index.js";
|
|
5
|
+
import { isArray } from "../array/index.js";
|
|
6
|
+
import { isPlainObject } from "../object/index.js";
|
|
7
|
+
export function isJSONValue(val) {
|
|
8
|
+
return isNull(val)
|
|
9
|
+
|| isBoolean(val)
|
|
10
|
+
|| isString(val)
|
|
11
|
+
|| isNumber(val)
|
|
12
|
+
|| (isArray(val) && val.every(isJSONValue))
|
|
13
|
+
|| (isPlainObject(val) && Object.values(val).every(isJSONValue));
|
|
17
14
|
}
|
|
18
|
-
|
|
19
|
-
function isntJSONValue(val) {
|
|
15
|
+
export function isntJSONValue(val) {
|
|
20
16
|
return !isJSONValue(val);
|
|
21
17
|
}
|
|
22
|
-
exports.isntJSONValue = isntJSONValue;
|
|
23
18
|
//# sourceMappingURL=is-json-value.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-json-value.js","sourceRoot":"","sources":["../../src/json/is-json-value.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"is-json-value.js","sourceRoot":"","sources":["../../src/json/is-json-value.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,4BAA6B;AAC9C,OAAO,EAAE,SAAS,EAAE,4BAA6B;AACjD,OAAO,EAAE,QAAQ,EAAE,2BAA4B;AAC/C,OAAO,EAAE,QAAQ,EAAE,2BAA4B;AAC/C,OAAO,EAAE,OAAO,EAAE,0BAA2B;AAC7C,OAAO,EAAE,aAAa,EAAE,2BAA4B;AAEpD,MAAM,UAAU,WAAW,CAAC,GAAY;IACtC,OAAO,MAAM,CAAC,GAAG,CAAC;WACX,SAAS,CAAC,GAAG,CAAC;WACd,QAAQ,CAAC,GAAG,CAAC;WACb,QAAQ,CAAC,GAAG,CAAC;WACb,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;WACxC,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAA;AACtE,CAAC;AAED,MAAM,UAAU,aAAa,CAAI,GAAM;IACrC,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAA;AAC1B,CAAC"}
|
package/lib/nullish/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './is-null';
|
|
2
|
-
export * from './is-undefined';
|
|
3
|
-
export * from './is-nullish';
|
|
1
|
+
export * from './is-null.js';
|
|
2
|
+
export * from './is-undefined.js';
|
|
3
|
+
export * from './is-nullish.js';
|
package/lib/nullish/index.js
CHANGED
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./is-null"), exports);
|
|
18
|
-
__exportStar(require("./is-undefined"), exports);
|
|
19
|
-
__exportStar(require("./is-nullish"), exports);
|
|
1
|
+
export * from './is-null.js';
|
|
2
|
+
export * from './is-undefined.js';
|
|
3
|
+
export * from './is-nullish.js';
|
|
20
4
|
//# sourceMappingURL=index.js.map
|
package/lib/nullish/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/nullish/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/nullish/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA"}
|
package/lib/nullish/is-null.js
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isntNull = exports.isNull = void 0;
|
|
4
|
-
function isNull(val) {
|
|
1
|
+
export function isNull(val) {
|
|
5
2
|
return val === null;
|
|
6
3
|
}
|
|
7
|
-
|
|
8
|
-
function isntNull(val) {
|
|
4
|
+
export function isntNull(val) {
|
|
9
5
|
return !isNull(val);
|
|
10
6
|
}
|
|
11
|
-
exports.isntNull = isntNull;
|
|
12
7
|
//# sourceMappingURL=is-null.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-null.js","sourceRoot":"","sources":["../../src/nullish/is-null.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"is-null.js","sourceRoot":"","sources":["../../src/nullish/is-null.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,MAAM,CAAC,GAAY;IACjC,OAAO,GAAG,KAAK,IAAI,CAAA;AACrB,CAAC;AAED,MAAM,UAAU,QAAQ,CAAI,GAAM;IAChC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;AACrB,CAAC"}
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function isNullish(val) {
|
|
7
|
-
return (0, is_null_1.isNull)(val)
|
|
8
|
-
|| (0, is_undefined_1.isUndefined)(val);
|
|
1
|
+
import { isNull } from './is-null.js';
|
|
2
|
+
import { isUndefined } from './is-undefined.js';
|
|
3
|
+
export function isNullish(val) {
|
|
4
|
+
return isNull(val)
|
|
5
|
+
|| isUndefined(val);
|
|
9
6
|
}
|
|
10
|
-
|
|
11
|
-
function isntNullish(val) {
|
|
7
|
+
export function isntNullish(val) {
|
|
12
8
|
return !isNullish(val);
|
|
13
9
|
}
|
|
14
|
-
exports.isntNullish = isntNullish;
|
|
15
10
|
//# sourceMappingURL=is-nullish.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-nullish.js","sourceRoot":"","sources":["../../src/nullish/is-nullish.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"is-nullish.js","sourceRoot":"","sources":["../../src/nullish/is-nullish.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE/C,MAAM,UAAU,SAAS,CAAC,GAAY;IACpC,OAAO,MAAM,CAAC,GAAG,CAAC;WACX,WAAW,CAAC,GAAG,CAAC,CAAA;AACzB,CAAC;AAED,MAAM,UAAU,WAAW,CAAI,GAAM;IACnC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA;AACxB,CAAC"}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isntUndefined = exports.isUndefined = void 0;
|
|
4
|
-
function isUndefined(val) {
|
|
1
|
+
export function isUndefined(val) {
|
|
5
2
|
return val === undefined;
|
|
6
3
|
}
|
|
7
|
-
|
|
8
|
-
function isntUndefined(val) {
|
|
4
|
+
export function isntUndefined(val) {
|
|
9
5
|
return !isUndefined(val);
|
|
10
6
|
}
|
|
11
|
-
exports.isntUndefined = isntUndefined;
|
|
12
7
|
//# sourceMappingURL=is-undefined.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-undefined.js","sourceRoot":"","sources":["../../src/nullish/is-undefined.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"is-undefined.js","sourceRoot":"","sources":["../../src/nullish/is-undefined.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,WAAW,CAAC,GAAY;IACtC,OAAO,GAAG,KAAK,SAAS,CAAA;AAC1B,CAAC;AAED,MAAM,UAAU,aAAa,CAAI,GAAM;IACrC,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAA;AAC1B,CAAC"}
|
package/lib/number/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './is-bigint';
|
|
2
|
-
export * from './is-finite';
|
|
3
|
-
export * from './is-infinity';
|
|
4
|
-
export * from './is-nan';
|
|
5
|
-
export * from './is-number';
|
|
1
|
+
export * from './is-bigint.js';
|
|
2
|
+
export * from './is-finite.js';
|
|
3
|
+
export * from './is-infinity.js';
|
|
4
|
+
export * from './is-nan.js';
|
|
5
|
+
export * from './is-number.js';
|
package/lib/number/index.js
CHANGED
|
@@ -1,22 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./is-bigint"), exports);
|
|
18
|
-
__exportStar(require("./is-finite"), exports);
|
|
19
|
-
__exportStar(require("./is-infinity"), exports);
|
|
20
|
-
__exportStar(require("./is-nan"), exports);
|
|
21
|
-
__exportStar(require("./is-number"), exports);
|
|
1
|
+
export * from './is-bigint.js';
|
|
2
|
+
export * from './is-finite.js';
|
|
3
|
+
export * from './is-infinity.js';
|
|
4
|
+
export * from './is-nan.js';
|
|
5
|
+
export * from './is-number.js';
|
|
22
6
|
//# sourceMappingURL=index.js.map
|
package/lib/number/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/number/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/number/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA"}
|