@moss-dev/moss-wasm 0.17.0 → 0.18.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/moss_wasm.d.ts +5 -2
- package/moss_wasm.js +13 -9
- package/moss_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/moss_wasm.d.ts
CHANGED
|
@@ -90,7 +90,10 @@ export class ProjectKeyAuthenticator {
|
|
|
90
90
|
free(): void;
|
|
91
91
|
[Symbol.dispose](): void;
|
|
92
92
|
getAuthHeader(): Promise<any>;
|
|
93
|
-
|
|
93
|
+
/**
|
|
94
|
+
* Drops the cached token when `rejected`, the header a refused request sent, carries it.
|
|
95
|
+
*/
|
|
96
|
+
invalidate(rejected: string): Promise<any>;
|
|
94
97
|
constructor(project_id: string, project_key: string);
|
|
95
98
|
}
|
|
96
99
|
|
|
@@ -192,7 +195,7 @@ export interface InitOutput {
|
|
|
192
195
|
readonly openSealedModel: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
193
196
|
readonly poolAndNormalize: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
194
197
|
readonly projectkeyauthenticator_getAuthHeader: (a: number) => any;
|
|
195
|
-
readonly projectkeyauthenticator_invalidate: (a: number) => any;
|
|
198
|
+
readonly projectkeyauthenticator_invalidate: (a: number, b: number, c: number) => any;
|
|
196
199
|
readonly projectkeyauthenticator_new: (a: number, b: number, c: number, d: number) => number;
|
|
197
200
|
readonly sdk_version: () => [number, number];
|
|
198
201
|
readonly sealedModelDecryptParams: (a: any, b: number, c: number, d: number) => [number, number, number];
|
package/moss_wasm.js
CHANGED
|
@@ -548,10 +548,14 @@ export class ProjectKeyAuthenticator {
|
|
|
548
548
|
return ret;
|
|
549
549
|
}
|
|
550
550
|
/**
|
|
551
|
+
* Drops the cached token when `rejected`, the header a refused request sent, carries it.
|
|
552
|
+
* @param {string} rejected
|
|
551
553
|
* @returns {Promise<any>}
|
|
552
554
|
*/
|
|
553
|
-
invalidate() {
|
|
554
|
-
const
|
|
555
|
+
invalidate(rejected) {
|
|
556
|
+
const ptr0 = passStringToWasm0(rejected, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
557
|
+
const len0 = WASM_VECTOR_LEN;
|
|
558
|
+
const ret = wasm.projectkeyauthenticator_invalidate(this.__wbg_ptr, ptr0, len0);
|
|
555
559
|
return ret;
|
|
556
560
|
}
|
|
557
561
|
/**
|
|
@@ -921,6 +925,10 @@ function __wbg_get_imports() {
|
|
|
921
925
|
const ret = Object.entries(arg0);
|
|
922
926
|
return ret;
|
|
923
927
|
},
|
|
928
|
+
__wbg_fetch_5a3c2ce892fcedbd: function() { return handleError(function (arg0, arg1, arg2) {
|
|
929
|
+
const ret = fetch(getStringFromWasm0(arg0, arg1), arg2);
|
|
930
|
+
return ret;
|
|
931
|
+
}, arguments); },
|
|
924
932
|
__wbg_fetch_9dad4fe911207b37: function(arg0) {
|
|
925
933
|
const ret = fetch(arg0);
|
|
926
934
|
return ret;
|
|
@@ -929,10 +937,6 @@ function __wbg_get_imports() {
|
|
|
929
937
|
const ret = arg0.fetch(arg1);
|
|
930
938
|
return ret;
|
|
931
939
|
},
|
|
932
|
-
__wbg_fetch_e166fd0eb785670a: function() { return handleError(function (arg0, arg1, arg2) {
|
|
933
|
-
const ret = fetch(getStringFromWasm0(arg0, arg1), arg2);
|
|
934
|
-
return ret;
|
|
935
|
-
}, arguments); },
|
|
936
940
|
__wbg_fill_5663f5c647107cce: function(arg0, arg1, arg2, arg3) {
|
|
937
941
|
const ret = arg0.fill(arg1, arg2 >>> 0, arg3 >>> 0);
|
|
938
942
|
return ret;
|
|
@@ -1186,7 +1190,7 @@ function __wbg_get_imports() {
|
|
|
1186
1190
|
__wbg_setItem_364a11cf21db9039: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1187
1191
|
arg0.setItem(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1188
1192
|
}, arguments); },
|
|
1189
|
-
|
|
1193
|
+
__wbg_setTimeout_178fd64c2be7ab78: function(arg0, arg1) {
|
|
1190
1194
|
const ret = setTimeout(arg0, arg1);
|
|
1191
1195
|
return ret;
|
|
1192
1196
|
},
|
|
@@ -1285,12 +1289,12 @@ function __wbg_get_imports() {
|
|
|
1285
1289
|
return ret;
|
|
1286
1290
|
},
|
|
1287
1291
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1288
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1292
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 153, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1289
1293
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_79e945b5d148b8ef___convert__closures_____invoke___wasm_bindgen_79e945b5d148b8ef___JsValue__core_608f92abc48d28da___result__Result_____wasm_bindgen_79e945b5d148b8ef___JsError___true_);
|
|
1290
1294
|
return ret;
|
|
1291
1295
|
},
|
|
1292
1296
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1293
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1297
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 48, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1294
1298
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_79e945b5d148b8ef___convert__closures_____invoke_______true_);
|
|
1295
1299
|
return ret;
|
|
1296
1300
|
},
|
package/moss_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED