@synonymdev/pubky 0.13.0 → 0.14.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/index.cjs +43 -34
- package/index.js +44 -35
- package/package.json +1 -1
- package/pubky_bg.wasm +0 -0
package/index.cjs
CHANGED
|
@@ -4821,7 +4821,7 @@ function __wbg_get_imports() {
|
|
|
4821
4821
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
4822
4822
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
4823
4823
|
},
|
|
4824
|
-
|
|
4824
|
+
__wbg___pubkyGrantDelegatedSign_75d50e1487a4c01e: function(arg0, arg1, arg2, arg3) {
|
|
4825
4825
|
let deferred0_0;
|
|
4826
4826
|
let deferred0_1;
|
|
4827
4827
|
let deferred1_0;
|
|
@@ -4838,7 +4838,7 @@ function __wbg_get_imports() {
|
|
|
4838
4838
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
4839
4839
|
}
|
|
4840
4840
|
},
|
|
4841
|
-
|
|
4841
|
+
__wbg___pubkyGrantDeleteDelegatedKey_8c61ee224046056d: function(arg0, arg1) {
|
|
4842
4842
|
let deferred0_0;
|
|
4843
4843
|
let deferred0_1;
|
|
4844
4844
|
try {
|
|
@@ -4850,7 +4850,7 @@ function __wbg_get_imports() {
|
|
|
4850
4850
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
4851
4851
|
}
|
|
4852
4852
|
},
|
|
4853
|
-
|
|
4853
|
+
__wbg___pubkyGrantEnsureDelegatedKey_70e2f9e5fbabf7e4: function(arg0, arg1) {
|
|
4854
4854
|
let v0;
|
|
4855
4855
|
if (arg0 !== 0) {
|
|
4856
4856
|
v0 = getStringFromWasm0(arg0, arg1);
|
|
@@ -4859,7 +4859,7 @@ function __wbg_get_imports() {
|
|
|
4859
4859
|
const ret = __pubkyGrantEnsureDelegatedKey(v0);
|
|
4860
4860
|
return ret;
|
|
4861
4861
|
},
|
|
4862
|
-
|
|
4862
|
+
__wbg___pubkyGrantLoadDelegatedPublicKey_5fed290b4e324487: function(arg0, arg1) {
|
|
4863
4863
|
let deferred0_0;
|
|
4864
4864
|
let deferred0_1;
|
|
4865
4865
|
try {
|
|
@@ -4871,7 +4871,7 @@ function __wbg_get_imports() {
|
|
|
4871
4871
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
4872
4872
|
}
|
|
4873
4873
|
},
|
|
4874
|
-
|
|
4874
|
+
__wbg___pubkySessionStoreDelete_c4feadf1aabc11f4: function(arg0, arg1) {
|
|
4875
4875
|
let deferred0_0;
|
|
4876
4876
|
let deferred0_1;
|
|
4877
4877
|
try {
|
|
@@ -4883,7 +4883,7 @@ function __wbg_get_imports() {
|
|
|
4883
4883
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
4884
4884
|
}
|
|
4885
4885
|
},
|
|
4886
|
-
|
|
4886
|
+
__wbg___pubkySessionStoreGet_faa5b9fdbff7a8b0: function(arg0, arg1) {
|
|
4887
4887
|
let deferred0_0;
|
|
4888
4888
|
let deferred0_1;
|
|
4889
4889
|
try {
|
|
@@ -5023,7 +5023,7 @@ function __wbg_get_imports() {
|
|
|
5023
5023
|
const ret = arg0.catch(arg1);
|
|
5024
5024
|
return ret;
|
|
5025
5025
|
},
|
|
5026
|
-
|
|
5026
|
+
__wbg_clearTimeout_1daad5c6ee4fcd3b: function(arg0) {
|
|
5027
5027
|
const ret = clearTimeout(arg0);
|
|
5028
5028
|
return ret;
|
|
5029
5029
|
},
|
|
@@ -5062,11 +5062,7 @@ function __wbg_get_imports() {
|
|
|
5062
5062
|
const ret = Event.__wrap(arg0);
|
|
5063
5063
|
return ret;
|
|
5064
5064
|
},
|
|
5065
|
-
|
|
5066
|
-
const ret = fetch(arg0);
|
|
5067
|
-
return ret;
|
|
5068
|
-
},
|
|
5069
|
-
__wbg_fetch_6eb1b0b731234c3e: function(arg0) {
|
|
5065
|
+
__wbg_fetch_7a37768ab67c5bd8: function(arg0) {
|
|
5070
5066
|
const ret = fetch(arg0);
|
|
5071
5067
|
return ret;
|
|
5072
5068
|
},
|
|
@@ -5074,6 +5070,10 @@ function __wbg_get_imports() {
|
|
|
5074
5070
|
const ret = arg0.fetch(arg1);
|
|
5075
5071
|
return ret;
|
|
5076
5072
|
},
|
|
5073
|
+
__wbg_fetch_bed2d90618c78f90: function(arg0) {
|
|
5074
|
+
const ret = fetch(arg0);
|
|
5075
|
+
return ret;
|
|
5076
|
+
},
|
|
5077
5077
|
__wbg_from_a39669ce566077da: function(arg0) {
|
|
5078
5078
|
const ret = Array.from(arg0);
|
|
5079
5079
|
return ret;
|
|
@@ -5265,7 +5265,7 @@ function __wbg_get_imports() {
|
|
|
5265
5265
|
const a = state0.a;
|
|
5266
5266
|
state0.a = 0;
|
|
5267
5267
|
try {
|
|
5268
|
-
return
|
|
5268
|
+
return wasm_bindgen_ce198afa7cd4a644___convert__closures_____invoke___js_sys_9e06d9a37a23efa4___Function_fn_wasm_bindgen_ce198afa7cd4a644___JsValue_____wasm_bindgen_ce198afa7cd4a644___sys__Undefined___js_sys_9e06d9a37a23efa4___Function_fn_wasm_bindgen_ce198afa7cd4a644___JsValue_____wasm_bindgen_ce198afa7cd4a644___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
5269
5269
|
} finally {
|
|
5270
5270
|
state0.a = a;
|
|
5271
5271
|
}
|
|
@@ -5367,7 +5367,7 @@ function __wbg_get_imports() {
|
|
|
5367
5367
|
const ret = Session.__wrap(arg0);
|
|
5368
5368
|
return ret;
|
|
5369
5369
|
},
|
|
5370
|
-
|
|
5370
|
+
__wbg_setTimeout_b4a9096784635514: function(arg0, arg1) {
|
|
5371
5371
|
const ret = setTimeout(arg0, arg1);
|
|
5372
5372
|
return ret;
|
|
5373
5373
|
},
|
|
@@ -5418,6 +5418,12 @@ function __wbg_get_imports() {
|
|
|
5418
5418
|
__wbg_set_name_6e2a5da46a9ae1e7: function(arg0, arg1, arg2) {
|
|
5419
5419
|
arg0.name = getStringFromWasm0(arg1, arg2);
|
|
5420
5420
|
},
|
|
5421
|
+
__wbg_set_referrer_13cf56bbccbb2ceb: function(arg0, arg1, arg2) {
|
|
5422
|
+
arg0.referrer = getStringFromWasm0(arg1, arg2);
|
|
5423
|
+
},
|
|
5424
|
+
__wbg_set_referrer_policy_dac1caa6e937479a: function(arg0, arg1) {
|
|
5425
|
+
arg0.referrerPolicy = __wbindgen_enum_ReferrerPolicy[arg1];
|
|
5426
|
+
},
|
|
5421
5427
|
__wbg_set_signal_f4b32f40f19786f4: function(arg0, arg1) {
|
|
5422
5428
|
arg0.signal = arg1;
|
|
5423
5429
|
},
|
|
@@ -5503,17 +5509,17 @@ function __wbg_get_imports() {
|
|
|
5503
5509
|
},
|
|
5504
5510
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
5505
5511
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 133, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
5506
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5512
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_ce198afa7cd4a644___convert__closures_____invoke___wasm_bindgen_ce198afa7cd4a644___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_ce198afa7cd4a644___JsError___true_);
|
|
5507
5513
|
return ret;
|
|
5508
5514
|
},
|
|
5509
5515
|
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
5510
5516
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 275, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5511
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5517
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_ce198afa7cd4a644___convert__closures_____invoke___wasm_bindgen_ce198afa7cd4a644___JsValue______true_);
|
|
5512
5518
|
return ret;
|
|
5513
5519
|
},
|
|
5514
5520
|
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
5515
5521
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 273, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5516
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5522
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_ce198afa7cd4a644___convert__closures_____invoke_______true_);
|
|
5517
5523
|
return ret;
|
|
5518
5524
|
},
|
|
5519
5525
|
__wbindgen_generic_0000000000000004: function(arg0) {
|
|
@@ -5551,14 +5557,14 @@ function __wbg_get_imports() {
|
|
|
5551
5557
|
__wbindgen_generic_000000000000000a: function(arg0, arg1) {
|
|
5552
5558
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1);
|
|
5553
5559
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
5554
|
-
// Cast intrinsic for `Vector(RustStruct { name: "GrantInfo", unique_crate_identifier: "pubky-wasm-
|
|
5560
|
+
// Cast intrinsic for `Vector(RustStruct { name: "GrantInfo", unique_crate_identifier: "pubky-wasm-77c580e5b10ee397" }) -> Externref`.
|
|
5555
5561
|
const ret = v0;
|
|
5556
5562
|
return ret;
|
|
5557
5563
|
},
|
|
5558
5564
|
__wbindgen_generic_000000000000000b: function(arg0, arg1) {
|
|
5559
5565
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1);
|
|
5560
5566
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
5561
|
-
// Cast intrinsic for `Vector(RustStruct { name: "StoredSessionInfo", unique_crate_identifier: "pubky-wasm-
|
|
5567
|
+
// Cast intrinsic for `Vector(RustStruct { name: "StoredSessionInfo", unique_crate_identifier: "pubky-wasm-77c580e5b10ee397" }) -> Externref`.
|
|
5562
5568
|
const ret = v0;
|
|
5563
5569
|
return ret;
|
|
5564
5570
|
},
|
|
@@ -5575,33 +5581,33 @@ function __wbg_get_imports() {
|
|
|
5575
5581
|
return {
|
|
5576
5582
|
__proto__: null,
|
|
5577
5583
|
"./pubky_bg.js": import0,
|
|
5578
|
-
"./snippets/pubky-wasm-
|
|
5579
|
-
"./snippets/pubky-wasm-
|
|
5580
|
-
"./snippets/pubky-wasm-
|
|
5581
|
-
"./snippets/pubky-wasm-
|
|
5582
|
-
"./snippets/pubky-wasm-
|
|
5583
|
-
"./snippets/pubky-wasm-
|
|
5584
|
-
"./snippets/pubky-wasm-
|
|
5584
|
+
"./snippets/pubky-wasm-77c580e5b10ee397/inline1.js": import1,
|
|
5585
|
+
"./snippets/pubky-wasm-77c580e5b10ee397/inline0.js": import2,
|
|
5586
|
+
"./snippets/pubky-wasm-77c580e5b10ee397/inline0.js": import3,
|
|
5587
|
+
"./snippets/pubky-wasm-77c580e5b10ee397/inline0.js": import4,
|
|
5588
|
+
"./snippets/pubky-wasm-77c580e5b10ee397/inline0.js": import5,
|
|
5589
|
+
"./snippets/pubky-wasm-77c580e5b10ee397/inline0.js": import6,
|
|
5590
|
+
"./snippets/pubky-wasm-77c580e5b10ee397/inline1.js": import7,
|
|
5585
5591
|
};
|
|
5586
5592
|
}
|
|
5587
5593
|
|
|
5588
|
-
function
|
|
5589
|
-
wasm.
|
|
5594
|
+
function wasm_bindgen_ce198afa7cd4a644___convert__closures_____invoke_______true_(arg0, arg1) {
|
|
5595
|
+
wasm.wasm_bindgen_ce198afa7cd4a644___convert__closures_____invoke_______true_(arg0, arg1);
|
|
5590
5596
|
}
|
|
5591
5597
|
|
|
5592
|
-
function
|
|
5593
|
-
wasm.
|
|
5598
|
+
function wasm_bindgen_ce198afa7cd4a644___convert__closures_____invoke___wasm_bindgen_ce198afa7cd4a644___JsValue______true_(arg0, arg1, arg2) {
|
|
5599
|
+
wasm.wasm_bindgen_ce198afa7cd4a644___convert__closures_____invoke___wasm_bindgen_ce198afa7cd4a644___JsValue______true_(arg0, arg1, arg2);
|
|
5594
5600
|
}
|
|
5595
5601
|
|
|
5596
|
-
function
|
|
5597
|
-
const ret = wasm.
|
|
5602
|
+
function wasm_bindgen_ce198afa7cd4a644___convert__closures_____invoke___wasm_bindgen_ce198afa7cd4a644___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_ce198afa7cd4a644___JsError___true_(arg0, arg1, arg2) {
|
|
5603
|
+
const ret = wasm.wasm_bindgen_ce198afa7cd4a644___convert__closures_____invoke___wasm_bindgen_ce198afa7cd4a644___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_ce198afa7cd4a644___JsError___true_(arg0, arg1, arg2);
|
|
5598
5604
|
if (ret[1]) {
|
|
5599
5605
|
throw takeFromExternrefTable0(ret[0]);
|
|
5600
5606
|
}
|
|
5601
5607
|
}
|
|
5602
5608
|
|
|
5603
|
-
function
|
|
5604
|
-
wasm.
|
|
5609
|
+
function wasm_bindgen_ce198afa7cd4a644___convert__closures_____invoke___js_sys_9e06d9a37a23efa4___Function_fn_wasm_bindgen_ce198afa7cd4a644___JsValue_____wasm_bindgen_ce198afa7cd4a644___sys__Undefined___js_sys_9e06d9a37a23efa4___Function_fn_wasm_bindgen_ce198afa7cd4a644___JsValue_____wasm_bindgen_ce198afa7cd4a644___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
|
|
5610
|
+
wasm.wasm_bindgen_ce198afa7cd4a644___convert__closures_____invoke___js_sys_9e06d9a37a23efa4___Function_fn_wasm_bindgen_ce198afa7cd4a644___JsValue_____wasm_bindgen_ce198afa7cd4a644___sys__Undefined___js_sys_9e06d9a37a23efa4___Function_fn_wasm_bindgen_ce198afa7cd4a644___JsValue_____wasm_bindgen_ce198afa7cd4a644___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
|
|
5605
5611
|
}
|
|
5606
5612
|
|
|
5607
5613
|
|
|
@@ -5611,6 +5617,9 @@ const __wbindgen_enum_Level = ["error", "warn", "info", "debug", "trace"];
|
|
|
5611
5617
|
const __wbindgen_enum_ReadableStreamType = ["bytes"];
|
|
5612
5618
|
|
|
5613
5619
|
|
|
5620
|
+
const __wbindgen_enum_ReferrerPolicy = ["", "no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "unsafe-url", "same-origin", "strict-origin", "strict-origin-when-cross-origin"];
|
|
5621
|
+
|
|
5622
|
+
|
|
5614
5623
|
const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
|
|
5615
5624
|
|
|
5616
5625
|
|