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

atlassian-jwt

Package Overview
Dependencies
Maintainers
6
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atlassian-jwt - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

11

dist/lib/jwt.js

@@ -24,3 +24,3 @@ "use strict";

*/
var crypto = __importStar(require("crypto"));
var crypto_1 = require("crypto");
var _ = __importStar(require("lodash"));

@@ -178,4 +178,3 @@ var jsuri_1 = __importDefault(require("jsuri"));

function createQueryStringHash(req, checkBodyForParams, baseUrl) {
return crypto
.createHash(algorithmMap.HS256)
return crypto_1.createHash(algorithmMap.HS256)
.update(createCanonicalRequest(req, checkBodyForParams, baseUrl))

@@ -189,7 +188,7 @@ .digest('hex');

function sign(input, key, method) {
var base64str = crypto.createHmac(method, key).update(input).digest('base64');
var base64str = crypto_1.createHmac(method, key).update(input).digest('base64');
return base64urlEscape(base64str);
}
function base64urlDecode(str) {
return new Buffer(base64urlUnescape(str), 'base64').toString();
return Buffer.from(base64urlUnescape(str), 'base64').toString();
}

@@ -201,3 +200,3 @@ function base64urlUnescape(str) {

function base64urlEncode(str) {
return base64urlEscape(new Buffer(str).toString('base64'));
return base64urlEscape(Buffer.from(str).toString('base64'));
}

@@ -204,0 +203,0 @@ function base64urlEscape(str) {

{
"name": "atlassian-jwt",
"description": "JWT (JSON Web Token) implementation with custom Atlassian QSH claim verification",
"version": "1.0.1",
"version": "1.0.2",
"author": "Seb Ruiz <sruiz@atlassian.com>",

@@ -21,3 +21,3 @@ "repository": {

"@types/qs": "^6.5.1",
"mocha": "^3.0.2",
"mocha": "^5.2.0",
"moment": "^2.14.1",

@@ -24,0 +24,0 @@ "qs": "^6.2.1",

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