@aws-sdk/smithy-client
Advanced tools
Comparing version 3.310.0 to 3.315.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.throwDefaultError = void 0; | ||
exports.withBaseException = exports.throwDefaultError = void 0; | ||
const exceptions_1 = require("./exceptions"); | ||
@@ -16,2 +16,8 @@ const throwDefaultError = ({ output, parsedBody, exceptionCtor, errorCode }) => { | ||
exports.throwDefaultError = throwDefaultError; | ||
const withBaseException = (ExceptionCtor) => { | ||
return ({ output, parsedBody, errorCode }) => { | ||
(0, exports.throwDefaultError)({ output, parsedBody, exceptionCtor: ExceptionCtor, errorCode }); | ||
}; | ||
}; | ||
exports.withBaseException = withBaseException; | ||
const deserializeMetadata = (output) => { | ||
@@ -18,0 +24,0 @@ var _a, _b; |
@@ -21,2 +21,3 @@ "use strict"; | ||
tslib_1.__exportStar(require("./ser-utils"), exports); | ||
tslib_1.__exportStar(require("./serde-json"), exports); | ||
tslib_1.__exportStar(require("./split-every"), exports); |
@@ -12,2 +12,7 @@ import { decorateServiceException } from "./exceptions"; | ||
}; | ||
export const withBaseException = (ExceptionCtor) => { | ||
return ({ output, parsedBody, errorCode }) => { | ||
throwDefaultError({ output, parsedBody, exceptionCtor: ExceptionCtor, errorCode }); | ||
}; | ||
}; | ||
const deserializeMetadata = (output) => ({ | ||
@@ -14,0 +19,0 @@ httpStatusCode: output.statusCode, |
@@ -18,2 +18,3 @@ export * from "./NoOpLogger"; | ||
export * from "./ser-utils"; | ||
export * from "./serde-json"; | ||
export * from "./split-every"; |
@@ -8,1 +8,7 @@ /** | ||
export declare const throwDefaultError: ({ output, parsedBody, exceptionCtor, errorCode }: any) => never; | ||
/** | ||
* @internal | ||
* | ||
* Creates {@link throwDefaultError} with bound ExceptionCtor. | ||
*/ | ||
export declare const withBaseException: (ExceptionCtor: new (...args: any) => any) => any; |
@@ -18,3 +18,4 @@ export * from "./NoOpLogger"; | ||
export * from "./ser-utils"; | ||
export * from "./serde-json"; | ||
export * from "./split-every"; | ||
export type { DocumentType, SdkError, SmithyException } from "@aws-sdk/types"; |
@@ -7,1 +7,4 @@ export declare const throwDefaultError: ({ | ||
}: any) => never; | ||
export declare const withBaseException: ( | ||
ExceptionCtor: new (...args: any) => any | ||
) => any; |
@@ -18,3 +18,4 @@ export * from "./NoOpLogger"; | ||
export * from "./ser-utils"; | ||
export * from "./serde-json"; | ||
export * from "./split-every"; | ||
export { DocumentType, SdkError, SmithyException } from "@aws-sdk/types"; |
{ | ||
"name": "@aws-sdk/smithy-client", | ||
"version": "3.310.0", | ||
"version": "3.315.0", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", |
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
113790
83
2719