Comparing version 0.5.11 to 0.5.12
{ | ||
"name": "popsicle", | ||
"version": "0.5.11", | ||
"version": "0.5.12", | ||
"description": "Simple HTTP requests for node and the browser", | ||
@@ -5,0 +5,0 @@ "main": "popsicle.js", |
@@ -34,4 +34,4 @@ declare module 'popsicle' { | ||
interface Thenable<T> { | ||
then(onResolved?: (value: T) => any, onRejected?: (error: any) => any): Thenable<any>; | ||
catch(onRejected: (error: any) => any): Thenable<any>; | ||
then<U>(onResolved?: (value: T) => U | Thenable<U>, onRejected?: (error: any) => U | Thenable<U>): Thenable<U>; | ||
catch<U>(onRejected: (error: any) => U | Thenable<U>): Thenable<U>; | ||
} | ||
@@ -87,3 +87,3 @@ | ||
class Request extends Headers implements Promise<Response> { | ||
class Request extends Headers implements Thenable<Response> { | ||
url: string; | ||
@@ -123,4 +123,4 @@ method: string; | ||
always(fn: (request: Request) => any): Request; | ||
then(fn: (response: Response) => any): Thenable<Response>; | ||
catch(fn: (error: Error) => any): Thenable<any>; | ||
then<U>(fn: (response: Response) => U | Thenable<U>): Thenable<U>; | ||
catch<U>(fn: (error: Error) => U | Thenable<U>): Thenable<U>; | ||
exec(fn: (err: Error, response: Response) => any): void; | ||
@@ -127,0 +127,0 @@ toJSON(): RequestJSON |
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
58155