Socket
Socket
Sign inDemoInstall

node-jose

Package Overview
Dependencies
Maintainers
3
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-jose - npm Package Compare versions

Comparing version 2.1.1 to 2.2.0

.github/workflows/codeql.yml

1

lib/deps/ecc/math.js

@@ -49,2 +49,3 @@ /**

function barrettReduce(x) {
if (x.s < 0) { throw Error("Barrett reduction on negative input"); }
x.drShiftTo(this.m.t-1,this.r2);

@@ -51,0 +52,0 @@ if(x.t > this.m.t+1) { x.t = this.m.t+1; x.clamp(); }

@@ -91,2 +91,11 @@ /*!

// Ensure that the jsbn modInverse function always returns a positive result
const originalModInverse = forge.jsbn.BigInteger.prototype.modInverse;
const positiveModInverse = function(m) {
const inv = originalModInverse.apply(this, [m]);
return inv.mod(m);
}
forge.jsbn.BigInteger.prototype.modInverse = positiveModInverse;
module.exports = forge;

38

package.json
{
"name": "node-jose",
"version": "2.1.1",
"version": "2.2.0",
"description": "A JavaScript implementation of the JSON Object Signing and Encryption (JOSE) for current web browsers and node.js-based servers",

@@ -28,3 +28,3 @@ "keywords": [

"scripts": {
"test": "gulp test:nodejs"
"test": "mocha './test/**/*-test.js'"
},

@@ -46,38 +46,10 @@ "browser": {

"process": "^0.11.10",
"uuid": "^8.3.2"
"uuid": "^9.0.0"
},
"devDependencies": {
"bowser": "^2.11.0",
"browserify-istanbul": "^3.0.1",
"chai": "^4.3.4",
"del": "^6.0.0",
"eslint-plugin-mocha-no-only": "^1.1.1",
"fancy-log": "^2.0.0",
"gulp": "^4.0.2",
"gulp-eslint": "^6.0.0",
"gulp-istanbul": "^1.1.3",
"gulp-mocha": "^8.0.0",
"gulp-rename": "^2.0.0",
"gulp-uglify": "^3.0.2",
"chai": "^4.3.7",
"is-safari": "^1.0.0",
"istanbul": "^0.4.0",
"jose-cookbook": "git+https://github.com/ietf-jose/cookbook.git",
"json-loader": "^0.5.7",
"karma": "^6.3.13",
"karma-chrome-launcher": "^3.1.0",
"karma-coverage": "^2.1.0",
"karma-firefox-launcher": "^2.1.2",
"karma-ie-launcher": "^1.0.0",
"karma-mocha": "^2.0.1",
"karma-mocha-reporter": "^2.2.5",
"karma-safari-applescript-launcher": "^0.1.1",
"karma-sauce-launcher": "^4.3.6",
"karma-sourcemap-loader": "^0.3.8",
"karma-webpack": "^5.0.0",
"mocha": "^9.2.0",
"run-sequence": "^2.2.1",
"watchify": "^4.0.0",
"webpack": "^5.64.0",
"webpack-stream": "^7.0.0",
"yargs": "^17.3.1"
"mocha": "^10.1.0"
},

@@ -84,0 +56,0 @@ "bugs": {

@@ -363,3 +363,3 @@ # node-jose #

```javascript
jose.JWS.createSign({ alg: 'PS256' }, key).
jose.JWS.createSign({ fields: { alg: 'PS256' } }, key).
update(input).

@@ -366,0 +366,0 @@ final().

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