es-toolkit 1.21.0-dev.672 → 1.21.0-dev.674

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.
@@ -13,6 +13,7 @@ function throttle(func, throttleMs, { signal, edges = ['leading', 'trailing'] }
13
13
  }
14
14
  else {
15
15
  if (Date.now() - pendingAt >= throttleMs) {
16
+ pendingAt = Date.now();
16
17
  debounced.cancel();
17
18
  debounced(...args);
18
19
  }
@@ -9,6 +9,7 @@ function throttle(func, throttleMs, { signal, edges = ['leading', 'trailing'] }
9
9
  }
10
10
  else {
11
11
  if (Date.now() - pendingAt >= throttleMs) {
12
+ pendingAt = Date.now();
12
13
  debounced.cancel();
13
14
  debounced(...args);
14
15
  }
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.21.0-dev.672+e88e3e2d",
4
+ "version": "1.21.0-dev.674+2673425a",
5
5
  "homepage": "https://es-toolkit.slash.page",
6
6
  "bugs": "https://github.com/toss/es-toolkit/issues",
7
7
  "repository": {
@@ -247,7 +247,7 @@
247
247
  "scripts": {
248
248
  "prepack": "yarn build",
249
249
  "build": "rollup -c rollup.config.mjs && ./.scripts/postbuild.sh",
250
- "test": "vitest run --coverage --typecheck",
250
+ "test": "vitest --coverage --typecheck",
251
251
  "bench": "vitest bench",
252
252
  "lint": "eslint --config eslint.config.mjs",
253
253
  "format": "prettier --write .",