Socket
Socket
Sign inDemoInstall

hawk

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hawk - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

2

lib/browser.js

@@ -508,1 +508,3 @@ /*

(function(){var h=CryptoJS,j=h.lib.WordArray;h.enc.Base64={stringify:function(b){var e=b.words,f=b.sigBytes,c=this._map;b.clamp();b=[];for(var a=0;a<f;a+=3)for(var d=(e[a>>>2]>>>24-8*(a%4)&255)<<16|(e[a+1>>>2]>>>24-8*((a+1)%4)&255)<<8|e[a+2>>>2]>>>24-8*((a+2)%4)&255,g=0;4>g&&a+0.75*g<f;g++)b.push(c.charAt(d>>>6*(3-g)&63));if(e=c.charAt(64))for(;b.length%4;)b.push(e);return b.join("")},parse:function(b){var e=b.length,f=this._map,c=f.charAt(64);c&&(c=b.indexOf(c),-1!=c&&(e=c));for(var c=[],a=0,d=0;d<e;d++)if(d%4){var g=f.indexOf(b.charAt(d-1))<<2*(d%4),h=f.indexOf(b.charAt(d))>>>6-2*(d%4);c[a>>>2]|=(g|h)<<24-8*(a%4);a++}return j.create(c,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}})();
hawk.crypto.internals = CryptoJS;

3

package.json
{
"name": "hawk",
"description": "HTTP Hawk Authentication Scheme",
"version": "2.1.0",
"version": "2.1.1",
"author": "Eran Hammer <eran@hueniverse.com> (http://hueniverse.com)",

@@ -18,2 +18,3 @@ "contributors": [],

},
"browser": "./lib/browser.js",
"dependencies": {

@@ -20,0 +21,0 @@ "hoek": "1.x.x",

@@ -8,3 +8,3 @@ ![hawk Logo](https://raw.github.com/hueniverse/hawk/master/images/hawk.png)

Note: 2.0 is the same exact protocol as 1.1. The version increment refelects a change in the internal error format
Note: 2.0 is the same exact protocol as 1.1. The version increment reflects a change in the internal error format
used by the module and used by the node API.

@@ -11,0 +11,0 @@

@@ -817,2 +817,33 @@ // Load modules

});
describe('#parseUri', function () {
it('returns empty port when unknown scheme', function (done) {
var uri = Browser.utils.parseUri('ftp://domain');
expect(uri.port).to.equal('');
done();
});
});
describe('CryptoJS', function () {
it('fills in coverage', function (done) {
Browser.crypto.internals.lib.WordArray.random(1);
var hmac = Browser.crypto.internals.HmacSHA1('a', 'b');
hmac.toString(Browser.crypto.internals.enc.Hex);
hmac.toString(Browser.crypto.internals.enc.Latin1);
Browser.crypto.internals.enc.Hex.parse('00');
Browser.crypto.internals.enc.Utf8.stringify('00');
var hash = Browser.crypto.internals.algo.SHA1.create();
hash.update('x');
hash.finalize();
Browser.crypto.internals.lib.BufferedBlockAlgorithm.clone.call(hash);
Browser.crypto.internals.lib.BufferedBlockAlgorithm._process.call(hash, 1);
done();
})
});
});

Sorry, the diff of this file is not supported yet

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