@equinor/fusion-framework-vite-plugin-spa 4.0.14 → 4.0.16
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/CHANGELOG.md +16 -0
- package/dist/esm/html/sw.js +3 -0
- package/dist/esm/html/sw.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/html/bootstrap.js +6872 -6093
- package/dist/html/bootstrap.js.map +1 -1
- package/dist/html/sw.js +3 -0
- package/dist/html/sw.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/html/html.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +6 -6
- package/src/html/sw.ts +3 -0
- package/src/version.ts +1 -1
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
* @constant
|
|
16
16
|
* @type {string}
|
|
17
17
|
*/
|
|
18
|
-
export declare const html = "\n <!DOCTYPE html>\n <html>\n <head>\n <title>%FUSION_SPA_TITLE%</title>\n <meta name=\"mode\" content=\"%MODE%\">\n <meta name=\"fusion-spa-plugin-version\" content=\"4.0.
|
|
18
|
+
export declare const html = "\n <!DOCTYPE html>\n <html>\n <head>\n <title>%FUSION_SPA_TITLE%</title>\n <meta name=\"mode\" content=\"%MODE%\">\n <meta name=\"fusion-spa-plugin-version\" content=\"4.0.16\">\n <link rel=\"stylesheet\" href=\"https://cdn.eds.equinor.com/font/equinor-font.css\" />\n <script type=\"module\" src=\"%FUSION_SPA_BOOTSTRAP%\"></script>\n <script>\n // Set AG Grid license key globally if provided\n window.FUSION_AG_GRID_KEY = '%FUSION_SPA_AG_GRID_KEY%';\n \n // suppress console error for custom elements already defined. \n // WebComponents should be added by the portal, but not removed from application\n const _customElementsDefine = window.customElements.define;\n window.customElements.define = (name, cl, conf) => {\n if (!customElements.get(name)) {\n _customElementsDefine.call(window.customElements, name, cl, conf);\n }\n };\n </script>\n <style>\n html, body {\n margin: 0;\n padding: 0;\n height: 100%;\n font-family: 'EquinorFont', sans-serif;\n }\n </style>\n </head>\n <body></body>\n </html>\n";
|
|
19
19
|
export default html;
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "4.0.
|
|
1
|
+
export declare const version = "4.0.16";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/fusion-framework-vite-plugin-spa",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.16",
|
|
4
4
|
"description": "Vite plugin for SPA development",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@equinor/fusion-framework-module": "6.1.
|
|
41
|
-
"@equinor/fusion-framework-module-http": "8.0.
|
|
42
|
-
"@equinor/fusion-framework-module-
|
|
43
|
-
"@equinor/fusion-framework-module-telemetry": "7.0.
|
|
44
|
-
"@equinor/fusion-framework-module-
|
|
40
|
+
"@equinor/fusion-framework-module": "6.1.2",
|
|
41
|
+
"@equinor/fusion-framework-module-http": "8.0.5",
|
|
42
|
+
"@equinor/fusion-framework-module-msal": "10.0.2",
|
|
43
|
+
"@equinor/fusion-framework-module-telemetry": "7.0.2",
|
|
44
|
+
"@equinor/fusion-framework-module-service-discovery": "10.0.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@rollup/plugin-commonjs": "^29.0.0",
|
package/src/html/sw.ts
CHANGED
|
@@ -224,10 +224,13 @@ self.addEventListener('fetch', (event: FetchEvent) => {
|
|
|
224
224
|
|
|
225
225
|
// fetch the request with the modified url and headers, preserving the original HTTP method and body
|
|
226
226
|
// This ensures OPTIONS, PATCH, DELETE and other methods are forwarded correctly
|
|
227
|
+
// `cache` is forwarded explicitly - otherwise callers requesting `no-store` (e.g. polling
|
|
228
|
+
// endpoints) would silently fall back to the default HTTP cache once re-fetched here.
|
|
227
229
|
return fetch(url, {
|
|
228
230
|
method: request.method,
|
|
229
231
|
headers: requestHeaders,
|
|
230
232
|
body: body || undefined,
|
|
233
|
+
cache: request.cache,
|
|
231
234
|
});
|
|
232
235
|
};
|
|
233
236
|
event.respondWith(handleRequest());
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '4.0.
|
|
2
|
+
export const version = '4.0.16';
|