@types/jsonwebtoken
Advanced tools
Comparing version 7.2.2 to 7.2.3
@@ -86,2 +86,4 @@ // Type definitions for jsonwebtoken 7.2.0 | ||
export type Secret = string | Buffer | {key: string, passphrase: string} | ||
/** | ||
@@ -94,3 +96,3 @@ * Synchronously sign the given payload into a JSON Web Token string | ||
*/ | ||
export declare function sign(payload: string | Buffer | object, secretOrPrivateKey: string | Buffer, options?: SignOptions): string; | ||
export declare function sign(payload: string | Buffer | object, secretOrPrivateKey: Secret, options?: SignOptions): string; | ||
@@ -104,4 +106,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: Secret, callback: SignCallback): void; | ||
export declare function sign(payload: string | Buffer | object, secretOrPrivateKey: Secret, options: SignOptions, callback: SignCallback): void; | ||
@@ -108,0 +110,0 @@ /** |
{ | ||
"name": "@types/jsonwebtoken", | ||
"version": "7.2.2", | ||
"version": "7.2.3", | ||
"description": "TypeScript definitions for jsonwebtoken", | ||
@@ -26,4 +26,4 @@ "license": "MIT", | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "bfed69e012c87a3c45ce5b00191d4abed7cd653c64abcaad8a4f0dea0166b659", | ||
"typesPublisherContentHash": "4acb5ee3f1964ba5dc4c32d01031cd7f945420d4b92e8240957bff214a28eb70", | ||
"typeScriptVersion": "2.2" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Fri, 07 Jul 2017 20:52:56 GMT | ||
* Last updated: Thu, 03 Aug 2017 13:57:01 GMT | ||
* Dependencies: node | ||
@@ -14,0 +14,0 @@ * Global values: none |
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
8196
114