Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

readable-stream

Package Overview
Dependencies
Maintainers
3
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

readable-stream - npm Package Compare versions

Comparing version 4.0.0 to 4.1.0

5

lib/internal/streams/duplexify.js
'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 @@

4

lib/internal/streams/operators.js
'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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc