@vascend/talos 0.1.1 → 0.1.2
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/core/signed-release.js +3 -1
- package/dist/install.mjs +1 -1
- package/install.ps1 +1 -1
- package/install.sh +1 -1
- package/package.json +1 -1
|
@@ -49,7 +49,9 @@ export async function fetchReleaseBytes(url, limit, options = {}) {
|
|
|
49
49
|
const controller = new AbortController();
|
|
50
50
|
const timer = setTimeout(() => controller.abort(), options.timeoutMs ?? 20_000);
|
|
51
51
|
try {
|
|
52
|
-
|
|
52
|
+
// npm version endpoints return JSON; forcing octet-stream can serialize them
|
|
53
|
+
// as "[object Object]". Accept each endpoint's native metadata/archive type.
|
|
54
|
+
const response = await (options.fetch ?? fetch)(url, { redirect: "error", signal: controller.signal, headers: { Accept: "*/*" } });
|
|
53
55
|
if (!response.ok || !response.body) {
|
|
54
56
|
await response.body?.cancel();
|
|
55
57
|
throw new Error("Release download is unavailable.");
|
package/dist/install.mjs
CHANGED
|
@@ -48,7 +48,7 @@ async function fetchReleaseBytes(url, limit, options = {}) {
|
|
|
48
48
|
const controller = new AbortController;
|
|
49
49
|
const timer = setTimeout(() => controller.abort(), options.timeoutMs ?? 20000);
|
|
50
50
|
try {
|
|
51
|
-
const response = await (options.fetch ?? fetch)(url, { redirect: "error", signal: controller.signal, headers: { Accept: "
|
|
51
|
+
const response = await (options.fetch ?? fetch)(url, { redirect: "error", signal: controller.signal, headers: { Accept: "*/*" } });
|
|
52
52
|
if (!response.ok || !response.body) {
|
|
53
53
|
await response.body?.cancel();
|
|
54
54
|
throw new Error("Release download is unavailable.");
|
package/install.ps1
CHANGED
|
@@ -144,7 +144,7 @@ async function fetchReleaseBytes(url, limit, options = {}) {
|
|
|
144
144
|
const controller = new AbortController;
|
|
145
145
|
const timer = setTimeout(() => controller.abort(), options.timeoutMs ?? 20000);
|
|
146
146
|
try {
|
|
147
|
-
const response = await (options.fetch ?? fetch)(url, { redirect: "error", signal: controller.signal, headers: { Accept: "
|
|
147
|
+
const response = await (options.fetch ?? fetch)(url, { redirect: "error", signal: controller.signal, headers: { Accept: "*/*" } });
|
|
148
148
|
if (!response.ok || !response.body) {
|
|
149
149
|
await response.body?.cancel();
|
|
150
150
|
throw new Error("Release download is unavailable.");
|
package/install.sh
CHANGED
|
@@ -137,7 +137,7 @@ async function fetchReleaseBytes(url, limit, options = {}) {
|
|
|
137
137
|
const controller = new AbortController;
|
|
138
138
|
const timer = setTimeout(() => controller.abort(), options.timeoutMs ?? 20000);
|
|
139
139
|
try {
|
|
140
|
-
const response = await (options.fetch ?? fetch)(url, { redirect: "error", signal: controller.signal, headers: { Accept: "
|
|
140
|
+
const response = await (options.fetch ?? fetch)(url, { redirect: "error", signal: controller.signal, headers: { Accept: "*/*" } });
|
|
141
141
|
if (!response.ok || !response.body) {
|
|
142
142
|
await response.body?.cancel();
|
|
143
143
|
throw new Error("Release download is unavailable.");
|