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

@cloudflare/util-http

Package Overview
Dependencies
Maintainers
31
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.2.12 to 2.0.0

19

CHANGELOG.md

@@ -6,2 +6,21 @@ # Change Log

# [2.0.0](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/util-http@1.2.12...@cloudflare/util-http@2.0.0) (2020-01-14)
### Bug Fixes
* **util-http:** TSX-161 update response.body type to unknown ([96afa34](http://stash.cfops.it:7999/fe/stratus/commits/96afa34))
### BREAKING CHANGES
* **util-http:** response.body was previously typed
as `string | Record<string, any>`.
Now that it is `unknown`, users will need to narrow the type
using type guards or type assertions.
## [1.2.12](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/util-http@1.2.8...@cloudflare/util-http@1.2.12) (2019-11-20)

@@ -8,0 +27,0 @@

2

dist/http.d.ts

@@ -19,3 +19,3 @@ import 'isomorphic-fetch';

status: number;
body: string | Record<string, any>;
body: unknown;
text: string;

@@ -22,0 +22,0 @@ response: Response;

{
"name": "@cloudflare/util-http",
"description": "Cloudflare HTTP Util",
"version": "1.2.12",
"version": "2.0.0",
"main": "lib/index.js",

@@ -32,3 +32,3 @@ "module": "es/index.js",

},
"gitHead": "2c7116804e9d7e6f2e005ee4d7aa37829d2624a3"
"gitHead": "8a2a5170ba2c8f3c4ec83e74e9f065d8afe57304"
}
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