@smithy/smithy-client
Advanced tools
Comparing version 3.7.0 to 4.0.0
@@ -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", |
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
4357
173625
+ Added@smithy/abort-controller@4.0.0(transitive)
+ Added@smithy/core@3.0.0(transitive)
+ Added@smithy/fetch-http-handler@5.0.0(transitive)
+ Added@smithy/is-array-buffer@4.0.0(transitive)
+ Added@smithy/middleware-endpoint@4.0.0(transitive)
+ Added@smithy/middleware-serde@4.0.0(transitive)
+ Added@smithy/middleware-stack@4.0.0(transitive)
+ Added@smithy/node-config-provider@4.0.0(transitive)
+ Added@smithy/node-http-handler@4.0.0(transitive)
+ Added@smithy/property-provider@4.0.0(transitive)
+ Added@smithy/protocol-http@5.0.0(transitive)
+ Added@smithy/querystring-builder@4.0.0(transitive)
+ Added@smithy/querystring-parser@4.0.0(transitive)
+ Added@smithy/shared-ini-file-loader@4.0.0(transitive)
+ Added@smithy/types@4.0.0(transitive)
+ Added@smithy/url-parser@4.0.0(transitive)
+ Added@smithy/util-base64@4.0.0(transitive)
+ Added@smithy/util-body-length-browser@4.0.0(transitive)
+ Added@smithy/util-buffer-from@4.0.0(transitive)
+ Added@smithy/util-hex-encoding@4.0.0(transitive)
+ Added@smithy/util-middleware@4.0.0(transitive)
+ Added@smithy/util-stream@4.0.0(transitive)
+ Added@smithy/util-uri-escape@4.0.0(transitive)
+ Added@smithy/util-utf8@4.0.0(transitive)
- Removed@smithy/abort-controller@3.1.9(transitive)
- Removed@smithy/core@2.5.7(transitive)
- Removed@smithy/fetch-http-handler@4.1.3(transitive)
- Removed@smithy/is-array-buffer@3.0.0(transitive)
- Removed@smithy/middleware-endpoint@3.2.8(transitive)
- Removed@smithy/middleware-serde@3.0.11(transitive)
- Removed@smithy/middleware-stack@3.0.11(transitive)
- Removed@smithy/node-config-provider@3.1.12(transitive)
- Removed@smithy/node-http-handler@3.3.3(transitive)
- Removed@smithy/property-provider@3.1.11(transitive)
- Removed@smithy/protocol-http@4.1.8(transitive)
- Removed@smithy/querystring-builder@3.0.11(transitive)
- Removed@smithy/querystring-parser@3.0.11(transitive)
- Removed@smithy/shared-ini-file-loader@3.1.12(transitive)
- Removed@smithy/types@3.7.2(transitive)
- Removed@smithy/url-parser@3.0.11(transitive)
- Removed@smithy/util-base64@3.0.0(transitive)
- Removed@smithy/util-body-length-browser@3.0.0(transitive)
- Removed@smithy/util-buffer-from@3.0.0(transitive)
- Removed@smithy/util-hex-encoding@3.0.0(transitive)
- Removed@smithy/util-middleware@3.0.11(transitive)
- Removed@smithy/util-stream@3.3.4(transitive)
- Removed@smithy/util-uri-escape@3.0.0(transitive)
- Removed@smithy/util-utf8@3.0.0(transitive)
Updated@smithy/core@^3.0.0
Updated@smithy/protocol-http@^5.0.0
Updated@smithy/types@^4.0.0
Updated@smithy/util-stream@^4.0.0