Skip to content

Commit 2422b09

Browse files
mikealhacdias
authored andcommitted
feat: reduce bundle size by 1/3 (#49)
License: MIT Signed-off-by: Henrique Dias <hacdias@gmail.com>
1 parent 2ed95e2 commit 2422b09

File tree

12 files changed

+500
-1465
lines changed

12 files changed

+500
-1465
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Updating the lookup table is done with a script. The source of truth is the
6363
[multicodec default table](https://github.com/multiformats/multicodec/blob/master/table.csv).
6464
Update the table with running:
6565

66-
curl -X GET https://raw.githubusercontent.com/multiformats/multicodec/master/table.csv | ./tools/update-table.py
66+
node ./tools/update-table.js
6767

6868
## Contribute
6969

example.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ const multicodec = require('multicodec')
44

55
const prefixedProtobuf = multicodec.addPrefix('protobuf', Buffer.from('some protobuf code'))
66

7+
// eslint-disable-next-line no-console
78
console.log(prefixedProtobuf)
89
// => prefixedProtobuf 0x50...

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,11 @@
4343
"varint": "^5.0.0"
4444
},
4545
"devDependencies": {
46-
"aegir": "^18.2.2",
46+
"aegir": "^20.2.0",
47+
"bent": "^7.0.1",
4748
"chai": "^4.2.0",
48-
"pre-push": "~0.1.1",
49-
"dirty-chai": "^2.0.1"
49+
"dirty-chai": "^2.0.1",
50+
"pre-push": "~0.1.1"
5051
},
5152
"contributors": [
5253
"David Dias <daviddias.p@gmail.com>",

src/base-table.js

Lines changed: 0 additions & 446 deletions
This file was deleted.

0 commit comments

Comments
 (0)