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

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 7.0.7 to 7.0.9

3

lib/client.js

@@ -7,2 +7,3 @@ 'use strict';

const B64 = require('b64');
const Boom = require('boom');

@@ -294,3 +295,3 @@ const Hoek = require('hoek');

const bewit = credentials.id + '\\' + exp + '\\' + mac + '\\' + ext;
return Hoek.base64urlEncode(bewit);
return B64.base64urlEncode(bewit);
};

@@ -297,0 +298,0 @@

@@ -8,6 +8,10 @@ 'use strict';

exports.server = require('./server');
exports.client = require('./client');
exports.crypto = require('./crypto');
exports.utils = require('./utils');
exports.uri = {

@@ -14,0 +18,0 @@ authenticate: exports.server.authenticateBewit,

@@ -5,2 +5,3 @@ 'use strict';

const B64 = require('b64');
const Boom = require('boom');

@@ -369,3 +370,3 @@ const Cryptiles = require('cryptiles');

try {
var bewitString = Hoek.base64urlDecode(resource[3]);
var bewitString = B64.base64urlDecode(resource[3]);
}

@@ -372,0 +373,0 @@ catch (err) {

{
"name": "hawk",
"description": "HTTP Hawk Authentication Scheme",
"version": "7.0.7",
"author": "Eran Hammer <eran@hammer.io> (http://hueniverse.com)",
"version": "7.0.9",
"repository": "git://github.com/hueniverse/hawk",

@@ -15,7 +14,5 @@ "main": "lib/index.js",

],
"engines": {
"node": ">=8.9.0"
},
"dependencies": {
"hoek": "5.x.x",
"hoek": "6.x.x",
"b64": "4.x.x",
"boom": "7.x.x",

@@ -30,3 +27,3 @@ "cryptiles": "4.x.x",

"code": "5.x.x",
"lab": "15.x.x"
"lab": "17.x.x"
},

@@ -33,0 +30,0 @@ "scripts": {

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

const ( credentials, artifacts } = await Hawk.server.authenticate(req, credentialsFunc);
const { credentials, artifacts } = await Hawk.server.authenticate(req, credentialsFunc);

@@ -554,5 +554,3 @@ // Prepare response

As of version 0.10.0, **Hawk** is feature-complete. However, until this module reaches version 1.0.0 it is considered experimental
and is likely to change. This also means your feedback and contribution are very welcome. Feel free to open issues with questions
and suggestions.
Yes. The protocol is finished. This module might change with enhancements and bug fixes but the protocol itself is locked.

@@ -559,0 +557,0 @@ ### Where can I find **Hawk** implementations in other languages?

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