Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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 11.0.0 to 11.0.1

2

dist/transports/xhr.d.ts

@@ -38,2 +38,2 @@ import { Request, Response, ResponseOptions } from 'servie';

*/
export declare function transport(options?: TransportOptions): (req: Request) => Promise<XhrResponse>;
export declare function transport(options?: TransportOptions): (req: Request) => Response | Promise<Response>;

@@ -5,3 +5,2 @@ "use strict";

const browser_1 = require("servie/dist/body/browser");
const throwback_1 = require("throwback");
const error_1 = require("../error");

@@ -113,4 +112,4 @@ const common_1 = require("../common");

const done = send(options);
const middleware = throwback_1.compose([common_1.normalizeRequest()]);
return (req) => middleware(req, done);
const normalize = common_1.normalizeRequest();
return (req) => normalize(req, () => done(req));
}

@@ -117,0 +116,0 @@ exports.transport = transport;

@@ -6,4 +6,5 @@ import { Request } from 'servie';

export declare type TransportFn = (options?: NodeTransportOptions & BrowserTransportOptions) => SendFn;
export declare type RequestFn = (url: string, options: NodeRequestOptions & BrowserRequestOptions) => Request;
export declare type RequestFn = (url: string, options?: NodeRequestOptions & BrowserRequestOptions) => Request;
export declare const request: RequestFn;
export declare const transport: TransportFn;
export declare const send: SendFn;

@@ -6,2 +6,3 @@ "use strict";

exports.transport = node_1.transport;
exports.send = exports.transport();
//# sourceMappingURL=universal.js.map
{
"name": "popsicle",
"version": "11.0.0",
"version": "11.0.1",
"description": "Advanced HTTP requests in node.js and browsers, using Servie",

@@ -5,0 +5,0 @@ "main": "dist/universal.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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