readable-stream
Advanced tools
Comparing version 4.0.0 to 4.1.0
'use strict' | ||
const abortControllerModule = require('abort-controller') | ||
const bufferModule = require('buffer') | ||
@@ -43,4 +41,5 @@ | ||
} | ||
const AbortController = globalThis.AbortController || abortControllerModule.AbortController | ||
const AbortController = globalThis.AbortController || require('abort-controller').AbortController | ||
const { FunctionPrototypeCall } = require('../../ours/primordials') // This is needed for pre node 17. | ||
@@ -47,0 +46,0 @@ |
'use strict' | ||
const abortControllerModule = require('abort-controller') | ||
const AbortController = globalThis.AbortController || require('abort-controller').AbortController | ||
const AbortController = globalThis.AbortController || abortControllerModule.AbortController | ||
const { | ||
@@ -8,0 +6,0 @@ codes: { ERR_INVALID_ARG_TYPE, ERR_MISSING_ARGS, ERR_OUT_OF_RANGE }, |
@@ -5,4 +5,2 @@ // Ported from https://github.com/mafintosh/pump with | ||
const abortControllerModule = require('abort-controller') | ||
const { ArrayIsArray, Promise, SymbolAsyncIterator } = require('../../ours/primordials') | ||
@@ -28,3 +26,4 @@ | ||
const AbortController = globalThis.AbortController || abortControllerModule.AbortController | ||
const AbortController = globalThis.AbortController || require('abort-controller').AbortController | ||
let PassThrough | ||
@@ -31,0 +30,0 @@ let Readable |
@@ -85,10 +85,21 @@ 'use strict' | ||
NodeError.prototype.name = Base.name | ||
Object.defineProperties(NodeError.prototype, { | ||
name: { | ||
value: Base.name, | ||
writable: true, | ||
enumerable: false, | ||
configurable: true | ||
}, | ||
toString: { | ||
value() { | ||
return `${this.name} [${code}]: ${this.message}` | ||
}, | ||
writable: true, | ||
enumerable: false, | ||
configurable: true | ||
} | ||
}) | ||
NodeError.prototype.code = code | ||
NodeError.prototype[kIsNodeError] = true | ||
NodeError.prototype.toString = function () { | ||
return `${this.name} [${code}]: ${this.message}` | ||
} | ||
codes[code] = NodeError | ||
@@ -95,0 +106,0 @@ } |
{ | ||
"name": "readable-stream", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"description": "Node.js Streams, a user-land copy of the stream library from Node.js", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/nodejs/readable-stream", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
193288
5570
0