es-toolkit 1.30.1-dev.973 → 1.30.1-dev.975

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.
@@ -49,7 +49,6 @@ export { omitBy } from '../object/omitBy.mjs';
49
49
  export { pickBy } from '../object/pickBy.mjs';
50
50
  export { toMerged } from '../object/toMerged.mjs';
51
51
  export { isBlob } from '../predicate/isBlob.mjs';
52
- export { isBuffer } from '../predicate/isBuffer.mjs';
53
52
  export { isEqual } from '../predicate/isEqual.mjs';
54
53
  export { isFile } from '../predicate/isFile.mjs';
55
54
  export { isFunction } from '../predicate/isFunction.mjs';
@@ -178,6 +177,7 @@ export { isArrayBuffer } from './predicate/isArrayBuffer.mjs';
178
177
  export { isArrayLike } from './predicate/isArrayLike.mjs';
179
178
  export { isArrayLikeObject } from './predicate/isArrayLikeObject.mjs';
180
179
  export { isBoolean } from './predicate/isBoolean.mjs';
180
+ export { isBuffer } from './predicate/isBuffer.mjs';
181
181
  export { isDate } from './predicate/isDate.mjs';
182
182
  export { isElement } from './predicate/isElement.mjs';
183
183
  export { isEmpty } from './predicate/isEmpty.mjs';
@@ -49,7 +49,6 @@ export { omitBy } from '../object/omitBy.js';
49
49
  export { pickBy } from '../object/pickBy.js';
50
50
  export { toMerged } from '../object/toMerged.js';
51
51
  export { isBlob } from '../predicate/isBlob.js';
52
- export { isBuffer } from '../predicate/isBuffer.js';
53
52
  export { isEqual } from '../predicate/isEqual.js';
54
53
  export { isFile } from '../predicate/isFile.js';
55
54
  export { isFunction } from '../predicate/isFunction.js';
@@ -178,6 +177,7 @@ export { isArrayBuffer } from './predicate/isArrayBuffer.js';
178
177
  export { isArrayLike } from './predicate/isArrayLike.js';
179
178
  export { isArrayLikeObject } from './predicate/isArrayLikeObject.js';
180
179
  export { isBoolean } from './predicate/isBoolean.js';
180
+ export { isBuffer } from './predicate/isBuffer.js';
181
181
  export { isDate } from './predicate/isDate.js';
182
182
  export { isElement } from './predicate/isElement.js';
183
183
  export { isEmpty } from './predicate/isEmpty.js';
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const zipWith = require('../_chunk/zipWith-5J4AcG.js');
5
+ const zipWith = require('../_chunk/zipWith-M-SG50.js');
6
6
  const promise_index = require('../_chunk/index-BGZDR9.js');
7
7
  const unary = require('../_chunk/unary-B6qG7C.js');
8
8
  const noop = require('../_chunk/noop-2IwLUk.js');
@@ -2482,6 +2482,10 @@ function isBoolean(value) {
2482
2482
  return typeof value === 'boolean' || value instanceof Boolean;
2483
2483
  }
2484
2484
 
2485
+ function isBuffer(x) {
2486
+ return isWeakSet$1.isBuffer(x);
2487
+ }
2488
+
2485
2489
  function isDate(value) {
2486
2490
  return isWeakSet$1.isDate(value);
2487
2491
  }
@@ -3078,7 +3082,6 @@ exports.toMerged = toMerged.toMerged;
3078
3082
  exports.isPrimitive = isPlainObject$1.isPrimitive;
3079
3083
  exports.eq = isWeakSet$1.eq;
3080
3084
  exports.isBlob = isWeakSet$1.isBlob;
3081
- exports.isBuffer = isWeakSet$1.isBuffer;
3082
3085
  exports.isEqual = isWeakSet$1.isEqual;
3083
3086
  exports.isFile = isWeakSet$1.isFile;
3084
3087
  exports.isFunction = isWeakSet$1.isFunction;
@@ -3168,6 +3171,7 @@ exports.isArrayBuffer = isArrayBuffer;
3168
3171
  exports.isArrayLike = isArrayLike;
