File tree Expand file tree Collapse file tree 8 files changed +12
-11
lines changed Expand file tree Collapse file tree 8 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 35
35
"test:browser" : " aegir test --target browser" ,
36
36
"test" : " aegir test" ,
37
37
"prepublishOnly" : " aegir build" ,
38
- "lint" : " aegir lint && aegir lint-package-json" ,
38
+ "lint" : " aegir ts -p check && aegir lint-package-json && aegir lint " ,
39
39
"release" : " aegir release" ,
40
40
"release-minor" : " aegir release --type minor" ,
41
41
"release-major" : " aegir release --type major"
45
45
"mafmt" : " ^10.0.0" ,
46
46
"multiaddr" : " ^10.0.0" ,
47
47
"multiformats" : " ^9.0.0" ,
48
- "uint8arrays" : " ^2.1.3 "
48
+ "uint8arrays" : " ^3.0.0 "
49
49
},
50
50
"devDependencies" : {
51
- "aegir" : " ^33.1.0" ,
52
- "pre-commit" : " ^1.2.2"
51
+ "aegir" : " ^35.0.2" ,
52
+ "pre-commit" : " ^1.2.2" ,
53
+ "util" : " ^0.12.4"
53
54
},
54
55
"engines" : {
55
56
"node" : " >=14.0.0" ,
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const { Multiaddr } = require('multiaddr')
7
7
const mafmt = require ( 'mafmt' )
8
8
const { CID } = require ( 'multiformats/cid' )
9
9
const { URL } = require ( 'iso-url' )
10
- const uint8ArrayToString = require ( 'uint8arrays/to-string' )
10
+ const { toString : uint8ArrayToString } = require ( 'uint8arrays/to-string' )
11
11
12
12
const pathGatewayPattern = / ^ h t t p s ? : \/ \/ [ ^ / ] + \/ ( i p [ f n ] s ) \/ ( [ ^ / ? # ] + ) /
13
13
const pathPattern = / ^ \/ ( i p [ f n ] s ) \/ ( [ ^ / ? # ] + ) /
Original file line number Diff line number Diff line change 4
4
const { expect } = require ( 'aegir/utils/chai' )
5
5
const isIPFS = require ( '../src/index' )
6
6
const { CID } = require ( 'multiformats/cid' )
7
- const uint8ArrayFromString = require ( 'uint8arrays/from-string' )
7
+ const { fromString : uint8ArrayFromString } = require ( 'uint8arrays/from-string' )
8
8
9
9
describe ( 'ipfs cid' , ( ) => {
10
10
it ( 'isIPFS.cid should match a valid CID instance' , ( done ) => {
Original file line number Diff line number Diff line change 4
4
const { expect } = require ( 'aegir/utils/chai' )
5
5
const { Multiaddr } = require ( 'multiaddr' )
6
6
const isIPFS = require ( '../src/index' )
7
- const uint8ArrayFromString = require ( 'uint8arrays/from-string' )
7
+ const { fromString : uint8ArrayFromString } = require ( 'uint8arrays/from-string' )
8
8
9
9
describe ( 'ipfs multiaddr' , ( ) => {
10
10
it ( 'isIPFS.multiaddr should match a string with valid ip4 multiaddr' , ( done ) => {
Original file line number Diff line number Diff line change 3
3
4
4
const { expect } = require ( 'aegir/utils/chai' )
5
5
const isIPFS = require ( '../src/index' )
6
- const uint8ArrayFromString = require ( 'uint8arrays/from-string' )
6
+ const { fromString : uint8ArrayFromString } = require ( 'uint8arrays/from-string' )
7
7
8
8
describe ( 'ipfs multihash' , ( ) => {
9
9
it ( 'isIPFS.multihash should match a valid multihash' , ( done ) => {
Original file line number Diff line number Diff line change 3
3
4
4
const isIPFS = require ( '../src/index' )
5
5
const { expect } = require ( 'aegir/utils/chai' )
6
- const uint8ArrayFromString = require ( 'uint8arrays/from-string' )
6
+ const { fromString : uint8ArrayFromString } = require ( 'uint8arrays/from-string' )
7
7
8
8
describe ( 'ipfs path' , ( ) => {
9
9
it ( 'isIPFS.ipfsPath should match an ipfs path' , ( done ) => {
Original file line number Diff line number Diff line change 3
3
4
4
const isIPFS = require ( '../src/index' )
5
5
const { expect } = require ( 'aegir/utils/chai' )
6
- const uint8ArrayFromString = require ( 'uint8arrays/from-string' )
6
+ const { fromString : uint8ArrayFromString } = require ( 'uint8arrays/from-string' )
7
7
8
8
describe ( 'ipfs subdomain' , ( ) => {
9
9
it ( 'isIPFS.ipfsSubdomain should match a cidv1b32' , ( done ) => {
Original file line number Diff line number Diff line change 3
3
4
4
const { expect } = require ( 'aegir/utils/chai' )
5
5
const isIPFS = require ( '../src/index' )
6
- const uint8ArrayFromString = require ( 'uint8arrays/from-string' )
6
+ const { fromString : uint8ArrayFromString } = require ( 'uint8arrays/from-string' )
7
7
8
8
describe ( 'ipfs url' , ( ) => {
9
9
it ( 'isIPFS.ipfsUrl should match an ipfs url' , ( done ) => {
You can’t perform that action at this time.
0 commit comments