Skip to content

Commit bd08efe

Browse files
chore: update uint8arrays in every package (ipfs#3774)
Co-authored-by: Alex Potsides <[email protected]>
1 parent 1806bb2 commit bd08efe

File tree

125 files changed

+163
-163
lines changed

Some content is hidden

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

125 files changed

+163
-163
lines changed

packages/interface-ipfs-core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"it-pushable": "^1.4.2",
6767
"it-tar": "^4.0.0",
6868
"it-to-buffer": "^2.0.0",
69-
"libp2p-crypto": "^0.19.6",
69+
"libp2p-crypto": "^0.19.7",
7070
"libp2p-websockets": "^0.16.1",
7171
"multiaddr": "^10.0.0",
7272
"multiformats": "^9.4.1",
@@ -78,7 +78,7 @@
7878
"peer-id": "^0.15.1",
7979
"readable-stream": "^3.4.0",
8080
"sinon": "^11.1.1",
81-
"uint8arrays": "^2.1.6"
81+
"uint8arrays": "^3.0.0"
8282
},
8383
"contributors": [
8484
"Alan Shaw <[email protected]>",

packages/interface-ipfs-core/src/add-all.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const { supportsFileReader } = require('ipfs-utils/src/supports')
1313
const globSource = require('ipfs-utils/src/files/glob-source')
1414
const { isNode } = require('ipfs-utils/src/env')
1515
const { getDescribe, getIt, expect } = require('./utils/mocha')
16-
const uint8ArrayFromString = require('uint8arrays/from-string')
16+
const { fromString: uint8ArrayFromString } = require('uint8arrays/from-string')
1717
const bufferStream = require('it-buffer-stream')
1818
const raw = require('multiformats/codecs/raw')
1919
const dagPb = require('@ipld/dag-pb')

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const { isNode } = require('ipfs-utils/src/env')
99
const { getDescribe, getIt, expect } = require('./utils/mocha')
1010
const echoUrl = (/** @type {string} */ text) => `${process.env.ECHO_SERVER}/download?data=${encodeURIComponent(text)}`
1111
const redirectUrl = (/** @type {string} */ url) => `${process.env.ECHO_SERVER}/redirect?to=${encodeURI(url)}`
12-
const uint8ArrayFromString = require('uint8arrays/from-string')
12+
const { fromString: uint8ArrayFromString } = require('uint8arrays/from-string')
1313
const last = require('it-last')
1414
const raw = require('multiformats/codecs/raw')
1515
const dagPb = require('@ipld/dag-pb')

packages/interface-ipfs-core/src/bitswap/transfer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const { isWebWorker } = require('ipfs-utils/src/env')
66
const { randomBytes } = require('iso-random-stream')
77
const concat = require('it-concat')
88
const { nanoid } = require('nanoid')
9-
const uint8ArrayFromString = require('uint8arrays/from-string')
9+
const { fromString: uint8ArrayFromString } = require('uint8arrays/from-string')
1010
const pmap = require('p-map')
1111
const getIpfsOptions = require('../utils/ipfs-options-websockets-filter-all')
1212

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-env mocha */
22
'use strict'
33

4-
const uint8ArrayFromString = require('uint8arrays/from-string')
4+
const { fromString: uint8ArrayFromString } = require('uint8arrays/from-string')
55
const { identity } = require('multiformats/hashes/identity')
66
const { CID } = require('multiformats/cid')
77
const { getDescribe, getIt, expect } = require('../utils/mocha')

packages/interface-ipfs-core/src/block/put.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-env mocha */
22
'use strict'
33

4-
const uint8ArrayFromString = require('uint8arrays/from-string')
4+
const { fromString: uint8ArrayFromString } = require('uint8arrays/from-string')
55
const { base58btc } = require('multiformats/bases/base58')
66
const { CID } = require('multiformats/cid')
77
const { getDescribe, getIt, expect } = require('../utils/mocha')

packages/interface-ipfs-core/src/block/rm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-env mocha */
22
'use strict'
33

4-
const uint8ArrayFromString = require('uint8arrays/from-string')
4+
const { fromString: uint8ArrayFromString } = require('uint8arrays/from-string')
55
const { getDescribe, getIt, expect } = require('../utils/mocha')
66
const { nanoid } = require('nanoid')
77
const all = require('it-all')

packages/interface-ipfs-core/src/block/stat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-env mocha */
22
'use strict'
33

4-
const uint8ArrayFromString = require('uint8arrays/from-string')
4+
const { fromString: uint8ArrayFromString } = require('uint8arrays/from-string')
55
const { CID } = require('multiformats/cid')
66
const { getDescribe, getIt, expect } = require('../utils/mocha')
77
const testTimeout = require('../utils/test-timeout')

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* eslint-env mocha */
22
'use strict'
33

4-
const uint8ArrayFromString = require('uint8arrays/from-string')
5-
const uint8ArrayToString = require('uint8arrays/to-string')
6-
const uint8ArrayConcat = require('uint8arrays/concat')
4+
const { fromString: uint8ArrayFromString } = require('uint8arrays/from-string')
5+
const { toString: uint8ArrayToString } = require('uint8arrays/to-string')
6+
const { concat: uint8ArrayConcat } = require('uint8arrays/concat')
77
const { fixtures } = require('./utils')
88
const { CID } = require('multiformats/cid')
99
const all = require('it-all')

packages/interface-ipfs-core/src/config/set.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-env mocha */
22
'use strict'
33

4-
const uint8ArrayFromString = require('uint8arrays/from-string')
4+
const { fromString: uint8ArrayFromString } = require('uint8arrays/from-string')
55
const { getDescribe, getIt, expect } = require('../utils/mocha')
66

77
/**

0 commit comments

Comments
 (0)