steelseries-sonar-sdk 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +11 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5838,7 +5838,7 @@ class AbortError extends FetchBaseError {
|
|
|
5838
5838
|
init_esm_min();
|
|
5839
5839
|
init_from();
|
|
5840
5840
|
var supportedSchemas = new Set(["data:", "http:", "https:"]);
|
|
5841
|
-
async function
|
|
5841
|
+
async function fetch2(url, options_) {
|
|
5842
5842
|
return new Promise((resolve, reject) => {
|
|
5843
5843
|
const request = new Request(url, options_);
|
|
5844
5844
|
const { parsedURL, options } = getNodeRequestOptions(request);
|
|
@@ -5970,7 +5970,7 @@ async function fetch(url, options_) {
|
|
|
5970
5970
|
if (responseReferrerPolicy) {
|
|
5971
5971
|
requestOptions.referrerPolicy = responseReferrerPolicy;
|
|
5972
5972
|
}
|
|
5973
|
-
resolve(
|
|
5973
|
+
resolve(fetch2(new Request(locationURL, requestOptions)));
|
|
5974
5974
|
finalize();
|
|
5975
5975
|
return;
|
|
5976
5976
|
}
|
|
@@ -6107,7 +6107,15 @@ var httpsAgent = new https2.Agent({
|
|
|
6107
6107
|
rejectUnauthorized: false
|
|
6108
6108
|
});
|
|
6109
6109
|
async function customFetch(url, init) {
|
|
6110
|
-
|
|
6110
|
+
if (typeof Bun !== "undefined") {
|
|
6111
|
+
return await fetch(url.toString(), {
|
|
6112
|
+
method: init?.method,
|
|
6113
|
+
tls: {
|
|
6114
|
+
rejectUnauthorized: false
|
|
6115
|
+
}
|
|
6116
|
+
});
|
|
6117
|
+
}
|
|
6118
|
+
return await fetch2(url, { ...init, agent: httpsAgent });
|
|
6111
6119
|
}
|
|
6112
6120
|
|
|
6113
6121
|
// src/sonar/requests/volume-settings/request-volume-settings-classic.ts
|