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

@tomphttp/bare-client

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tomphttp/bare-client - npm Package Compare versions

Comparing version 1.1.2-beta.1 to 1.1.2-beta.2

9

dist/BareClient.js

@@ -121,3 +121,3 @@ // The user likely has overwritten all networking functions after importing bare-client

if (protocol.startsWith('blob:')) {
const response = await fetch(`blob:${location.origin}${path}`);
const response = await fetch(`${protocol}${host}${path}`);
const result = new Response(response.body, response);

@@ -653,3 +653,3 @@ result.rawHeaders = Object.fromEntries(response.headers);

if (protocol.startsWith('blob:')) {
const response = await fetch(`blob:${location.origin}${path}`);
const response = await fetch(`${protocol}${host}${path}`);
const result = new Response(response.body, response);

@@ -894,3 +894,6 @@ result.rawHeaders = Object.fromEntries(response.headers);

for (let i = 0;; i++) {
headers.host = url.host;
if ('host' in headers)
headers.host = url.host;
else
headers.Host = url.host;
const response = await this.request(method, headers, body, url.protocol, url.hostname, resolvePort(url), url.pathname + url.search, cache, signal);

@@ -897,0 +900,0 @@ response.finalURL = url.toString();

{
"name": "@tomphttp/bare-client",
"version": "1.1.2-beta.1",
"version": "1.1.2-beta.2",
"homepage": "https://github.com/tomphttp",

@@ -5,0 +5,0 @@ "bugs": {

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