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

knox

Package Overview
Dependencies
Maintainers
2
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

knox - npm Package Compare versions

Comparing version 0.5.4 to 0.5.5

4

lib/auth.js

@@ -61,3 +61,3 @@

exports.hmacSha1 = function(options){
return crypto.createHmac('sha1', options.secret).update(options.message).digest('base64');
return crypto.createHmac('sha1', options.secret).update(new Buffer(options.message, 'utf-8')).digest('base64');
};

@@ -139,2 +139,4 @@

options.date + '\n' +
(typeof options.token !== 'undefined' ?
'x-amz-security-token:' + options.token + '\n' : '') +
options.resource;

@@ -141,0 +143,0 @@ };

@@ -739,2 +739,3 @@ /*!

, verb: verb || 'GET'
, token: this.token
});

@@ -748,2 +749,5 @@

if (typeof this.token !== 'undefined')
queryString += '&x-amz-security-token=' + encodeURIComponent(this.token);
return this.url(ensureLeadingSlash(filename)) + '?' + queryString;

@@ -750,0 +754,0 @@ };

@@ -9,3 +9,3 @@ {

],
"version": "0.5.4",
"version": "0.5.5",
"author": "TJ Holowaychuk <tj@learnboost.com>",

@@ -12,0 +12,0 @@ "contributors": [

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