Comparing version 11.0.0 to 11.0.1
@@ -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
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
1337
153885