Skip to content

Commit

Permalink
fix: drop unecessary reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Gozala committed Mar 2, 2022
1 parent d6fa08d commit e461d67
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"prepare:proto": "pbjs -t static-module -w es6 -r unixfs --force-number --no-verify --no-delimited --no-create --no-beautify --no-defaults --lint eslint-disable -o gen/unixfs.js ./unixfs.proto",
"prepare:proto-types": "pbts -o gen/unixfs.ts gen/unixfs.js",
"gen": "node ./scripts/gen.js",
"gen:matrix": "node ./scripts/matrix.js",
"test:web": "playwright-test test/*.spec.js --cov && nyc report",
"test:node": "c8 --check-coverage --branches 100 --functions 100 --lines 100 mocha test/*.spec.js",
"t": "mocha test/*.spec.js",
Expand All @@ -20,6 +21,7 @@
"dependencies": {
"@ipld/dag-pb": "^2.1.15",
"@web-std/stream": "1.0.1",
"rabin-wasm": "^0.1.5",
"actor": "^2.2.1",
"protobufjs": "^6.11.2"
},
Expand Down Expand Up @@ -49,7 +51,11 @@
"nyc": "^15.1.0",
"playwright-test": "^7.2.2",
"typescript": "^4.5.5",
"@web-std/file": "^3.0.2"
"@web-std/file": "^3.0.2",
"tsv": "^0.2.0",
"@types/tsv": "^0.2.1",
"fzstd": "^0.0.4",
"@web-std/fetch": "^4.0.0"
},
"license": "(Apache-2.0 AND MIT)"
}
5 changes: 3 additions & 2 deletions src/file/chunker.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,10 @@ export const append = (state, bytes) => {
if (chunks.length === 0) {
return { state: { ...state, buffer }, chunks: EMPTY }
} else {
const { chunk, ...rest } = state
return {
state: { ...state, status: "multiple", buffer },
chunks: [state.chunk, ...chunks],
state: { ...rest, status: "multiple", buffer },
chunks: [chunk, ...chunks],
}
}
case "multiple":
Expand Down

0 comments on commit e461d67

Please sign in to comment.