es-toolkit 1.17.0-dev.506 → 1.17.0-dev.508

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.
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
5
  const initial = require('../_chunk/initial-Ci2bn_.js');
6
- const promise_index = require('../_chunk/index-CoqN5B.js');
6
+ const promise_index = require('../_chunk/index-BGZDR9.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');
@@ -5,6 +5,6 @@
5
5
  * @param {F} func - The function to negate.
6
6
  * @returns {F} The new negated function, which negates the boolean result of `func`.
7
7
  */
8
- declare function negate<F extends (...args: unknown[]) => boolean>(func: F): F;
8
+ declare function negate<F extends (...args: any[]) => boolean>(func: F): F;
9
9
 
10
10
  export { negate };
@@ -5,6 +5,6 @@
5
5
  * @param {F} func - The function to negate.
6
6
  * @returns {F} The new negated function, which negates the boolean result of `func`.
7
7
  */
8
- declare function negate<F extends (...args: unknown[]) => boolean>(func: F): F;
8
+ declare function negate<F extends (...args: any[]) => boolean>(func: F): F;
9
9
 
10
10
  export { negate };
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-Ci2bn_.js');
6
6
  const array_index = require('./array/index.js');
7
- const promise_index = require('./_chunk/index-CoqN5B.js');
7
+ const promise_index = require('./_chunk/index-BGZDR9.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');
@@ -12,7 +12,10 @@ function delay(ms, { signal } = {}) {
12
12
  if (signal?.aborted) {
13
13
  return abortError();
14
14
  }
15
- const timeoutId = setTimeout(resolve, ms);
15
+ const timeoutId = setTimeout(() => {
16
+ signal?.removeEventListener('abort', abortHandler);
17
+ resolve();
18
+ }, ms);
16
19
  signal?.addEventListener('abort', abortHandler, { once: true });
17
20
  });
18
21
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const promise_index = require('../_chunk/index-CoqN5B.js');
5
+ const promise_index = require('../_chunk/index-BGZDR9.js');
6
6
 
7
7
 
8
8
 
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.17.0-dev.506+db3a8bc0",
4
+ "version": "1.17.0-dev.508+5bccc517",
5
5
  "homepage": "https://es-toolkit.slash.page",
6
6
  "bugs": "https://github.com/toss/es-toolkit/issues",
7
7
  "repository": {