Compare commits

..

5 Commits

Author SHA1 Message Date
semantic-release-bot fcded7350d chore(release): 0.1.0-develop.5 [skip ci]
# [0.1.0-develop.5](https://git.lumeweb.com/LumeWeb/publish-webapp/compare/v0.1.0-develop.4...v0.1.0-develop.5) (2023-09-03)

### Bug Fixes

* need to slice out the key type byte ([578d965](578d965550))
2023-09-03 03:14:11 +00:00
Derrick Hammer c825f740bd
Merge remote-tracking branch 'origin/develop' into develop 2023-09-02 23:12:46 -04:00
Derrick Hammer 578d965550
fix: need to slice out the key type byte 2023-09-02 23:12:42 -04:00
Derrick Hammer ca5c983cbb
refactor: use decodeCid 2023-09-02 23:12:27 -04:00
Derrick Hammer 01858e6579
dep: update libweb 2023-09-02 23:12:05 -04:00
4 changed files with 26 additions and 20 deletions

View File

@ -1,3 +1,10 @@
# [0.1.0-develop.5](https://git.lumeweb.com/LumeWeb/publish-webapp/compare/v0.1.0-develop.4...v0.1.0-develop.5) (2023-09-03)
### Bug Fixes
* need to slice out the key type byte ([578d965](https://git.lumeweb.com/LumeWeb/publish-webapp/commit/578d965550e3c381c9a92a2a61fee5b498353ee8))
# [0.1.0-develop.4](https://git.lumeweb.com/LumeWeb/publish-webapp/compare/v0.1.0-develop.3...v0.1.0-develop.4) (2023-09-02) # [0.1.0-develop.4](https://git.lumeweb.com/LumeWeb/publish-webapp/compare/v0.1.0-develop.3...v0.1.0-develop.4) (2023-09-02)

29
npm-shrinkwrap.json generated
View File

@ -1,14 +1,14 @@
{ {
"name": "@lumeweb/publish-webapp", "name": "@lumeweb/publish-webapp",
"version": "0.1.0-develop.4", "version": "0.1.0-develop.5",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@lumeweb/publish-webapp", "name": "@lumeweb/publish-webapp",
"version": "0.1.0-develop.4", "version": "0.1.0-develop.5",
"dependencies": { "dependencies": {
"@lumeweb/libweb": "0.2.0-develop.36", "@lumeweb/libweb": "0.2.0-develop.39",
"@scure/bip39": "^1.2.1", "@scure/bip39": "^1.2.1",
"array-from-async": "^3.0.0", "array-from-async": "^3.0.0",
"chalk": "^5.3.0", "chalk": "^5.3.0",
@ -1802,12 +1802,11 @@
} }
}, },
"node_modules/@lumeweb/libportal": { "node_modules/@lumeweb/libportal": {
"version": "0.2.0-develop.20", "version": "0.2.0-develop.21",
"resolved": "https://registry.npmjs.org/@lumeweb/libportal/-/libportal-0.2.0-develop.20.tgz", "resolved": "https://registry.npmjs.org/@lumeweb/libportal/-/libportal-0.2.0-develop.21.tgz",
"integrity": "sha512-9bjyih7fyXpkcOYSue/jcLufcXQckkp30Ptigg2qFIDJOnxiv3ymRr2aq7rvXspnmTxnaQgwND0nQ0W0YOCnGA==", "integrity": "sha512-5KbRQEDntkCoh1YITQkpUqFMzmfkaYQGQRCCn5QeM7DN2eIJMzpo4q+lZXFX/ztqueFaSZYMDrSZ4tzAPP+c6w==",
"dependencies": { "dependencies": {
"@lumeweb/libs5": "^0.1.0-develop.43", "@lumeweb/libs5": "^0.1.0-develop.44",
"@lumeweb/node-library-preset": "git+https://git.lumeweb.com/LumeWeb/node-library-preset.git",
"@noble/curves": "^1.1.0", "@noble/curves": "^1.1.0",
"@noble/hashes": "^1.3.1", "@noble/hashes": "^1.3.1",
"detect-node": "^2.1.0", "detect-node": "^2.1.0",
@ -1820,9 +1819,9 @@
} }
}, },
"node_modules/@lumeweb/libs5": { "node_modules/@lumeweb/libs5": {
"version": "0.1.0-develop.43", "version": "0.1.0-develop.44",
"resolved": "https://registry.npmjs.org/@lumeweb/libs5/-/libs5-0.1.0-develop.43.tgz", "resolved": "https://registry.npmjs.org/@lumeweb/libs5/-/libs5-0.1.0-develop.44.tgz",
"integrity": "sha512-kUGuT4kK9YVggqyMUj+pPY7okAFKxzACZTlA4BBBsgxAGIdr+iZLQwMfDlwzE4bdxndS52g1XM39Xv3K2xA/lQ==", "integrity": "sha512-BR/pII6v9i556tPBSDYUBszhFvSyQq+/Ptuopk7JIoRSqFzSsXWL0RteBi6v0qQzEffft7kOhaI1dLFOGZvWVQ==",
"dependencies": { "dependencies": {
"@noble/curves": "^1.1.0", "@noble/curves": "^1.1.0",
"@noble/hashes": "^1.3.1", "@noble/hashes": "^1.3.1",
@ -1843,12 +1842,12 @@
} }
}, },
"node_modules/@lumeweb/libweb": { "node_modules/@lumeweb/libweb": {
"version": "0.2.0-develop.36", "version": "0.2.0-develop.39",
"resolved": "https://registry.npmjs.org/@lumeweb/libweb/-/libweb-0.2.0-develop.36.tgz", "resolved": "https://registry.npmjs.org/@lumeweb/libweb/-/libweb-0.2.0-develop.39.tgz",
"integrity": "sha512-17jj7UnKDwYMBmpquVOJmLVuKlRGOUfJDD+iWYOqle8gEekA5EwBIskB3NqFL99iw8dDax/MyqQUr5kSi4GyIQ==", "integrity": "sha512-0qqBHXUb1eD5HOHhsycL3kev6osW+NNswWNovC+zpH7CtWeXfy4u+Of4uEA9qq4c80nZDB06FAQF1r03EeAwMg==",
"dependencies": { "dependencies": {
"@lumeweb/community-portals": "^0.1.0-develop.6", "@lumeweb/community-portals": "^0.1.0-develop.6",
"@lumeweb/libportal": "0.2.0-develop.20", "@lumeweb/libportal": "0.2.0-develop.21",
"@lumeweb/node-library-preset": "0.2.7", "@lumeweb/node-library-preset": "0.2.7",
"@noble/curves": "^1.1.0", "@noble/curves": "^1.1.0",
"@noble/hashes": "^1.3.1", "@noble/hashes": "^1.3.1",

View File

@ -1,6 +1,6 @@
{ {
"name": "@lumeweb/publish-webapp", "name": "@lumeweb/publish-webapp",
"version": "0.1.0-develop.4", "version": "0.1.0-develop.5",
"type": "module", "type": "module",
"main": "lib/index.js", "main": "lib/index.js",
"bin": "./lib/index.js", "bin": "./lib/index.js",
@ -21,7 +21,7 @@
"semantic-release": "semantic-release" "semantic-release": "semantic-release"
}, },
"dependencies": { "dependencies": {
"@lumeweb/libweb": "0.2.0-develop.36", "@lumeweb/libweb": "0.2.0-develop.39",
"@scure/bip39": "^1.2.1", "@scure/bip39": "^1.2.1",
"array-from-async": "^3.0.0", "array-from-async": "^3.0.0",
"chalk": "^5.3.0", "chalk": "^5.3.0",

View File

@ -176,7 +176,7 @@ node.services.p2p.once("peerConnected", peerDefer.resolve);
await peerDefer.promise; await peerDefer.promise;
{ {
const cidBytes = base58btc.decode(cid); const cidBytes = decodeCid(cid);
const key = hdKey as HDKey; const key = hdKey as HDKey;
let sre: SignedRegistryEntry; let sre: SignedRegistryEntry;
@ -196,7 +196,7 @@ await peerDefer.promise;
CID_TYPES.RESOLVER, CID_TYPES.RESOLVER,
CID_HASH_TYPES.BLAKE3, CID_HASH_TYPES.BLAKE3,
]), ]),
cidBytes, cidBytes.hash,
); );
if (!equalBytes(ret?.data ?? new Uint8Array(), newEntry)) { if (!equalBytes(ret?.data ?? new Uint8Array(), newEntry)) {
@ -215,7 +215,7 @@ await peerDefer.promise;
util.format( util.format(
"%s: %s", "%s: %s",
chalk.green("Resolver entry"), chalk.green("Resolver entry"),
encodeCid(sre.pk, 0, CID_TYPES.RESOLVER, CID_HASH_TYPES.ED25519), encodeCid(sre.pk.slice(1), 0, CID_TYPES.RESOLVER, CID_HASH_TYPES.ED25519),
), ),
); );
await node.stop(); await node.stop();