Skip to content
This repository was archived by the owner on Oct 4, 2025. It is now read-only.

Commit 2ea2eb5

Browse files
committed
deps: update to wabac 2.14.0, warcio 2.0.1, remove unused deps
bump to 0.1.9
1 parent f1b32bf commit 2ea2eb5

File tree

3 files changed

+107
-155
lines changed

3 files changed

+107
-155
lines changed

package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"type": "git",
88
"url": "git+https://github.com/webrecorder/awp-sw.git"
99
},
10-
"version": "0.1.8",
10+
"version": "0.1.9",
1111
"license": "AGPL-3.0-or-later",
1212
"exports": {
1313
".": "./src/index.js"
@@ -18,15 +18,13 @@
1818
"dependencies": {
1919
"@ipld/car": "^5.0.1",
2020
"@ipld/unixfs": "^2.0.0",
21-
"@webrecorder/wabac": "^2.13.15",
21+
"@webrecorder/wabac": "^2.14.0",
2222
"client-zip": "^2.3.0",
2323
"hash-wasm": "^4.9.0",
2424
"idb": "^7.1.1",
2525
"p-queue": "^7.3.0",
26-
"querystring-es3": "^0.2.1",
27-
"url": "^0.11.0",
2826
"uuid": "^9.0.0",
29-
"warcio": "^1.6.2"
27+
"warcio": "^2.0.1"
3028
},
3129
"scripts": {
3230
"build": "webpack --mode production",

webpack.config.cjs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,25 @@
22

33
const webpack = require("webpack");
44

5-
const fallback = {"stream": false, "querystring": false, "url": false};
6-
75
const BANNER_TEXT = "'[name].js is part of the ArchiveWeb.page system (https://archiveweb.page) Copyright (C) 2020-2022, Webrecorder Software. Licensed under the Affero General Public License v3.'";
86

97

108
module.exports = {
11-
resolve: { fallback },
12-
139
output: {
1410
filename: "sw.js",
1511
},
1612
plugins: [
13+
new webpack.NormalModuleReplacementPlugin(
14+
/^node:*/,
15+
(resource) => {
16+
switch (resource.request) {
17+
case "node:stream":
18+
resource.request = "stream-browserify";
19+
break;
20+
}
21+
},
22+
),
23+
1724
new webpack.BannerPlugin(BANNER_TEXT),
1825
],
1926

0 commit comments

Comments
 (0)