@types/jsonwebtoken
Advanced tools
Comparing version 7.2.3 to 7.2.4
@@ -1,4 +0,6 @@ | ||
// Type definitions for jsonwebtoken 7.2.0 | ||
// Type definitions for jsonwebtoken 7.2.1 | ||
// Project: https://github.com/auth0/node-jsonwebtoken | ||
// Definitions by: Maxime LUCE <https://github.com/SomaticIT>, Daniel Heim <https://github.com/danielheim> | ||
// Definitions by: Maxime LUCE <https://github.com/SomaticIT>, | ||
// Daniel Heim <https://github.com/danielheim>, | ||
// Brice BERNARD <https://github.com/brikou> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -54,3 +56,2 @@ // TypeScript Version: 2.2 | ||
encoding?: string; | ||
} | ||
@@ -65,3 +66,3 @@ | ||
ignoreNotBefore?: boolean; | ||
jwtId?: string; | ||
jwtid?: string; | ||
subject?: string; | ||
@@ -81,3 +82,6 @@ /** | ||
export interface VerifyCallback { | ||
(err: JsonWebTokenError | NotBeforeError | TokenExpiredError, decoded: object | string): void; | ||
( | ||
err: JsonWebTokenError | NotBeforeError | TokenExpiredError, | ||
decoded: object | string, | ||
): void; | ||
} | ||
@@ -89,3 +93,3 @@ | ||
export type Secret = string | Buffer | {key: string, passphrase: string} | ||
export type Secret = string | Buffer | { key: string; passphrase: string }; | ||
@@ -99,3 +103,7 @@ /** | ||
*/ | ||
export declare function sign(payload: string | Buffer | object, secretOrPrivateKey: Secret, options?: SignOptions): string; | ||
export declare function sign( | ||
payload: string | Buffer | object, | ||
secretOrPrivateKey: Secret, | ||
options?: SignOptions, | ||
): string; | ||
@@ -109,4 +117,13 @@ /** | ||
*/ | ||
export declare function sign(payload: string | Buffer | object, secretOrPrivateKey: Secret, callback: SignCallback): void; | ||
export declare function sign(payload: string | Buffer | object, secretOrPrivateKey: Secret, options: SignOptions, callback: SignCallback): void; | ||
export declare function sign( | ||
payload: string | Buffer | object, | ||
secretOrPrivateKey: Secret, | ||
callback: SignCallback, | ||
): void; | ||
export declare function sign( | ||
payload: string | Buffer | object, | ||
secretOrPrivateKey: Secret, | ||
options: SignOptions, | ||
callback: SignCallback, | ||
): void; | ||
@@ -120,4 +137,11 @@ /** | ||
*/ | ||
declare function verify(token: string, secretOrPublicKey: string | Buffer): object | string; | ||
declare function verify(token: string, secretOrPublicKey: string | Buffer, options?: VerifyOptions): object | string; | ||
declare function verify( | ||
token: string, | ||
secretOrPublicKey: string | Buffer, | ||
): object | string; | ||
declare function verify( | ||
token: string, | ||
secretOrPublicKey: string | Buffer, | ||
options?: VerifyOptions, | ||
): object | string; | ||
@@ -131,4 +155,13 @@ /** | ||
*/ | ||
declare function verify(token: string, secretOrPublicKey: string | Buffer, callback?: VerifyCallback): void; | ||
declare function verify(token: string, secretOrPublicKey: string | Buffer, options?: VerifyOptions, callback?: VerifyCallback): void; | ||
declare function verify( | ||
token: string, | ||
secretOrPublicKey: string | Buffer, | ||
callback?: VerifyCallback, | ||
): void; | ||
declare function verify( | ||
token: string, | ||
secretOrPublicKey: string | Buffer, | ||
options?: VerifyOptions, | ||
callback?: VerifyCallback, | ||
): void; | ||
@@ -141,2 +174,5 @@ /** | ||
*/ | ||
declare function decode(token: string, options?: DecodeOptions): null | object | string; | ||
declare function decode( | ||
token: string, | ||
options?: DecodeOptions, | ||
): null | object | string; |
{ | ||
"name": "@types/jsonwebtoken", | ||
"version": "7.2.3", | ||
"version": "7.2.4", | ||
"description": "TypeScript definitions for jsonwebtoken", | ||
@@ -9,7 +9,14 @@ "license": "MIT", | ||
"name": "Maxime LUCE", | ||
"url": "https://github.com/SomaticIT" | ||
"url": "https://github.com/SomaticIT", | ||
"githubUsername": "SomaticIT" | ||
}, | ||
{ | ||
"name": "Daniel Heim", | ||
"url": "https://github.com/danielheim" | ||
"url": "https://github.com/danielheim", | ||
"githubUsername": "danielheim" | ||
}, | ||
{ | ||
"name": "Brice BERNARD", | ||
"url": "https://github.com/brikou", | ||
"githubUsername": "brikou" | ||
} | ||
@@ -26,5 +33,4 @@ ], | ||
}, | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "4acb5ee3f1964ba5dc4c32d01031cd7f945420d4b92e8240957bff214a28eb70", | ||
"typesPublisherContentHash": "223a33c251c7da1468ace3d9cdd2785834ff27af6e9fc619aaa2686532928e7b", | ||
"typeScriptVersion": "2.2" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Thu, 03 Aug 2017 13:57:01 GMT | ||
* Last updated: Thu, 07 Dec 2017 21:20:07 GMT | ||
* Dependencies: node | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Maxime LUCE <https://github.com/SomaticIT>, Daniel Heim <https://github.com/danielheim>. | ||
These definitions were written by Maxime LUCE <https://github.com/SomaticIT>, Daniel Heim <https://github.com/danielheim>, Brice BERNARD <https://github.com/brikou>. |
Sorry, the diff of this file is not supported yet
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
8515
151