Comparing version 3.1.1 to 3.1.2
{ | ||
"name": "paseto", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "PASETO for Node.js with no dependencies", | ||
@@ -31,5 +31,4 @@ "keywords": [ | ||
"scripts": { | ||
"coverage": "c8 ava", | ||
"lint-ts": "npx typescript@~3.6.0 --build types", | ||
"test": "ava", | ||
"test-types": "tsc --project types", | ||
"watch": "ava --watch" | ||
@@ -45,4 +44,4 @@ }, | ||
"ava": "^3.15.0", | ||
"c8": "^7.6.0", | ||
"sinon": "^11.1.2" | ||
"sinon": "^11.1.2", | ||
"typescript": "^3.6.0" | ||
}, | ||
@@ -49,0 +48,0 @@ "engines": { |
@@ -8,3 +8,3 @@ /// <reference types="node" /> | ||
expiresIn?: string | ||
footer?: object | string | Buffer | ||
footer?: Record<PropertyKey, unknown> | string | Buffer | ||
iat?: boolean | ||
@@ -34,3 +34,3 @@ issuer?: string | ||
footer?: Buffer | ||
payload: object | ||
payload: Record<string, unknown> | ||
purpose: 'local' | 'public' | ||
@@ -52,3 +52,3 @@ version: string | ||
footer?: Buffer | ||
payload?: object | ||
payload?: Record<string, unknown> | ||
purpose: 'local' | 'public' | ||
@@ -66,3 +66,3 @@ version: string | ||
function sign( | ||
payload: object | Buffer, | ||
payload: Record<PropertyKey, unknown> | Buffer, | ||
key: KeyObject | Buffer | PrivateKeyInput | JsonWebKeyInput | string, | ||
@@ -72,3 +72,3 @@ options?: Omit<ProduceOptions, 'assertion'>, | ||
function encrypt( | ||
payload: object | Buffer, | ||
payload: Record<PropertyKey, unknown> | Buffer, | ||
key: KeyObject | Buffer | string, | ||
@@ -81,3 +81,3 @@ options?: Omit<ProduceOptions, 'assertion'>, | ||
options?: Omit<ConsumeOptions<false>, 'assertion'>, | ||
): Promise<object> | ||
): Promise<Record<string, unknown>> | ||
function verify( | ||
@@ -102,3 +102,3 @@ token: string, | ||
options?: Omit<ConsumeOptions<false>, 'assertion'>, | ||
): Promise<object> | ||
): Promise<Record<string, unknown>> | ||
function decrypt( | ||
@@ -126,3 +126,3 @@ token: string, | ||
function sign( | ||
payload: object | Buffer, | ||
payload: Record<PropertyKey, unknown> | Buffer, | ||
key: KeyObject | Buffer | PrivateKeyInput | JsonWebKeyInput | string, | ||
@@ -135,3 +135,3 @@ options?: Omit<ProduceOptions, 'assertion'>, | ||
options?: Omit<ConsumeOptions<false>, 'assertion'>, | ||
): Promise<object> | ||
): Promise<Record<string, unknown>> | ||
function verify( | ||
@@ -160,3 +160,3 @@ token: string, | ||
function sign( | ||
payload: object | Buffer, | ||
payload: Record<PropertyKey, unknown> | Buffer, | ||
key: KeyObject | Buffer | PrivateKeyInput | JsonWebKeyInput | string, | ||
@@ -166,3 +166,3 @@ options?: ProduceOptions, | ||
function encrypt( | ||
payload: object | Buffer, | ||
payload: Record<PropertyKey, unknown> | Buffer, | ||
key: KeyObject | Buffer | string, | ||
@@ -175,3 +175,3 @@ options?: ProduceOptions, | ||
options?: ConsumeOptions<false>, | ||
): Promise<object> | ||
): Promise<Record<string, unknown>> | ||
function verify( | ||
@@ -196,3 +196,3 @@ token: string, | ||
options?: ConsumeOptions<false>, | ||
): Promise<object> | ||
): Promise<Record<string, unknown>> | ||
function decrypt( | ||
@@ -222,3 +222,3 @@ token: string, | ||
function sign( | ||
payload: object | Buffer, | ||
payload: Record<PropertyKey, unknown> | Buffer, | ||
key: KeyObject | Buffer | PrivateKeyInput | JsonWebKeyInput | string, | ||
@@ -231,3 +231,3 @@ options?: ProduceOptions, | ||
options?: ConsumeOptions<false>, | ||
): Promise<object> | ||
): Promise<Record<string, unknown>> | ||
function verify( | ||
@@ -234,0 +234,0 @@ token: string, |
53335