jazz-napi 2.0.0-alpha.10 → 2.0.0-alpha.12
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 +7 -5
- package/package.json +5 -5
package/index.d.ts
CHANGED
|
@@ -22,18 +22,20 @@ export declare class NapiRuntime {
|
|
|
22
22
|
query(
|
|
23
23
|
queryJson: string,
|
|
24
24
|
sessionJson?: string | undefined | null,
|
|
25
|
-
|
|
25
|
+
tier?: string | undefined | null,
|
|
26
|
+
optionsJson?: string | undefined | null,
|
|
26
27
|
): Promise<any>;
|
|
27
28
|
subscribe(
|
|
28
29
|
queryJson: string,
|
|
29
30
|
onUpdate: (...args: any[]) => any,
|
|
30
31
|
sessionJson?: string | undefined | null,
|
|
31
|
-
|
|
32
|
+
tier?: string | undefined | null,
|
|
33
|
+
optionsJson?: string | undefined | null,
|
|
32
34
|
): number;
|
|
33
35
|
unsubscribe(handle: number): void;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
insertDurable(table: string, values: any, tier: string): Promise<string>;
|
|
37
|
+
updateDurable(objectId: string, values: any, tier: string): Promise<void>;
|
|
38
|
+
deleteDurable(objectId: string, tier: string): Promise<void>;
|
|
37
39
|
onSyncMessageReceived(messageJson: string): void;
|
|
38
40
|
/** Called by JS when a sync message arrives from a client (not a server). */
|
|
39
41
|
onSyncMessageReceivedFromClient(clientId: string, messageJson: string): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jazz-napi",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.12",
|
|
4
4
|
"description": "Native Node.js bindings for Jazz runtime",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
"optionalDependencies": {
|
|
36
|
-
"@garden-co/jazz-napi-darwin-arm64": "2.0.0-alpha.
|
|
37
|
-
"@garden-co/jazz-napi-darwin-x64": "2.0.0-alpha.
|
|
38
|
-
"@garden-co/jazz-napi-linux-x64-gnu": "2.0.0-alpha.
|
|
39
|
-
"@garden-co/jazz-napi-win32-x64-msvc": "2.0.0-alpha.
|
|
36
|
+
"@garden-co/jazz-napi-darwin-arm64": "2.0.0-alpha.12",
|
|
37
|
+
"@garden-co/jazz-napi-darwin-x64": "2.0.0-alpha.12",
|
|
38
|
+
"@garden-co/jazz-napi-linux-x64-gnu": "2.0.0-alpha.12",
|
|
39
|
+
"@garden-co/jazz-napi-win32-x64-msvc": "2.0.0-alpha.12"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "node scripts/build.js",
|