@trackunit/iris-app-build-utilities 1.12.44 → 1.12.46

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 CHANGED
@@ -1,3 +1,14 @@
1
+ ## 1.12.46 (2026-02-19)
2
+
3
+ This was a version bump only for iris-app-build-utilities to align it with other projects, there were no code changes.
4
+
5
+ ## 1.12.45 (2026-02-19)
6
+
7
+ ### 🧱 Updated Dependencies
8
+
9
+ - Updated iris-app-api to 1.14.41
10
+ - Updated shared-utils to 1.13.42
11
+
1
12
  ## 1.12.44 (2026-02-18)
2
13
 
3
14
  ### 🧱 Updated Dependencies
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/iris-app-build-utilities",
3
- "version": "1.12.44",
3
+ "version": "1.12.46",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "repository": "https://github.com/Trackunit/manager",
6
6
  "engines": {
@@ -15,9 +15,9 @@
15
15
  "tslib": "^2.6.2",
16
16
  "csp-header": "^5.2.1",
17
17
  "@rspack/core": "1.6.7",
18
- "@trackunit/iris-app-api": "1.14.40",
18
+ "@trackunit/iris-app-api": "1.14.41",
19
19
  "@nx/devkit": "22.4.4",
20
- "@trackunit/shared-utils": "1.13.41",
20
+ "@trackunit/shared-utils": "1.13.42",
21
21
  "http-proxy-middleware": "3.0.5",
22
22
  "pacote": "^21.0.4",
23
23
  "semver": "7.5.4"
@@ -16,17 +16,13 @@ const updateIndexHtml = ({ manifest, packageJson, devtools, }) => {
16
16
  const scopeAndModuleNonce = (0, crypto_1.randomBytes)(16).toString("base64");
17
17
  const csp = (0, csp_header_1.getCSP)({
18
18
  // eslint-disable-next-line local-rules/no-typescript-assertion
19
- directives: (0, iris_app_api_1.irisAppCspInput)(manifest.validDomains, manifest.cspHeader),
19
+ directives: (0, iris_app_api_1.irisAppCspInput)(manifest.validDomains, manifest.cspHeader ? { ...manifest.cspHeader, sandbox: undefined } : undefined),
20
20
  presets: {
21
21
  irisAppDefaultCsp: iris_app_api_1.irisAppDefaultCsp,
22
22
  localDev: { "connect-src": ["ws://localhost:8097/"], "script-src": [`'nonce-${scopeAndModuleNonce}'`] },
23
23
  },
24
24
  });
25
- const cspWithoutSandbox = csp
26
- .split(";")
27
- .filter(substring => !substring.trim().startsWith("sandbox"))
28
- .join(";");
29
- let html = indexContents.replace("{{cspContent}}", cspWithoutSandbox);
25
+ let html = indexContents.replace("{{cspContent}}", csp);
30
26
  html = html.replaceAll("{{devTools}}", devtools ? devtools : "");
31
27
  html = html.replaceAll("{{scope}}", JSON.parse(packageJson).name);
32
28
  html = html.replaceAll("{{remoteEntryModuleFormat}}", manifest.moduleFormat ?? "cjs");
@@ -1 +1 @@
1
- {"version":3,"file":"indexHtmlUtil.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-build-utilities/src/plugin-shared/indexHtmlUtil.ts"],"names":[],"mappings":";;;AAAA,0DAA8F;AAC9F,mCAAqC;AACrC,2CAAoC;AACpC,2BAAkC;AAClC,+BAA4B;AAE5B;;GAEG;AACI,MAAM,eAAe,GAAG,CAAC,EAC9B,QAAQ,EACR,WAAW,EACX,QAAQ,GAKT,EAAE,EAAE;IACH,kDAAkD;IAClD,MAAM,aAAa,GAAG,IAAA,WAAI,EAAC,SAAS,EAAE,YAAY,CAAC,CAAC;IACpD,MAAM,aAAa,GAAG,IAAA,iBAAY,EAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IAC1D,MAAM,mBAAmB,GAAG,IAAA,oBAAW,EAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAE/D,MAAM,GAAG,GAAG,IAAA,mBAAM,EAAC;QACjB,+DAA+D;QAC/D,UAAU,EAAE,IAAA,8BAAe,EAAC,QAAQ,CAAC,YAAY,EAAE,QAAQ,CAAC,SAAS,CAAuC;QAC5G,OAAO,EAAE;YACP,iBAAiB,EAAjB,gCAAiB;YACjB,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Manifest } from \"@trackunit/iris-app-api\";\nimport { randomBytes } from \"crypto\";\nimport { getCSP } from \"csp-header\";\nimport { readFileSync } from \"fs\";\nimport { join } from \"path\";\n\n/**\n * Updates the index.html file with the given manifest and package.json file.\n */\nexport const updateIndexHtml = ({\n manifest,\n packageJson,\n devtools,\n}: {\n manifest: IrisAppManifest;\n packageJson: string;\n devtools?: string;\n}) => {\n // Try to use the existing updateIndexHtml utility\n const indexHtmlPath = join(__dirname, \"index.html\");\n const indexContents = readFileSync(indexHtmlPath, \"utf8\");\n const scopeAndModuleNonce = randomBytes(16).toString(\"base64\");\n\n const csp = getCSP({\n // eslint-disable-next-line local-rules/no-typescript-assertion\n directives: irisAppCspInput(manifest.validDomains, manifest.cspHeader) as import(\"csp-header\").CSPDirectives,\n presets: {\n irisAppDefaultCsp,\n localDev: { \"connect-src\": [\"ws://localhost:8097/\"], \"script-src\": [`'nonce-${scopeAndModuleNonce}'`] },\n },\n });\n\n const cspWithoutSandbox = csp\n .split(\";\")\n .filter(substring => !substring.trim().startsWith(\"sandbox\"))\n .join(\";\");\n let html = indexContents.replace(\"{{cspContent}}\", cspWithoutSandbox);\n\n html = html.replaceAll(\"{{devTools}}\", devtools ? devtools : \"\");\n html = html.replaceAll(\"{{scope}}\", JSON.parse(packageJson).name);\n html = html.replaceAll(\"{{remoteEntryModuleFormat}}\", manifest.moduleFormat ?? \"cjs\");\n if (manifest.scopes) {\n html = html.replaceAll(\"{{manifestScopes}}\", JSON.stringify(manifest.scopes));\n } else {\n html = html.replaceAll(\"{{manifestScopes}}\", \"undefined\");\n }\n // nonce last if anything above injects script tags\n html = html.replaceAll(\"{{nonce}}\", scopeAndModuleNonce);\n return html;\n};\n"]}
1
+ {"version":3,"file":"indexHtmlUtil.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-build-utilities/src/plugin-shared/indexHtmlUtil.ts"],"names":[],"mappings":";;;AAAA,0DAA8F;AAC9F,mCAAqC;AACrC,2CAAoC;AACpC,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IACtF,IAAI,QAAQ,CAAC,MAAM,EAAE,CAAC;QACpB,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,oBAAoB,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;IAChF,CAAC;SAAM,CAAC;QACN,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,oBAAoB,EAAE,WAAW,CAAC,CAAC;IAC5D,CAAC;IACD,mDAAmD;IACnD,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,mBAAmB,CAAC,CAAC;IACzD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AApCW,QAAA,eAAe,mBAoC1B","sourcesContent":["import { irisAppCspInput, irisAppDefaultCsp, IrisAppManifest } from \"@trackunit/iris-app-api\";\nimport { randomBytes } from \"crypto\";\nimport { getCSP } from \"csp-header\";\nimport { readFileSync } from \"fs\";\nimport { join } from \"path\";\n\n/**\n * Updates the index.html file with the given manifest and package.json file.\n */\nexport const updateIndexHtml = ({\n manifest,\n packageJson,\n devtools,\n}: {\n manifest: IrisAppManifest;\n packageJson: string;\n devtools?: string;\n}) => {\n // Try to use the existing updateIndexHtml utility\n const indexHtmlPath = join(__dirname, \"index.html\");\n const indexContents = readFileSync(indexHtmlPath, \"utf8\");\n const scopeAndModuleNonce = randomBytes(16).toString(\"base64\");\n\n const csp = getCSP({\n // eslint-disable-next-line local-rules/no-typescript-assertion\n directives: irisAppCspInput(manifest.validDomains, manifest.cspHeader ? {...manifest.cspHeader, sandbox: undefined} : undefined) as import(\"csp-header\").CSPDirectives,\n presets: {\n irisAppDefaultCsp,\n localDev: { \"connect-src\": [\"ws://localhost:8097/\"], \"script-src\": [`'nonce-${scopeAndModuleNonce}'`] },\n },\n });\n \n let html = indexContents.replace(\"{{cspContent}}\", csp);\n\n html = html.replaceAll(\"{{devTools}}\", devtools ? devtools : \"\");\n html = html.replaceAll(\"{{scope}}\", JSON.parse(packageJson).name);\n html = html.replaceAll(\"{{remoteEntryModuleFormat}}\", manifest.moduleFormat ?? \"cjs\");\n if (manifest.scopes) {\n html = html.replaceAll(\"{{manifestScopes}}\", JSON.stringify(manifest.scopes));\n } else {\n html = html.replaceAll(\"{{manifestScopes}}\", \"undefined\");\n }\n // nonce last if anything above injects script tags\n html = html.replaceAll(\"{{nonce}}\", scopeAndModuleNonce);\n return html;\n};\n"]}