@aws-sdk/client-wafv2
Advanced tools
Comparing version 3.645.0 to 3.649.0
@@ -7,9 +7,13 @@ "use strict"; | ||
const ruleset_1 = require("./ruleset"); | ||
const cache = new util_endpoints_2.EndpointCache({ | ||
size: 50, | ||
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], | ||
}); | ||
const defaultEndpointResolver = (endpointParams, context = {}) => { | ||
return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, { | ||
return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, { | ||
endpointParams: endpointParams, | ||
logger: context.logger, | ||
}); | ||
})); | ||
}; | ||
exports.defaultEndpointResolver = defaultEndpointResolver; | ||
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions; |
import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; | ||
import { customEndpointFunctions, resolveEndpoint } from "@smithy/util-endpoints"; | ||
import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints"; | ||
import { ruleSet } from "./ruleset"; | ||
const cache = new EndpointCache({ | ||
size: 50, | ||
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], | ||
}); | ||
export const defaultEndpointResolver = (endpointParams, context = {}) => { | ||
return resolveEndpoint(ruleSet, { | ||
return cache.get(endpointParams, () => resolveEndpoint(ruleSet, { | ||
endpointParams: endpointParams, | ||
logger: context.logger, | ||
}); | ||
})); | ||
}; | ||
customEndpointFunctions.aws = awsEndpointFunctions; |
@@ -21,2 +21,3 @@ import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler"; | ||
apiVersion: string; | ||
cacheMiddleware?: boolean | undefined; | ||
urlParser: import("@smithy/types").UrlParser; | ||
@@ -38,2 +39,3 @@ base64Decoder: import("@smithy/types").Decoder; | ||
tls?: boolean | undefined; | ||
serviceConfiguredEndpoint?: undefined; | ||
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[]; | ||
@@ -40,0 +42,0 @@ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").WAFV2HttpAuthSchemeProvider; |
@@ -21,2 +21,3 @@ import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler"; | ||
apiVersion: string; | ||
cacheMiddleware?: boolean | undefined; | ||
urlParser: import("@smithy/types").UrlParser; | ||
@@ -38,2 +39,3 @@ base64Decoder: import("@smithy/types").Decoder; | ||
tls?: boolean | undefined; | ||
serviceConfiguredEndpoint?: undefined; | ||
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[]; | ||
@@ -40,0 +42,0 @@ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").WAFV2HttpAuthSchemeProvider; |
@@ -10,2 +10,3 @@ import { WAFV2ClientConfig } from "./WAFV2Client"; | ||
apiVersion: string; | ||
cacheMiddleware?: boolean | undefined; | ||
urlParser: import("@smithy/types").UrlParser; | ||
@@ -37,2 +38,3 @@ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator; | ||
tls?: boolean | undefined; | ||
serviceConfiguredEndpoint?: undefined; | ||
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[]; | ||
@@ -39,0 +41,0 @@ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").WAFV2HttpAuthSchemeProvider; |
@@ -26,2 +26,3 @@ import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler"; | ||
apiVersion: string; | ||
cacheMiddleware?: boolean | undefined; | ||
urlParser: import("@smithy/types").UrlParser; | ||
@@ -65,2 +66,3 @@ base64Decoder: import("@smithy/types").Decoder; | ||
tls?: boolean | undefined; | ||
serviceConfiguredEndpoint?: undefined; | ||
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[]; | ||
@@ -67,0 +69,0 @@ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").WAFV2HttpAuthSchemeProvider; |
@@ -30,2 +30,3 @@ import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler"; | ||
apiVersion: string; | ||
cacheMiddleware?: boolean | undefined; | ||
urlParser: import("@smithy/types").UrlParser; | ||
@@ -69,2 +70,3 @@ base64Decoder: import("@smithy/types").Decoder; | ||
tls?: boolean | undefined; | ||
serviceConfiguredEndpoint?: undefined; | ||
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[]; | ||
@@ -71,0 +73,0 @@ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").WAFV2HttpAuthSchemeProvider; |
@@ -12,2 +12,3 @@ import { WAFV2ClientConfig } from "./WAFV2Client"; | ||
apiVersion: string; | ||
cacheMiddleware?: boolean | undefined; | ||
urlParser: import("@smithy/types").UrlParser; | ||
@@ -59,2 +60,3 @@ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator; | ||
tls?: boolean | undefined; | ||
serviceConfiguredEndpoint?: undefined; | ||
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[]; | ||
@@ -61,0 +63,0 @@ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").WAFV2HttpAuthSchemeProvider; |
{ | ||
"name": "@aws-sdk/client-wafv2", | ||
"description": "AWS SDK for JavaScript Wafv2 Client for Node.js, Browser and React Native", | ||
"version": "3.645.0", | ||
"version": "3.649.0", | ||
"scripts": { | ||
@@ -23,39 +23,39 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", | ||
"@aws-crypto/sha256-js": "5.2.0", | ||
"@aws-sdk/client-sso-oidc": "3.645.0", | ||
"@aws-sdk/client-sts": "3.645.0", | ||
"@aws-sdk/core": "3.635.0", | ||
"@aws-sdk/credential-provider-node": "3.645.0", | ||
"@aws-sdk/middleware-host-header": "3.620.0", | ||
"@aws-sdk/middleware-logger": "3.609.0", | ||
"@aws-sdk/middleware-recursion-detection": "3.620.0", | ||
"@aws-sdk/middleware-user-agent": "3.645.0", | ||
"@aws-sdk/region-config-resolver": "3.614.0", | ||
"@aws-sdk/types": "3.609.0", | ||
"@aws-sdk/util-endpoints": "3.645.0", | ||
"@aws-sdk/util-user-agent-browser": "3.609.0", | ||
"@aws-sdk/util-user-agent-node": "3.614.0", | ||
"@smithy/config-resolver": "^3.0.5", | ||
"@smithy/core": "^2.4.0", | ||
"@smithy/fetch-http-handler": "^3.2.4", | ||
"@smithy/hash-node": "^3.0.3", | ||
"@smithy/invalid-dependency": "^3.0.3", | ||
"@smithy/middleware-content-length": "^3.0.5", | ||
"@smithy/middleware-endpoint": "^3.1.0", | ||
"@smithy/middleware-retry": "^3.0.15", | ||
"@smithy/middleware-serde": "^3.0.3", | ||
"@smithy/middleware-stack": "^3.0.3", | ||
"@smithy/node-config-provider": "^3.1.4", | ||
"@smithy/node-http-handler": "^3.1.4", | ||
"@smithy/protocol-http": "^4.1.0", | ||
"@smithy/smithy-client": "^3.2.0", | ||
"@smithy/types": "^3.3.0", | ||
"@smithy/url-parser": "^3.0.3", | ||
"@aws-sdk/client-sso-oidc": "3.649.0", | ||
"@aws-sdk/client-sts": "3.649.0", | ||
"@aws-sdk/core": "3.649.0", | ||
"@aws-sdk/credential-provider-node": "3.649.0", | ||
"@aws-sdk/middleware-host-header": "3.649.0", | ||
"@aws-sdk/middleware-logger": "3.649.0", | ||
"@aws-sdk/middleware-recursion-detection": "3.649.0", | ||
"@aws-sdk/middleware-user-agent": "3.649.0", | ||
"@aws-sdk/region-config-resolver": "3.649.0", | ||
"@aws-sdk/types": "3.649.0", | ||
"@aws-sdk/util-endpoints": "3.649.0", | ||
"@aws-sdk/util-user-agent-browser": "3.649.0", | ||
"@aws-sdk/util-user-agent-node": "3.649.0", | ||
"@smithy/config-resolver": "^3.0.6", | ||
"@smithy/core": "^2.4.1", | ||
"@smithy/fetch-http-handler": "^3.2.5", | ||
"@smithy/hash-node": "^3.0.4", | ||
"@smithy/invalid-dependency": "^3.0.4", | ||
"@smithy/middleware-content-length": "^3.0.6", | ||
"@smithy/middleware-endpoint": "^3.1.1", | ||
"@smithy/middleware-retry": "^3.0.16", | ||
"@smithy/middleware-serde": "^3.0.4", | ||
"@smithy/middleware-stack": "^3.0.4", | ||
"@smithy/node-config-provider": "^3.1.5", | ||
"@smithy/node-http-handler": "^3.2.0", | ||
"@smithy/protocol-http": "^4.1.1", | ||
"@smithy/smithy-client": "^3.3.0", | ||
"@smithy/types": "^3.4.0", | ||
"@smithy/url-parser": "^3.0.4", | ||
"@smithy/util-base64": "^3.0.0", | ||
"@smithy/util-body-length-browser": "^3.0.0", | ||
"@smithy/util-body-length-node": "^3.0.0", | ||
"@smithy/util-defaults-mode-browser": "^3.0.15", | ||
"@smithy/util-defaults-mode-node": "^3.0.15", | ||
"@smithy/util-endpoints": "^2.0.5", | ||
"@smithy/util-middleware": "^3.0.3", | ||
"@smithy/util-retry": "^3.0.3", | ||
"@smithy/util-defaults-mode-browser": "^3.0.16", | ||
"@smithy/util-defaults-mode-node": "^3.0.16", | ||
"@smithy/util-endpoints": "^2.1.0", | ||
"@smithy/util-middleware": "^3.0.4", | ||
"@smithy/util-retry": "^3.0.4", | ||
"@smithy/util-utf8": "^3.0.0", | ||
@@ -62,0 +62,0 @@ "tslib": "^2.6.2" |
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
1848834
39690
+ Added@aws-sdk/client-sso@3.649.0(transitive)
+ Added@aws-sdk/client-sso-oidc@3.649.0(transitive)
+ Added@aws-sdk/client-sts@3.649.0(transitive)
+ Added@aws-sdk/core@3.649.0(transitive)
+ Added@aws-sdk/credential-provider-env@3.649.0(transitive)
+ Added@aws-sdk/credential-provider-http@3.649.0(transitive)
+ Added@aws-sdk/credential-provider-ini@3.649.0(transitive)
+ Added@aws-sdk/credential-provider-node@3.649.0(transitive)
+ Added@aws-sdk/credential-provider-process@3.649.0(transitive)
+ Added@aws-sdk/credential-provider-sso@3.649.0(transitive)
+ Added@aws-sdk/credential-provider-web-identity@3.649.0(transitive)
+ Added@aws-sdk/middleware-host-header@3.649.0(transitive)
+ Added@aws-sdk/middleware-logger@3.649.0(transitive)
+ Added@aws-sdk/middleware-recursion-detection@3.649.0(transitive)
+ Added@aws-sdk/middleware-user-agent@3.649.0(transitive)
+ Added@aws-sdk/region-config-resolver@3.649.0(transitive)
+ Added@aws-sdk/token-providers@3.649.0(transitive)
+ Added@aws-sdk/types@3.649.0(transitive)
+ Added@aws-sdk/util-endpoints@3.649.0(transitive)
+ Added@aws-sdk/util-user-agent-browser@3.649.0(transitive)
+ Added@aws-sdk/util-user-agent-node@3.649.0(transitive)
- Removed@aws-sdk/client-sso@3.645.0(transitive)
- Removed@aws-sdk/client-sso-oidc@3.645.0(transitive)
- Removed@aws-sdk/client-sts@3.645.0(transitive)
- Removed@aws-sdk/core@3.635.0(transitive)
- Removed@aws-sdk/credential-provider-env@3.620.1(transitive)
- Removed@aws-sdk/credential-provider-http@3.635.0(transitive)
- Removed@aws-sdk/credential-provider-ini@3.645.0(transitive)
- Removed@aws-sdk/credential-provider-node@3.645.0(transitive)
- Removed@aws-sdk/credential-provider-process@3.620.1(transitive)
- Removed@aws-sdk/credential-provider-sso@3.645.0(transitive)
- Removed@aws-sdk/credential-provider-web-identity@3.621.0(transitive)
- Removed@aws-sdk/middleware-host-header@3.620.0(transitive)
- Removed@aws-sdk/middleware-logger@3.609.0(transitive)
- Removed@aws-sdk/middleware-recursion-detection@3.620.0(transitive)
- Removed@aws-sdk/middleware-user-agent@3.645.0(transitive)
- Removed@aws-sdk/region-config-resolver@3.614.0(transitive)
- Removed@aws-sdk/token-providers@3.614.0(transitive)
- Removed@aws-sdk/types@3.609.0(transitive)
- Removed@aws-sdk/util-endpoints@3.645.0(transitive)
- Removed@aws-sdk/util-user-agent-browser@3.609.0(transitive)
- Removed@aws-sdk/util-user-agent-node@3.614.0(transitive)
Updated@aws-sdk/client-sts@3.649.0
Updated@aws-sdk/core@3.649.0
Updated@aws-sdk/types@3.649.0
Updated@smithy/core@^2.4.1
Updated@smithy/hash-node@^3.0.4
Updated@smithy/protocol-http@^4.1.1
Updated@smithy/smithy-client@^3.3.0
Updated@smithy/types@^3.4.0
Updated@smithy/url-parser@^3.0.4
Updated@smithy/util-retry@^3.0.4