Skip to content

Commit 3b9f13e

Browse files
committed
chore: Update dist
1 parent 33845c8 commit 3b9f13e

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

dist/cleanup/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84649,8 +84649,8 @@ function injectSecret(secretName, secretValue, parseJsonSecrets, nameTransformat
8464984649
const keyValue = typeof secretMap[k] === 'string' ? secretMap[k] : JSON.stringify(secretMap[k]);
8465084650
// Append the current key to the name of the env variable and check to avoid prepending an underscore
8465184651
const newEnvName = [
84652-
tempEnvName || transformToValidEnvName(secretName, nameTransformation),
84653-
transformToValidEnvName(k, nameTransformation)
84652+
tempEnvName || transformToValidEnvName(secretName, nameTransformation, false),
84653+
transformToValidEnvName(k, nameTransformation, true)
8465484654
]
8465584655
.filter(elem => elem) // Uses truthy-ness of elem to determine if it remains
8465684656
.join("_"); // Join the remaining elements with an underscore
@@ -84692,9 +84692,9 @@ exports.isJSONString = isJSONString;
8469284692
* Transforms the secret name into a valid environmental variable name
8469384693
* It should consist of only upper case letters, digits, and underscores and cannot begin with a number
8469484694
*/
84695-
function transformToValidEnvName(secretName, nameTransformation) {
84695+
function transformToValidEnvName(secretName, nameTransformation, hasPrefix = false) {
8469684696
// Leading digits are invalid
84697-
if (secretName.match(/^[0-9]/)) {
84697+
if (!hasPrefix && secretName.match(/^[0-9]/)) {
8469884698
secretName = '_'.concat(secretName);
8469984699
}
8470084700
// Remove invalid characters

dist/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84673,8 +84673,8 @@ function injectSecret(secretName, secretValue, parseJsonSecrets, nameTransformat
8467384673
const keyValue = typeof secretMap[k] === 'string' ? secretMap[k] : JSON.stringify(secretMap[k]);
8467484674
// Append the current key to the name of the env variable and check to avoid prepending an underscore
8467584675
const newEnvName = [
84676-
tempEnvName || transformToValidEnvName(secretName, nameTransformation),
84677-
transformToValidEnvName(k, nameTransformation)
84676+
tempEnvName || transformToValidEnvName(secretName, nameTransformation, false),
84677+
transformToValidEnvName(k, nameTransformation, true)
8467884678
]
8467984679
.filter(elem => elem) // Uses truthy-ness of elem to determine if it remains
8468084680
.join("_"); // Join the remaining elements with an underscore
@@ -84716,9 +84716,9 @@ exports.isJSONString = isJSONString;
8471684716
* Transforms the secret name into a valid environmental variable name
8471784717
* It should consist of only upper case letters, digits, and underscores and cannot begin with a number
8471884718
*/
84719-
function transformToValidEnvName(secretName, nameTransformation) {
84719+
function transformToValidEnvName(secretName, nameTransformation, hasPrefix = false) {
8472084720
// Leading digits are invalid
84721-
if (secretName.match(/^[0-9]/)) {
84721+
if (!hasPrefix && secretName.match(/^[0-9]/)) {
8472284722
secretName = '_'.concat(secretName);
8472384723
}
8472484724
// Remove invalid characters

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/utils.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ function injectSecret(secretName, secretValue, parseJsonSecrets, nameTransformat
161161
const keyValue = typeof secretMap[k] === 'string' ? secretMap[k] : JSON.stringify(secretMap[k]);
162162
// Append the current key to the name of the env variable and check to avoid prepending an underscore
163163
const newEnvName = [
164-
tempEnvName || transformToValidEnvName(secretName, nameTransformation),
165-
transformToValidEnvName(k, nameTransformation)
164+
tempEnvName || transformToValidEnvName(secretName, nameTransformation, false),
165+
transformToValidEnvName(k, nameTransformation, true)
166166
]
167167
.filter(elem => elem) // Uses truthy-ness of elem to determine if it remains
168168
.join("_"); // Join the remaining elements with an underscore
@@ -204,9 +204,9 @@ exports.isJSONString = isJSONString;
204204
* Transforms the secret name into a valid environmental variable name
205205
* It should consist of only upper case letters, digits, and underscores and cannot begin with a number
206206
*/
207-
function transformToValidEnvName(secretName, nameTransformation) {
207+
function transformToValidEnvName(secretName, nameTransformation, hasPrefix = false) {
208208
// Leading digits are invalid
209-
if (secretName.match(/^[0-9]/)) {
209+
if (!hasPrefix && secretName.match(/^[0-9]/)) {
210210
secretName = '_'.concat(secretName);
211211
}
212212
// Remove invalid characters

0 commit comments

Comments
 (0)