Compare commits
3 Commits
v0.1.0-dev
...
v0.1.0-dev
Author | SHA1 | Date |
---|---|---|
semantic-release-bot | d4b58c3b91 | |
Derrick Hammer | 06a01b5b7c | |
Derrick Hammer | 6fb3186352 |
|
@ -1,3 +1,5 @@
|
|||
# [0.1.0-develop.8](https://git.lumeweb.com/LumeWeb/kernel-ipfs-client/compare/v0.1.0-develop.7...v0.1.0-develop.8) (2023-07-23)
|
||||
|
||||
# [0.1.0-develop.7](https://git.lumeweb.com/LumeWeb/kernel-ipfs-client/compare/v0.1.0-develop.6...v0.1.0-develop.7) (2023-07-23)
|
||||
|
||||
# [0.1.0-develop.6](https://git.lumeweb.com/LumeWeb/kernel-ipfs-client/compare/v0.1.0-develop.5...v0.1.0-develop.6) (2023-07-23)
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
{
|
||||
"name": "@lumeweb/kernel-ipfs-client",
|
||||
"version": "0.1.0-develop.7",
|
||||
"version": "0.1.0-develop.8",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@lumeweb/kernel-ipfs-client",
|
||||
"version": "0.1.0-develop.7",
|
||||
"version": "0.1.0-develop.8",
|
||||
"dependencies": {
|
||||
"@lumeweb/libkernel": "^0.1.0-develop.20",
|
||||
"@lumeweb/libkernel": "^0.1.0-develop.27",
|
||||
"p-defer": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
@ -2037,12 +2037,13 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@lumeweb/libkernel": {
|
||||
"version": "0.1.0-develop.20",
|
||||
"resolved": "https://registry.npmjs.org/@lumeweb/libkernel/-/libkernel-0.1.0-develop.20.tgz",
|
||||
"integrity": "sha512-z7yRk6B0P0bxPe+a4Xm5/Bl6eIfkDCB2IJhNK2Gm+o7j4RbWbizRk79+zgBFWMrYzo8bVrpBKK7nGI3iNOgT9g==",
|
||||
"version": "0.1.0-develop.27",
|
||||
"resolved": "https://registry.npmjs.org/@lumeweb/libkernel/-/libkernel-0.1.0-develop.27.tgz",
|
||||
"integrity": "sha512-XkO16wzr2k1j9CrraVrL5vm5ysY+wJGwfJf9/PAknpLGko8j8Z/TbO5h/Q43iNjYjLlwBL2cGngX8orCZBWVDA==",
|
||||
"dependencies": {
|
||||
"@lumeweb/libweb": "0.2.0-develop.26",
|
||||
"emittery": "^1.0.1"
|
||||
"@lumeweb/libweb": "0.2.0-develop.27",
|
||||
"emittery": "^1.0.1",
|
||||
"p-defer": "^4.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@lumeweb/libkernel/node_modules/emittery": {
|
||||
|
@ -2091,9 +2092,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@lumeweb/libweb": {
|
||||
"version": "0.2.0-develop.26",
|
||||
"resolved": "https://registry.npmjs.org/@lumeweb/libweb/-/libweb-0.2.0-develop.26.tgz",
|
||||
"integrity": "sha512-XRIDiqRFqlEbcwjxAfkv7UYnyTflN3Q4rki8YAd9QrLQM2vycslgPLYS53vVJVL9GPH93V5J9z2V4DPQZlOOkQ==",
|
||||
"version": "0.2.0-develop.27",
|
||||
"resolved": "https://registry.npmjs.org/@lumeweb/libweb/-/libweb-0.2.0-develop.27.tgz",
|
||||
"integrity": "sha512-obS4a6mcHJNoWXy5fCDuGAIVMee0ivK8q/q0semqoS3v0PS7t7sUmRX5ajyCwGbACXYqEdq3vU7RwzxhUkuNGg==",
|
||||
"dependencies": {
|
||||
"@lumeweb/community-portals": "^0.1.0-develop.6",
|
||||
"@lumeweb/libportal": "^0.2.0-develop.16",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@lumeweb/kernel-ipfs-client",
|
||||
"version": "0.1.0-develop.7",
|
||||
"version": "0.1.0-develop.8",
|
||||
"type": "module",
|
||||
"main": "lib/index.js",
|
||||
"repository": {
|
||||
|
@ -19,7 +19,7 @@
|
|||
"semantic-release": "semantic-release"
|
||||
},
|
||||
"dependencies": {
|
||||
"@lumeweb/libkernel": "^0.1.0-develop.20",
|
||||
"@lumeweb/libkernel": "^0.1.0-develop.27",
|
||||
"p-defer": "^4.0.0"
|
||||
},
|
||||
"files": [
|
||||
|
|
12
src/index.ts
12
src/index.ts
|
@ -1,4 +1,4 @@
|
|||
import { Client, factory } from "@lumeweb/libkernel/module";
|
||||
import { Client, factory, NetworkClient } from "@lumeweb/libkernel/module";
|
||||
import defer from "p-defer";
|
||||
import { CatOptions, LsOptions, StatOptions } from "@helia/unixfs";
|
||||
|
||||
|
@ -10,11 +10,7 @@ interface AbortableGenerator {
|
|||
export const MODULE =
|
||||
"zduTMEiWaceB5Zew41fZnC4MbJybZNWY3fZDYUXQMxbpg1C671Bv3gjES3";
|
||||
|
||||
export class IPFSClient extends Client {
|
||||
public async ready() {
|
||||
return this.callModuleReturn("ready");
|
||||
}
|
||||
|
||||
export class IPFSClient extends NetworkClient {
|
||||
public async stat(cid: string, options?: Partial<StatOptions>) {
|
||||
return this.callModuleReturn("stat", { cid, options });
|
||||
}
|
||||
|
@ -84,10 +80,6 @@ export class IPFSClient extends Client {
|
|||
},
|
||||
};
|
||||
}
|
||||
|
||||
public async register() {
|
||||
return this.callModuleReturn("register");
|
||||
}
|
||||
}
|
||||
|
||||
export const createClient = factory<IPFSClient>(IPFSClient, MODULE);
|
||||
|
|
Loading…
Reference in New Issue