@nxtedition/timers 1.1.3 → 1.1.5

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.
Files changed (2) hide show
  1. package/lib/index.js +4 -0
  2. package/package.json +4 -4
package/lib/index.js CHANGED
@@ -20,6 +20,10 @@ function dispatch() {
20
20
  // Isolate the throw: rethrow asynchronously so dispatch continues.
21
21
  // Otherwise fastIndex stays mid-loop and every prior timer gets
22
22
  // delayed by a full tick on the next onTimeout().
23
+ // Materialize the stack now — queueMicrotask severs the sync frame.
24
+ if (err instanceof Error) {
25
+ void err.stack
26
+ }
23
27
  queueMicrotask(() => {
24
28
  throw err
25
29
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/timers",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "type": "module",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -14,7 +14,7 @@
14
14
  "access": "public"
15
15
  },
16
16
  "scripts": {
17
- "build": "rimraf lib && tsc && amaroc ./src/index.ts && mv src/index.js lib/",
17
+ "build": "rimraf lib && tsc -p tsconfig.build.json && amaroc ./src/index.ts && mv src/index.js lib/",
18
18
  "prepublishOnly": "yarn build",
19
19
  "typecheck": "tsc --noEmit",
20
20
  "test": "node --test",
@@ -32,7 +32,7 @@
32
32
  "typescript": "^5.9.3"
33
33
  },
34
34
  "dependencies": {
35
- "@nxtedition/yield": "^1.0.16"
35
+ "@nxtedition/yield": "^1.0.18"
36
36
  },
37
- "gitHead": "472a4cdfd11ff9f1a7dcf8b81599bc1d9270bc90"
37
+ "gitHead": "7c9c7457c885c644c7a1e70ef894d4727ce240d6"
38
38
  }