diff --git a/package.json b/package.json index ea35b0145..2f89d5859 100644 --- a/package.json +++ b/package.json @@ -190,7 +190,7 @@ "@types/readable-stream": "^4.0.11", "@types/sinon": "^17.0.3", "@web-std/file": "^3.0.3", - "aegir": "^42.2.5", + "aegir": "^44.0.1", "blockstore-core": "^4.4.1", "buffer": "^6.0.3", "delay": "^6.0.0", @@ -206,7 +206,7 @@ "it-pipe": "^3.0.1", "it-tar": "^6.0.0", "it-to-buffer": "^4.0.5", - "kubo": "^0.28.0", + "kubo": "^0.29.0", "mock-ipfs-pinning-service": "^0.4.2", "nock": "^13.2.9", "p-defer": "^4.0.0", @@ -214,7 +214,7 @@ "p-retry": "^6.2.0", "pako": "^2.0.4", "readable-stream": "^4.2.0", - "sinon": "^17.0.1" + "sinon": "^18.0.0" }, "browser": { "kubo": false, diff --git a/src/index.ts b/src/index.ts index 7edc0e67e..5f391bd9c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -494,6 +494,7 @@ export function create (options: string | Multiaddr | URL | Options = {}): KuboR return createKuboRPCClient(options) } +export { create as createKuboRPCClient } export { CID } from 'multiformats/cid' export { multiaddr } from '@multiformats/multiaddr' export * from './lib/glob-source.js' diff --git a/src/lib/glob-source.ts b/src/lib/glob-source.ts index 6d56d8dd0..76329ed25 100644 --- a/src/lib/glob-source.ts +++ b/src/lib/glob-source.ts @@ -63,7 +63,7 @@ export async function * globSource (cwd: string, pattern: string, options?: Glob realpath: false, absolute: true, dot: Boolean(options.hidden), - follow: options.followSymlinks != null ? options.followSymlinks : true + follow: options.followSymlinks ?? true }) for await (const p of glob(cwd, pattern, globOptions)) { diff --git a/test/utils/mock-pinning-service.ts b/test/utils/mock-pinning-service.ts index 90369343d..6105e03bc 100644 --- a/test/utils/mock-pinning-service.ts +++ b/test/utils/mock-pinning-service.ts @@ -49,7 +49,7 @@ export class PinningService { async stop (): Promise { return new Promise((resolve, reject) => { - this.server.close((err: any) => { + this.server.close((err?: Error | undefined) => { if (err != null) { reject(err) } else {