fix bad reference

This commit is contained in:
2023-08-18 20:38:12 -07:00
parent cd3d61058b
commit 24512ad125
3 changed files with 5 additions and 5 deletions

4
dist/index.js vendored
View File

@@ -2888,7 +2888,7 @@ async function main() {
}
async function get_manifest(url_str) {
const { status, body: existing_manifest } = await http_req('GET', url_str, {
const { status, body } = await http_req('GET', url_str, {
accept: manifest_media_type,
});
@@ -2897,7 +2897,7 @@ async function get_manifest(url_str) {
throw new Error('failed to fetch existing manifest');
}
return existing_manifest;
return body;
}
async function put_manifest(url_str, manifest) {

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@@ -35,7 +35,7 @@ async function main() {
}
async function get_manifest(url_str) {
const { status, body: existing_manifest } = await http_req('GET', url_str, {
const { status, body } = await http_req('GET', url_str, {
accept: manifest_media_type,
});
@@ -44,7 +44,7 @@ async function get_manifest(url_str) {
throw new Error('failed to fetch existing manifest');
}
return existing_manifest;
return body;
}
async function put_manifest(url_str, manifest) {