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

paseto

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

paseto - npm Package Compare versions

Comparing version 2.1.2 to 2.1.3

2

lib/v1/decrypt.js

@@ -40,3 +40,3 @@ const { decode } = require('../help/base64url')

if (complete) {
return { payload: m, footer: f.length ? f : undefined, version: 'v2', purpose: 'local' }
return { payload: m, footer: f.length ? f : undefined, version: 'v1', purpose: 'local' }
}

@@ -43,0 +43,0 @@

@@ -32,2 +32,5 @@ const {

if (buffer) {
if (Object.keys(options).length !== 0) {
throw new TypeError('options cannot contain claims when options.buffer is true')
}
if (complete) {

@@ -34,0 +37,0 @@ return { payload: m, footer, version: 'v1', purpose: 'public' }

@@ -28,2 +28,5 @@ const {

if (buffer) {
if (Object.keys(options).length !== 0) {
throw new TypeError('options cannot contain claims when options.buffer is true')
}
if (complete) {

@@ -30,0 +33,0 @@ return { payload: m, footer, version: 'v2', purpose: 'public' }

{
"name": "paseto",
"version": "2.1.2",
"version": "2.1.3",
"description": "PASETO for Node.js with no dependencies",

@@ -5,0 +5,0 @@ "keywords": [

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