@arcote.tech/platform 0.7.1 → 0.7.3
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/package.json +4 -4
- package/src/module-loader.ts +6 -6
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcote.tech/platform",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.3",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "Przemysław Krasiński [arcote.tech]",
|
|
7
7
|
"description": "Arc Platform — module system, router, layout, theme, i18n, platform app shell",
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
"type-check": "tsc --noEmit"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@arcote.tech/arc-ds": "^0.7.
|
|
18
|
-
"@arcote.tech/arc-react": "^0.7.
|
|
17
|
+
"@arcote.tech/arc-ds": "^0.7.3",
|
|
18
|
+
"@arcote.tech/arc-react": "^0.7.3"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@arcote.tech/arc": "^0.7.
|
|
21
|
+
"@arcote.tech/arc": "^0.7.3",
|
|
22
22
|
"@lingui/core": "^5.0.0",
|
|
23
23
|
"@lingui/react": "^5.0.0",
|
|
24
24
|
"framer-motion": "^12.0.0",
|
package/src/module-loader.ts
CHANGED
|
@@ -9,17 +9,17 @@ export type ModuleLoaderState = "loading" | "ready" | "error";
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* URL for a token-group bundle. Server-filtered manifests carry a signed
|
|
12
|
-
* `group.url
|
|
13
|
-
*
|
|
12
|
+
* `group.url`; we use that directly. The signed URL is intentionally
|
|
13
|
+
* stable across requests (no TTL) so the browser cache hits the immutable
|
|
14
|
+
* file. `bust` overrides cache only during dev full-reloads, where the
|
|
15
|
+
* code on disk genuinely changed.
|
|
14
16
|
*/
|
|
15
17
|
function groupUrl(baseUrl: string, group: BuildManifestGroup, bust?: string): string {
|
|
16
18
|
const base = group.url
|
|
17
19
|
? `${baseUrl}${group.url}`
|
|
18
20
|
: `${baseUrl}/browser/${group.file}`;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
if (!busterVal) return base;
|
|
22
|
-
return `${base}${base.includes("?") ? "&" : "?"}${busterKey}=${busterVal}`;
|
|
21
|
+
if (!bust) return base;
|
|
22
|
+
return `${base}${base.includes("?") ? "&" : "?"}t=${bust}`;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
/**
|