Compare commits

..

No commits in common. "v0.1.0-develop.4" and "v0.1.0-develop.3" have entirely different histories.

4 changed files with 28 additions and 129 deletions

View File

@ -1,10 +1,3 @@
# [0.1.0-develop.4](https://git.lumeweb.com/LumeWeb/kernel-s5-client/compare/v0.1.0-develop.3...v0.1.0-develop.4) (2023-11-17)
### Features
* add cat method ([5805dab](https://git.lumeweb.com/LumeWeb/kernel-s5-client/commit/5805dabe277fa2fd4f2a43228b8a1bdb6c2dcf06))
# [0.1.0-develop.3](https://git.lumeweb.com/LumeWeb/kernel-s5-client/compare/v0.1.0-develop.2...v0.1.0-develop.3) (2023-10-13)
# [0.1.0-develop.2](https://git.lumeweb.com/LumeWeb/kernel-s5-client/compare/v0.1.0-develop.1...v0.1.0-develop.2) (2023-09-03)

139
npm-shrinkwrap.json generated
View File

@ -1,14 +1,14 @@
{
"name": "@lumeweb/kernel-s5-client",
"version": "0.1.0-develop.4",
"version": "0.1.0-develop.3",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@lumeweb/kernel-s5-client",
"version": "0.1.0-develop.4",
"version": "0.1.0-develop.3",
"dependencies": {
"@lumeweb/libkernel": "0.1.0-develop.68"
"@lumeweb/libkernel": "0.1.0-develop.66"
},
"devDependencies": {
"@lumeweb/node-library-preset": "^0.2.7",
@ -1707,11 +1707,11 @@
}
},
"node_modules/@lumeweb/libkernel": {
"version": "0.1.0-develop.68",
"resolved": "https://registry.npmjs.org/@lumeweb/libkernel/-/libkernel-0.1.0-develop.68.tgz",
"integrity": "sha512-4pPKOB+KDNQUNI/uE2zCb6FaEUtctX3eAvyLEVPZQaGTq6BOuwoWjsjPdQ0uazy7fNAOFp0CUxi1aSsGMWwLKg==",
"version": "0.1.0-develop.66",
"resolved": "https://registry.npmjs.org/@lumeweb/libkernel/-/libkernel-0.1.0-develop.66.tgz",
"integrity": "sha512-7o6eNzPFcQO8F/KaxBuFQywGjgNn99ixo3FaQQ8ZGQQxcWD7x3Ra+BFpZc8Z70+60LlYGMegeuas0jhYu1uvhg==",
"dependencies": {
"@lumeweb/libweb": "0.2.0-develop.61",
"@lumeweb/libweb": "0.2.0-develop.59",
"emittery": "^1.0.1",
"p-defer": "^4.0.0"
}
@ -1728,11 +1728,11 @@
}
},
"node_modules/@lumeweb/libportal": {
"version": "0.2.0-develop.41",
"resolved": "https://registry.npmjs.org/@lumeweb/libportal/-/libportal-0.2.0-develop.41.tgz",
"integrity": "sha512-OzpeVWP3aYKhCTA4ORwbDM662l2KWPz8zW6BTd8nt0RuymGJPNxxIuWKiNCNAuAK8PBVMqkyJ93sv/1QAFCYZA==",
"version": "0.2.0-develop.39",
"resolved": "https://registry.npmjs.org/@lumeweb/libportal/-/libportal-0.2.0-develop.39.tgz",
"integrity": "sha512-T7yDdIZ78WAUABVTtE3hb3hl+6cBKzBEnGtkAa7gb9S+2/FPOo9UcmvSucqYi1a/ZB8A8xKBZ9sEja8cKyGYkA==",
"dependencies": {
"@lumeweb/libs5": "^0.1.0-develop.61",
"@lumeweb/libs5": "^0.1.0-develop.60",
"@noble/curves": "^1.1.0",
"@noble/hashes": "^1.3.1",
"detect-node": "^2.1.0",
@ -1745,13 +1745,12 @@
}
},
"node_modules/@lumeweb/libs5": {
"version": "0.1.0-develop.61",
"resolved": "https://registry.npmjs.org/@lumeweb/libs5/-/libs5-0.1.0-develop.61.tgz",
"integrity": "sha512-fFQ9PbR30dhRYrcowuO+Wjg+mzvtEnjxTIKwffn/2tgD5FcOsOKzGMIn+7rTe1RbNb4FnGEGG9vOjnScfPo3DQ==",
"version": "0.1.0-develop.60",
"resolved": "https://registry.npmjs.org/@lumeweb/libs5/-/libs5-0.1.0-develop.60.tgz",
"integrity": "sha512-gbfZAs3huJ0r21+n5UBHxBm4xSAt6DdMGLQKDTgvJc2gtiu2OYMQcecgw5vscBVPeTE6ZhtW1sX16MhT1jQ34A==",
"dependencies": {
"@noble/curves": "^1.1.0",
"@noble/hashes": "^1.3.1",
"axios": "^1.6.2",
"detect-node": "^2.1.0",
"level": "^8.0.0",
"multiformats": "^12.0.1",
@ -1760,21 +1759,21 @@
}
},
"node_modules/@lumeweb/libs5/node_modules/multiformats": {
"version": "12.1.3",
"resolved": "https://registry.npmjs.org/multiformats/-/multiformats-12.1.3.tgz",
"integrity": "sha512-eajQ/ZH7qXZQR2AgtfpmSMizQzmyYVmCql7pdhldPuYQi4atACekbJaQplk6dWyIi10jCaFnd6pqvcEFXjbaJw==",
"version": "12.1.2",
"resolved": "https://registry.npmjs.org/multiformats/-/multiformats-12.1.2.tgz",
"integrity": "sha512-6mRIsrZXyw5xNPO31IGBMmxgDXBSgCGDsBAtazkZ02ip4hMwZNrQvfxXZtytRoBSWuzSq5f9VmMnXj76fIz5FQ==",
"engines": {
"node": ">=16.0.0",
"npm": ">=7.0.0"
}
},
"node_modules/@lumeweb/libweb": {
"version": "0.2.0-develop.61",
"resolved": "https://registry.npmjs.org/@lumeweb/libweb/-/libweb-0.2.0-develop.61.tgz",
"integrity": "sha512-tu8pbA6lazkVPEBOCijCPPnFv5eJB0C/xEOQP3ULcPqAVuAM0ktsAExSkPZTucK10qvKaYLybkHocmjTPOeGqA==",
"version": "0.2.0-develop.59",
"resolved": "https://registry.npmjs.org/@lumeweb/libweb/-/libweb-0.2.0-develop.59.tgz",
"integrity": "sha512-KCAjiY6emeUCZEmASBpwwlLUjIY8BdmQNmSp1+iOp4gq+8p0+aR8fpA5fKEIUTfFggx7Cw8E+exID+ahs5nKFg==",
"dependencies": {
"@lumeweb/community-portals": "^0.1.0-develop.6",
"@lumeweb/libportal": "0.2.0-develop.41",
"@lumeweb/libportal": "0.2.0-develop.39",
"@lumeweb/node-library-preset": "0.2.7",
"@noble/ciphers": "^0.3.0",
"@noble/curves": "^1.1.0",
@ -3836,11 +3835,6 @@
"integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==",
"peer": true
},
"node_modules/asynckit": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
},
"node_modules/available-typed-arrays": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz",
@ -3853,16 +3847,6 @@
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/axios": {
"version": "1.6.2",
"resolved": "https://registry.npmjs.org/axios/-/axios-1.6.2.tgz",
"integrity": "sha512-7i24Ri4pmDRfJTR7LDBhsOTtcm+9kjX5WiY1X3wIisx6G9So3pfMkEiU7emUBe46oceVImccTEM3k6C5dbVW8A==",
"dependencies": {
"follow-redirects": "^1.15.0",
"form-data": "^4.0.0",
"proxy-from-env": "^1.1.0"
}
},
"node_modules/babel-jest": {
"version": "29.6.4",
"resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.6.4.tgz",
@ -4751,17 +4735,6 @@
"lodash._baseuniq": "~4.6.0"
}
},
"node_modules/combined-stream": {
"version": "1.0.8",
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
"integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
"dependencies": {
"delayed-stream": "~1.0.0"
},
"engines": {
"node": ">= 0.8"
}
},
"node_modules/commander": {
"version": "9.5.0",
"resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz",
@ -5729,14 +5702,6 @@
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/delayed-stream": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
"integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
"engines": {
"node": ">=0.4.0"
}
},
"node_modules/delegates": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
@ -6998,25 +6963,6 @@
"integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==",
"peer": true
},
"node_modules/follow-redirects": {
"version": "1.15.3",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.3.tgz",
"integrity": "sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==",
"funding": [
{
"type": "individual",
"url": "https://github.com/sponsors/RubenVerborgh"
}
],
"engines": {
"node": ">=4.0"
},
"peerDependenciesMeta": {
"debug": {
"optional": true
}
}
},
"node_modules/for-each": {
"version": "0.3.3",
"resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz",
@ -7052,19 +6998,6 @@
"url": "https://github.com/sponsors/isaacs"
}
},
"node_modules/form-data": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",
"integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
"dependencies": {
"asynckit": "^0.4.0",
"combined-stream": "^1.0.8",
"mime-types": "^2.1.12"
},
"engines": {
"node": ">= 6"
}
},
"node_modules/formdata-polyfill": {
"version": "4.0.10",
"resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz",
@ -10403,25 +10336,6 @@
"node": ">=10.0.0"
}
},
"node_modules/mime-db": {
"version": "1.52.0",
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
"engines": {
"node": ">= 0.6"
}
},
"node_modules/mime-types": {
"version": "2.1.35",
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
"dependencies": {
"mime-db": "1.52.0"
},
"engines": {
"node": ">= 0.6"
}
},
"node_modules/mimic-fn": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",
@ -10817,9 +10731,9 @@
}
},
"node_modules/node-gyp-build": {
"version": "4.7.0",
"resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.7.0.tgz",
"integrity": "sha512-PbZERfeFdrHQOOXiAKOY0VPbykZy90ndPKk0d+CFDegTKmWp1VgOTz2xACVbr1BjCWxrQp68CXtvNsveFhqDJg==",
"version": "4.6.1",
"resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.6.1.tgz",
"integrity": "sha512-24vnklJmyRS8ViBNI8KbtK/r/DmXQMRiOMXTNz2nrTnAYUwjmEEbnnpB/+kt+yWRv73bPsSPRFddrcIbAxSiMQ==",
"bin": {
"node-gyp-build": "bin.js",
"node-gyp-build-optional": "optional.js",
@ -14967,11 +14881,6 @@
"resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz",
"integrity": "sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA=="
},
"node_modules/proxy-from-env": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
"integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg=="
},
"node_modules/punycode": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz",

View File

@ -1,6 +1,6 @@
{
"name": "@lumeweb/kernel-s5-client",
"version": "0.1.0-develop.4",
"version": "0.1.0-develop.3",
"type": "module",
"main": "lib/index.js",
"repository": {
@ -18,7 +18,7 @@
"semantic-release": "semantic-release"
},
"dependencies": {
"@lumeweb/libkernel": "0.1.0-develop.68"
"@lumeweb/libkernel": "0.1.0-develop.66"
},
"publishConfig": {
"access": "public"

View File

@ -1,7 +1,8 @@
import { factory, NetworkClient } from "@lumeweb/libkernel/module";
import type { SignedRegistryEntry } from "@lumeweb/libs5";
export const MODULE = "zrjLjKVByzt233rfcjWvTQXrMfGFa11oBLydPaUk7gwnC2d";
export const MODULE =
"zrjLjKVByzt233rfcjWvTQXrMfGFa11oBLydPaUk7gwnC2d";
export interface RegistryEntry {
key: Uint8Array;
@ -46,10 +47,6 @@ export class S5Client extends NetworkClient {
end();
};
}
public async cat(cid: string) {
return this.callModuleReturn("cat", { cid });
}
}
export const createClient = factory<S5Client>(S5Client, MODULE);