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.
@@ -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';
@@ -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';
@@ -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-CkW4Fc.js');
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;
@@ -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-CkW4Fc.js');
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';
@@ -1,4 +1,5 @@
1
1
  export { isArrayBuffer } from './isArrayBuffer.mjs';
2
+ export { isBlob } from './isBlob.mjs';
2
3
  export { isDate } from './isDate.mjs';
3
4
  export { isEqual } from './isEqual.mjs';
4
5
  export { isEqualWith } from './isEqualWith.mjs';
@@ -1,4 +1,5 @@
1
1
  export { isArrayBuffer } from './isArrayBuffer.js';
2
+ export { isBlob } from './isBlob.js';
2
3
  export { isDate } from './isDate.js';
3
4
  export { isEqual } from './isEqual.js';
4
5
  export { isEqualWith } from './isEqualWith.js';
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const isJSONObject = require('../_chunk/isJSONObject-CkW4Fc.js');
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;
@@ -1,4 +1,5 @@
1
1
  export { isArrayBuffer } from './isArrayBuffer.mjs';
2
+ export { isBlob } from './isBlob.mjs';
2
3
  export { isDate } from './isDate.mjs';
3
4
  export { isEqual } from './isEqual.mjs';
4
5
  export { isEqualWith } from './isEqualWith.mjs';
@@ -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 };
@@ -0,0 +1,8 @@
1
+ function isBlob(x) {
2
+ if (typeof Blob === 'undefined') {
3
+ return false;
4
+ }
5
+ return x instanceof Blob;
6
+ }
7
+
8
+ 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.737+306a6c70",
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": {