@synonymdev/pubky 0.10.0 → 0.11.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/README.md +3 -3
- package/index.cjs +17 -17
- package/index.js +18 -18
- package/package.json +2 -2
- package/pubky_bg.wasm +0 -0
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Pubky
|
|
2
2
|
|
|
3
|
-
JS/WASM SDK for [Pubky](https://github.com/pubky/pubky-
|
|
3
|
+
JS/WASM SDK for [Pubky](https://github.com/pubky/pubky-homeserver).
|
|
4
4
|
|
|
5
5
|
Works in browsers and Node 20+.
|
|
6
6
|
|
|
@@ -56,7 +56,7 @@ const addr = `${userPk}/pub/my-cool-app/hello.json`;
|
|
|
56
56
|
const json = await pubky.publicStorage.getJson(addr); // -> { hello: "world" }
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
-
Find here [**ready-to-run examples**](https://github.com/pubky/pubky-
|
|
59
|
+
Find here [**ready-to-run examples**](https://github.com/pubky/pubky-homeserver/tree/main/examples).
|
|
60
60
|
|
|
61
61
|
### Key formats (display vs transport)
|
|
62
62
|
|
|
@@ -417,7 +417,7 @@ Path rules:
|
|
|
417
417
|
|
|
418
418
|
**Convention:** put your app’s public data under a domain-like folder in `/pub`, e.g. `/pub/my-new-app/`.
|
|
419
419
|
|
|
420
|
-
See [Private Storage](https://github.com/pubky/pubky-
|
|
420
|
+
See [Private Storage](https://github.com/pubky/pubky-homeserver/blob/main/docs/PRIVATE_STORAGE.md) for `/priv/` access and events.
|
|
421
421
|
|
|
422
422
|
---
|
|
423
423
|
|
package/index.cjs
CHANGED
|
@@ -4654,7 +4654,7 @@ function __wbg_get_imports() {
|
|
|
4654
4654
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
4655
4655
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
4656
4656
|
},
|
|
4657
|
-
|
|
4657
|
+
__wbg___pubkyGrantDelegatedSign_5cb443da0321d209: function(arg0, arg1, arg2, arg3) {
|
|
4658
4658
|
let deferred0_0;
|
|
4659
4659
|
let deferred0_1;
|
|
4660
4660
|
let deferred1_0;
|
|
@@ -4671,7 +4671,7 @@ function __wbg_get_imports() {
|
|
|
4671
4671
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
4672
4672
|
}
|
|
4673
4673
|
},
|
|
4674
|
-
|
|
4674
|
+
__wbg___pubkyGrantDeleteDelegatedKey_0f4d62b84caef0fa: function(arg0, arg1) {
|
|
4675
4675
|
let deferred0_0;
|
|
4676
4676
|
let deferred0_1;
|
|
4677
4677
|
try {
|
|
@@ -4683,7 +4683,7 @@ function __wbg_get_imports() {
|
|
|
4683
4683
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
4684
4684
|
}
|
|
4685
4685
|
},
|
|
4686
|
-
|
|
4686
|
+
__wbg___pubkyGrantEnsureDelegatedKey_8e535d8d53f48fdc: function(arg0, arg1) {
|
|
4687
4687
|
let v0;
|
|
4688
4688
|
if (arg0 !== 0) {
|
|
4689
4689
|
v0 = getStringFromWasm0(arg0, arg1).slice();
|
|
@@ -4692,7 +4692,7 @@ function __wbg_get_imports() {
|
|
|
4692
4692
|
const ret = __pubkyGrantEnsureDelegatedKey(v0);
|
|
4693
4693
|
return ret;
|
|
4694
4694
|
},
|
|
4695
|
-
|
|
4695
|
+
__wbg___pubkyGrantLoadDelegatedPublicKey_501aaeb6b721477e: function(arg0, arg1) {
|
|
4696
4696
|
let deferred0_0;
|
|
4697
4697
|
let deferred0_1;
|
|
4698
4698
|
try {
|
|
@@ -4704,7 +4704,7 @@ function __wbg_get_imports() {
|
|
|
4704
4704
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
4705
4705
|
}
|
|
4706
4706
|
},
|
|
4707
|
-
|
|
4707
|
+
__wbg___pubkySessionStoreDelete_9809101d930e5c86: function(arg0, arg1) {
|
|
4708
4708
|
let deferred0_0;
|
|
4709
4709
|
let deferred0_1;
|
|
4710
4710
|
try {
|
|
@@ -4716,7 +4716,7 @@ function __wbg_get_imports() {
|
|
|
4716
4716
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
4717
4717
|
}
|
|
4718
4718
|
},
|
|
4719
|
-
|
|
4719
|
+
__wbg___pubkySessionStoreGet_c67e79fe9c058d05: function(arg0, arg1) {
|
|
4720
4720
|
let deferred0_0;
|
|
4721
4721
|
let deferred0_1;
|
|
4722
4722
|
try {
|
|
@@ -4903,7 +4903,7 @@ function __wbg_get_imports() {
|
|
|
4903
4903
|
const ret = arg0.fetch(arg1);
|
|
4904
4904
|
return ret;
|
|
4905
4905
|
},
|
|
4906
|
-
|
|
4906
|
+
__wbg_fetch_7888dbbb5aebe24d: function(arg0) {
|
|
4907
4907
|
const ret = fetch(arg0);
|
|
4908
4908
|
return ret;
|
|
4909
4909
|
},
|
|
@@ -5335,17 +5335,17 @@ function __wbg_get_imports() {
|
|
|
5335
5335
|
console.warn(arg0, arg1, arg2, arg3);
|
|
5336
5336
|
},
|
|
5337
5337
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
5338
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
5338
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 130, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
5339
5339
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_77cee878d4ea2fd9___convert__closures_____invoke___wasm_bindgen_77cee878d4ea2fd9___JsValue__core_9b3796e30d99ddb7___result__Result_____wasm_bindgen_77cee878d4ea2fd9___JsError___true_);
|
|
5340
5340
|
return ret;
|
|
5341
5341
|
},
|
|
5342
5342
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
5343
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
5343
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 266, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5344
5344
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_77cee878d4ea2fd9___convert__closures_____invoke___wasm_bindgen_77cee878d4ea2fd9___JsValue______true_);
|
|
5345
5345
|
return ret;
|
|
5346
5346
|
},
|
|
5347
5347
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
5348
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
5348
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 264, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5349
5349
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_77cee878d4ea2fd9___convert__closures_____invoke_______true_);
|
|
5350
5350
|
return ret;
|
|
5351
5351
|
},
|
|
@@ -5408,13 +5408,13 @@ function __wbg_get_imports() {
|
|
|
5408
5408
|
return {
|
|
5409
5409
|
__proto__: null,
|
|
5410
5410
|
"./pubky_bg.js": import0,
|
|
5411
|
-
"./snippets/pubky-wasm-
|
|
5412
|
-
"./snippets/pubky-wasm-
|
|
5413
|
-
"./snippets/pubky-wasm-
|
|
5414
|
-
"./snippets/pubky-wasm-
|
|
5415
|
-
"./snippets/pubky-wasm-
|
|
5416
|
-
"./snippets/pubky-wasm-
|
|
5417
|
-
"./snippets/pubky-wasm-
|
|
5411
|
+
"./snippets/pubky-wasm-aeccd1286880adbb/inline1.js": import1,
|
|
5412
|
+
"./snippets/pubky-wasm-aeccd1286880adbb/inline0.js": import2,
|
|
5413
|
+
"./snippets/pubky-wasm-aeccd1286880adbb/inline0.js": import3,
|
|
5414
|
+
"./snippets/pubky-wasm-aeccd1286880adbb/inline0.js": import4,
|
|
5415
|
+
"./snippets/pubky-wasm-aeccd1286880adbb/inline0.js": import5,
|
|
5416
|
+
"./snippets/pubky-wasm-aeccd1286880adbb/inline0.js": import6,
|
|
5417
|
+
"./snippets/pubky-wasm-aeccd1286880adbb/inline1.js": import7,
|
|
5418
5418
|
};
|
|
5419
5419
|
}
|
|
5420
5420
|
|