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

@smithy/smithy-client

Package Overview
Dependencies
Maintainers
2
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smithy/smithy-client - npm Package Compare versions

Comparing version 3.7.0 to 4.0.0

48

dist-cjs/index.js

@@ -89,3 +89,3 @@ var __defProp = Object.defineProperty;

var import_middleware_stack = require("@smithy/middleware-stack");
var _Client = class _Client {
var Client = class {
constructor(config) {

@@ -95,2 +95,5 @@ this.config = config;

}
static {
__name(this, "Client");
}
send(command, optionsOrCb, cb) {

@@ -131,9 +134,6 @@ const options = typeof optionsOrCb !== "function" ? optionsOrCb : void 0;

destroy() {
var _a, _b, _c;
(_c = (_b = (_a = this.config) == null ? void 0 : _a.requestHandler) == null ? void 0 : _b.destroy) == null ? void 0 : _c.call(_b);
this.config?.requestHandler?.destroy?.();
delete this.handlers;
}
};
__name(_Client, "Client");
var Client = _Client;

@@ -146,6 +146,9 @@ // src/collect-stream-body.ts

var import_types = require("@smithy/types");
var _Command = class _Command {
var Command = class {
constructor() {
this.middlewareStack = (0, import_middleware_stack.constructStack)();
}
static {
__name(this, "Command");
}
/**

@@ -195,5 +198,3 @@ * Factory for Command ClassBuilder.

};
__name(_Command, "Command");
var Command = _Command;
var _ClassBuilder = class _ClassBuilder {
var ClassBuilder = class {
constructor() {

@@ -213,2 +214,5 @@ this._init = () => {

}
static {
__name(this, "ClassBuilder");
}
/**

@@ -286,6 +290,5 @@ * Optional init callback.

build() {
var _a;
const closure = this;
let CommandRef;
return CommandRef = (_a = class extends Command {
return CommandRef = class extends Command {
/**

@@ -309,2 +312,5 @@ * @public

}
static {
__name(this, "CommandRef");
}
/**

@@ -331,7 +337,5 @@ * @public

}
}, __name(_a, "CommandRef"), _a);
};
}
};
__name(_ClassBuilder, "ClassBuilder");
var ClassBuilder = _ClassBuilder;

@@ -817,3 +821,6 @@ // src/constants.ts

// src/exceptions.ts
var _ServiceException = class _ServiceException extends Error {
var ServiceException = class _ServiceException extends Error {
static {
__name(this, "ServiceException");
}
constructor(options) {

@@ -836,4 +843,2 @@ super(options.message);

};
__name(_ServiceException, "ServiceException");
var ServiceException = _ServiceException;
var decorateServiceException = /* @__PURE__ */ __name((exception, additions = {}) => {

@@ -856,3 +861,3 @@ Object.entries(additions).filter(([, v]) => v !== void 0).forEach(([k, v]) => {

const response = new exceptionCtor({
name: (parsedBody == null ? void 0 : parsedBody.code) || (parsedBody == null ? void 0 : parsedBody.Code) || errorCode || statusCode || "UnknownError",
name: parsedBody?.code || parsedBody?.Code || errorCode || statusCode || "UnknownError",
$fault: "client",

@@ -1026,3 +1031,6 @@ $metadata

// src/NoOpLogger.ts
var _NoOpLogger = class _NoOpLogger {
var NoOpLogger = class {
static {
__name(this, "NoOpLogger");
}
trace() {

@@ -1039,4 +1047,2 @@ }

};
__name(_NoOpLogger, "NoOpLogger");
var NoOpLogger = _NoOpLogger;

@@ -1043,0 +1049,0 @@ // src/object-mapping.ts

{
"name": "@smithy/smithy-client",
"version": "3.7.0",
"version": "4.0.0",
"scripts": {

@@ -27,12 +27,12 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",

"dependencies": {
"@smithy/core": "^2.5.7",
"@smithy/middleware-endpoint": "^3.2.8",
"@smithy/middleware-stack": "^3.0.11",
"@smithy/protocol-http": "^4.1.8",
"@smithy/types": "^3.7.2",
"@smithy/util-stream": "^3.3.4",
"@smithy/core": "^3.0.0",
"@smithy/middleware-endpoint": "^4.0.0",
"@smithy/middleware-stack": "^4.0.0",
"@smithy/protocol-http": "^5.0.0",
"@smithy/types": "^4.0.0",
"@smithy/util-stream": "^4.0.0",
"tslib": "^2.6.2"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},

@@ -56,3 +56,3 @@ "typesVersions": {

"devDependencies": {
"@types/node": "^16.18.96",
"@types/node": "^18.11.9",
"concurrently": "7.0.0",

@@ -59,0 +59,0 @@ "downlevel-dts": "0.10.1",

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