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

@types/jsonwebtoken

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/jsonwebtoken - npm Package Compare versions

Comparing version 7.2.0 to 7.2.1

jsonwebtoken/LICENSE

17

jsonwebtoken/index.d.ts

@@ -5,2 +5,3 @@ // Type definitions for jsonwebtoken 7.2.0

// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2

@@ -51,3 +52,3 @@ /// <reference types="node" />

noTimestamp?: boolean;
header?: Object;
header?: object;
encoding?: string;

@@ -79,3 +80,3 @@

export interface VerifyCallback {
(err: JsonWebTokenError | TokenExpiredError | NotBeforeError, decoded: any): void;
(err: JsonWebTokenError | NotBeforeError | TokenExpiredError, decoded: object | string): void;
}

@@ -94,3 +95,3 @@

*/
export declare function sign(payload: string | Buffer | Object, secretOrPrivateKey: string | Buffer, options?: SignOptions): string;
export declare function sign(payload: string | Buffer | object, secretOrPrivateKey: string | Buffer, options?: SignOptions): string;

@@ -104,4 +105,4 @@ /**

*/
export declare function sign(payload: string | Buffer | Object, secretOrPrivateKey: string | Buffer, callback: SignCallback): void;
export declare function sign(payload: string | Buffer | Object, secretOrPrivateKey: string | Buffer, options: SignOptions, callback: SignCallback): void;
export declare function sign(payload: string | Buffer | object, secretOrPrivateKey: string | Buffer, callback: SignCallback): void;
export declare function sign(payload: string | Buffer | object, secretOrPrivateKey: string | Buffer, options: SignOptions, callback: SignCallback): void;

@@ -115,4 +116,4 @@ /**

*/
declare function verify(token: string, secretOrPublicKey: string | Buffer): any;
declare function verify(token: string, secretOrPublicKey: string | Buffer, options?: VerifyOptions): any;
declare function verify(token: string, secretOrPublicKey: string | Buffer): object | string;
declare function verify(token: string, secretOrPublicKey: string | Buffer, options?: VerifyOptions): object | string;

@@ -135,2 +136,2 @@ /**

*/
declare function decode(token: string, options?: DecodeOptions): any;
declare function decode(token: string, options?: DecodeOptions): null | object | string;
{
"name": "@types/jsonwebtoken",
"version": "7.2.0",
"version": "7.2.1",
"description": "TypeScript definitions for jsonwebtoken",
"license": "MIT",
"author": "Maxime LUCE <https://github.com/SomaticIT>, Daniel Heim <https://github.com/danielheim>",
"contributors": [
{
"name": "Maxime LUCE",
"url": "https://github.com/SomaticIT"
},
{
"name": "Daniel Heim",
"url": "https://github.com/danielheim"
}
],
"main": "",

@@ -17,4 +26,4 @@ "repository": {

"peerDependencies": {},
"typesPublisherContentHash": "d6c2a4086136a2e12fde006b6af79181e82424480b154b75487c6493652ef4e4",
"typeScriptVersion": "2.0"
"typesPublisherContentHash": "91559d189c8253006eb07333d1f9119d950e7ab4f94c7025d9bacdee0024c220",
"typeScriptVersion": "2.2"
}

@@ -8,8 +8,7 @@ # Installation

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/jsonwebtoken
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsonwebtoken
Additional Details
* Last updated: Thu, 29 Dec 2016 23:56:07 GMT
* Library Dependencies: node
* Module Dependencies: none
* Last updated: Mon, 05 Jun 2017 19:55:52 GMT
* Dependencies: node
* Global values: none

@@ -16,0 +15,0 @@

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