@hot-updater/test-utils 1.0.0-rc.41 → 1.0.0-rc.43
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.mjs +2 -0
- package/package.json +10 -10
package/dist/index.mjs
CHANGED
|
@@ -883,6 +883,7 @@ const setupReleaseCatalogTestSuite = (options) => {
|
|
|
883
883
|
expect(response.status).toBe(200);
|
|
884
884
|
expect(response.headers.get("content-type")).toBe("application/vnd.hot-updater.release-catalog+json; version=1");
|
|
885
885
|
expect(response.headers.get("cache-control")).toBe("public, max-age=0, s-maxage=5");
|
|
886
|
+
expect(response.headers.get("cdn-cache-control")).toBe("public, max-age=5, stale-while-revalidate=5, stale-if-error=0");
|
|
886
887
|
const catalog = await response.json();
|
|
887
888
|
expect(catalog).toMatchObject({
|
|
888
889
|
schemaVersion: 1,
|
|
@@ -1034,6 +1035,7 @@ const setupReleaseCatalogTestSuite = (options) => {
|
|
|
1034
1035
|
const response = await request(catalogPath());
|
|
1035
1036
|
expect(response.status).toBe(404);
|
|
1036
1037
|
expect(response.headers.get("cache-control")).toBe("public, max-age=0, s-maxage=5");
|
|
1038
|
+
expect(response.headers.get("cdn-cache-control")).toBe("public, max-age=5, stale-while-revalidate=5, stale-if-error=0");
|
|
1037
1039
|
expect(response.headers.get("x-hot-updater-catalog")).toBe("none");
|
|
1038
1040
|
await publish("121");
|
|
1039
1041
|
expect((await readCatalog()).releases).toHaveLength(1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/test-utils",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.43",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Test utilities for Hot Updater packages",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"mysql2": "*",
|
|
51
51
|
"pg": "*",
|
|
52
52
|
"vitest": "^4.0.0",
|
|
53
|
-
"@hot-updater/plugin-insights": "^1.0.0-rc.
|
|
54
|
-
"@hot-updater/protocol": "^1.0.0-rc.
|
|
55
|
-
"@hot-updater/plugin-core": "^1.0.0-rc.
|
|
56
|
-
"@hot-updater/server": "^1.0.0-rc.
|
|
53
|
+
"@hot-updater/plugin-insights": "^1.0.0-rc.43",
|
|
54
|
+
"@hot-updater/protocol": "^1.0.0-rc.43",
|
|
55
|
+
"@hot-updater/plugin-core": "^1.0.0-rc.43",
|
|
56
|
+
"@hot-updater/server": "^1.0.0-rc.43"
|
|
57
57
|
},
|
|
58
58
|
"peerDependenciesMeta": {
|
|
59
59
|
"@electric-sql/pglite": {
|
|
@@ -83,11 +83,11 @@
|
|
|
83
83
|
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
84
84
|
"vitest": "4.1.4",
|
|
85
85
|
"workspace-tools": "^0.41.7",
|
|
86
|
-
"@hot-updater/plugin-insights": "1.0.0-rc.
|
|
87
|
-
"@hot-updater/protocol": "1.0.0-rc.
|
|
88
|
-
"@hot-updater/
|
|
89
|
-
"@hot-updater/plugin-core": "1.0.0-rc.
|
|
90
|
-
"@hot-updater/
|
|
86
|
+
"@hot-updater/plugin-insights": "1.0.0-rc.43",
|
|
87
|
+
"@hot-updater/protocol": "1.0.0-rc.43",
|
|
88
|
+
"@hot-updater/server": "1.0.0-rc.43",
|
|
89
|
+
"@hot-updater/plugin-core": "1.0.0-rc.43",
|
|
90
|
+
"@hot-updater/js": "1.0.0-rc.43"
|
|
91
91
|
},
|
|
92
92
|
"inlinedDependencies": {
|
|
93
93
|
"@nodelib/fs.scandir": "2.1.5",
|