Socket
Socket
Sign inDemoInstall

jose

Package Overview
Dependencies
Maintainers
1
Versions
206
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jose - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

## [2.0.3](https://github.com/panva/jose/compare/v2.0.2...v2.0.3) (2020-10-29)
### Bug Fixes
* allow stubbing of the JWT.decode function ([6c3b92f](https://github.com/panva/jose/commit/6c3b92f4394a5d7092d7336922eda61e311e6f8c))
## [2.0.2](https://github.com/panva/jose/compare/v2.0.1...v2.0.2) (2020-09-14)

@@ -7,0 +14,0 @@

2

lib/help/base64url.js

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

/* global BigInt */
const fromBase64 = (base64) => {

@@ -4,0 +2,0 @@ return base64.replace(/=/g, '').replace(/\+/g, '-').replace(/\//g, '_')

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

/* global BigInt */
const { keyObjectSupported } = require('./runtime_support')

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

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

/* global BigInt */
const { EOL } = require('os')

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

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

/* global BigInt */
const { randomBytes } = require('crypto')

@@ -70,3 +68,3 @@

while (b > 0) {
var leastSignificantBit = b % TWO
const leastSignificantBit = b % TWO
b = b / TWO

@@ -73,0 +71,0 @@ if (leastSignificantBit === ONE) {

@@ -109,34 +109,44 @@ const { strict: assert } = require('assert')

enumerable: true,
...(kid ? { value: kid } : {
get () {
Object.defineProperty(this, 'kid', { value: this.thumbprint, configurable: false })
return this.kid
},
configurable: true
})
...(kid
? { value: kid }
: {
get () {
Object.defineProperty(this, 'kid', { value: this.thumbprint, configurable: false })
return this.kid
},
configurable: true
})
},
...(x5c ? {
x5t: {
enumerable: true,
...(x5t ? { value: x5t } : {
get () {
Object.defineProperty(this, 'x5t', { value: thumbprint.x5t(this.x5c[0]), configurable: false })
return this.x5t
},
configurable: true
})
}
} : undefined),
...(x5c ? {
'x5t#S256': {
enumerable: true,
...(x5t256 ? { value: x5t256 } : {
get () {
Object.defineProperty(this, 'x5t#S256', { value: thumbprint['x5t#S256'](this.x5c[0]), configurable: false })
return this['x5t#S256']
},
configurable: true
})
}
} : undefined),
...(x5c
? {
x5t: {
enumerable: true,
...(x5t
? { value: x5t }
: {
get () {
Object.defineProperty(this, 'x5t', { value: thumbprint.x5t(this.x5c[0]), configurable: false })
return this.x5t
},
configurable: true
})
}
}
: undefined),
...(x5c
? {
'x5t#S256': {
enumerable: true,
...(x5t256
? { value: x5t256 }
: {
get () {
Object.defineProperty(this, 'x5t#S256', { value: thumbprint['x5t#S256'](this.x5c[0]), configurable: false })
return this['x5t#S256']
},
configurable: true
})
}
}
: undefined),
thumbprint: {

@@ -143,0 +153,0 @@ get () {

@@ -29,10 +29,12 @@ const { inspect } = require('util')

while (keys.some(Array.isArray)) {
keys = keys.flat ? keys.flat() : keys.reduce((acc, val) => {
if (Array.isArray(val)) {
return [...acc, ...val]
}
keys = keys.flat
? keys.flat()
: keys.reduce((acc, val) => {
if (Array.isArray(val)) {
return [...acc, ...val]
}
acc.push(val)
return acc
}, [])
acc.push(val)
return acc
}, [])
}

@@ -175,2 +177,3 @@ if (keys.some(k => !isKey(k) || !k.kty)) {

}
return undefined
}

@@ -177,0 +180,0 @@ }).filter(Boolean)

@@ -14,3 +14,4 @@ const decode = require('./decode')

enumerable: false,
configurable: true,
value: decode
})
{
"name": "jose",
"version": "2.0.2",
"version": "2.0.3",
"description": "JSON Web Almost Everything - JWA, JWS, JWE, JWK, JWT, JWKS for Node.js with minimal dependencies",

@@ -92,9 +92,8 @@ "keywords": [

"devDependencies": {
"@commitlint/cli": "^9.1.1",
"@commitlint/config-conventional": "^9.1.1",
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"ava": "^2.4.0",
"babel-eslint": "^10.0.3",
"c8": "^7.2.1",
"husky": "^4.0.0",
"standard": "^14.3.1"
"c8": "^7.3.5",
"husky": "^4.3.0",
"standard": "^16.0.0"
},

@@ -104,5 +103,2 @@ "engines": {

},
"standard": {
"parser": "babel-eslint"
},
"standard-version": {

@@ -109,0 +105,0 @@ "scripts": {

@@ -31,6 +31,2 @@ # jose

## Sponsor
[<img width="65" height="65" align="left" src="https://avatars.githubusercontent.com/u/2824157?s=75&v=4" alt="auth0-logo">][sponsor-auth0] If you want to quickly add secure token-based authentication to Node.js projects, feel free to check Auth0’s free plan at [auth0.com/overview][sponsor-auth0].<br><br>
## Support

@@ -411,2 +407,1 @@

[support-sponsor]: https://github.com/sponsors/panva
[sponsor-auth0]: https://auth0.com/overview?utm_source=GHsponsor&utm_medium=GHsponsor&utm_campaign=panva-jose&utm_content=auth
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc