@rivetkit/rivetkit-native 0.0.0-pr.4600.08e570f → 0.0.0-pr.4600.20aa70b
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 +9 -9
- package/wrapper.js +12 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rivetkit/rivetkit-native",
|
|
3
|
-
"version": "0.0.0-pr.4600.
|
|
3
|
+
"version": "0.0.0-pr.4600.20aa70b",
|
|
4
4
|
"description": "Native N-API addon for RivetKit providing envoy client and SQLite access",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "index.js",
|
|
@@ -49,15 +49,15 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@napi-rs/cli": "^2.18.4",
|
|
52
|
-
"@rivetkit/engine-envoy-protocol": "0.0.0-pr.4600.
|
|
52
|
+
"@rivetkit/engine-envoy-protocol": "0.0.0-pr.4600.20aa70b"
|
|
53
53
|
},
|
|
54
54
|
"optionalDependencies": {
|
|
55
|
-
"@rivetkit/rivetkit-native-darwin-arm64": "0.0.0-pr.4600.
|
|
56
|
-
"@rivetkit/rivetkit-native-darwin-x64": "0.0.0-pr.4600.
|
|
57
|
-
"@rivetkit/rivetkit-native-linux-arm64-gnu": "0.0.0-pr.4600.
|
|
58
|
-
"@rivetkit/rivetkit-native-linux-arm64-musl": "0.0.0-pr.4600.
|
|
59
|
-
"@rivetkit/rivetkit-native-linux-x64-gnu": "0.0.0-pr.4600.
|
|
60
|
-
"@rivetkit/rivetkit-native-linux-x64-musl": "0.0.0-pr.4600.
|
|
61
|
-
"@rivetkit/rivetkit-native-win32-x64-msvc": "0.0.0-pr.4600.
|
|
55
|
+
"@rivetkit/rivetkit-native-darwin-arm64": "0.0.0-pr.4600.20aa70b",
|
|
56
|
+
"@rivetkit/rivetkit-native-darwin-x64": "0.0.0-pr.4600.20aa70b",
|
|
57
|
+
"@rivetkit/rivetkit-native-linux-arm64-gnu": "0.0.0-pr.4600.20aa70b",
|
|
58
|
+
"@rivetkit/rivetkit-native-linux-arm64-musl": "0.0.0-pr.4600.20aa70b",
|
|
59
|
+
"@rivetkit/rivetkit-native-linux-x64-gnu": "0.0.0-pr.4600.20aa70b",
|
|
60
|
+
"@rivetkit/rivetkit-native-linux-x64-musl": "0.0.0-pr.4600.20aa70b",
|
|
61
|
+
"@rivetkit/rivetkit-native-win32-x64-msvc": "0.0.0-pr.4600.20aa70b"
|
|
62
62
|
}
|
|
63
63
|
}
|
package/wrapper.js
CHANGED
|
@@ -8,6 +8,18 @@
|
|
|
8
8
|
|
|
9
9
|
const native = require("./index");
|
|
10
10
|
|
|
11
|
+
// CloseEvent was added to Node.js in v22. Polyfill for older versions.
|
|
12
|
+
if (typeof CloseEvent === "undefined") {
|
|
13
|
+
global.CloseEvent = class CloseEvent extends Event {
|
|
14
|
+
constructor(type, init = {}) {
|
|
15
|
+
super(type);
|
|
16
|
+
this.code = init.code ?? 0;
|
|
17
|
+
this.reason = init.reason ?? "";
|
|
18
|
+
this.wasClean = init.wasClean ?? false;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
11
23
|
// Re-export protocol for consumers that need protocol types at runtime
|
|
12
24
|
let _protocol;
|
|
13
25
|
try {
|