es-toolkit 1.16.0-dev.472 → 1.16.0-dev.474
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/{index-CwRt_M.js → index-CoqN5B.js} +1 -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/promise/index.d.mts +1 -0
- package/dist/promise/index.d.ts +1 -0
- package/dist/promise/index.js +2 -1
- package/dist/promise/index.mjs +1 -0
- package/dist/promise/timeout.d.mts +10 -0
- package/dist/promise/timeout.d.ts +10 -0
- package/package.json +1 -1
package/dist/compat/index.d.mts
CHANGED
|
@@ -87,6 +87,7 @@ export { isFunction } from '../predicate/isFunction.mjs';
|
|
|
87
87
|
export { isPrimitive } from '../predicate/isPrimitive.mjs';
|
|
88
88
|
export { delay } from '../promise/delay.mjs';
|
|
89
89
|
export { withTimeout } from '../promise/withTimeout.mjs';
|
|
90
|
+
export { timeout } from '../promise/timeout.mjs';
|
|
90
91
|
export { camelCase } from '../string/camelCase.mjs';
|
|
91
92
|
export { snakeCase } from '../string/snakeCase.mjs';
|
|
92
93
|
export { kebabCase } from '../string/kebabCase.mjs';
|
package/dist/compat/index.d.ts
CHANGED
|
@@ -87,6 +87,7 @@ export { isFunction } from '../predicate/isFunction.js';
|
|
|
87
87
|
export { isPrimitive } from '../predicate/isPrimitive.js';
|
|
88
88
|
export { delay } from '../promise/delay.js';
|
|
89
89
|
export { withTimeout } from '../promise/withTimeout.js';
|
|
90
|
+
export { timeout } from '../promise/timeout.js';
|
|
90
91
|
export { camelCase } from '../string/camelCase.js';
|
|
91
92
|
export { snakeCase } from '../string/snakeCase.js';
|
|
92
93
|
export { kebabCase } from '../string/kebabCase.js';
|
package/dist/compat/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
5
|
const initial = require('../_chunk/initial-Cn07Zw.js');
|
|
6
|
-
const promise_index = require('../_chunk/index-
|
|
6
|
+
const promise_index = require('../_chunk/index-CoqN5B.js');
|
|
7
7
|
const function_index = require('../function/index.js');
|
|
8
8
|
const math_index = require('../math/index.js');
|
|
9
9
|
const randomInt = require('../_chunk/randomInt-CF7bZK.js');
|
|
@@ -871,6 +871,7 @@ exports.zipWith = initial.zipWith;
|
|
|
871
871
|
exports.AbortError = promise_index.AbortError;
|
|
872
872
|
exports.TimeoutError = promise_index.TimeoutError;
|
|
873
873
|
exports.delay = promise_index.delay;
|
|
874
|
+
exports.timeout = promise_index.timeout;
|
|
874
875
|
exports.withTimeout = promise_index.withTimeout;
|
|
875
876
|
exports.after = function_index.after;
|
|
876
877
|
exports.before = function_index.before;
|
package/dist/compat/index.mjs
CHANGED
|
@@ -88,6 +88,7 @@ export { isFunction } from '../predicate/isFunction.mjs';
|
|
|
88
88
|
export { isPrimitive } from '../predicate/isPrimitive.mjs';
|
|
89
89
|
export { delay } from '../promise/delay.mjs';
|
|
90
90
|
export { withTimeout } from '../promise/withTimeout.mjs';
|
|
91
|
+
export { timeout } from '../promise/timeout.mjs';
|
|
91
92
|
export { camelCase } from '../string/camelCase.mjs';
|
|
92
93
|
export { snakeCase } from '../string/snakeCase.mjs';
|
|
93
94
|
export { kebabCase } from '../string/kebabCase.mjs';
|
package/dist/index.d.mts
CHANGED
|
@@ -105,6 +105,7 @@ export { isSymbol } from './predicate/isSymbol.mjs';
|
|
|
105
105
|
export { isString } from './predicate/isString.mjs';
|
|
106
106
|
export { delay } from './promise/delay.mjs';
|
|
107
107
|
export { withTimeout } from './promise/withTimeout.mjs';
|
|
108
|
+
export { timeout } from './promise/timeout.mjs';
|
|
108
109
|
export { camelCase } from './string/camelCase.mjs';
|
|
109
110
|
export { snakeCase } from './string/snakeCase.mjs';
|
|
110
111
|
export { kebabCase } from './string/kebabCase.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -105,6 +105,7 @@ export { isSymbol } from './predicate/isSymbol.js';
|
|
|
105
105
|
export { isString } from './predicate/isString.js';
|
|
106
106
|
export { delay } from './promise/delay.js';
|
|
107
107
|
export { withTimeout } from './promise/withTimeout.js';
|
|
108
|
+
export { timeout } from './promise/timeout.js';
|
|
108
109
|
export { camelCase } from './string/camelCase.js';
|
|
109
110
|
export { snakeCase } from './string/snakeCase.js';
|
|
110
111
|
export { kebabCase } from './string/kebabCase.js';
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4
4
|
|
|
5
5
|
const initial = require('./_chunk/initial-Cn07Zw.js');
|
|
6
6
|
const array_index = require('./array/index.js');
|
|
7
|
-
const promise_index = require('./_chunk/index-
|
|
7
|
+
const promise_index = require('./_chunk/index-CoqN5B.js');
|
|
8
8
|
const function_index = require('./function/index.js');
|
|
9
9
|
const math_index = require('./math/index.js');
|
|
10
10
|
const randomInt = require('./_chunk/randomInt-CF7bZK.js');
|
|
@@ -73,6 +73,7 @@ exports.flattenDeep = array_index.flattenDeep;
|
|
|
73
73
|
exports.AbortError = promise_index.AbortError;
|
|
74
74
|
exports.TimeoutError = promise_index.TimeoutError;
|
|
75
75
|
exports.delay = promise_index.delay;
|
|
76
|
+
exports.timeout = promise_index.timeout;
|
|
76
77
|
exports.withTimeout = promise_index.withTimeout;
|
|
77
78
|
exports.after = function_index.after;
|
|
78
79
|
exports.ary = function_index.ary;
|
package/dist/index.mjs
CHANGED
|
@@ -105,6 +105,7 @@ export { isSymbol } from './predicate/isSymbol.mjs';
|
|
|
105
105
|
export { isString } from './predicate/isString.mjs';
|
|
106
106
|
export { delay } from './promise/delay.mjs';
|
|
107
107
|
export { withTimeout } from './promise/withTimeout.mjs';
|
|
108
|
+
export { timeout } from './promise/timeout.mjs';
|
|
108
109
|
export { camelCase } from './string/camelCase.mjs';
|
|
109
110
|
export { snakeCase } from './string/snakeCase.mjs';
|
|
110
111
|
export { kebabCase } from './string/kebabCase.mjs';
|
package/dist/promise/index.d.mts
CHANGED
package/dist/promise/index.d.ts
CHANGED
package/dist/promise/index.js
CHANGED
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const promise_index = require('../_chunk/index-
|
|
5
|
+
const promise_index = require('../_chunk/index-CoqN5B.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
exports.delay = promise_index.delay;
|
|
10
|
+
exports.timeout = promise_index.timeout;
|
|
10
11
|
exports.withTimeout = promise_index.withTimeout;
|
package/dist/promise/index.mjs
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns a promise that rejects with a `TimeoutError` after a specified delay.
|
|
3
|
+
*
|
|
4
|
+
* @param {number} ms - The delay duration in milliseconds.
|
|
5
|
+
* @returns {Promise<never>} A promise that rejects with a `TimeoutError` after the specified delay.
|
|
6
|
+
* @throws {TimeoutError} Throws a `TimeoutError` after the specified delay.
|
|
7
|
+
*/
|
|
8
|
+
declare function timeout(ms: number): Promise<never>;
|
|
9
|
+
|
|
10
|
+
export { timeout };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns a promise that rejects with a `TimeoutError` after a specified delay.
|
|
3
|
+
*
|
|
4
|
+
* @param {number} ms - The delay duration in milliseconds.
|
|
5
|
+
* @returns {Promise<never>} A promise that rejects with a `TimeoutError` after the specified delay.
|
|
6
|
+
* @throws {TimeoutError} Throws a `TimeoutError` after the specified delay.
|
|
7
|
+
*/
|
|
8
|
+
declare function timeout(ms: number): Promise<never>;
|
|
9
|
+
|
|
10
|
+
export { timeout };
|
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.16.0-dev.
|
|
4
|
+
"version": "1.16.0-dev.474+6ef87e31",
|
|
5
5
|
"homepage": "https://es-toolkit.slash.page",
|
|
6
6
|
"bugs": "https://github.com/toss/es-toolkit/issues",
|
|
7
7
|
"repository": {
|