@platformatic/basic 2.28.0 → 2.29.0
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/lib/worker/listeners.js +0 -8
- package/package.json +6 -6
- package/schema.json +1 -1
package/lib/worker/listeners.js
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { features, withResolvers } from '@platformatic/utils'
|
|
2
2
|
import { subscribe, tracingChannel, unsubscribe } from 'node:diagnostics_channel'
|
|
3
|
-
import { AsyncLocalStorage } from 'node:async_hooks'
|
|
4
|
-
|
|
5
|
-
const snapshots = new WeakMap()
|
|
6
|
-
|
|
7
|
-
export function getAsyncLocalStorageSnapshot (server) {
|
|
8
|
-
return snapshots.get(server)
|
|
9
|
-
}
|
|
10
3
|
|
|
11
4
|
export function createServerListener (overridePort = true, overrideHost) {
|
|
12
5
|
const { promise, resolve, reject } = withResolvers()
|
|
@@ -33,7 +26,6 @@ export function createServerListener (overridePort = true, overrideHost) {
|
|
|
33
26
|
},
|
|
34
27
|
asyncEnd ({ server }) {
|
|
35
28
|
cancel()
|
|
36
|
-
snapshots.set(server, AsyncLocalStorage.snapshot())
|
|
37
29
|
resolve(server)
|
|
38
30
|
},
|
|
39
31
|
error ({ error }) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/basic",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.29.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"split2": "^4.2.0",
|
|
25
25
|
"undici": "^7.0.0",
|
|
26
26
|
"ws": "^8.18.0",
|
|
27
|
-
"@platformatic/
|
|
28
|
-
"@platformatic/
|
|
29
|
-
"@platformatic/
|
|
30
|
-
"@platformatic/
|
|
31
|
-
"@platformatic/
|
|
27
|
+
"@platformatic/itc": "2.29.0",
|
|
28
|
+
"@platformatic/config": "2.29.0",
|
|
29
|
+
"@platformatic/telemetry": "2.29.0",
|
|
30
|
+
"@platformatic/metrics": "2.29.0",
|
|
31
|
+
"@platformatic/utils": "2.29.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"borp": "^0.19.0",
|
package/schema.json
CHANGED