@serwist/build 9.0.0-preview.5 → 9.0.0-preview.7
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/index.js +2 -2
- package/package.json +11 -11
- package/src/lib/get-file-manifest-entries.ts +4 -4
package/dist/index.js
CHANGED
|
@@ -407,11 +407,11 @@ async function getFileManifestEntries({ additionalPrecacheEntries, dontCacheBust
|
|
|
407
407
|
} catch (error) {
|
|
408
408
|
const debugObj = {};
|
|
409
409
|
debugObj[url] = dependencies;
|
|
410
|
-
throw new Error(`${errors["bad-template-urls-asset"]}
|
|
410
|
+
throw new Error(`${errors["bad-template-urls-asset"]} '${globPattern}' from '${JSON.stringify(debugObj)}':\n${error instanceof Error ? error.toString() : ""}`);
|
|
411
411
|
}
|
|
412
412
|
}, []);
|
|
413
413
|
if (details.length === 0) {
|
|
414
|
-
throw new Error(`${errors["bad-template-urls-asset"]} The glob
|
|
414
|
+
throw new Error(`${errors["bad-template-urls-asset"]} The glob pattern '${dependencies.toString()}' did not match anything.`);
|
|
415
415
|
}
|
|
416
416
|
allFileDetails.set(url, getCompositeDetails(url, details));
|
|
417
417
|
} else if (typeof dependencies === "string") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serwist/build",
|
|
3
|
-
"version": "9.0.0-preview.
|
|
3
|
+
"version": "9.0.0-preview.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A module that integrates into your build process, helping you generate a manifest of local files that should be precached.",
|
|
6
6
|
"files": [
|
|
@@ -55,14 +55,14 @@
|
|
|
55
55
|
"source-map": "0.8.0-beta.0",
|
|
56
56
|
"upath": "2.0.1",
|
|
57
57
|
"zod": "3.22.4",
|
|
58
|
-
"@serwist/background-sync": "9.0.0-preview.
|
|
59
|
-
"@serwist/broadcast-update": "9.0.0-preview.
|
|
60
|
-
"@serwist/cacheable-response": "9.0.0-preview.
|
|
61
|
-
"@serwist/core": "9.0.0-preview.
|
|
62
|
-
"@serwist/expiration": "9.0.0-preview.
|
|
63
|
-
"@serwist/google-analytics": "9.0.0-preview.
|
|
64
|
-
"@serwist/precaching": "9.0.0-preview.
|
|
65
|
-
"@serwist/routing": "9.0.0-preview.
|
|
58
|
+
"@serwist/background-sync": "9.0.0-preview.7",
|
|
59
|
+
"@serwist/broadcast-update": "9.0.0-preview.7",
|
|
60
|
+
"@serwist/cacheable-response": "9.0.0-preview.7",
|
|
61
|
+
"@serwist/core": "9.0.0-preview.7",
|
|
62
|
+
"@serwist/expiration": "9.0.0-preview.7",
|
|
63
|
+
"@serwist/google-analytics": "9.0.0-preview.7",
|
|
64
|
+
"@serwist/precaching": "9.0.0-preview.7",
|
|
65
|
+
"@serwist/routing": "9.0.0-preview.7"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@types/common-tags": "1.8.4",
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
"@types/stringify-object": "4.0.5",
|
|
72
72
|
"type-fest": "4.10.2",
|
|
73
73
|
"typescript": "5.4.0-dev.20240206",
|
|
74
|
-
"@serwist/constants": "9.0.0-preview.
|
|
75
|
-
"@serwist/utils": "9.0.0-preview.
|
|
74
|
+
"@serwist/constants": "9.0.0-preview.7",
|
|
75
|
+
"@serwist/utils": "9.0.0-preview.7"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
78
|
"typescript": ">=5.0.0"
|
|
@@ -94,14 +94,14 @@ export async function getFileManifestEntries({
|
|
|
94
94
|
const debugObj: { [key: string]: string[] } = {};
|
|
95
95
|
debugObj[url] = dependencies;
|
|
96
96
|
throw new Error(
|
|
97
|
-
`${errors["bad-template-urls-asset"]}
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
`${errors["bad-template-urls-asset"]} '${globPattern}' from '${JSON.stringify(debugObj)}':\n${
|
|
98
|
+
error instanceof Error ? error.toString() : ""
|
|
99
|
+
}`,
|
|
100
100
|
);
|
|
101
101
|
}
|
|
102
102
|
}, []);
|
|
103
103
|
if (details.length === 0) {
|
|
104
|
-
throw new Error(`${errors["bad-template-urls-asset"]} The glob
|
|
104
|
+
throw new Error(`${errors["bad-template-urls-asset"]} The glob pattern '${dependencies.toString()}' did not match anything.`);
|
|
105
105
|
}
|
|
106
106
|
allFileDetails.set(url, getCompositeDetails(url, details));
|
|
107
107
|
} else if (typeof dependencies === "string") {
|