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