Comparing version 7.0.7 to 7.0.9
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1408
110948
5
2
639
+ Addedb64@4.x.x
+ Addedb64@4.1.2(transitive)
- Removedhoek@5.0.4(transitive)
Updatedhoek@6.x.x