Socket
Socket
Sign inDemoInstall

popsicle

Package Overview
Dependencies
Maintainers
1
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

popsicle - npm Package Compare versions

Comparing version 0.5.11 to 0.5.12

2

package.json
{
"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

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