File tree Expand file tree Collapse file tree 5 files changed +20
-6
lines changed Expand file tree Collapse file tree 5 files changed +20
-6
lines changed Original file line number Diff line number Diff line change 44 * Returns a new Uint8Array created by concatenating the passed ArrayLikes
55 *
66 * @param {Array<ArrayLike<number>> } arrays
7- * @param {Number } length
7+ * @param {Number } [ length]
88 * @returns {Uint8Array }
99 */
1010function concat ( arrays , length ) {
Original file line number Diff line number Diff line change 66 "author" :
" Alex Potsides <[email protected] >" ,
77 "homepage" : " https://github.com/achingbrain/uint8arrays" ,
88 "bugs" : " https://github.com/achingbrain/uint8arrays/issues" ,
9+ "types" : " dist/src/index.d.ts" ,
10+ "typesVersions" : {
11+ "*" : { "*" : [" dist/*" , " dist/*/index" ] }
12+ },
913 "files" : [
1014 " compare.js" ,
1115 " concat.js" ,
2832 "release" : " aegir release --docs" ,
2933 "release-minor" : " aegir release --type minor --docs" ,
3034 "release-major" : " aegir release --type major --docs" ,
31- "build" : " aegir build"
35+ "build" : " aegir build && aegir ts "
3236 },
3337 "license" : " MIT" ,
3438 "dependencies" : {
3539 "multibase" : " ^3.0.0" ,
36- "web-encoding" : " ^1.0.2 "
40+ "web-encoding" : " ^1.0.5 "
3741 },
3842 "devDependencies" : {
39- "aegir" : " ^25.0 .0"
43+ "aegir" : " ^29.2 .0"
4044 },
4145 "contributors" : [
4246
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const { TextEncoder } = require('web-encoding')
88describe ( 'Uint8Array fromString' , ( ) => {
99 it ( 'creates a Uint8Array from a string' , ( ) => {
1010 const str = 'hello world'
11- const arr = new TextEncoder ( 'utf8' ) . encode ( str )
11+ const arr = new TextEncoder ( ) . encode ( str )
1212
1313 expect ( fromString ( str ) ) . to . deep . equal ( arr )
1414 } )
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const { TextEncoder } = require('web-encoding')
88describe ( 'Uint8Array toString' , ( ) => {
99 it ( 'creates a String from a Uint8Array' , ( ) => {
1010 const str = 'hello world'
11- const arr = new TextEncoder ( 'utf8' ) . encode ( str )
11+ const arr = new TextEncoder ( ) . encode ( str )
1212
1313 expect ( toString ( arr ) ) . to . deep . equal ( str )
1414 } )
Original file line number Diff line number Diff line change 1+ {
2+ "extends" : " ./node_modules/aegir/src/config/tsconfig.aegir.json" ,
3+ "compilerOptions" : {
4+ "outDir" : " dist"
5+ },
6+ "include" : [
7+ " test" , // remove this line if you don't want to type-check tests
8+ " ."
9+ ]
10+ }
You can’t perform that action at this time.
0 commit comments