Socket
Socket
Sign inDemoInstall

jsonwebtoken

Package Overview
Dependencies
14
Maintainers
8
Versions
81
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 8.1.1 to 8.2.0

5

CHANGELOG.md

@@ -7,2 +7,7 @@ # Change Log

## 8.2.0 - 2018-03-02
- Add a new mutatePayload option (#446) ([d6d7c5e5103f05a92d3633ac190d3025a0455be0](https://github.com/auth0/node-jsonwebtoken/commit/d6d7c5e5103f05a92d3633ac190d3025a0455be0))
## 8.1.1 - 2018-01-22

@@ -9,0 +14,0 @@

2

package.json
{
"name": "jsonwebtoken",
"version": "8.1.1",
"version": "8.2.0",
"description": "JSON Web Token implementation (symmetric and asymmetric)",

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

@@ -45,2 +45,3 @@ # jsonwebtoken

* `keyid`
* `mutatePayload`: if true, the sign function will modify the payload object directly. This is useful if you need a raw reference to the payload after claims have been applied to it but before it has been encoded into a token.

@@ -47,0 +48,0 @@ If `payload` is not a buffer or a string, it will be coerced into a string using `JSON.stringify`.

@@ -23,3 +23,4 @@ var timespan = require('./lib/timespan');

noTimestamp: { isValid: isBoolean, message: '"noTimestamp" must be a boolean' },
keyid: { isValid: isString, message: '"keyid" must be a string' }
keyid: { isValid: isString, message: '"keyid" must be a string' },
mutatePayload: { isValid: isBoolean, message: '"mutatePayload" must be a boolean' }
};

@@ -114,3 +115,5 @@

}
payload = xtend(payload);
if (!options.mutatePayload) {
payload = xtend(payload);
}
} else {

@@ -117,0 +120,0 @@ var invalid_options = options_for_objects.filter(function (opt) {

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc