@aws-sdk/shared-ini-file-loader
Advanced tools
Comparing version 1.0.0-gamma.2 to 1.0.0-gamma.3
@@ -6,2 +6,13 @@ # Change Log | ||
# [1.0.0-gamma.3](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/shared-ini-file-loader@1.0.0-gamma.2...@aws-sdk/shared-ini-file-loader@1.0.0-gamma.3) (2020-07-13) | ||
### Features | ||
* add code linting and prettify ([#1350](https://github.com/aws/aws-sdk-js-v3/issues/1350)) ([47770fa](https://github.com/aws/aws-sdk-js-v3/commit/47770fa493c3405f193069cd18319882529ff484)) | ||
# [1.0.0-gamma.2](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/shared-ini-file-loader@0.1.0-preview.1...@aws-sdk/shared-ini-file-loader@1.0.0-gamma.2) (2020-07-08) | ||
@@ -8,0 +19,0 @@ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.loadSharedConfigFiles = exports.ENV_CONFIG_PATH = exports.ENV_CREDENTIALS_PATH = void 0; | ||
var tslib_1 = require("tslib"); | ||
var fs_1 = require("fs"); | ||
var os_1 = require("os"); | ||
var path_1 = require("path"); | ||
var fs_1 = require("fs"); | ||
exports.ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE"; | ||
@@ -12,11 +13,6 @@ exports.ENV_CONFIG_PATH = "AWS_CONFIG_FILE"; | ||
if (init === void 0) { init = {}; } | ||
var _a = init.filepath, filepath = _a === void 0 ? process.env[exports.ENV_CREDENTIALS_PATH] || | ||
path_1.join(getHomeDir(), ".aws", "credentials") : _a, _b = init.configFilepath, configFilepath = _b === void 0 ? process.env[exports.ENV_CONFIG_PATH] || | ||
path_1.join(getHomeDir(), ".aws", "config") : _b; | ||
var _a = init.filepath, filepath = _a === void 0 ? process.env[exports.ENV_CREDENTIALS_PATH] || path_1.join(getHomeDir(), ".aws", "credentials") : _a, _b = init.configFilepath, configFilepath = _b === void 0 ? process.env[exports.ENV_CONFIG_PATH] || path_1.join(getHomeDir(), ".aws", "config") : _b; | ||
return Promise.all([ | ||
slurpFile(configFilepath) | ||
.then(parseIni) | ||
.then(normalizeConfigFile) | ||
.catch(swallowError), | ||
slurpFile(filepath).then(parseIni).catch(swallowError) | ||
slurpFile(configFilepath).then(parseIni).then(normalizeConfigFile).catch(swallowError), | ||
slurpFile(filepath).then(parseIni).catch(swallowError), | ||
]).then(function (parsedFiles) { | ||
@@ -26,3 +22,3 @@ var _a = tslib_1.__read(parsedFiles, 2), configFile = _a[0], credentialsFile = _a[1]; | ||
configFile: configFile, | ||
credentialsFile: credentialsFile | ||
credentialsFile: credentialsFile, | ||
}; | ||
@@ -44,2 +40,3 @@ }); | ||
else if ((matches = profileKeyRegex.exec(key))) { | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
var _d = tslib_1.__read(matches, 3), _1 = _d[0], _2 = _d[1], normalizedKey = _d[2]; | ||
@@ -113,2 +110,2 @@ if (normalizedKey) { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiLi9zcmMvIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSx5QkFBNkI7QUFDN0IsNkJBQWlDO0FBQ2pDLHlCQUE4QjtBQUVqQixRQUFBLG9CQUFvQixHQUFHLDZCQUE2QixDQUFDO0FBQ3JELFFBQUEsZUFBZSxHQUFHLGlCQUFpQixDQUFDO0FBK0JqRCxJQUFNLFlBQVksR0FBRyxjQUFNLE9BQUEsQ0FBQyxFQUFFLENBQUMsRUFBSixDQUFJLENBQUM7QUFFaEMsU0FBZ0IscUJBQXFCLENBQ25DLElBQTJCO0lBQTNCLHFCQUFBLEVBQUEsU0FBMkI7SUFHekIsSUFBQSxrQkFDMkMsRUFEM0M7NkRBQzJDLEVBQzNDLHdCQUNzQyxFQUR0Qzt3REFDc0MsQ0FDL0I7SUFFV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C9eXFxzKiguKz8pXFxzKj1cXHMqKC4rPylcXHMqJC8pO1xuICAgICAgaWYgKGl0ZW0pIHtcbiAgICAgICAgbWFwW2N1cnJlbnRTZWN0aW9uXSA9IG1hcFtjdXJyZW50U2VjdGlvbl0gfHwge307XG4gICAgICAgIG1hcFtjdXJyZW50U2VjdGlvbl1baXRlbVsxXV0gPSBpdGVtWzJdO1xuICAgICAgfVxuICAgIH1cbiAgfVxuXG4gIHJldHVybiBtYXA7XG59XG5cbmZ1bmN0aW9uIHNsdXJwRmlsZShwYXRoOiBzdHJpbmcpOiBQcm9taXNlPHN0cmluZz4ge1xuICByZXR1cm4gbmV3IFByb21pc2UoKHJlc29sdmUsIHJlamVjdCkgPT4ge1xuICAgIHJlYWRGaWxlKHBhdGgsIFwidXRmOFwiLCAoZXJyLCBkYXRhKSA9PiB7XG4gICAgICBpZiAoZXJyKSB7XG4gICAgICAgIHJlamVjdChlcnIpO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgcmVzb2x2ZShkYXRhKTtcbiAgICAgIH1cbiAgICB9KTtcbiAgfSk7XG59XG5cbmZ1bmN0aW9uIGdldEhvbWVEaXIoKTogc3RyaW5nIHtcbiAgY29uc3QgeyBIT01FLCBVU0VSUFJPRklMRSwgSE9NRVBBVEgsIEhPTUVEUklWRSA9IGBDOiR7c2VwfWAgfSA9IHByb2Nlc3MuZW52O1xuXG4gIGlmIChIT01FKSByZXR1cm4gSE9NRTtcbiAgaWYgKFVTRVJQUk9GSUxFKSByZXR1cm4gVVNFUlBST0ZJTEU7XG4gIGlmIChIT01FUEFUSCkgcmV0dXJuIGAke0hPTUVEUklWRX0ke0hPTUVQQVRIfWA7XG5cbiAgcmV0dXJuIGhvbWVkaXIoKTtcbn1cbiJdfQ== |
{ | ||
"name": "@aws-sdk/shared-ini-file-loader", | ||
"version": "1.0.0-gamma.2", | ||
"version": "1.0.0-gamma.3", | ||
"dependencies": { | ||
@@ -11,3 +11,3 @@ "tslib": "^1.8.0" | ||
"jest": "^26.1.0", | ||
"typescript": "~3.8.3" | ||
"typescript": "~3.9.3" | ||
}, | ||
@@ -14,0 +14,0 @@ "scripts": { |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
40572
0
172