Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 8d63c7c

Browse files
committed
chore: fix all compiler errors for ipfs-core-utils and ipfs-core
1 parent 0ee2d5b commit 8d63c7c

File tree

230 files changed

+4074
-4307
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

230 files changed

+4074
-4307
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ node_modules
1919
dist
2020
build
2121
bundle.js
22+
tsconfig-types.aegir.json
2223

2324
# Deployment files
2425
.npmrc

examples/browser-ipns-publish/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"ipfs": "^0.54.3",
1717
"ipfs-http-client": "^49.0.3",
1818
"ipfs-utils": "^6.0.1",
19-
"ipns": "^0.8.0",
19+
"ipns": "^0.10.0",
2020
"it-last": "^1.0.4",
2121
"p-retry": "^4.2.0",
2222
"uint8arrays": "^2.1.3"

examples/traverse-ipld-graphs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"cids": "^1.1.5",
1717
"ipfs": "^0.54.3",
1818
"ipld-block": "^0.11.0",
19-
"ipld-dag-pb": "^0.21.0",
19+
"ipld-dag-pb": "^0.22.0",
2020
"ipld-git": "^0.6.1",
2121
"ipld-ethereum": "^5.0.1",
2222
"multihashing-async": "^2.1.2"

packages/interface-ipfs-core/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,20 @@
4343
"chai-as-promised": "^7.1.1",
4444
"chai-subset": "^1.6.0",
4545
"cids": "^1.1.5",
46-
"delay": "^4.4.0",
46+
"delay": "^5.0.0",
4747
"dirty-chai": "^2.0.1",
4848
"err-code": "^3.0.1",
49-
"ipfs-unixfs": "^3.0.1",
50-
"ipfs-unixfs-importer": "^6.0.1",
49+
"ipfs-unixfs": "https://gitpkg.now.sh/ipfs/js-ipfs-unixfs/packages/ipfs-unixfs?fix/declare-interface-types-in-d-ts",
50+
"ipfs-unixfs-importer": "https://gitpkg.now.sh/ipfs/js-ipfs-unixfs/packages/ipfs-unixfs-importer?fix/declare-interface-types-in-d-ts",
5151
"ipfs-utils": "^6.0.1",
5252
"ipld-block": "^0.11.0",
53-
"ipld-dag-cbor": "^0.17.0",
54-
"ipld-dag-pb": "^0.21.0",
55-
"ipns": "^0.8.0",
53+
"ipld-dag-cbor": "^0.18.0",
54+
"ipld-dag-pb": "^0.22.0",
55+
"ipns": "^0.10.0",
5656
"is-ipfs": "^4.0.0",
5757
"iso-random-stream": "^1.1.1",
5858
"it-all": "^1.0.4",
59-
"it-buffer-stream": "^1.0.5",
59+
"it-buffer-stream": "^2.0.0",
6060
"it-concat": "^1.0.1",
6161
"it-drain": "^1.0.3",
6262
"it-first": "^1.0.4",

packages/interface-ipfs-core/src/cat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const all = require('it-all')
1010
const drain = require('it-drain')
1111
const { getDescribe, getIt, expect } = require('./utils/mocha')
1212
const testTimeout = require('./utils/test-timeout')
13-
const importer = require('ipfs-unixfs-importer')
13+
const { importer } = require('ipfs-unixfs-importer')
1414

1515
/** @typedef { import("ipfsd-ctl/src/factory") } Factory */
1616
/**

packages/interface-ipfs-core/src/dag/get.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ const uint8ArrayFromString = require('uint8arrays/from-string')
55
const dagPB = require('ipld-dag-pb')
66
const DAGNode = dagPB.DAGNode
77
const dagCBOR = require('ipld-dag-cbor')
8-
const importer = require('ipfs-unixfs-importer')
9-
const Unixfs = require('ipfs-unixfs')
8+
const { importer } = require('ipfs-unixfs-importer')
9+
const { UnixFS } = require('ipfs-unixfs')
1010
const all = require('it-all')
1111
const CID = require('cids')
1212
const { getDescribe, getIt, expect } = require('../utils/mocha')
@@ -193,7 +193,7 @@ module.exports = (common, options) => {
193193
const cidv0 = cidv1.toV0()
194194

195195
const output = await ipfs.dag.get(cidv0)
196-
expect(Unixfs.unmarshal(output.value.Data).data).to.eql(input)
196+
expect(UnixFS.unmarshal(output.value.Data).data).to.eql(input)
197197
})
198198

199199
it('should be able to get part of a dag-cbor node', async () => {

packages/interface-ipfs-core/src/get.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const last = require('it-last')
1212
const map = require('it-map')
1313
const { getDescribe, getIt, expect } = require('./utils/mocha')
1414
const testTimeout = require('./utils/test-timeout')
15-
const importer = require('ipfs-unixfs-importer')
15+
const { importer } = require('ipfs-unixfs-importer')
1616

1717
/** @typedef { import("ipfsd-ctl/src/factory") } Factory */
1818
/**

packages/interface-ipfs-core/src/object/get.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const dagPB = require('ipld-dag-pb')
55
const DAGNode = dagPB.DAGNode
66
const { nanoid } = require('nanoid')
77
const { getDescribe, getIt, expect } = require('../utils/mocha')
8-
const UnixFs = require('ipfs-unixfs')
8+
const { UnixFS } = require('ipfs-unixfs')
99
const randomBytes = require('iso-random-stream/src/random')
1010
const { asDAGLink } = require('./utils')
1111
const testTimeout = require('../utils/test-timeout')
@@ -147,7 +147,7 @@ module.exports = (common, options) => {
147147
})
148148

149149
const node = await ipfs.object.get(result.cid)
150-
const meta = UnixFs.unmarshal(node.Data)
150+
const meta = UnixFS.unmarshal(node.Data)
151151

152152
expect(meta.fileSize()).to.equal(data.length)
153153
})

packages/interface-ipfs-core/src/refs-local.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
const { fixtures } = require('./utils')
55
const { getDescribe, getIt, expect } = require('./utils/mocha')
66
const all = require('it-all')
7-
const importer = require('ipfs-unixfs-importer')
7+
const { importer } = require('ipfs-unixfs-importer')
88
const drain = require('it-drain')
99
const testTimeout = require('./utils/test-timeout')
1010
const CID = require('cids')

packages/interface-ipfs-core/src/refs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const dagPB = require('ipld-dag-pb')
1212
const DAGNode = dagPB.DAGNode
1313
const DAGLink = dagPB.DAGLink
1414

15-
const UnixFS = require('ipfs-unixfs')
15+
const { UnixFS } = require('ipfs-unixfs')
1616

1717
/** @typedef { import("ipfsd-ctl/src/factory") } Factory */
1818
/**

0 commit comments

Comments
 (0)