Comparing version 2.1.2 to 2.1.3
@@ -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": [ |
51073
1264