@oh-my-pi/pi-utils 15.0.2 → 15.1.1
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/package.json +2 -2
- package/src/postmortem.ts +1 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@oh-my-pi/pi-utils",
|
|
4
|
-
"version": "15.
|
|
4
|
+
"version": "15.1.1",
|
|
5
5
|
"description": "Shared utilities for pi packages",
|
|
6
6
|
"homepage": "https://omp.sh",
|
|
7
7
|
"author": "Can Boluk",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/bun": "^1.3.14",
|
|
41
|
-
"@oh-my-pi/pi-natives": "15.
|
|
41
|
+
"@oh-my-pi/pi-natives": "15.1.1"
|
|
42
42
|
},
|
|
43
43
|
"engines": {
|
|
44
44
|
"bun": ">=1.3.14"
|
package/src/postmortem.ts
CHANGED
|
@@ -46,8 +46,7 @@ function runCleanup(reason: Reason): Promise<void> {
|
|
|
46
46
|
|
|
47
47
|
// Call .cleanup() for each callback that is still "armed".
|
|
48
48
|
// Use Promise.try to handle sync/async, but only those armed.
|
|
49
|
-
|
|
50
|
-
const promises = [...callbackList].reverse().map(callback => {
|
|
49
|
+
const promises = callbackList.toReversed().map(callback => {
|
|
51
50
|
return Promise.try(() => callback(reason));
|
|
52
51
|
});
|
|
53
52
|
|