es-toolkit 1.23.0-dev.737 → 1.23.0-dev.739
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/_chunk/{isJSONObject-CkW4Fc.js → isJSONObject-CLSJHE.js} +8 -0
- package/dist/browser.global.js +1 -1
- package/dist/browser.global.js.map +1 -1
- package/dist/compat/index.d.mts +1 -0
- package/dist/compat/index.d.ts +1 -0
- package/dist/compat/index.js +2 -1
- package/dist/compat/index.mjs +1 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/index.mjs +1 -0
- package/dist/predicate/index.d.mts +1 -0
- package/dist/predicate/index.d.ts +1 -0
- package/dist/predicate/index.js +2 -1
- package/dist/predicate/index.mjs +1 -0
- package/dist/predicate/isBlob.d.mts +19 -0
- package/dist/predicate/isBlob.d.ts +19 -0
- package/dist/predicate/isBlob.mjs +8 -0
- package/package.json +1 -1
package/dist/compat/index.d.mts
CHANGED
|
@@ -67,6 +67,7 @@ export { invert } from '../object/invert.mjs';
|
|
|
67
67
|
export { clone } from '../object/clone.mjs';
|
|
68
68
|
export { flattenObject } from '../object/flattenObject.mjs';
|
|
69
69
|
export { toMerged } from '../object/toMerged.mjs';
|
|
70
|
+
export { isBlob } from '../predicate/isBlob.mjs';
|
|
70
71
|
export { isDate } from '../predicate/isDate.mjs';
|
|
71
72
|
export { isEqual } from '../predicate/isEqual.mjs';
|
|
72
73
|
export { isNotNil } from '../predicate/isNotNil.mjs';
|
package/dist/compat/index.d.ts
CHANGED
|
@@ -67,6 +67,7 @@ export { invert } from '../object/invert.js';
|
|
|
67
67
|
export { clone } from '../object/clone.js';
|
|
68
68
|
export { flattenObject } from '../object/flattenObject.js';
|
|
69
69
|
export { toMerged } from '../object/toMerged.js';
|
|
70
|
+
export { isBlob } from '../predicate/isBlob.js';
|
|
70
71
|
export { isDate } from '../predicate/isDate.js';
|
|
71
72
|
export { isEqual } from '../predicate/isEqual.js';
|
|
72
73
|
export { isNotNil } from '../predicate/isNotNil.js';
|
package/dist/compat/index.js
CHANGED
|
@@ -10,7 +10,7 @@ const rangeRight = require('../_chunk/rangeRight-CtcxMd.js');
|
|
|
10
10
|
const randomInt = require('../_chunk/randomInt-CF7bZK.js');
|
|
11
11
|
const isObjectLike = require('../_chunk/isObjectLike-aywuSF.js');
|
|
12
12
|
const isPlainObject$1 = require('../_chunk/isPlainObject-DgrsU7.js');
|
|
13
|
-
const isJSONObject = require('../_chunk/isJSONObject-
|
|
13
|
+
const isJSONObject = require('../_chunk/isJSONObject-CLSJHE.js');
|
|
14
14
|
const deburr = require('../_chunk/deburr-BPmkoM.js');
|
|
15
15
|
const pad$1 = require('../_chunk/pad-Bgd7Ah.js');
|
|
16
16
|
|
|
@@ -1879,6 +1879,7 @@ exports.bindKey = isJSONObject.bindKey;
|
|
|
1879
1879
|
exports.curry = isJSONObject.curry;
|
|
1880
1880
|
exports.curryRight = isJSONObject.curryRight;
|
|
1881
1881
|
exports.eq = isJSONObject.eq;
|
|
1882
|
+
exports.isBlob = isJSONObject.isBlob;
|
|
1882
1883
|
exports.isDate = isJSONObject.isDate;
|
|
1883
1884
|
exports.isEqual = isJSONObject.isEqual;
|
|
1884
1885
|
exports.isFunction = isJSONObject.isFunction;
|
package/dist/compat/index.mjs
CHANGED
|
@@ -69,6 +69,7 @@ export { flattenObject } from '../object/flattenObject.mjs';
|
|
|
69
69
|
export { isPrimitive } from '../predicate/isPrimitive.mjs';
|
|
70
70
|
export { toMerged } from '../object/toMerged.mjs';
|
|
71
71
|
export { isObjectLike } from './predicate/isObjectLike.mjs';
|
|
72
|
+
export { isBlob } from '../predicate/isBlob.mjs';
|
|
72
73
|
export { isDate } from '../predicate/isDate.mjs';
|
|
73
74
|
export { isEqual } from '../predicate/isEqual.mjs';
|
|
74
75
|
export { castArray } from './array/castArray.mjs';
|
package/dist/index.d.mts
CHANGED
|
@@ -99,6 +99,7 @@ export { merge } from './object/merge.mjs';
|
|
|
99
99
|
export { toMerged } from './object/toMerged.mjs';
|
|
100
100
|
export { mergeWith } from './object/mergeWith.mjs';
|
|
101
101
|
export { isArrayBuffer } from './predicate/isArrayBuffer.mjs';
|
|
102
|
+
export { isBlob } from './predicate/isBlob.mjs';
|
|
102
103
|
export { isDate } from './predicate/isDate.mjs';
|
|
103
104
|
export { isEqual } from './predicate/isEqual.mjs';
|
|
104
105
|
export { isEqualWith } from './predicate/isEqualWith.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -99,6 +99,7 @@ export { merge } from './object/merge.js';
|
|
|
99
99
|
export { toMerged } from './object/toMerged.js';
|
|
100
100
|
export { mergeWith } from './object/mergeWith.js';
|
|
101
101
|
export { isArrayBuffer } from './predicate/isArrayBuffer.js';
|
|
102
|
+
export { isBlob } from './predicate/isBlob.js';
|
|
102
103
|
export { isDate } from './predicate/isDate.js';
|
|
103
104
|
export { isEqual } from './predicate/isEqual.js';
|
|
104
105
|
export { isEqualWith } from './predicate/isEqualWith.js';
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ const randomInt = require('./_chunk/randomInt-CF7bZK.js');
|
|
|
13
13
|
const math_index = require('./math/index.js');
|
|
14
14
|
const object_index = require('./object/index.js');
|
|
15
15
|
const isObjectLike = require('./_chunk/isObjectLike-aywuSF.js');
|
|
16
|
-
const isJSONObject = require('./_chunk/isJSONObject-
|
|
16
|
+
const isJSONObject = require('./_chunk/isJSONObject-CLSJHE.js');
|
|
17
17
|
const predicate_index = require('./predicate/index.js');
|
|
18
18
|
const isPlainObject = require('./_chunk/isPlainObject-DgrsU7.js');
|
|
19
19
|
const pad = require('./_chunk/pad-Bgd7Ah.js');
|
|
@@ -126,6 +126,7 @@ exports.omitBy = isObjectLike.omitBy;
|
|
|
126
126
|
exports.pickBy = isObjectLike.pickBy;
|
|
127
127
|
exports.toMerged = isObjectLike.toMerged;
|
|
128
128
|
exports.isArrayBuffer = isJSONObject.isArrayBuffer;
|
|
129
|
+
exports.isBlob = isJSONObject.isBlob;
|
|
129
130
|
exports.isDate = isJSONObject.isDate;
|
|
130
131
|
exports.isEqual = isJSONObject.isEqual;
|
|
131
132
|
exports.isEqualWith = isJSONObject.isEqualWith;
|
package/dist/index.mjs
CHANGED
|
@@ -99,6 +99,7 @@ export { merge } from './object/merge.mjs';
|
|
|
99
99
|
export { toMerged } from './object/toMerged.mjs';
|
|
100
100
|
export { mergeWith } from './object/mergeWith.mjs';
|
|
101
101
|
export { isArrayBuffer } from './predicate/isArrayBuffer.mjs';
|
|
102
|
+
export { isBlob } from './predicate/isBlob.mjs';
|
|
102
103
|
export { isDate } from './predicate/isDate.mjs';
|
|
103
104
|
export { isEqual } from './predicate/isEqual.mjs';
|
|
104
105
|
export { isEqualWith } from './predicate/isEqualWith.mjs';
|
package/dist/predicate/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const isJSONObject = require('../_chunk/isJSONObject-
|
|
5
|
+
const isJSONObject = require('../_chunk/isJSONObject-CLSJHE.js');
|
|
6
6
|
const isPlainObject = require('../_chunk/isPlainObject-DgrsU7.js');
|
|
7
7
|
|
|
8
8
|
function isError(value) {
|
|
@@ -22,6 +22,7 @@ function isString(value) {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
exports.isArrayBuffer = isJSONObject.isArrayBuffer;
|
|
25
|
+
exports.isBlob = isJSONObject.isBlob;
|
|
25
26
|
exports.isDate = isJSONObject.isDate;
|
|
26
27
|
exports.isEqual = isJSONObject.isEqual;
|
|
27
28
|
exports.isEqualWith = isJSONObject.isEqualWith;
|
package/dist/predicate/index.mjs
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks if the given value is a Blob.
|
|
3
|
+
*
|
|
4
|
+
* This function tests whether the provided value is an instance of `Blob`.
|
|
5
|
+
* It returns `true` if the value is an instance of `Blob`, and `false` otherwise.
|
|
6
|
+
*
|
|
7
|
+
* @param {unknown} x - The value to test if it is a Blob.
|
|
8
|
+
* @returns {x is Blob} True if the value is a Blob, false otherwise.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* const value1 = new Blob();
|
|
12
|
+
* const value2 = {};
|
|
13
|
+
*
|
|
14
|
+
* console.log(isBlob(value1)); // true
|
|
15
|
+
* console.log(isBlob(value2)); // false
|
|
16
|
+
*/
|
|
17
|
+
declare function isBlob(x: unknown): x is Blob;
|
|
18
|
+
|
|
19
|
+
export { isBlob };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks if the given value is a Blob.
|
|
3
|
+
*
|
|
4
|
+
* This function tests whether the provided value is an instance of `Blob`.
|
|
5
|
+
* It returns `true` if the value is an instance of `Blob`, and `false` otherwise.
|
|
6
|
+
*
|
|
7
|
+
* @param {unknown} x - The value to test if it is a Blob.
|
|
8
|
+
* @returns {x is Blob} True if the value is a Blob, false otherwise.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* const value1 = new Blob();
|
|
12
|
+
* const value2 = {};
|
|
13
|
+
*
|
|
14
|
+
* console.log(isBlob(value1)); // true
|
|
15
|
+
* console.log(isBlob(value2)); // false
|
|
16
|
+
*/
|
|
17
|
+
declare function isBlob(x: unknown): x is Blob;
|
|
18
|
+
|
|
19
|
+
export { isBlob };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "es-toolkit",
|
|
3
3
|
"description": "A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.",
|
|
4
|
-
"version": "1.23.0-dev.
|
|
4
|
+
"version": "1.23.0-dev.739+1bcad724",
|
|
5
5
|
"homepage": "https://es-toolkit.slash.page",
|
|
6
6
|
"bugs": "https://github.com/toss/es-toolkit/issues",
|
|
7
7
|
"repository": {
|