m3u8stream
Advanced tools
Comparing version 0.8.4 to 0.8.5
@@ -178,3 +178,3 @@ "use strict"; | ||
_write(chunk, encoding, callback) { | ||
this._parser.write(chunk, encoding); | ||
this._parser.write(chunk); | ||
callback(); | ||
@@ -181,0 +181,0 @@ } |
@@ -21,4 +21,4 @@ /// <reference types="node" /> | ||
interface Stream extends PassThrough { | ||
end: () => void; | ||
on(event: 'progress', progress: Progress, totalSegments: number, downloadedBytes: number): this; | ||
end: () => this; | ||
on(event: 'progress', listener: (progress: Progress, totalSegments: number, downloadedBytes: number) => void): this; | ||
on(event: string | symbol, listener: (...args: any) => void): this; | ||
@@ -25,0 +25,0 @@ } |
@@ -70,5 +70,2 @@ "use strict"; | ||
const onError = (err) => { | ||
if (ended) { | ||
return; | ||
} | ||
stream.emit('error', err); | ||
@@ -178,2 +175,3 @@ // Stop on any error. | ||
stream_1.PassThrough.prototype.end.call(stream, null); | ||
return stream; | ||
}; | ||
@@ -180,0 +178,0 @@ return stream; |
@@ -13,3 +13,3 @@ { | ||
], | ||
"version": "0.8.4", | ||
"version": "0.8.5", | ||
"repository": { | ||
@@ -33,3 +33,3 @@ "type": "git", | ||
"dependencies": { | ||
"miniget": "^4.0.0", | ||
"miniget": "^4.2.2", | ||
"sax": "^1.2.4" | ||
@@ -39,3 +39,3 @@ }, | ||
"@types/mocha": "^7.0.0", | ||
"@types/node": "^13.1.0", | ||
"@types/node": "^17.0.8", | ||
"@types/sax": "^1.0.1", | ||
@@ -54,5 +54,5 @@ "@types/sinon": "^9.0.8", | ||
"engines": { | ||
"node": ">=10" | ||
"node": ">=12" | ||
}, | ||
"license": "MIT" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49452
722
Updatedminiget@^4.2.2