@aws-sdk/client-efs
Advanced tools
Comparing version 3.525.0 to 3.529.0
@@ -0,1 +1,2 @@ | ||
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core"; | ||
import { requestBuilder as rb } from "@smithy/core"; | ||
@@ -1528,41 +1529,1 @@ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client"; | ||
const _tK = "tagKeys"; | ||
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { | ||
if (encoded.length) { | ||
return JSON.parse(encoded); | ||
} | ||
return {}; | ||
}); | ||
const parseErrorBody = async (errorBody, context) => { | ||
const value = await parseBody(errorBody, context); | ||
value.message = value.message ?? value.Message; | ||
return value; | ||
}; | ||
const loadRestJsonErrorCode = (output, data) => { | ||
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()); | ||
const sanitizeErrorCode = (rawValue) => { | ||
let cleanValue = rawValue; | ||
if (typeof cleanValue === "number") { | ||
cleanValue = cleanValue.toString(); | ||
} | ||
if (cleanValue.indexOf(",") >= 0) { | ||
cleanValue = cleanValue.split(",")[0]; | ||
} | ||
if (cleanValue.indexOf(":") >= 0) { | ||
cleanValue = cleanValue.split(":")[0]; | ||
} | ||
if (cleanValue.indexOf("#") >= 0) { | ||
cleanValue = cleanValue.split("#")[1]; | ||
} | ||
return cleanValue; | ||
}; | ||
const headerKey = findKey(output.headers, "x-amzn-errortype"); | ||
if (headerKey !== undefined) { | ||
return sanitizeErrorCode(output.headers[headerKey]); | ||
} | ||
if (data.code !== undefined) { | ||
return sanitizeErrorCode(data.code); | ||
} | ||
if (data["__type"] !== undefined) { | ||
return sanitizeErrorCode(data["__type"]); | ||
} | ||
}; |
{ | ||
"name": "@aws-sdk/client-efs", | ||
"description": "AWS SDK for JavaScript Efs Client for Node.js, Browser and React Native", | ||
"version": "3.525.0", | ||
"version": "3.529.0", | ||
"scripts": { | ||
@@ -23,5 +23,5 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", | ||
"@aws-crypto/sha256-js": "3.0.0", | ||
"@aws-sdk/client-sts": "3.525.0", | ||
"@aws-sdk/core": "3.525.0", | ||
"@aws-sdk/credential-provider-node": "3.525.0", | ||
"@aws-sdk/client-sts": "3.529.0", | ||
"@aws-sdk/core": "3.529.0", | ||
"@aws-sdk/credential-provider-node": "3.529.0", | ||
"@aws-sdk/middleware-host-header": "3.523.0", | ||
@@ -28,0 +28,0 @@ "@aws-sdk/middleware-logger": "3.523.0", |
Sorry, the diff of this file is too big to display
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
774121
17122
+ Added@aws-sdk/client-sso@3.529.0(transitive)
+ Added@aws-sdk/client-sso-oidc@3.529.0(transitive)
+ Added@aws-sdk/client-sts@3.529.0(transitive)
+ Added@aws-sdk/core@3.529.0(transitive)
+ Added@aws-sdk/credential-provider-ini@3.529.0(transitive)
+ Added@aws-sdk/credential-provider-node@3.529.0(transitive)
+ Added@aws-sdk/credential-provider-sso@3.529.0(transitive)
+ Added@aws-sdk/credential-provider-web-identity@3.529.0(transitive)
+ Added@aws-sdk/token-providers@3.529.0(transitive)
- Removed@aws-sdk/client-sso@3.525.0(transitive)
- Removed@aws-sdk/client-sso-oidc@3.525.0(transitive)
- Removed@aws-sdk/client-sts@3.525.0(transitive)
- Removed@aws-sdk/core@3.525.0(transitive)
- Removed@aws-sdk/credential-provider-ini@3.525.0(transitive)
- Removed@aws-sdk/credential-provider-node@3.525.0(transitive)
- Removed@aws-sdk/credential-provider-sso@3.525.0(transitive)
- Removed@aws-sdk/credential-provider-web-identity@3.525.0(transitive)
- Removed@aws-sdk/token-providers@3.525.0(transitive)
- Removedfast-xml-parser@4.2.5(transitive)
- Removedstrnum@1.0.5(transitive)
Updated@aws-sdk/client-sts@3.529.0
Updated@aws-sdk/core@3.529.0