@rivetkit/rivetkit-napi 2.3.0 → 2.3.2
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/index.d.ts +11 -0
- package/package.json +11 -10
package/index.d.ts
CHANGED
|
@@ -187,6 +187,16 @@ export interface JsServeConfig {
|
|
|
187
187
|
serverlessValidateEndpoint: boolean
|
|
188
188
|
serverlessMaxStartPayloadBytes: number
|
|
189
189
|
}
|
|
190
|
+
export interface JsListenerConfig {
|
|
191
|
+
/** Host to bind. Defaults to `0.0.0.0` when not provided. */
|
|
192
|
+
host?: string
|
|
193
|
+
port: number
|
|
194
|
+
/**
|
|
195
|
+
* Optional static file root mounted as a fallback below the framework
|
|
196
|
+
* routes.
|
|
197
|
+
*/
|
|
198
|
+
publicDir?: string
|
|
199
|
+
}
|
|
190
200
|
export interface JsServerlessRequest {
|
|
191
201
|
method: string
|
|
192
202
|
url: string
|
|
@@ -344,6 +354,7 @@ export declare class CoreRegistry {
|
|
|
344
354
|
health(): Promise<JsRegistryRouteResponse>
|
|
345
355
|
metadata(): JsRegistryRouteResponse
|
|
346
356
|
metrics(): JsRegistryRouteResponse
|
|
357
|
+
serveListener(listener: JsListenerConfig, config: JsServeConfig): Promise<void>
|
|
347
358
|
handleServerlessRequest(req: JsServerlessRequest, onStreamEvent: (...args: any[]) => any, cancelToken: CancellationToken, config: JsServeConfig): Promise<JsServerlessResponseHead>
|
|
348
359
|
}
|
|
349
360
|
export declare class Schedule {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rivetkit/rivetkit-napi",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.2",
|
|
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",
|
|
@@ -39,19 +39,20 @@
|
|
|
39
39
|
"build": "node scripts/build.mjs",
|
|
40
40
|
"build:release": "node scripts/build.mjs --release",
|
|
41
41
|
"build:force": "node scripts/build.mjs --force",
|
|
42
|
-
"build:force:release": "node scripts/build.mjs --force --release"
|
|
42
|
+
"build:force:release": "node scripts/build.mjs --force --release",
|
|
43
|
+
"build:embed": "node scripts/build.mjs"
|
|
43
44
|
},
|
|
44
45
|
"dependencies": {
|
|
45
46
|
"@napi-rs/cli": "^2.18.4",
|
|
46
|
-
"@rivetkit/engine-envoy-protocol": "2.3.
|
|
47
|
+
"@rivetkit/engine-envoy-protocol": "2.3.2"
|
|
47
48
|
},
|
|
48
49
|
"optionalDependencies": {
|
|
49
|
-
"@rivetkit/rivetkit-napi-darwin-arm64": "2.3.
|
|
50
|
-
"@rivetkit/rivetkit-napi-darwin-x64": "2.3.
|
|
51
|
-
"@rivetkit/rivetkit-napi-linux-arm64-gnu": "2.3.
|
|
52
|
-
"@rivetkit/rivetkit-napi-linux-arm64-musl": "2.3.
|
|
53
|
-
"@rivetkit/rivetkit-napi-linux-x64-gnu": "2.3.
|
|
54
|
-
"@rivetkit/rivetkit-napi-linux-x64-musl": "2.3.
|
|
55
|
-
"@rivetkit/rivetkit-napi-win32-x64-msvc": "2.3.
|
|
50
|
+
"@rivetkit/rivetkit-napi-darwin-arm64": "2.3.2",
|
|
51
|
+
"@rivetkit/rivetkit-napi-darwin-x64": "2.3.2",
|
|
52
|
+
"@rivetkit/rivetkit-napi-linux-arm64-gnu": "2.3.2",
|
|
53
|
+
"@rivetkit/rivetkit-napi-linux-arm64-musl": "2.3.2",
|
|
54
|
+
"@rivetkit/rivetkit-napi-linux-x64-gnu": "2.3.2",
|
|
55
|
+
"@rivetkit/rivetkit-napi-linux-x64-musl": "2.3.2",
|
|
56
|
+
"@rivetkit/rivetkit-napi-win32-x64-msvc": "2.3.2"
|
|
56
57
|
}
|
|
57
58
|
}
|