Skip to content

Commit c269ceb

Browse files
committed
fix: dep upgrades
1 parent 5d5fcc1 commit c269ceb

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

cid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ export default multiformats => {
320320
// delegating that to a constructor.
321321
} else if (value != null && value[cidSymbol] === true) {
322322
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
324324
return new CID(encodeCID(version, code, multihash))
325325
// Otherwise value is not a CID (or an incompatible version of it) in
326326
// which case we return `null`.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"lint": "standard",
1111
"test:cjs": "rm -rf dist && npm run build && mocha dist/cjs-node/test/test-*.cjs && npm run test:cjs:browser",
1212
"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",
1414
"test": "npm run lint && npm run test:node && npm run test:cjs",
1515
"coverage": "c8 --reporter=html mocha test/test-*.js && npx st -d coverage -p 8080"
1616
},
@@ -98,12 +98,12 @@
9898
}
9999
},
100100
"devDependencies": {
101-
"c8": "^7.2.0",
101+
"c8": "^7.3.0",
102102
"globby": "^11.0.1",
103103
"hundreds": "0.0.7",
104-
"mocha": "^8.0.1",
104+
"mocha": "^8.1.1",
105105
"polendina": "^1.0.0",
106-
"rollup": "^2.18.0",
106+
"rollup": "^2.23.0",
107107
"standard": "^14.3.4"
108108
},
109109
"standard": {
@@ -115,7 +115,7 @@
115115
"@rollup/plugin-alias": "^3.1.1",
116116
"base-x": "^3.0.8",
117117
"buffer": "^5.6.0",
118-
"cids": "^0.8.3",
118+
"cids": "^1.0.0",
119119
"varint": "^5.0.0"
120120
},
121121
"directories": {
@@ -129,4 +129,4 @@
129129
"url": "https://github.com/multiformats/js-multiformats/issues"
130130
},
131131
"homepage": "https://github.com/multiformats/js-multiformats#readme"
132-
}
132+
}

0 commit comments

Comments
 (0)