@boy-offi9-inc/tidepull 0.21.0 → 0.22.0

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/http.js CHANGED
@@ -119,7 +119,7 @@ export class Http {
119
119
  const res = await this.request(url, init);
120
120
  if (!res.ok) {
121
121
  await res.body?.cancel();
122
- throw new TidepullError(`HTTP ${res.status} ${res.statusText} for ${url}`);
122
+ throw codedError(httpErrorCode(res.status), `HTTP ${res.status} ${res.statusText} for ${url}`, res.status === 404 ? "If the page definitely exists, the site may have changed — try updating plugins (tidepull plugin list)" : undefined);
123
123
  }
124
124
  return {
125
125
  text: await res.text(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boy-offi9-inc/tidepull",
3
- "version": "0.21.0",
3
+ "version": "0.22.0",
4
4
  "description": "A minimal, from-scratch media downloader library: extractor plugins, yt-dlp-style format selection, resumable downloads.",
5
5
  "type": "module",
6
6
  "license": "MIT",