Socket
Socket
Sign inDemoInstall

@connectedcars/jwtutils

Package Overview
Dependencies
0
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

.travis.yml

2

package.json
{
"name": "@connectedcars/jwtutils",
"version": "1.0.0",
"version": "1.0.1",
"description": "Zero dependency JWT encoding/decoding for Node",

@@ -5,0 +5,0 @@ "main": "src/index.js",

# node-jwtutils
[![Build Status](https://travis-ci.org/connectedcars/node-jwtutils.svg?branch=master)](https://travis-ci.org/connectedcars/node-jwtutils)
Zero dependency JWT encoding and decoding

@@ -4,0 +6,0 @@

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

'use strict'
const jwtEncode = require('./jwtencode')

@@ -2,0 +4,0 @@ const jwtDecode = require('./jwtdecode')

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

'use strict'
const expect = require('unexpected')

@@ -2,0 +4,0 @@ const jwtUtils = require('./index')

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

'use strict'
const crypto = require('crypto')

@@ -108,3 +110,3 @@ const JwtVerifyError = require('./jwtverifyerror')

function base64DecodeUrlSafe(base64StringUrlSafe) {
base64String = base64StringUrlSafe.replace(/-/g, '+').replace(/_/g, '/')
let base64String = base64StringUrlSafe.replace(/-/g, '+').replace(/_/g, '/')
switch (base64String.length % 4) {

@@ -111,0 +113,0 @@ case 2:

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

'use strict'
const expect = require('unexpected')

@@ -2,0 +4,0 @@ const jwtUtils = require('./index')

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

'use strict'
const crypto = require('crypto')

@@ -2,0 +4,0 @@

@@ -0,7 +1,6 @@

'use strict'
const expect = require('unexpected')
const jwtUtils = require('./index')
const pubKeys = {}
const audiences = []
describe('jwtUtils', () => {

@@ -8,0 +7,0 @@ describe('decode', () => {

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

'use strict'
function JwtVerifyError(message) {

@@ -2,0 +4,0 @@ this.name = 'JwtVerifyError'

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc