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

@cloudflare/util-http

Package Overview
Dependencies
Maintainers
27
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudflare/util-http - npm Package Compare versions

Comparing version 1.0.12 to 1.0.13

12

CHANGELOG.md

@@ -6,3 +6,11 @@ # Change Log

<a name="1.0.12"></a>
<a name="1.0.13"></a>
## [1.0.13](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/util-http@1.0.12...@cloudflare/util-http@1.0.13) (2018-09-25)
**Note:** Version bump only for package @cloudflare/util-http
<a name="1.0.12"></a>
## [1.0.12](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/util-http@1.0.11...@cloudflare/util-http@1.0.12) (2018-09-21)

@@ -15,3 +23,3 @@

<a name="1.0.11"></a>
<a name="1.0.11"></a>
## [1.0.11](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/util-http@1.0.10...@cloudflare/util-http@1.0.11) (2018-08-24)

@@ -18,0 +26,0 @@

2

package.json
{
"name": "@cloudflare/util-http",
"description": "Cloudflare HTTP Util",
"version": "1.0.12",
"version": "1.0.13",
"main": "lib/index.js",

@@ -6,0 +6,0 @@ "module": "es/index.js",

@@ -9,7 +9,7 @@ import 'isomorphic-fetch';

interface IKVPairs {
export interface IKVPairs {
[key: string]: string;
}
type TCallback = (error?: any, response?: IWrappedResponse) => void;
type TBeforeSendCallback = (options: THttpUtilOptions | TCallback) => void;
type TBeforeSendCallback = (options?: THttpUtilOptions | TCallback) => void;

@@ -25,6 +25,6 @@ interface THttpUtilHeaders extends Headers {

}
interface IWrappedResponse {
export interface IWrappedResponse {
headers: IKVPairs;
status: number;
body: string;
body: string | object;
text: string;

@@ -155,4 +155,4 @@ response: Response;

url: string,
opts: THttpUtilOptions | TCallback,
callback: TCallback
opts?: THttpUtilOptions | TCallback,
callback?: TCallback
): Promise<IWrappedResponse> {

@@ -159,0 +159,0 @@ if (typeof opts === 'function') {

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