@inclavare-containers/tng 2.8.0 → 2.9.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/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "collaborators": [
5
5
  "Kun Lai <laikun@linux.alibaba.com>"
6
6
  ],
7
- "version": "2.8.0",
7
+ "version": "2.9.0",
8
8
  "license": "Apache-2.0",
9
9
  "repository": {
10
10
  "type": "git",
package/tng_wasm.d.ts CHANGED
@@ -49,8 +49,8 @@ export function task_worker_entry_point(ptr: number): void;
49
49
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
50
50
 
51
51
  export interface InitOutput {
52
- readonly init_tng: () => void;
53
52
  readonly fetch: (a: number, b: number, c: any, d: any) => any;
53
+ readonly init_tng: () => void;
54
54
  readonly task_worker_entry_point: (a: number) => [number, number];
55
55
  readonly ring_core_0_17_14__bn_mul_mont: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
56
56
  readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
@@ -68,9 +68,9 @@ export interface InitOutput {
68
68
  readonly intounderlyingsource_cancel: (a: number) => void;
69
69
  readonly wasm_bindgen__convert__closures_____invoke__ha59ba16ef22dfc70: (a: number, b: number, c: any) => [number, number];
70
70
  readonly wasm_bindgen__convert__closures_____invoke__h559a482ac3702f86: (a: number, b: number, c: any, d: any) => void;
71
- readonly wasm_bindgen__convert__closures_____invoke__hb033ae5249c410c1: (a: number, b: number, c: any) => void;
71
+ readonly wasm_bindgen__convert__closures_____invoke__h665106e7067bf987: (a: number, b: number, c: any) => void;
72
72
  readonly wasm_bindgen__convert__closures_____invoke__h860fbeea0fd5b879: (a: number, b: number, c: any) => void;
73
- readonly wasm_bindgen__convert__closures_____invoke__h0ce3070689c7d82f: (a: number, b: number) => void;
73
+ readonly wasm_bindgen__convert__closures_____invoke__h359c204a99f94cc7: (a: number, b: number) => void;
74
74
  readonly memory: WebAssembly.Memory;
75
75
  readonly __wbindgen_malloc: (a: number, b: number) => number;
76
76
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
package/tng_wasm.js CHANGED
@@ -309,6 +309,10 @@ function __wbg_get_imports(memory) {
309
309
  const ret = arg0.crypto;
310
310
  return ret;
311
311
  },
312
+ __wbg_crypto_29a13c24f21f7c72: function() { return handleError(function (arg0) {
313
+ const ret = arg0.crypto;
314
+ return ret;
315
+ }, arguments); },
312
316
  __wbg_data_0965368f2b7f680a: function(arg0) {
313
317
  const ret = arg0.data;
314
318
  return ret;
@@ -342,6 +346,10 @@ function __wbg_get_imports(memory) {
342
346
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
343
347
  }
344
348
  },
349
+ __wbg_exportKey_31e8893b69d9dc95: function() { return handleError(function (arg0, arg1, arg2, arg3) {
350
+ const ret = arg0.exportKey(getStringFromWasm0(arg1, arg2), arg3);
351
+ return ret;
352
+ }, arguments); },
345
353
  __wbg_fetch_4e11d9098857f1ae: function(arg0) {
346
354
  const ret = fetch(arg0);
347
355
  return ret;
@@ -358,6 +366,13 @@ function __wbg_get_imports(memory) {
358
366
  const ret = arg0.fetch(arg1, arg2);
359
367
  return ret;
360
368
  },
369
+ __wbg_generateKey_bd3b6d19d7d161d8: function() { return handleError(function (arg0, arg1, arg2, arg3) {
370
+ const ret = arg0.generateKey(arg1, arg2 !== 0, arg3);
371
+ return ret;
372
+ }, arguments); },
373
+ __wbg_getRandomValues_783a29df2108885b: function() { return handleError(function (arg0) {
374
+ globalThis.crypto.getRandomValues(arg0);
375
+ }, arguments); },
361
376
  __wbg_getRandomValues_d3f1739dc62f980a: function() { return handleError(function (arg0, arg1) {
362
377
  arg0.getRandomValues(arg1);
363
378
  }, arguments); },
@@ -426,6 +441,16 @@ function __wbg_get_imports(memory) {
426
441
  const ret = result;
427
442
  return ret;
428
443
  },
444
+ __wbg_instanceof_CryptoKey_fe4356820192d6c1: function(arg0) {
445
+ let result;
446
+ try {
447
+ result = arg0 instanceof CryptoKey;
448
+ } catch (_) {
449
+ result = false;
450
+ }
451
+ const ret = result;
452
+ return ret;
453
+ },
429
454
  __wbg_instanceof_Error_1fdac9f13a8181ba: function(arg0) {
430
455
  let result;
431
456
  try {
@@ -568,6 +593,10 @@ function __wbg_get_imports(memory) {
568
593
  const ret = new Error();
569
594
  return ret;
570
595
  },
596
+ __wbg_new_32b398fb48b6d94a: function() {
597
+ const ret = new Array();
598
+ return ret;
599
+ },
571
600
  __wbg_new_4339b2a2675a03e3: function() { return handleError(function () {
572
601
  const ret = new AbortController();
573
602
  return ret;
@@ -701,6 +730,10 @@ function __wbg_get_imports(memory) {
701
730
  __wbg_prototypesetcall_4770620bbe4688a0: function(arg0, arg1, arg2) {
702
731
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
703
732
  },
733
+ __wbg_push_d2ae3af0c1217ae6: function(arg0, arg1) {
734
+ const ret = arg0.push(arg1);
735
+ return ret;
736
+ },
704
737
  __wbg_queueMicrotask_0ab5b2d2393e99b9: function(arg0) {
705
738
  const ret = arg0.queueMicrotask;
706
739
  return ret;
@@ -830,6 +863,10 @@ function __wbg_get_imports(memory) {
830
863
  const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
831
864
  return ret;
832
865
  },
866
+ __wbg_subtle_ed1dfcaede24af07: function(arg0) {
867
+ const ret = arg0.subtle;
868
+ return ret;
869
+ },
833
870
  __wbg_text_d3a29f7525a132c3: function() { return handleError(function (arg0) {
834
871
  const ret = arg0.text();
835
872
  return ret;
@@ -893,23 +930,23 @@ function __wbg_get_imports(memory) {
893
930
  return ret;
894
931
  },
895
932
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
896
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 4929, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
897
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hb033ae5249c410c1);
933
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 5539, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
934
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h665106e7067bf987);
898
935
  return ret;
899
936
  },
900
937
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
901
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 5072, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
938
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 5682, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
902
939
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__ha59ba16ef22dfc70);
903
940
  return ret;
904
941
  },
905
942
  __wbindgen_cast_0000000000000003: function(arg0, arg1) {
906
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 5092, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
943
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 5702, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
907
944
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h860fbeea0fd5b879);
908
945
  return ret;
909
946
  },
910
947
  __wbindgen_cast_0000000000000004: function(arg0, arg1) {
911
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 2086, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
912
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0ce3070689c7d82f);
948
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 2243, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
949
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h359c204a99f94cc7);
913
950
  return ret;
914
951
  },
915
952
  __wbindgen_cast_0000000000000005: function(arg0) {
@@ -967,7 +1004,7 @@ function __wbg_get_imports(memory) {
967
1004
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
968
1005
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
969
1006
  },
970
- memory: memory || new WebAssembly.Memory({initial:48,maximum:16384,shared:true}),
1007
+ memory: memory || new WebAssembly.Memory({initial:50,maximum:16384,shared:true}),
971
1008
  };
972
1009
  return {
973
1010
  __proto__: null,
@@ -975,12 +1012,12 @@ function __wbg_get_imports(memory) {
975
1012
  };
976
1013
  }
977
1014
 
978
- function wasm_bindgen__convert__closures_____invoke__h0ce3070689c7d82f(arg0, arg1) {
979
- wasm.wasm_bindgen__convert__closures_____invoke__h0ce3070689c7d82f(arg0, arg1);
1015
+ function wasm_bindgen__convert__closures_____invoke__h359c204a99f94cc7(arg0, arg1) {
1016
+ wasm.wasm_bindgen__convert__closures_____invoke__h359c204a99f94cc7(arg0, arg1);
980
1017
  }
981
1018
 
982
- function wasm_bindgen__convert__closures_____invoke__hb033ae5249c410c1(arg0, arg1, arg2) {
983
- wasm.wasm_bindgen__convert__closures_____invoke__hb033ae5249c410c1(arg0, arg1, arg2);
1019
+ function wasm_bindgen__convert__closures_____invoke__h665106e7067bf987(arg0, arg1, arg2) {
1020
+ wasm.wasm_bindgen__convert__closures_____invoke__h665106e7067bf987(arg0, arg1, arg2);
984
1021
  }
985
1022
 
986
1023
  function wasm_bindgen__convert__closures_____invoke__h860fbeea0fd5b879(arg0, arg1, arg2) {
package/tng_wasm_bg.wasm CHANGED
Binary file