3169
3172
  exports.isArrayLikeObject = isArrayLikeObject;
3170
3173
  exports.isBoolean = isBoolean;
3174
+ exports.isBuffer = isBuffer;
3171
3175
  exports.isDate = isDate;
3172
3176
  exports.isElement = isElement;
3173
3177
  exports.isEmpty = isEmpty;
@@ -50,7 +50,6 @@ export { omitBy } from '../object/omitBy.mjs';
50
50
  export { pickBy } from '../object/pickBy.mjs';
51
51
  export { toMerged } from '../object/toMerged.mjs';
52
52
  export { isBlob } from '../predicate/isBlob.mjs';
53
- export { isBuffer } from '../predicate/isBuffer.mjs';
54
53
  export { isEqual } from '../predicate/isEqual.mjs';
55
54
  export { eq } from './util/eq.mjs';
56
55
  export { isFile } from '../predicate/isFile.mjs';
@@ -180,6 +179,7 @@ export { isArrayBuffer } from './predicate/isArrayBuffer.mjs';
180
179
  export { isArrayLike } from './predicate/isArrayLike.mjs';
181
180
  export { isArrayLikeObject } from './predicate/isArrayLikeObject.mjs';
182
181
  export { isBoolean } from './predicate/isBoolean.mjs';
182
+ export { isBuffer } from './predicate/isBuffer.mjs';
183
183
  export { isDate } from './predicate/isDate.mjs';
184
184
  export { isElement } from './predicate/isElement.mjs';
185
185
  export { isEmpty } from './predicate/isEmpty.mjs';
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Checks if the given value is a Buffer instance.
3
+ *
4
+ * This function tests whether the provided value is an instance of Buffer.
5
+ * It returns `true` if the value is a Buffer, and `false` otherwise.
6
+ *
7
+ * This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `Buffer`.
8
+ *
9
+ * @param {unknown} x - The value to check if it is a Buffer.
10
+ * @returns {boolean} Returns `true` if `x` is a Buffer, else `false`.
11
+ *
12
+ * @example
13
+ * const buffer = Buffer.from("test");
14
+ * console.log(isBuffer(buffer)); // true
15
+ *
16
+ * const notBuffer = "not a buffer";
17
+ * console.log(isBuffer(notBuffer)); // false
18
+ */
19
+ declare function isBuffer(x?: unknown): boolean;
20
+
21
+ export { isBuffer };
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Checks if the given value is a Buffer instance.
3
+ *
4
+ * This function tests whether the provided value is an instance of Buffer.
5
+ * It returns `true` if the value is a Buffer, and `false` otherwise.
6
+ *
7
+ * This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `Buffer`.
8
+ *
9
+ * @param {unknown} x - The value to check if it is a Buffer.
10
+ * @returns {boolean} Returns `true` if `x` is a Buffer, else `false`.
11
+ *
12
+ * @example
13
+ * const buffer = Buffer.from("test");
14
+ * console.log(isBuffer(buffer)); // true
15
+ *
16
+ * const notBuffer = "not a buffer";
17
+ * console.log(isBuffer(notBuffer)); // false
18
+ */
19
+ declare function isBuffer(x?: unknown): boolean;
20
+
21
+ export { isBuffer };
@@ -0,0 +1,7 @@
1
+ import { isBuffer as isBuffer$1 } from '../../predicate/isBuffer.mjs';
2
+
3
+ function isBuffer(x) {
4
+ return isBuffer$1(x);
5
+ }
6
+
7
+ export { isBuffer };
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const zipWith = require('./_chunk/zipWith-5J4AcG.js');
5
+ const zipWith = require('./_chunk/zipWith-M-SG50.js');
6
6
  const array_index = require('./array/index.js');
7
7
  const promise_index = require('./_chunk/index-BGZDR9.js');
8
8
  const unary = require('./_chunk/unary-B6qG7C.js');
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.30.1-dev.973+18524f39",
4
+ "version": "1.30.1-dev.975+85d58ec6",
5
5
  "homepage": "https://es-toolkit.slash.page",
6
6
  "bugs": "https://github.com/toss/es-toolkit/issues",
7
7
  "repository": {