Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ikreymer committed Sep 4, 2024
1 parent 60f79be commit b3c42ef
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/rewriting.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/sw.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/types/response.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { AsyncIterReader } from "warcio";
type ArchiveResponseOpts = {
payload: AsyncIterReader | Uint8Array | null;
status: number;
statusText: string;
statusText?: string;
headers: Headers;
url: string;
date: Date;
Expand Down
2 changes: 1 addition & 1 deletion dist/types/response.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "@webrecorder/wabac",
"version": "2.20.0-beta.0",
"main": "index.js",
"type": "module",
"exports": {
".": {
Expand Down
5 changes: 3 additions & 2 deletions src/response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
encodeLatin1,
MAX_STREAM_CHUNK_SIZE,
tsToDate,
getStatusText,
} from "./utils";
import { Buffer } from "buffer";

Expand All @@ -14,7 +15,7 @@ const decoder = new TextDecoder();
type ArchiveResponseOpts = {
payload: AsyncIterReader | Uint8Array | null;
status: number;
statusText: string;
statusText?: string;
headers: Headers;
url: string;
date: Date;
Expand Down Expand Up @@ -153,7 +154,7 @@ class ArchiveResponse {
}

this.status = status;
this.statusText = statusText;
this.statusText = statusText || getStatusText(status);
this.headers = headers;
this.url = url;
this.date = date;
Expand Down

0 comments on commit b3c42ef

Please sign in to comment.