@tomphttp/bare-client
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -99,3 +99,3 @@ export * from './Client'; | ||
*/ | ||
createWebSocket(url: urlLike, headers?: BareHeaders, protocols?: string | string[]): Promise<BareWebSocket>; | ||
createWebSocket(url: urlLike, headers?: BareHeaders | Headers, protocols?: string | string[]): Promise<BareWebSocket>; | ||
fetch(url: urlLike | Request, init?: BareFetchInit): Promise<BareResponseFetch>; | ||
@@ -102,0 +102,0 @@ } |
@@ -824,6 +824,5 @@ // The user likely has overwritten all networking functions after importing bare-client | ||
} | ||
if (protocols.length) { | ||
headers['Sec-Websocket-Protocol'] = protocols.join(', '); | ||
} | ||
return this.connect(headers, url.protocol, url.hostname, url.port, url.pathname + url.search); | ||
if (protocols.length) | ||
requestHeaders['Sec-Websocket-Protocol'] = protocols.join(', '); | ||
return this.connect(requestHeaders, url.protocol, url.hostname, url.port, url.pathname + url.search); | ||
} | ||
@@ -830,0 +829,0 @@ async fetch(url, init = {}) { |
{ | ||
"name": "@tomphttp/bare-client", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
252297
18
2063