mirror of
https://github.com/fluencelabs/dweb-transports
synced 2025-04-25 06:42:17 +00:00
Updated, webpacked and deployed
This commit is contained in:
parent
cc03e4334c
commit
77cadef28a
@ -380,7 +380,7 @@ class TransportIPFS extends Transport {
|
|||||||
:returns stream: The readable stream.
|
:returns stream: The readable stream.
|
||||||
FOR IPFS this is copied and adapted from git repo js-ipfs/examples/browser-readablestream/index.js
|
FOR IPFS this is copied and adapted from git repo js-ipfs/examples/browser-readablestream/index.js
|
||||||
*/
|
*/
|
||||||
debugipfs("createReadStream %o %o", multihash, opts || "" );
|
debugipfs("reading from stream %o %o", multihash, opts || "" );
|
||||||
|
|
||||||
const start = opts ? opts.start : 0
|
const start = opts ? opts.start : 0
|
||||||
// The videostream library does not always pass an end byte but when
|
// The videostream library does not always pass an end byte but when
|
||||||
|
@ -261,7 +261,7 @@ class TransportWEBTORRENT extends Transport {
|
|||||||
:param opts: { start: byte to start from; end: optional end byte }
|
:param opts: { start: byte to start from; end: optional end byte }
|
||||||
:returns stream: The readable stream.
|
:returns stream: The readable stream.
|
||||||
*/
|
*/
|
||||||
debugwt("createReadStream %s %o", file.name, opts);
|
debugwt("reading from stream %s %o", file.name, opts);
|
||||||
let through;
|
let through;
|
||||||
try {
|
try {
|
||||||
through = new stream.PassThrough();
|
through = new stream.PassThrough();
|
||||||
|
24
dist/dweb-transports-bundle.js
vendored
24
dist/dweb-transports-bundle.js
vendored
File diff suppressed because one or more lines are too long
10
package.json
10
package.json
@ -12,12 +12,12 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cids": "latest",
|
"cids": "latest",
|
||||||
"gun": "latest",
|
"gun": "^0.9.9998",
|
||||||
"ipfs": "latest",
|
"ipfs": "latest",
|
||||||
"ipfs-unixfs": "^0.1.15",
|
"ipfs-unixfs": "^0.1.15",
|
||||||
"node-fetch": "^2.2.0",
|
"node-fetch": "^2.2.0",
|
||||||
"readable-stream": "latest",
|
"readable-stream": "^3.0.1",
|
||||||
"webpack": "^4.16.3",
|
"webpack": "^4.16.5",
|
||||||
"webtorrent": "^0.99.3",
|
"webtorrent": "^0.99.3",
|
||||||
"y-array": "latest",
|
"y-array": "latest",
|
||||||
"y-indexeddb": "latest",
|
"y-indexeddb": "latest",
|
||||||
@ -31,7 +31,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"browserify": "^14.5.0",
|
"browserify": "^14.5.0",
|
||||||
"chai": "latest",
|
"chai": "latest",
|
||||||
"uglifyjs-webpack-plugin": "latest",
|
"uglifyjs-webpack-plugin": "^1.3.0",
|
||||||
"watchify": "^3.11.0",
|
"watchify": "^3.11.0",
|
||||||
"webpack-cli": "^3.1.0"
|
"webpack-cli": "^3.1.0"
|
||||||
},
|
},
|
||||||
@ -49,5 +49,5 @@
|
|||||||
"test": "cd src; node ./test.js",
|
"test": "cd src; node ./test.js",
|
||||||
"help": "echo 'test (test it)'; echo 'build (creates dweb-transports-bundle)'"
|
"help": "echo 'test (test it)'; echo 'build (creates dweb-transports-bundle)'"
|
||||||
},
|
},
|
||||||
"version": "0.1.9"
|
"version": "0.1.10"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user