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 3.1.3 to 3.1.4

2

package.json
{
"name": "paseto",
"version": "3.1.3",
"version": "3.1.4",
"description": "PASETO for Node.js with no dependencies",

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

/// <reference types="node" />
// TypeScript Version: 3.6
import { KeyObject, PrivateKeyInput, PublicKeyInput, JsonWebKeyInput } from 'crypto'
type JsonObject = { [Key in string]?: JsonValue }
type JsonArray = JsonValue[]
type JsonPrimitive = string | number | boolean | null
type JsonValue = JsonPrimitive | JsonObject | JsonArray
export interface ProduceOptions {

@@ -35,3 +31,3 @@ assertion?: string | Buffer

}
export interface CompleteResult<T = Record<string, JsonValue | undefined>> {
export interface CompleteResult<T = Record<string, unknown>> {
footer?: Buffer

@@ -53,3 +49,3 @@ payload: T

}
export interface DecodeResult<T = Record<string, JsonValue | undefined>> {
export interface DecodeResult<T = Record<string, unknown>> {
footer?: Buffer

@@ -66,3 +62,3 @@ payload?: T

}
export function decode<T = Record<string, JsonValue | undefined>>(token: string): DecodeResult<T>
export function decode<T = Record<string, unknown>>(token: string): DecodeResult<T>
export namespace V1 {

@@ -79,3 +75,3 @@ function sign(

): Promise<string>
function verify<T = Record<string, JsonValue | undefined>>(
function verify<T = Record<string, unknown>>(
token: string,

@@ -85,3 +81,3 @@ key: KeyObject | Buffer | PublicKeyInput | JsonWebKeyInput | string,

): Promise<T>
function verify<T = Record<string, JsonValue | undefined>>(
function verify<T = Record<string, unknown>>(
token: string,

@@ -101,3 +97,3 @@ key: KeyObject | Buffer | PublicKeyInput | JsonWebKeyInput | string,

): Promise<CompleteResultBuffer>
function decrypt<T = Record<string, JsonValue | undefined>>(
function decrypt<T = Record<string, unknown>>(
token: string,

@@ -107,3 +103,3 @@ key: KeyObject | Buffer | string,

): Promise<T>
function decrypt<T = Record<string, JsonValue | undefined>>(
function decrypt<T = Record<string, unknown>>(
token: string,

@@ -140,3 +136,3 @@ key: KeyObject | Buffer | string,

): Promise<string>
function verify<T = Record<string, JsonValue | undefined>>(
function verify<T = Record<string, unknown>>(
token: string,

@@ -146,3 +142,3 @@ key: KeyObject | Buffer | PublicKeyInput | JsonWebKeyInput | string,

): Promise<T>
function verify<T = Record<string, JsonValue | undefined>>(
function verify<T = Record<string, unknown>>(
token: string,

@@ -182,3 +178,3 @@ key: KeyObject | Buffer | PublicKeyInput | JsonWebKeyInput | string,

): Promise<string>
function verify<T = Record<string, JsonValue | undefined>>(
function verify<T = Record<string, unknown>>(
token: string,

@@ -188,3 +184,3 @@ key: KeyObject | Buffer | PublicKeyInput | JsonWebKeyInput | string,

): Promise<T>
function verify<T = Record<string, JsonValue | undefined>>(
function verify<T = Record<string, unknown>>(
token: string,

@@ -204,3 +200,3 @@ key: KeyObject | Buffer | PublicKeyInput | JsonWebKeyInput | string,

): Promise<CompleteResultBuffer>
function decrypt<T = Record<string, JsonValue | undefined>>(
function decrypt<T = Record<string, unknown>>(
token: string,

@@ -210,3 +206,3 @@ key: KeyObject | Buffer | string,

): Promise<T>
function decrypt<T = Record<string, JsonValue | undefined>>(
function decrypt<T = Record<string, unknown>>(
token: string,

@@ -245,3 +241,3 @@ key: KeyObject | Buffer | string,

): Promise<string>
function verify<T = Record<string, JsonValue | undefined>>(
function verify<T = Record<string, unknown>>(
token: string,

@@ -251,3 +247,3 @@ key: KeyObject | Buffer | PublicKeyInput | JsonWebKeyInput | string,

): Promise<T>
function verify<T = Record<string, JsonValue | undefined>>(
function verify<T = Record<string, unknown>>(
token: string,

@@ -254,0 +250,0 @@ key: KeyObject | Buffer | PublicKeyInput | JsonWebKeyInput | string,

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