@cipherstash/protect-ffi 0.24.0 → 0.26.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/dist/wasm/protect_ffi.d.ts +4 -3
- package/dist/wasm/protect_ffi_bg.js +20 -16
- package/dist/wasm/protect_ffi_bg.wasm +0 -0
- package/dist/wasm/protect_ffi_bg.wasm.d.ts +10 -10
- package/dist/wasm/protect_ffi_inline.js +1 -1
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +17 -11
- package/package.json +16 -8
|
@@ -77,7 +77,8 @@ export function isEncrypted(raw: any): boolean;
|
|
|
77
77
|
/**
|
|
78
78
|
* Construct a [`WasmClient`].
|
|
79
79
|
*
|
|
80
|
-
* `strategy` must be an `@cipherstash/auth`-shaped object — anything
|
|
81
|
-
* a `getToken(): Promise<{ token: string, ... }>` method works.
|
|
80
|
+
* `opts.strategy` must be an `@cipherstash/auth`-shaped object — anything
|
|
81
|
+
* with a `getToken(): Promise<{ token: string, ... }>` method works. It is
|
|
82
|
+
* required: wasm has no env / filesystem fallback path.
|
|
82
83
|
*/
|
|
83
|
-
export function newClient(
|
|
84
|
+
export function newClient(opts: any): Promise<WasmClient>;
|
|
@@ -237,14 +237,14 @@ export function isEncrypted(raw) {
|
|
|
237
237
|
/**
|
|
238
238
|
* Construct a [`WasmClient`].
|
|
239
239
|
*
|
|
240
|
-
* `strategy` must be an `@cipherstash/auth`-shaped object — anything
|
|
241
|
-
* a `getToken(): Promise<{ token: string, ... }>` method works.
|
|
242
|
-
*
|
|
240
|
+
* `opts.strategy` must be an `@cipherstash/auth`-shaped object — anything
|
|
241
|
+
* with a `getToken(): Promise<{ token: string, ... }>` method works. It is
|
|
242
|
+
* required: wasm has no env / filesystem fallback path.
|
|
243
243
|
* @param {any} opts
|
|
244
244
|
* @returns {Promise<WasmClient>}
|
|
245
245
|
*/
|
|
246
|
-
export function newClient(
|
|
247
|
-
const ret = wasm.newClient(
|
|
246
|
+
export function newClient(opts) {
|
|
247
|
+
const ret = wasm.newClient(opts);
|
|
248
248
|
return ret;
|
|
249
249
|
}
|
|
250
250
|
export function __wbg_Error_83742b46f01ce22d(arg0, arg1) {
|
|
@@ -292,6 +292,10 @@ export function __wbg___wbindgen_is_function_3c846841762788c1(arg0) {
|
|
|
292
292
|
const ret = typeof(arg0) === 'function';
|
|
293
293
|
return ret;
|
|
294
294
|
}
|
|
295
|
+
export function __wbg___wbindgen_is_null_0b605fc6b167c56f(arg0) {
|
|
296
|
+
const ret = arg0 === null;
|
|
297
|
+
return ret;
|
|
298
|
+
}
|
|
295
299
|
export function __wbg___wbindgen_is_object_781bc9f159099513(arg0) {
|
|
296
300
|
const val = arg0;
|
|
297
301
|
const ret = typeof(val) === 'object' && val !== null;
|
|
@@ -566,7 +570,7 @@ export function __wbg_new_typed_aaaeaf29cf802876(arg0, arg1) {
|
|
|
566
570
|
const a = state0.a;
|
|
567
571
|
state0.a = 0;
|
|
568
572
|
try {
|
|
569
|
-
return
|
|
573
|
+
return wasm_bindgen__convert__closures_____invoke__h1201fec59d36da32(a, state0.b, arg0, arg1);
|
|
570
574
|
} finally {
|
|
571
575
|
state0.a = a;
|
|
572
576
|
}
|
|
@@ -738,13 +742,13 @@ export function __wbg_wasmclient_new(arg0) {
|
|
|
738
742
|
return ret;
|
|
739
743
|
}
|
|
740
744
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
741
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
742
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
745
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 495, function: Function { arguments: [], shim_idx: 496, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
746
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h379cc5f9ba73967b, wasm_bindgen__convert__closures_____invoke__hc060a2339985e908);
|
|
743
747
|
return ret;
|
|
744
748
|
}
|
|
745
749
|
export function __wbindgen_cast_0000000000000002(arg0, arg1) {
|
|
746
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
747
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
750
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 543, function: Function { arguments: [Externref], shim_idx: 544, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
751
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h18e55ed08acd10aa, wasm_bindgen__convert__closures_____invoke__h425499e9ab8a95b4);
|
|
748
752
|
return ret;
|
|
749
753
|
}
|
|
750
754
|
export function __wbindgen_cast_0000000000000003(arg0) {
|
|
@@ -781,19 +785,19 @@ export function __wbindgen_init_externref_table() {
|
|
|
781
785
|
table.set(offset + 2, true);
|
|
782
786
|
table.set(offset + 3, false);
|
|
783
787
|
}
|
|
784
|
-
function
|
|
785
|
-
wasm.
|
|
788
|
+
function wasm_bindgen__convert__closures_____invoke__hc060a2339985e908(arg0, arg1) {
|
|
789
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hc060a2339985e908(arg0, arg1);
|
|
786
790
|
}
|
|
787
791
|
|
|
788
|
-
function
|
|
789
|
-
const ret = wasm.
|
|
792
|
+
function wasm_bindgen__convert__closures_____invoke__h425499e9ab8a95b4(arg0, arg1, arg2) {
|
|
793
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h425499e9ab8a95b4(arg0, arg1, arg2);
|
|
790
794
|
if (ret[1]) {
|
|
791
795
|
throw takeFromExternrefTable0(ret[0]);
|
|
792
796
|
}
|
|
793
797
|
}
|
|
794
798
|
|
|
795
|
-
function
|
|
796
|
-
wasm.
|
|
799
|
+
function wasm_bindgen__convert__closures_____invoke__h1201fec59d36da32(arg0, arg1, arg2, arg3) {
|
|
800
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h1201fec59d36da32(arg0, arg1, arg2, arg3);
|
|
797
801
|
}
|
|
798
802
|
|
|
799
803
|
|
|
Binary file
|
|
@@ -11,25 +11,25 @@ export const encryptQuery: (a: number, b: any) => any;
|
|
|
11
11
|
export const encryptQueryBulk: (a: number, b: any) => any;
|
|
12
12
|
export const init: () => void;
|
|
13
13
|
export const isEncrypted: (a: any) => number;
|
|
14
|
-
export const newClient: (a: any
|
|
14
|
+
export const newClient: (a: any) => any;
|
|
15
15
|
export const __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
16
16
|
export const intounderlyingsource_cancel: (a: number) => void;
|
|
17
17
|
export const intounderlyingsource_pull: (a: number, b: any) => any;
|
|
18
|
-
export const __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
|
|
19
18
|
export const __wbg_intounderlyingsink_free: (a: number, b: number) => void;
|
|
19
|
+
export const intounderlyingsink_abort: (a: number, b: any) => any;
|
|
20
|
+
export const intounderlyingsink_close: (a: number) => any;
|
|
21
|
+
export const intounderlyingsink_write: (a: number, b: any) => any;
|
|
22
|
+
export const __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
|
|
20
23
|
export const intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
|
|
21
24
|
export const intounderlyingbytesource_cancel: (a: number) => void;
|
|
22
25
|
export const intounderlyingbytesource_pull: (a: number, b: any) => any;
|
|
23
26
|
export const intounderlyingbytesource_start: (a: number, b: any) => void;
|
|
24
27
|
export const intounderlyingbytesource_type: (a: number) => number;
|
|
25
|
-
export const
|
|
26
|
-
export const
|
|
27
|
-
export const
|
|
28
|
-
export const
|
|
29
|
-
export const
|
|
30
|
-
export const wasm_bindgen__convert__closures_____invoke__ha3a1920c81ee10b3: (a: number, b: number, c: any) => [number, number];
|
|
31
|
-
export const wasm_bindgen__convert__closures_____invoke__h6ea7f09dc3c0802a: (a: number, b: number, c: any, d: any) => void;
|
|
32
|
-
export const wasm_bindgen__convert__closures_____invoke__hcdda2fef5e359b18: (a: number, b: number) => void;
|
|
28
|
+
export const wasm_bindgen__closure__destroy__h379cc5f9ba73967b: (a: number, b: number) => void;
|
|
29
|
+
export const wasm_bindgen__closure__destroy__h18e55ed08acd10aa: (a: number, b: number) => void;
|
|
30
|
+
export const wasm_bindgen__convert__closures_____invoke__h425499e9ab8a95b4: (a: number, b: number, c: any) => [number, number];
|
|
31
|
+
export const wasm_bindgen__convert__closures_____invoke__h1201fec59d36da32: (a: number, b: number, c: any, d: any) => void;
|
|
32
|
+
export const wasm_bindgen__convert__closures_____invoke__hc060a2339985e908: (a: number, b: number) => void;
|
|
33
33
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
34
34
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
35
35
|
export const __wbindgen_exn_store: (a: number) => void;
|