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

insomnia-plugin-aws-profiles

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

insomnia-plugin-aws-profiles - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

9

index.js

@@ -46,7 +46,10 @@ "use strict";

const loadAwsCred = await shared_ini_file_loader_1.loadSharedConfigFiles();
if (!loadAwsCred.credentialsFile[profile])
if (!loadAwsCred.credentialsFile)
return `credentials not found`;
const selectedProfile = loadAwsCred.credentialsFile[profile];
if (!selectedProfile)
return `${profile} not found`;
if (!loadAwsCred.credentialsFile[profile][attribute])
if (!selectedProfile[attribute])
return `${attribute} not found for ${profile}`;
return loadAwsCred.credentialsFile[profile][attribute];
return selectedProfile[attribute];
},

@@ -53,0 +56,0 @@ }

@@ -44,11 +44,11 @@ import {loadSharedConfigFiles} from "@aws-sdk/shared-ini-file-loader";

const loadAwsCred = await loadSharedConfigFiles()
if(!loadAwsCred.credentialsFile[profile]) return `${profile} not found`
// @ts-ignore
if(!loadAwsCred.credentialsFile[profile][attribute]) return `${attribute} not found for ${profile}`
if(!loadAwsCred.credentialsFile) return `credentials not found`
const selectedProfile = loadAwsCred.credentialsFile[profile]
// @ts-ignore
return loadAwsCred.credentialsFile[profile][attribute];
if(!selectedProfile) return `${profile} not found`
if(!selectedProfile[attribute]) return `${attribute} not found for ${profile}`
return selectedProfile[attribute];
},
}
];
{
"name": "insomnia-plugin-aws-profiles",
"version": "1.0.0",
"version": "1.0.1",
"description": "An Insomnia plugin to retrieve aws credentials for use with IAM authentication",
"main": "index.js",
"homepage": "https://github.com/blue-urban-sky/insomnia-plugin-aws-profiles",
"insomnia": {

@@ -35,5 +36,4 @@ "name": "insomnia-plugin-aws-profiles",

"dependencies": {
"@aws-sdk/credential-provider-ini": "^3.15.0",
"@aws-sdk/shared-ini-file-loader": "^3.13.1"
}
}

Sorry, the diff of this file is not supported yet

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