New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

secretkms

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

secretkms - npm Package Compare versions

Comparing version 1.9.0 to 1.10.0

26

dist/index.js

@@ -218,4 +218,4 @@ module.exports =

function init(config) {
if (!config || !config.accessKey || !config.secretKey || !config.region || !config.bucket || !config.masterKey) {
throw new Error('Configuration must include keys [accessKey, secretKey, region, bucket, masterKey]');
if (!config || !config.region || !config.bucket || !config.masterKey) {
throw new Error('Configuration must include keys [region, bucket, masterKey]');
}

@@ -225,2 +225,16 @@

var options = {
region: config.region
};
if (config.accessKey && config.secretKey) {
debug('Using explicit credentials');
options.credentials = new AWS.Credentials({
accessKeyId: config.accessKey,
secretAccessKey: config.secretKey
});
} else {
debug('Using credentials from environment');
}
return {

@@ -231,9 +245,3 @@ config: config,

kms: new AWS.KMS({
region: config.region,
credentials: new AWS.Credentials({
accessKeyId: config.accessKey,
secretAccessKey: config.secretKey
})
}),
kms: new AWS.KMS(options),

@@ -240,0 +248,0 @@ /**

{
"name": "secretkms",
"version": "1.9.0",
"version": "1.10.0",
"private": false,

@@ -5,0 +5,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