New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@smithy/util-stream-node

Package Overview
Dependencies
Maintainers
2
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smithy/util-stream-node - npm Package Compare versions

Comparing version

to
4.0.0

7

dist-cjs/index.js

@@ -65,5 +65,4 @@ var __defProp = Object.defineProperty;

var sdkStreamMixin = /* @__PURE__ */ __name((stream) => {
var _a, _b;
if (!(stream instanceof import_stream.Readable)) {
const name = ((_b = (_a = stream == null ? void 0 : stream.__proto__) == null ? void 0 : _a.constructor) == null ? void 0 : _b.name) || stream;
const name = stream?.__proto__?.constructor?.name || stream;
throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${name}`);

@@ -98,5 +97,3 @@ }

if (typeof import_stream.Readable.toWeb !== "function") {
throw new Error(
"Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available."
);
throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");
}

@@ -103,0 +100,0 @@ transformed = true;

@@ -39,3 +39,3 @@ import { streamCollector } from "@smithy/node-http-handler";

if (typeof Readable.toWeb !== "function") {
throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.");
throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");
}

@@ -42,0 +42,0 @@ transformed = true;

{
"name": "@smithy/util-stream-node",
"version": "3.0.16",
"version": "4.0.0",
"scripts": {

@@ -24,9 +24,9 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",

"dependencies": {
"@smithy/node-http-handler": "^3.3.3",
"@smithy/types": "^3.7.2",
"@smithy/util-buffer-from": "^3.0.0",
"@smithy/node-http-handler": "^4.0.0",
"@smithy/types": "^4.0.0",
"@smithy/util-buffer-from": "^4.0.0",
"tslib": "^2.6.2"
},
"devDependencies": {
"@types/node": "^16.18.96",
"@types/node": "^18.11.9",
"concurrently": "7.0.0",

@@ -38,3 +38,3 @@ "downlevel-dts": "0.10.1",

"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},

@@ -41,0 +41,0 @@ "typesVersions": {