@types/jsonwebtoken
Advanced tools
Comparing version 7.2.0 to 7.2.1
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7840
112
17