This repository was archived by the owner on Aug 24, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +29
-25
lines changed Expand file tree Collapse file tree 5 files changed +29
-25
lines changed Original file line number Diff line number Diff line change 1818 - run : npx aegir build
1919 - run : npx aegir dep-check
2020 - uses : ipfs/aegir/actions/bundle-size@master
21- name : size
2221 with :
2322 github_token : ${{ secrets.GITHUB_TOKEN }}
2423 test-node :
@@ -27,30 +26,41 @@ jobs:
2726 strategy :
2827 matrix :
2928 os : [windows-latest, ubuntu-latest, macos-latest]
30- node : [12, 14 ]
29+ node : [14, 15 ]
3130 fail-fast : true
3231 steps :
3332 - uses : actions/checkout@v2
3433 - uses : actions/setup-node@v1
3534 with :
3635 node-version : ${{ matrix.node }}
3736 - run : npm install
38- - run : npx nyc --reporter=lcov aegir test -t node -- --bail
37+ - run : npx aegir test -t node --bail --cov
3938 - uses : codecov/codecov-action@v1
4039 test-chrome :
4140 needs : check
4241 runs-on : ubuntu-latest
4342 steps :
4443 - uses : actions/checkout@v2
44+ - uses : microsoft/playwright-github-action@v1
4545 - run : npm install
46- - run : npx aegir test -t browser -t webworker --bail
46+ - run : npx aegir test -t browser -t webworker --bail --cov
47+ - uses : codecov/codecov-action@v1
4748 test-firefox :
4849 needs : check
4950 runs-on : ubuntu-latest
5051 steps :
5152 - uses : actions/checkout@v2
53+ - uses : microsoft/playwright-github-action@v1
54+ - run : npm install
55+ - run : npx aegir test -t browser -t webworker --bail -- --browser firefox
56+ test-webkit :
57+ needs : check
58+ runs-on : ubuntu-latest
59+ steps :
60+ - uses : actions/checkout@v2
61+ - uses : microsoft/playwright-github-action@v1
5262 - run : npm install
53- - run : npx aegir test -t browser -t webworker --bail -- --browsers FirefoxHeadless
63+ - run : npx aegir test -t browser -t webworker --bail -- --browser webkit
5464 test-electron-main :
5565 needs : check
5666 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -35,4 +35,5 @@ node_modules
3535
3636dist
3737docs
38- yarn.lock
38+ yarn.lock
39+ .nyc_output
Original file line number Diff line number Diff line change 3030 },
3131 "main" : " src/index.js" ,
3232 "types" : " dist/src/index.d.ts" ,
33- "typesVersions" : {
34- "*" : {
35- "src/*" : [
36- " dist/src/*" ,
37- " dist/src/*/index"
38- ],
39- "src/" : [
40- " dist/src/index"
41- ]
42- }
43- },
4433 "repository" : " github:multiformats/js-multihash" ,
4534 "dependencies" : {
46- "multibase" : " ^3.1.0 " ,
47- "uint8arrays" : " ^2.0.5 " ,
35+ "multibase" : " ^4.0.1 " ,
36+ "uint8arrays" : " ^2.1.3 " ,
4837 "varint" : " ^6.0.0"
4938 },
5039 "devDependencies" : {
51- "aegir" : " ^30.3 .0" ,
52- "ipfs-utils" : " ^5 .0.1"
40+ "aegir" : " ^31.0 .0" ,
41+ "ipfs-utils" : " ^6 .0.1"
5342 },
5443 "eslintConfig" : {
5544 "extends" : " ipfs"
5645 },
46+ "aegir" : {
47+ "build" : {
48+ "bundlesizeMax" : " 5.8kB"
49+ }
50+ },
5751 "contributors" : [
5852595379738074 ],
8175 "engines" : {
82- "node" : " >=10 .0.0" ,
76+ "node" : " >=14 .0.0" ,
8377 "npm" : " >=6.0.0"
8478 }
8579}
Original file line number Diff line number Diff line change 11/**
22 * Multihash implementation in JavaScript.
3- *
4- * @module multihash
53 */
64'use strict'
75
@@ -19,6 +17,7 @@ for (const key in names) {
1917 const name = /** @type {HashName } */ ( key )
2018 codes [ names [ name ] ] = name
2119}
20+ Object . freeze ( codes )
2221
2322/**
2423 * Convert the given multihash to a hex encoded string.
@@ -229,7 +228,7 @@ function prefix (multihash) {
229228
230229module . exports = {
231230 names,
232- codes : Object . freeze ( codes ) ,
231+ codes,
233232 toHexString,
234233 fromHexString,
235234 toB58String,
File renamed without changes.
You can’t perform that action at this time.
0 commit comments