This repository was archived by the owner on Aug 11, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 38
38
},
39
39
"homepage" : " https://github.com/ipld/js-ipld-raw#readme" ,
40
40
"dependencies" : {
41
- "cids" : " ^0.8.1 " ,
42
- "multicodec" : " ^1 .0.1 " ,
43
- "multihashing-async" : " ^0.8.1 "
41
+ "cids" : " ipld/js-cid#fix/support-uint8arrays " ,
42
+ "multicodec" : " ^2 .0.0 " ,
43
+ "multihashing-async" : " ^2.0.0 "
44
44
},
45
45
"devDependencies" : {
46
- "aegir" : " ^22.0.0"
46
+ "aegir" : " ^25.0.0" ,
47
+ "uint8arrays" : " ^1.0.0"
47
48
}
48
49
}
Original file line number Diff line number Diff line change @@ -6,9 +6,10 @@ const ipldRaw = require('../src/index')
6
6
const resolver = ipldRaw . resolver
7
7
const multihash = require ( 'multihashing-async' ) . multihash
8
8
const multicodec = require ( 'multicodec' )
9
+ const uint8ArrayFromString = require ( 'uint8arrays/from-string' )
9
10
10
11
describe ( 'raw codec' , ( ) => {
11
- const testData = Buffer . from ( 'test data' )
12
+ const testData = uint8ArrayFromString ( 'test data' )
12
13
const testBlob = ipldRaw . util . serialize ( testData )
13
14
14
15
it ( 'multicodec is raw' , ( ) => {
@@ -39,7 +40,7 @@ describe('raw codec', () => {
39
40
} )
40
41
41
42
describe ( 'raw util' , ( ) => {
42
- const rawData = Buffer . from ( 'some raw data' )
43
+ const rawData = uint8ArrayFromString ( 'some raw data' )
43
44
44
45
it ( 'serialize is noop' , ( ) => {
45
46
const result = ipldRaw . util . serialize ( rawData )
You can’t perform that action at this time.
0 commit comments