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

jsontokens

Package Overview
Dependencies
Maintainers
2
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsontokens - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3-beta.0

10

CHANGELOG.md

@@ -7,13 +7,20 @@ # Changelog

## [2.0.3]
### Changed
- No longer exporting buggy `@types/bn.js` package. Lib consumers no longer require enabling
synthetic default imports.
## [2.0.2]
### Changed
- Fixed bug with type packages listed in `devDependencies` instead of `dependencies`.
## [2.0.1]
### Added
- Added types to [TokenInterface](https://github.com/blockstack/jsontokens-js/issues/39).
## [2.0.0]
### Changed
- Ported to Typescript.
## [1.0.0]
### Changed

@@ -23,3 +30,2 @@ - We now have an .eslintrc definition and code that passes that linting spec.

## [0.8.0]
### Added

@@ -26,0 +32,0 @@ - You can now add custom header fields to the JWS header by passing

7

lib/cryptoClients/secp256k1.js
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const elliptic_1 = require("elliptic");
const crypto_1 = require("crypto");
const key_encoder_1 = __importDefault(require("key-encoder"));
const key_encoder_1 = require("key-encoder");
const ecdsa_sig_formatter_1 = require("ecdsa-sig-formatter");

@@ -84,2 +81,3 @@ const errors_1 = require("../errors");

}
exports.SECP256K1Client = SECP256K1Client;
SECP256K1Client.ec = new elliptic_1.ec('secp256k1');

@@ -93,3 +91,2 @@ SECP256K1Client.algorithmName = 'ES256K';

});
exports.SECP256K1Client = SECP256K1Client;
//# sourceMappingURL=secp256k1.js.map
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const base64url_1 = __importDefault(require("base64url"));
const base64url_1 = require("base64url");
function decodeToken(token) {

@@ -8,0 +5,0 @@ if (typeof token === 'string') {

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const base64url_1 = __importDefault(require("base64url"));
const base64url_1 = require("base64url");
const cryptoClients_1 = require("./cryptoClients");

@@ -8,0 +5,0 @@ const errors_1 = require("./errors");

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const base64url_1 = __importDefault(require("base64url"));
const base64url_1 = require("base64url");
const cryptoClients_1 = require("./cryptoClients");

@@ -8,0 +5,0 @@ const errors_1 = require("./errors");

{
"name": "jsontokens",
"version": "2.0.2",
"version": "2.0.3-beta.0",
"description": "node.js library for encoding, decoding, and verifying JSON Web Tokens (JWTs)",

@@ -60,3 +60,3 @@ "main": "lib/index.js",

"elliptic": "^6.4.1",
"key-encoder": "^2.0.2"
"key-encoder": "^2.0.3-beta.0"
},

@@ -63,0 +63,0 @@ "files": [

@@ -1,2 +0,2 @@

import test from 'tape'
import * as test from 'tape'

@@ -3,0 +3,0 @@ import { SECP256K1Client as secp256k1 } from '../index'

@@ -1,2 +0,2 @@

import test from 'tape'
import * as test from 'tape'
import base64url from 'base64url'

@@ -3,0 +3,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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