File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -320,7 +320,7 @@ export default multiformats => {
320
320
// delegating that to a constructor.
321
321
} else if ( value != null && value [ cidSymbol ] === true ) {
322
322
const { version, multihash } = value
323
- const code = value . code || multiformats . get ( value . codec ) . code
323
+ const code = value . code /* c8 ignore next */ || multiformats . get ( value . codec ) . code
324
324
return new CID ( encodeCID ( version , code , multihash ) )
325
325
// Otherwise value is not a CID (or an incompatible version of it) in
326
326
// which case we return `null`.
Original file line number Diff line number Diff line change 10
10
"lint" : " standard" ,
11
11
"test:cjs" : " rm -rf dist && npm run build && mocha dist/cjs-node/test/test-*.cjs && npm run test:cjs:browser" ,
12
12
"test:node" : " hundreds mocha test/test-*.js" ,
13
- "test:cjs:browser" : " polendina --cleanup dist/cjs-browser/test/test-*.js" ,
13
+ "test:cjs:browser" : " polendina --cleanup --timeout=120 dist/cjs-browser/test/test-*.js" ,
14
14
"test" : " npm run lint && npm run test:node && npm run test:cjs" ,
15
15
"coverage" : " c8 --reporter=html mocha test/test-*.js && npx st -d coverage -p 8080"
16
16
},
98
98
}
99
99
},
100
100
"devDependencies" : {
101
- "c8" : " ^7.2 .0" ,
101
+ "c8" : " ^7.3 .0" ,
102
102
"globby" : " ^11.0.1" ,
103
103
"hundreds" : " 0.0.7" ,
104
- "mocha" : " ^8.0 .1" ,
104
+ "mocha" : " ^8.1 .1" ,
105
105
"polendina" : " ^1.0.0" ,
106
- "rollup" : " ^2.18 .0" ,
106
+ "rollup" : " ^2.23 .0" ,
107
107
"standard" : " ^14.3.4"
108
108
},
109
109
"standard" : {
115
115
"@rollup/plugin-alias" : " ^3.1.1" ,
116
116
"base-x" : " ^3.0.8" ,
117
117
"buffer" : " ^5.6.0" ,
118
- "cids" : " ^0.8.3 " ,
118
+ "cids" : " ^1.0.0 " ,
119
119
"varint" : " ^5.0.0"
120
120
},
121
121
"directories" : {
129
129
"url" : " https://github.com/multiformats/js-multiformats/issues"
130
130
},
131
131
"homepage" : " https://github.com/multiformats/js-multiformats#readme"
132
- }
132
+ }
You can’t perform that action at this time.
0 commit comments