@aws-lambda-powertools/parameters
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -14,3 +14,3 @@ import type { JSONValue } from '@aws-lambda-powertools/commons/types'; | ||
* When the transform is `binary` or `auto` and the key ends with `.binary`, the value will be decoded from base64 using the `fromBase64` function | ||
* from the `@aws-sdk/util-base64-node` package. | ||
* from the `@aws-lambda-powertools/commons/utils/base64` package. | ||
* | ||
@@ -17,0 +17,0 @@ * If the transformation fails, the function will return the value as-is unless `throwOnTransformError` is set to `true`. |
@@ -5,3 +5,3 @@ "use strict"; | ||
const commons_1 = require("@aws-lambda-powertools/commons"); | ||
const util_base64_node_1 = require("@aws-sdk/util-base64-node"); | ||
const base64_1 = require("@aws-lambda-powertools/commons/utils/base64"); | ||
const constants_js_1 = require("../constants.js"); | ||
@@ -20,3 +20,3 @@ const errors_js_1 = require("../errors.js"); | ||
* When the transform is `binary` or `auto` and the key ends with `.binary`, the value will be decoded from base64 using the `fromBase64` function | ||
* from the `@aws-sdk/util-base64-node` package. | ||
* from the `@aws-lambda-powertools/commons/utils/base64` package. | ||
* | ||
@@ -58,3 +58,3 @@ * If the transformation fails, the function will return the value as-is unless `throwOnTransformError` is set to `true`. | ||
else if (isBinaryTransform || isAutoBinaryTransform) { | ||
return new TextDecoder('utf-8').decode((0, util_base64_node_1.fromBase64)(value)); | ||
return new TextDecoder('utf-8').decode((0, base64_1.fromBase64)(value, 'base64')); | ||
} | ||
@@ -61,0 +61,0 @@ } |
@@ -14,3 +14,3 @@ import type { JSONValue } from '@aws-lambda-powertools/commons/types'; | ||
* When the transform is `binary` or `auto` and the key ends with `.binary`, the value will be decoded from base64 using the `fromBase64` function | ||
* from the `@aws-sdk/util-base64-node` package. | ||
* from the `@aws-lambda-powertools/commons/utils/base64` package. | ||
* | ||
@@ -17,0 +17,0 @@ * If the transformation fails, the function will return the value as-is unless `throwOnTransformError` is set to `true`. |
import { isString } from '@aws-lambda-powertools/commons'; | ||
import { fromBase64 } from '@aws-sdk/util-base64-node'; | ||
import { fromBase64 } from '@aws-lambda-powertools/commons/utils/base64'; | ||
import { TRANSFORM_METHOD_BINARY, TRANSFORM_METHOD_JSON, } from '../constants.js'; | ||
@@ -16,3 +16,3 @@ import { TransformParameterError } from '../errors.js'; | ||
* When the transform is `binary` or `auto` and the key ends with `.binary`, the value will be decoded from base64 using the `fromBase64` function | ||
* from the `@aws-sdk/util-base64-node` package. | ||
* from the `@aws-lambda-powertools/commons/utils/base64` package. | ||
* | ||
@@ -54,3 +54,3 @@ * If the transformation fails, the function will return the value as-is unless `throwOnTransformError` is set to `true`. | ||
else if (isBinaryTransform || isAutoBinaryTransform) { | ||
return new TextDecoder('utf-8').decode(fromBase64(value)); | ||
return new TextDecoder('utf-8').decode(fromBase64(value, 'base64')); | ||
} | ||
@@ -57,0 +57,0 @@ } |
{ | ||
"name": "@aws-lambda-powertools/parameters", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "The parameters package for the Powertools for AWS Lambda (TypeScript) library", | ||
@@ -28,4 +28,3 @@ "author": { | ||
"dependencies": { | ||
"@aws-lambda-powertools/commons": "^2.0.3", | ||
"@aws-sdk/util-base64-node": "^3.209.0" | ||
"@aws-lambda-powertools/commons": "^2.0.4" | ||
}, | ||
@@ -78,4 +77,4 @@ "peerDependencies": { | ||
"./base/types": { | ||
"import": "./lib/esm/types/BaseProvider.d.ts", | ||
"require": "./lib/cjs/types/BaseProvider.d.ts" | ||
"import": "./lib/esm/types/BaseProvider.js", | ||
"require": "./lib/cjs/types/BaseProvider.js" | ||
}, | ||
@@ -87,4 +86,4 @@ "./base": { | ||
"./ssm/types": { | ||
"import": "./lib/esm/types/SSMProvider.d.ts", | ||
"require": "./lib/cjs/types/SSMProvider.d.ts" | ||
"import": "./lib/esm/types/SSMProvider.js", | ||
"require": "./lib/cjs/types/SSMProvider.js" | ||
}, | ||
@@ -96,4 +95,4 @@ "./ssm": { | ||
"./secrets/types": { | ||
"import": "./lib/esm/types/SecretsProvider.d.ts", | ||
"require": "./lib/cjs/types/SecretsProvider.d.ts" | ||
"import": "./lib/esm/types/SecretsProvider.js", | ||
"require": "./lib/cjs/types/SecretsProvider.js" | ||
}, | ||
@@ -105,4 +104,4 @@ "./secrets": { | ||
"./dynamodb/types": { | ||
"import": "./lib/esm/types/AppConfigProvider.d.ts", | ||
"require": "./lib/cjs/types/AppConfigProvider.d.ts" | ||
"import": "./lib/esm/types/DynamoDBProvider.js", | ||
"require": "./lib/cjs/types/DynamoDBProvider.js" | ||
}, | ||
@@ -114,4 +113,4 @@ "./dynamodb": { | ||
"./appconfig/types": { | ||
"import": "./lib/esm/appconfig/index.js", | ||
"require": "./lib/cjs/appconfig/index.js" | ||
"import": "./lib/esm/types/AppConfigProvider.js", | ||
"require": "./lib/cjs/types/AppConfigProvider.js" | ||
}, | ||
@@ -118,0 +117,0 @@ "./appconfig": { |
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
547505
7
- Removed@aws-sdk/util-base64-node@^3.209.0
- Removed@aws-sdk/is-array-buffer@3.201.0(transitive)
- Removed@aws-sdk/util-base64-node@3.209.0(transitive)
- Removed@aws-sdk/util-buffer-from@3.208.0(transitive)