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

alks-node

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alks-node - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

42

lib/alks-api.js

@@ -311,2 +311,42 @@ /*jslint node: true */

});
};
};
exports.deleteIamRole = function(account, password, roleName, opts, callback){
var payload = _.extend({
password: password,
account: account.alksAccount,
role: account.alksRole,
roleName: roleName
}, account),
options = _.extend({
debug: false,
ua: DEFAULT_UA
}, opts),
endpoint = account.server + '/deleteRole/';
log('api:deleteIamRole', 'deleting IAM role at endpoint: ' + endpoint, options);
log('api:deleteIamRole', 'with data: ' + JSON.stringify(sanitizeData(payload), null, 4), options);
request({
url: endpoint,
method: 'POST',
json: payload,
headers: {
'User-Agent': options.ua
}
}, function(err, results){
if(err){
return callback(err);
}
else if(results.statusCode !== 200){
return callback(new Error(getMessageFromBadResponse(results)));
}
if(results.body.errors && results.body.errors.length){
callback(new Error(results.body.errors[0]), null);
}
else{
callback(null, results.body);
}
});
};

2

package.json
{
"name": "alks-node",
"version": "0.4.0",
"version": "0.5.0",
"description": "Node client for ALKS",

@@ -5,0 +5,0 @@ "main": "lib/alks-api.js",

@@ -80,2 +80,6 @@ #ALKS Node Client

Creates a new IAM role, provided account must contain valid ALKS IAM session.
Creates a new IAM role, provided account must contain valid ALKS IAM session.
### deleteIamRole(account, password, roleName, options, callback)
Deletes a previously created IAM role, provided account must contain valid ALKS IAM session.
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