es-toolkit 1.18.0-dev.595 → 1.18.0-dev.596
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/{isWeakSet-Cg7dfc.js → isWeakSet-E_VMwB.js} +5 -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/isDate.d.mts +16 -0
- package/dist/predicate/isDate.d.ts +16 -0
- package/dist/predicate/isDate.mjs +5 -0
- package/package.json +1 -1
package/dist/compat/index.d.mts
CHANGED
|
@@ -78,6 +78,7 @@ export { clone } from '../object/clone.mjs';
|
|
|
78
78
|
export { flattenObject } from '../object/flattenObject.mjs';
|
|
79
79
|
export { cloneDeep } from '../object/cloneDeep.mjs';
|
|
80
80
|
export { toMerged } from '../object/toMerged.mjs';
|
|
81
|
+
export { isDate } from '../predicate/isDate.mjs';
|
|
81
82
|
export { isEqual } from '../predicate/isEqual.mjs';
|
|
82
83
|
export { isNil } from '../predicate/isNil.mjs';
|
|
83
84
|
export { isNotNil } from '../predicate/isNotNil.mjs';
|
package/dist/compat/index.d.ts
CHANGED
|
@@ -78,6 +78,7 @@ export { clone } from '../object/clone.js';
|
|
|
78
78
|
export { flattenObject } from '../object/flattenObject.js';
|
|
79
79
|
export { cloneDeep } from '../object/cloneDeep.js';
|
|
80
80
|
export { toMerged } from '../object/toMerged.js';
|
|
81
|
+
export { isDate } from '../predicate/isDate.js';
|
|
81
82
|
export { isEqual } from '../predicate/isEqual.js';
|
|
82
83
|
export { isNil } from '../predicate/isNil.js';
|
|
83
84
|
export { isNotNil } from '../predicate/isNotNil.js';
|
package/dist/compat/index.js
CHANGED
|
@@ -8,7 +8,7 @@ const curry = require('../_chunk/curry-BmwJrK.js');
|
|
|
8
8
|
const range = require('../_chunk/range-BXlMmn.js');
|
|
9
9
|
const randomInt = require('../_chunk/randomInt-CF7bZK.js');
|
|
10
10
|
const toMerged = require('../_chunk/toMerged-LBvzaK.js');
|
|
11
|
-
const isWeakSet$1 = require('../_chunk/isWeakSet-
|
|
11
|
+
const isWeakSet$1 = require('../_chunk/isWeakSet-E_VMwB.js');
|
|
12
12
|
const isPlainObject$1 = require('../_chunk/isPlainObject-BIekvL.js');
|
|
13
13
|
const string_index = require('../string/index.js');
|
|
14
14
|
|
|
@@ -1318,6 +1318,7 @@ exports.omit = toMerged.omit;
|
|
|
1318
1318
|
exports.omitBy = toMerged.omitBy;
|
|
1319
1319
|
exports.pickBy = toMerged.pickBy;
|
|
1320
1320
|
exports.toMerged = toMerged.toMerged;
|
|
1321
|
+
exports.isDate = isWeakSet$1.isDate;
|
|
1321
1322
|
exports.isEqual = isWeakSet$1.isEqual;
|
|
1322
1323
|
exports.isFunction = isWeakSet$1.isFunction;
|
|
1323
1324
|
exports.isLength = isWeakSet$1.isLength;
|
package/dist/compat/index.mjs
CHANGED
|
@@ -79,6 +79,7 @@ export { flattenObject } from '../object/flattenObject.mjs';
|
|
|
79
79
|
export { cloneDeep } from '../object/cloneDeep.mjs';
|
|
80
80
|
export { isObjectLike } from './predicate/isObjectLike.mjs';
|
|
81
81
|
export { toMerged } from '../object/toMerged.mjs';
|
|
82
|
+
export { isDate } from '../predicate/isDate.mjs';
|
|
82
83
|
export { isEqual } from '../predicate/isEqual.mjs';
|
|
83
84
|
export { isNil } from '../predicate/isNil.mjs';
|
|
84
85
|
export { isNotNil } from '../predicate/isNotNil.mjs';
|
package/dist/index.d.mts
CHANGED
|
@@ -94,6 +94,7 @@ export { cloneDeep } from './object/cloneDeep.mjs';
|
|
|
94
94
|
export { merge } from './object/merge.mjs';
|
|
95
95
|
export { toMerged } from './object/toMerged.mjs';
|
|
96
96
|
export { mergeWith } from './object/mergeWith.mjs';
|
|
97
|
+
export { isDate } from './predicate/isDate.mjs';
|
|
97
98
|
export { isEqual } from './predicate/isEqual.mjs';
|
|
98
99
|
export { isNil } from './predicate/isNil.mjs';
|
|
99
100
|
export { isNotNil } from './predicate/isNotNil.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -94,6 +94,7 @@ export { cloneDeep } from './object/cloneDeep.js';
|
|
|
94
94
|
export { merge } from './object/merge.js';
|
|
95
95
|
export { toMerged } from './object/toMerged.js';
|
|
96
96
|
export { mergeWith } from './object/mergeWith.js';
|
|
97
|
+
export { isDate } from './predicate/isDate.js';
|
|
97
98
|
export { isEqual } from './predicate/isEqual.js';
|
|
98
99
|
export { isNil } from './predicate/isNil.js';
|
|
99
100
|
export { isNotNil } from './predicate/isNotNil.js';
|
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@ const randomInt = require('./_chunk/randomInt-CF7bZK.js');
|
|
|
12
12
|
const math_index = require('./math/index.js');
|
|
13
13
|
const toMerged = require('./_chunk/toMerged-LBvzaK.js');
|
|
14
14
|
const object_index = require('./object/index.js');
|
|
15
|
-
const isWeakSet = require('./_chunk/isWeakSet-
|
|
15
|
+
const isWeakSet = require('./_chunk/isWeakSet-E_VMwB.js');
|
|
16
16
|
const isPlainObject = require('./_chunk/isPlainObject-BIekvL.js');
|
|
17
17
|
const predicate_index = require('./predicate/index.js');
|
|
18
18
|
const string_index = require('./string/index.js');
|
|
@@ -118,6 +118,7 @@ exports.pickBy = toMerged.pickBy;
|
|
|
118
118
|
exports.toMerged = toMerged.toMerged;
|
|
119
119
|
exports.mergeWith = object_index.mergeWith;
|
|
120
120
|
exports.pick = object_index.pick;
|
|
121
|
+
exports.isDate = isWeakSet.isDate;
|
|
121
122
|
exports.isEqual = isWeakSet.isEqual;
|
|
122
123
|
exports.isFunction = isWeakSet.isFunction;
|
|
123
124
|
exports.isLength = isWeakSet.isLength;
|
package/dist/index.mjs
CHANGED
|
@@ -94,6 +94,7 @@ export { cloneDeep } from './object/cloneDeep.mjs';
|
|
|
94
94
|
export { merge } from './object/merge.mjs';
|
|
95
95
|
export { toMerged } from './object/toMerged.mjs';
|
|
96
96
|
export { mergeWith } from './object/mergeWith.mjs';
|
|
97
|
+
export { isDate } from './predicate/isDate.mjs';
|
|
97
98
|
export { isEqual } from './predicate/isEqual.mjs';
|
|
98
99
|
export { isNil } from './predicate/isNil.mjs';
|
|
99
100
|
export { isNotNil } from './predicate/isNotNil.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 isWeakSet = require('../_chunk/isWeakSet-
|
|
5
|
+
const isWeakSet = require('../_chunk/isWeakSet-E_VMwB.js');
|
|
6
6
|
const isPlainObject = require('../_chunk/isPlainObject-BIekvL.js');
|
|
7
7
|
|
|
8
8
|
function isRegExp(value) {
|
|
@@ -21,6 +21,7 @@ function isString(value) {
|
|
|
21
21
|
return typeof value === 'string';
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
exports.isDate = isWeakSet.isDate;
|
|
24
25
|
exports.isEqual = isWeakSet.isEqual;
|
|
25
26
|
exports.isFunction = isWeakSet.isFunction;
|
|
26
27
|
exports.isLength = isWeakSet.isLength;
|
package/dist/predicate/index.mjs
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks if `value` is a Date object.
|
|
3
|
+
*
|
|
4
|
+
* @param {unknown} value The value to check.
|
|
5
|
+
* @returns {value is Date} Returns `true` if `value` is a Date object, `false` otherwise.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* const value1 = new Date();
|
|
9
|
+
* const value2 = '2024-01-01';
|
|
10
|
+
*
|
|
11
|
+
* console.log(isDate(value1)); // true
|
|
12
|
+
* console.log(isDate(value2)); // false
|
|
13
|
+
*/
|
|
14
|
+
declare function isDate(value: unknown): value is Date;
|
|
15
|
+
|
|
16
|
+
export { isDate };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks if `value` is a Date object.
|
|
3
|
+
*
|
|
4
|
+
* @param {unknown} value The value to check.
|
|
5
|
+
* @returns {value is Date} Returns `true` if `value` is a Date object, `false` otherwise.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* const value1 = new Date();
|
|
9
|
+
* const value2 = '2024-01-01';
|
|
10
|
+
*
|
|
11
|
+
* console.log(isDate(value1)); // true
|
|
12
|
+
* console.log(isDate(value2)); // false
|
|
13
|
+
*/
|
|
14
|
+
declare function isDate(value: unknown): value is Date;
|
|
15
|
+
|
|
16
|
+
export { isDate };
|
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.18.0-dev.
|
|
4
|
+
"version": "1.18.0-dev.596+6e071573",
|
|
5
5
|
"homepage": "https://es-toolkit.slash.page",
|
|
6
6
|
"bugs": "https://github.com/toss/es-toolkit/issues",
|
|
7
7
|
"repository": {
|