Skip to content

Commit 5349850

Browse files
committed
added raw codec
1 parent 014eec0 commit 5349850

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ function parseJSON(bytes, callback) {
1414
}
1515

1616
const ipldLoaders = {
17+
"raw"(value, callback) {
18+
parseJSON(value, callback)
19+
},
1720
"dag-pb"(value, callback) {
1821
parseJSON(value.data, callback)
1922
},

0 commit comments

Comments
 (0)