Skip to content

Commit 5e19ff3

Browse files
authored
npm upgrade (#244)
* npm upgrade * chore: Update dist
1 parent 3b9f13e commit 5e19ff3

File tree

8 files changed

+66844
-68894
lines changed

8 files changed

+66844
-68894
lines changed

dist/cleanup.js

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
1515
}) : function(o, v) {
1616
o["default"] = v;
1717
});
18-
var __importStar = (this && this.__importStar) || function (mod) {
19-
if (mod && mod.__esModule) return mod;
20-
var result = {};
21-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22-
__setModuleDefault(result, mod);
23-
return result;
24-
};
18+
var __importStar = (this && this.__importStar) || (function () {
19+
var ownKeys = function(o) {
20+
ownKeys = Object.getOwnPropertyNames || function (o) {
21+
var ar = [];
22+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23+
return ar;
24+
};
25+
return ownKeys(o);
26+
};
27+
return function (mod) {
28+
if (mod && mod.__esModule) return mod;
29+
var result = {};
30+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31+
__setModuleDefault(result, mod);
32+
return result;
33+
};
34+
})();
2535
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2636
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
2737
return new (P || (P = Promise))(function (resolve, reject) {
@@ -32,7 +42,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
3242
});
3343
};
3444
Object.defineProperty(exports, "__esModule", { value: true });
35-
exports.cleanup = void 0;
45+
exports.cleanup = cleanup;
3646
const core = __importStar(require("@actions/core"));
3747
const constants_1 = require("./constants");
3848
const utils_1 = require("./utils");
@@ -74,5 +84,4 @@ function cleanup() {
7484
}
7585
});
7686
}
77-
exports.cleanup = cleanup;
7887
cleanup();

dist/cleanup/index.js

Lines changed: 32440 additions & 33569 deletions
Large diffs are not rendered by default.

dist/index.js

Lines changed: 32442 additions & 33571 deletions
Large diffs are not rendered by default.

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/licenses.txt

Lines changed: 29 additions & 450 deletions
Large diffs are not rendered by default.

dist/sourcemap-register.js

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: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
1515
}) : function(o, v) {
1616
o["default"] = v;
1717
});
18-
var __importStar = (this && this.__importStar) || function (mod) {
19-
if (mod && mod.__esModule) return mod;
20-
var result = {};
21-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22-
__setModuleDefault(result, mod);
23-
return result;
24-
};
18+
var __importStar = (this && this.__importStar) || (function () {
19+
var ownKeys = function(o) {
20+
ownKeys = Object.getOwnPropertyNames || function (o) {
21+
var ar = [];
22+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23+
return ar;
24+
};
25+
return ownKeys(o);
26+
};
27+
return function (mod) {
28+
if (mod && mod.__esModule) return mod;
29+
var result = {};
30+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31+
__setModuleDefault(result, mod);
32+
return result;
33+
};
34+
})();
2535
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2636
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
2737
return new (P || (P = Promise))(function (resolve, reject) {
@@ -32,7 +42,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
3242
});
3343
};
3444
Object.defineProperty(exports, "__esModule", { value: true });
35-
exports.parseTransformationFunction = exports.cleanVariable = exports.extractAliasAndSecretIdFromInput = exports.isSecretArn = exports.transformToValidEnvName = exports.isJSONString = exports.injectSecret = exports.getSecretValue = exports.getSecretsWithPrefix = exports.buildSecretsList = void 0;
45+
exports.buildSecretsList = buildSecretsList;
46+
exports.getSecretsWithPrefix = getSecretsWithPrefix;
47+
exports.getSecretValue = getSecretValue;
48+
exports.injectSecret = injectSecret;
49+
exports.isJSONString = isJSONString;
50+
exports.transformToValidEnvName = transformToValidEnvName;
51+
exports.isSecretArn = isSecretArn;
52+
exports.extractAliasAndSecretIdFromInput = extractAliasAndSecretIdFromInput;
53+
exports.cleanVariable = cleanVariable;
54+
exports.parseTransformationFunction = parseTransformationFunction;
3655
const core = __importStar(require("@actions/core"));
3756
const client_secrets_manager_1 = require("@aws-sdk/client-secrets-manager");
3857
const constants_1 = require("./constants");
@@ -67,7 +86,6 @@ function buildSecretsList(client, configInputs, nameTransformation) {
6786
return [...finalSecretsList];
6887
});
6988
}
70-
exports.buildSecretsList = buildSecretsList;
7189
/**
7290
* Uses ListSecrets to find secrets for a given prefix
7391
*
@@ -114,7 +132,6 @@ function getSecretsWithPrefix(client, prefix, hasAlias) {
114132
}
115133
});
116134
}
117-
exports.getSecretsWithPrefix = getSecretsWithPrefix;
118135
/**
119136
* Retrieves a secret from Secrets Manager
120137
*
@@ -142,7 +159,6 @@ function getSecretValue(client, secretId) {
142159
};
143160
});
144161
}
145-
exports.getSecretValue = getSecretValue;
146162
/**
147163
* Transforms and injects secret as a masked environmental variable
148164
*
@@ -184,7 +200,6 @@ function injectSecret(secretName, secretValue, parseJsonSecrets, nameTransformat
184200
}
185201
return secretsToCleanup;
186202
}
187-
exports.injectSecret = injectSecret;
188203
/*
189204
* Checks if the given secret is a valid JSON value
190205
*/
@@ -199,7 +214,6 @@ function isJSONString(secretValue) {
199214
return false;
200215
}
201216
}
202-
exports.isJSONString = isJSONString;
203217
/*
204218
* Transforms the secret name into a valid environmental variable name
205219
* It should consist of only upper case letters, digits, and underscores and cannot begin with a number
@@ -214,7 +228,6 @@ function transformToValidEnvName(secretName, nameTransformation, hasPrefix = fal
214228
// Apply the name transformation. When no transformation is defined fallback to the "uppercase" transformation
215229
return nameTransformation ? nameTransformation(secretName) : secretName.toUpperCase();
216230
}
217-
exports.transformToValidEnvName = transformToValidEnvName;
218231
/**
219232
* Checks if the given secretId is an ARN
220233
*
@@ -225,7 +238,6 @@ function isSecretArn(secretId) {
225238
const validArn = new RegExp('^arn:aws:secretsmanager:.*:[0-9]{12,}:secret:.*$');
226239
return validArn.test(secretId);
227240
}
228-
exports.isSecretArn = isSecretArn;
229241
/*
230242
* Separates a secret alias from the secret name/arn, if one was provided
231243
*/
@@ -245,15 +257,13 @@ function extractAliasAndSecretIdFromInput(input, nameTransformation) {
245257
// No alias
246258
return [undefined, input.trim()];
247259
}
248-
exports.extractAliasAndSecretIdFromInput = extractAliasAndSecretIdFromInput;
249260
/*
250261
* Cleans up an environment variable
251262
*/
252263
function cleanVariable(variableName) {
253264
core.exportVariable(variableName, '');
254265
delete process.env[variableName];
255266
}
256-
exports.cleanVariable = cleanVariable;
257267
/*
258268
* Converts name of the transformation to the actual function that performs the transformation.
259269
*/
@@ -269,4 +279,3 @@ function parseTransformationFunction(config) {
269279
throw new Error(`'${config}' is unsupported transformation name. Allowed options are: 'uppercase', 'lowercase' and 'none'`);
270280
}
271281
}
272-
exports.parseTransformationFunction = parseTransformationFunction;

0 commit comments

Comments
 (0)