@apt-repositories/generator
Advanced tools
Comparing version 0.0.34-dev.0 to 0.0.34
@@ -16,2 +16,3 @@ #!/usr/bin/env node | ||
import { gunzipSync } from "node:zlib"; | ||
import { outdent } from "outdent"; | ||
import xz from "xz-decompress"; | ||
@@ -90,8 +91,12 @@ | ||
if (chunk.includes("HTTP/1.1 400 Bad Request")) { | ||
throw new Error( | ||
`Received status 200 response from '${config.mirror}', but the response body indicates an HTTP error. This is likely caused by an invalid CDN node cache entry. | ||
${Object.entries( | ||
packagesResponse.headers | ||
).map(([name, value], _index) => `< ${name}: ${value}`).join("\n")}` | ||
); | ||
throw new Error(outdent` | ||
Received status 200 response from '${config.mirror}', but the response body indicates an HTTP error. | ||
This is potentially caused by an invalid CDN node cache entry, but requires further analysis. | ||
Response headers: | ||
${Object.entries(packagesResponse.headers).map(([name, value], _index) => `< ${name}: ${value}`).join("\n")} | ||
Response body: | ||
${packagesText} | ||
`); | ||
} | ||
@@ -98,0 +103,0 @@ try { |
{ | ||
"$schema": "https://json.schemastore.org/package.json", | ||
"name": "@apt-repositories/generator", | ||
"version": "0.0.34-dev.0", | ||
"version": "0.0.34", | ||
"license": "MIT", | ||
@@ -45,2 +45,3 @@ "author": "Oliver Salzburg <oliver.salzburg@gmail.com>", | ||
"apt-parser": "1.5.1", | ||
"outdent": "0.8.0", | ||
"xz-decompress": "0.2.2" | ||
@@ -47,0 +48,0 @@ }, |
Sorry, the diff of this file is not supported yet
31685
256
4
+ Addedoutdent@0.8.0
+ Addedoutdent@0.8.0(transitive)