@absolutejs/absolute 0.20.0-beta.37 → 0.20.0-beta.38
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/README.md +9 -0
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/cli/index.js +603 -187
- package/dist/mobile/index.js +17 -3
- package/dist/mobile/index.js.map +3 -3
- package/dist/src/mobile/mobileBundleInspection.d.ts +55 -0
- package/dist/src/mobile/mobileInspect.d.ts +1 -1
- package/dist/src/mobile/releaseDoctor.d.ts +23 -1
- package/package.json +1 -1
package/dist/mobile/index.js
CHANGED
|
@@ -5427,12 +5427,26 @@ var shellPushModule = () => {
|
|
|
5427
5427
|
throw new TypeError("AbsoluteJS mobile push shell module is missing.");
|
|
5428
5428
|
};
|
|
5429
5429
|
var escapeHtml = (value) => value.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll('"', """);
|
|
5430
|
-
var
|
|
5430
|
+
var contentSecurityPolicy = (productionOrigin) => {
|
|
5431
|
+
const backend = new URL(productionOrigin);
|
|
5432
|
+
const socketOrigin = `${backend.protocol === "https:" ? "wss:" : "ws:"}//${backend.host}`;
|
|
5433
|
+
return [
|
|
5434
|
+
"default-src 'self' data: blob: https:",
|
|
5435
|
+
"base-uri 'none'",
|
|
5436
|
+
"object-src 'none'",
|
|
5437
|
+
"script-src 'self'",
|
|
5438
|
+
"style-src 'self' 'unsafe-inline'",
|
|
5439
|
+
`connect-src 'self' ${backend.origin} ${socketOrigin}`,
|
|
5440
|
+
"form-action 'none'"
|
|
5441
|
+
].join("; ");
|
|
5442
|
+
};
|
|
5443
|
+
var indexHtml = (appName, productionOrigin) => `<!doctype html>
|
|
5431
5444
|
<html>
|
|
5432
5445
|
<head>
|
|
5433
5446
|
<meta charset="utf-8">
|
|
5434
5447
|
<meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
|
|
5435
5448
|
<meta name="color-scheme" content="light dark">
|
|
5449
|
+
<meta http-equiv="Content-Security-Policy" content="${escapeHtml(contentSecurityPolicy(productionOrigin))}">
|
|
5436
5450
|
<title>${escapeHtml(appName)}</title>
|
|
5437
5451
|
</head>
|
|
5438
5452
|
<body>
|
|
@@ -5663,7 +5677,7 @@ var materializeAbsoluteCapacitorWebBundle = async (options) => {
|
|
|
5663
5677
|
await Promise.all([
|
|
5664
5678
|
writeFile10(join9(staging, MANIFEST_FILE), `${JSON.stringify(manifest, null, "\t")}
|
|
5665
5679
|
`),
|
|
5666
|
-
writeFile10(join9(staging, INDEX_FILE), indexHtml(options.config.appName)),
|
|
5680
|
+
writeFile10(join9(staging, INDEX_FILE), indexHtml(options.config.appName, options.config.productionOrigin)),
|
|
5667
5681
|
buildShellBootstrap(staging, options.auth !== undefined, options.auth !== undefined && options.sync === true, `absolutejs.${options.auth?.clientId ?? options.config.appId}.`, options.deviceCapabilities, options.projectRoot)
|
|
5668
5682
|
]);
|
|
5669
5683
|
await installBundle(staging, destination);
|
|
@@ -7823,5 +7837,5 @@ export {
|
|
|
7823
7837
|
ABSOLUTE_ANDROID_RELEASE_FORMAT
|
|
7824
7838
|
};
|
|
7825
7839
|
|
|
7826
|
-
//# debugId=
|
|
7840
|
+
//# debugId=2B8EAAF79628B66764756E2164756E21
|
|
7827
7841
|
//# sourceMappingURL=index.js.map
|