Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-sdk/shared-ini-file-loader

Package Overview
Dependencies
Maintainers
7
Versions
111
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/shared-ini-file-loader - npm Package Compare versions

Comparing version 3.29.0 to 3.32.0

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

# [3.32.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.31.0...v3.32.0) (2021-09-17)
**Note:** Version bump only for package @aws-sdk/shared-ini-file-loader
# [3.29.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.28.0...v3.29.0) (2021-09-02)

@@ -8,0 +16,0 @@

8

dist/cjs/index.js

@@ -11,3 +11,3 @@ "use strict";

const loadSharedConfigFiles = (init = {}) => {
const { filepath = process.env[exports.ENV_CREDENTIALS_PATH] || (0, path_1.join)((0, exports.getHomeDir)(), ".aws", "credentials"), configFilepath = process.env[exports.ENV_CONFIG_PATH] || (0, path_1.join)((0, exports.getHomeDir)(), ".aws", "config"), } = init;
const { filepath = process.env[exports.ENV_CREDENTIALS_PATH] || path_1.join(exports.getHomeDir(), ".aws", "credentials"), configFilepath = process.env[exports.ENV_CONFIG_PATH] || path_1.join(exports.getHomeDir(), ".aws", "config"), } = init;
return Promise.all([

@@ -67,3 +67,3 @@ slurpFile(configFilepath).then(parseIni).then(normalizeConfigFile).catch(swallowError),

const slurpFile = (path) => new Promise((resolve, reject) => {
(0, fs_1.readFile)(path, "utf8", (err, data) => {
fs_1.readFile(path, "utf8", (err, data) => {
if (err) {

@@ -90,5 +90,5 @@ reject(err);

return `${HOMEDRIVE}${HOMEPATH}`;
return (0, os_1.homedir)();
return os_1.homedir();
};
exports.getHomeDir = getHomeDir;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6W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cmV0dXJuIG1hcDtcbn07XG5cbmNvbnN0IHNsdXJwRmlsZSA9IChwYXRoOiBzdHJpbmcpOiBQcm9taXNlPHN0cmluZz4gPT5cbiAgbmV3IFByb21pc2UoKHJlc29sdmUsIHJlamVjdCkgPT4ge1xuICAgIHJlYWRGaWxlKHBhdGgsIFwidXRmOFwiLCAoZXJyLCBkYXRhKSA9PiB7XG4gICAgICBpZiAoZXJyKSB7XG4gICAgICAgIHJlamVjdChlcnIpO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgcmVzb2x2ZShkYXRhKTtcbiAgICAgIH1cbiAgICB9KTtcbiAgfSk7XG5cbi8qKlxuICogR2V0IHRoZSBIT01FIGRpcmVjdG9yeSBmb3IgdGhlIGN1cnJlbnQgcnVudGltZS5cbiAqXG4gKiBAaW50ZXJuYWxcbiAqL1xuZXhwb3J0IGNvbnN0IGdldEhvbWVEaXIgPSAoKTogc3RyaW5nID0+IHtcbiAgY29uc3QgeyBIT01FLCBVU0VSUFJPRklMRSwgSE9NRVBBVEgsIEhPTUVEUklWRSA9IGBDOiR7c2VwfWAgfSA9IHByb2Nlc3MuZW52O1xuXG4gIGlmIChIT01FKSByZXR1cm4gSE9NRTtcbiAgaWYgKFVTRVJQUk9GSUxFKSByZXR1cm4gVVNFUlBST0ZJTEU7XG4gIGlmIChIT01FUEFUSCkgcmV0dXJuIGAke0hPTUVEUklWRX0ke0hPTUVQQVRIfWA7XG5cbiAgcmV0dXJuIGhvbWVkaXIoKTtcbn07XG4iXX0=
{
"name": "@aws-sdk/shared-ini-file-loader",
"version": "3.29.0",
"version": "3.32.0",
"dependencies": {

@@ -11,3 +11,3 @@ "tslib": "^2.3.0"

"jest": "^26.1.0",
"typescript": "~4.4.2"
"typescript": "~4.3.5"
},

@@ -14,0 +14,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc