@aws-sdk/middleware-flexible-checksums
Advanced tools
Comparing version 3.651.1 to 3.654.0
@@ -120,4 +120,4 @@ "use strict"; | ||
var NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS = { | ||
environmentVariableSelector: (env) => stringUnionSelector(env, ENV_RESPONSE_CHECKSUM_VALIDATION, RequestChecksumCalculation, "env" /* ENV */), | ||
configFileSelector: (profile) => stringUnionSelector(profile, CONFIG_RESPONSE_CHECKSUM_VALIDATION, RequestChecksumCalculation, "shared config entry" /* CONFIG */), | ||
environmentVariableSelector: (env) => stringUnionSelector(env, ENV_RESPONSE_CHECKSUM_VALIDATION, ResponseChecksumValidation, "env" /* ENV */), | ||
configFileSelector: (profile) => stringUnionSelector(profile, CONFIG_RESPONSE_CHECKSUM_VALIDATION, ResponseChecksumValidation, "shared config entry" /* CONFIG */), | ||
default: DEFAULT_RESPONSE_CHECKSUM_VALIDATION | ||
@@ -124,0 +124,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
import { DEFAULT_RESPONSE_CHECKSUM_VALIDATION, RequestChecksumCalculation } from "./constants"; | ||
import { DEFAULT_RESPONSE_CHECKSUM_VALIDATION, ResponseChecksumValidation } from "./constants"; | ||
import { SelectorType, stringUnionSelector } from "./stringUnionSelector"; | ||
@@ -6,5 +6,5 @@ export const ENV_RESPONSE_CHECKSUM_VALIDATION = "AWS_RESPONSE_CHECKSUM_VALIDATION"; | ||
export const NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS = { | ||
environmentVariableSelector: (env) => stringUnionSelector(env, ENV_RESPONSE_CHECKSUM_VALIDATION, RequestChecksumCalculation, SelectorType.ENV), | ||
configFileSelector: (profile) => stringUnionSelector(profile, CONFIG_RESPONSE_CHECKSUM_VALIDATION, RequestChecksumCalculation, SelectorType.CONFIG), | ||
environmentVariableSelector: (env) => stringUnionSelector(env, ENV_RESPONSE_CHECKSUM_VALIDATION, ResponseChecksumValidation, SelectorType.ENV), | ||
configFileSelector: (profile) => stringUnionSelector(profile, CONFIG_RESPONSE_CHECKSUM_VALIDATION, ResponseChecksumValidation, SelectorType.CONFIG), | ||
default: DEFAULT_RESPONSE_CHECKSUM_VALIDATION, | ||
}; |
import { normalizeProvider } from "@smithy/util-middleware"; | ||
import { DEFAULT_REQUEST_CHECKSUM_CALCULATION, DEFAULT_RESPONSE_CHECKSUM_VALIDATION } from "./constants"; | ||
import { DEFAULT_REQUEST_CHECKSUM_CALCULATION, DEFAULT_RESPONSE_CHECKSUM_VALIDATION, } from "./constants"; | ||
export const resolveFlexibleChecksumsConfig = (input) => ({ | ||
@@ -4,0 +4,0 @@ ...input, |
import { LoadedConfigSelectors } from "@smithy/node-config-provider"; | ||
import { RequestChecksumCalculation } from "./constants"; | ||
export declare const ENV_REQUEST_CHECKSUM_CALCULATION = "AWS_REQUEST_CHECKSUM_CALCULATION"; | ||
export declare const CONFIG_REQUEST_CHECKSUM_CALCULATION = "request_checksum_calculation"; | ||
export declare const NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS: LoadedConfigSelectors<string>; | ||
export declare const NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS: LoadedConfigSelectors<RequestChecksumCalculation>; |
import { LoadedConfigSelectors } from "@smithy/node-config-provider"; | ||
import { ResponseChecksumValidation } from "./constants"; | ||
export declare const ENV_RESPONSE_CHECKSUM_VALIDATION = "AWS_RESPONSE_CHECKSUM_VALIDATION"; | ||
export declare const CONFIG_RESPONSE_CHECKSUM_VALIDATION = "response_checksum_validation"; | ||
export declare const NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS: LoadedConfigSelectors<string>; | ||
export declare const NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS: LoadedConfigSelectors<ResponseChecksumValidation>; |
import { Provider } from "@smithy/types"; | ||
import { RequestChecksumCalculation, ResponseChecksumValidation } from "./constants"; | ||
export interface FlexibleChecksumsInputConfig { | ||
@@ -6,12 +7,12 @@ /** | ||
*/ | ||
requestChecksumCalculation?: string | Provider<string>; | ||
requestChecksumCalculation?: RequestChecksumCalculation | Provider<RequestChecksumCalculation>; | ||
/** | ||
* Determines when checksum validation will be performed on response payloads. | ||
*/ | ||
responseChecksumValidation?: string | Provider<string>; | ||
responseChecksumValidation?: ResponseChecksumValidation | Provider<ResponseChecksumValidation>; | ||
} | ||
export interface FlexibleChecksumsResolvedConfig { | ||
requestChecksumCalculation: Provider<string>; | ||
responseChecksumValidation: Provider<string>; | ||
requestChecksumCalculation: Provider<RequestChecksumCalculation>; | ||
responseChecksumValidation: Provider<ResponseChecksumValidation>; | ||
} | ||
export declare const resolveFlexibleChecksumsConfig: <T>(input: T & FlexibleChecksumsInputConfig) => T & FlexibleChecksumsResolvedConfig; |
@@ -12,2 +12,2 @@ export declare enum SelectorType { | ||
*/ | ||
export declare const stringUnionSelector: (obj: Record<string, string | undefined>, key: string, union: Record<string, string>, type: SelectorType) => string | undefined; | ||
export declare const stringUnionSelector: <U extends object, K extends keyof U>(obj: Record<string, string | undefined>, key: string, union: U, type: SelectorType) => U[K] | undefined; |
import { LoadedConfigSelectors } from "@smithy/node-config-provider"; | ||
import { RequestChecksumCalculation } from "./constants"; | ||
export declare const ENV_REQUEST_CHECKSUM_CALCULATION = | ||
@@ -6,2 +7,2 @@ "AWS_REQUEST_CHECKSUM_CALCULATION"; | ||
"request_checksum_calculation"; | ||
export declare const NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS: LoadedConfigSelectors<string>; | ||
export declare const NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS: LoadedConfigSelectors<RequestChecksumCalculation>; |
import { LoadedConfigSelectors } from "@smithy/node-config-provider"; | ||
import { ResponseChecksumValidation } from "./constants"; | ||
export declare const ENV_RESPONSE_CHECKSUM_VALIDATION = | ||
@@ -6,2 +7,2 @@ "AWS_RESPONSE_CHECKSUM_VALIDATION"; | ||
"response_checksum_validation"; | ||
export declare const NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS: LoadedConfigSelectors<string>; | ||
export declare const NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS: LoadedConfigSelectors<ResponseChecksumValidation>; |
import { Provider } from "@smithy/types"; | ||
import { | ||
RequestChecksumCalculation, | ||
ResponseChecksumValidation, | ||
} from "./constants"; | ||
export interface FlexibleChecksumsInputConfig { | ||
requestChecksumCalculation?: string | Provider<string>; | ||
responseChecksumValidation?: string | Provider<string>; | ||
requestChecksumCalculation?: | ||
| RequestChecksumCalculation | ||
| Provider<RequestChecksumCalculation>; | ||
responseChecksumValidation?: | ||
| ResponseChecksumValidation | ||
| Provider<ResponseChecksumValidation>; | ||
} | ||
export interface FlexibleChecksumsResolvedConfig { | ||
requestChecksumCalculation: Provider<string>; | ||
responseChecksumValidation: Provider<string>; | ||
requestChecksumCalculation: Provider<RequestChecksumCalculation>; | ||
responseChecksumValidation: Provider<ResponseChecksumValidation>; | ||
} | ||
@@ -10,0 +18,0 @@ export declare const resolveFlexibleChecksumsConfig: <T>( |
@@ -5,7 +5,7 @@ export declare enum SelectorType { | ||
} | ||
export declare const stringUnionSelector: ( | ||
export declare const stringUnionSelector: <U extends object, K extends keyof U>( | ||
obj: Record<string, string | undefined>, | ||
key: string, | ||
union: Record<string, string>, | ||
union: U, | ||
type: SelectorType | ||
) => string | undefined; | ||
) => U[K] | undefined; |
{ | ||
"name": "@aws-sdk/middleware-flexible-checksums", | ||
"version": "3.651.1", | ||
"version": "3.654.0", | ||
"scripts": { | ||
@@ -33,8 +33,8 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", | ||
"@aws-crypto/crc32c": "5.2.0", | ||
"@aws-sdk/types": "3.649.0", | ||
"@aws-sdk/types": "3.654.0", | ||
"@smithy/is-array-buffer": "^3.0.0", | ||
"@smithy/node-config-provider": "^3.1.5", | ||
"@smithy/protocol-http": "^4.1.1", | ||
"@smithy/types": "^3.4.0", | ||
"@smithy/util-middleware": "^3.0.4", | ||
"@smithy/node-config-provider": "^3.1.7", | ||
"@smithy/protocol-http": "^4.1.3", | ||
"@smithy/types": "^3.4.2", | ||
"@smithy/util-middleware": "^3.0.6", | ||
"@smithy/util-utf8": "^3.0.0", | ||
@@ -44,3 +44,3 @@ "tslib": "^2.6.2" | ||
"devDependencies": { | ||
"@smithy/node-http-handler": "^3.2.0", | ||
"@smithy/node-http-handler": "^3.2.2", | ||
"concurrently": "7.0.0", | ||
@@ -47,0 +47,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
69713
1211
+ Added@aws-sdk/types@3.654.0(transitive)
- Removed@aws-sdk/types@3.649.0(transitive)
Updated@aws-sdk/types@3.654.0
Updated@smithy/protocol-http@^4.1.3
Updated@smithy/types@^3.4.2