@trackunit/iris-app-api 1.3.42 → 1.3.45
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,15 @@
|
|
|
1
|
+
## 1.3.45 (2025-03-26)
|
|
2
|
+
|
|
3
|
+
This was a version bump only for iris-app-api to align it with other projects, there were no code changes.
|
|
4
|
+
|
|
5
|
+
## 1.3.44 (2025-03-26)
|
|
6
|
+
|
|
7
|
+
This was a version bump only for iris-app-api to align it with other projects, there were no code changes.
|
|
8
|
+
|
|
9
|
+
## 1.3.43 (2025-03-25)
|
|
10
|
+
|
|
11
|
+
This was a version bump only for iris-app-api to align it with other projects, there were no code changes.
|
|
12
|
+
|
|
1
13
|
## 1.3.42 (2025-03-21)
|
|
2
14
|
|
|
3
15
|
This was a version bump only for iris-app-api to align it with other projects, there were no code changes.
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultValidHosts.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-api/src/types/defaultValidHosts.ts"],"names":[],"mappings":";;;AAAA,mDAA8C;AAE9C;;;;;;GAMG;AACI,MAAM,iBAAiB,GAAG,GAAG,EAAE;IACpC,2EAA2E;IAC3E,OAAO;QACL,mCAAmC;QACnC,qCAAqC;QACrC,mCAAmC;QACnC,wBAAwB;QACxB,wBAAwB;QACxB,wBAAwB;QACxB,8BAA8B;QAC9B,OAAO;QACP,gCAAgC;QAChC,OAAO;QACP,QAAQ;QACR,mCAAmC;QACnC,iCAAiC,EAAE,mCAAmC;QACtE,QAAQ;QACR,gCAAgC;QAChC,QAAQ;QACR,uBAAuB;QACvB,0BAA0B;QAC1B,qBAAqB;QACrB,
|
|
1
|
+
{"version":3,"file":"defaultValidHosts.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-api/src/types/defaultValidHosts.ts"],"names":[],"mappings":";;;AAAA,mDAA8C;AAE9C;;;;;;GAMG;AACI,MAAM,iBAAiB,GAAG,GAAG,EAAE;IACpC,2EAA2E;IAC3E,OAAO;QACL,mCAAmC;QACnC,qCAAqC;QACrC,mCAAmC;QACnC,wBAAwB;QACxB,wBAAwB;QACxB,wBAAwB;QACxB,8BAA8B;QAC9B,OAAO;QACP,gCAAgC;QAChC,OAAO;QACP,QAAQ;QACR,mCAAmC;QACnC,iCAAiC,EAAE,mCAAmC;QACtE,QAAQ;QACR,gCAAgC;QAChC,QAAQ;QACR,uBAAuB;QACvB,0BAA0B;QAC1B,qBAAqB;QACrB,WAAW;QACX,yBAAyB;QACzB,WAAW;QACX,yBAAyB;QACzB,yBAAyB;KAC1B,CAAC;AACJ,CAAC,CAAC;AA5BW,QAAA,iBAAiB,qBA4B5B;AAEF;;;;GAIG;AACI,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACnC,OAAO;QACL,aAAa,EAAE,IAAA,yBAAiB,GAAE;QAClC,YAAY,EAAE,CAAC,GAAG,IAAA,yBAAiB,GAAE,EAAE,2BAAW,CAAC;QACnD,SAAS,EAAE,IAAA,yBAAiB,GAAE;QAC9B,YAAY,EAAE,IAAA,yBAAiB,GAAE;QACjC,aAAa,EAAE,IAAA,yBAAiB,GAAE;KACnC,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,gBAAgB,oBAQ3B","sourcesContent":["import { UNSAFE_EVAL } from \"./cspDirectives\";\n\n/**\n * Returns default valid hosts for CSP for manager.\n *\n * ! Internal use only !\n *\n * @returns {string[]} - Array of valid hosts for CSP\n */\nexport const defaultValidHosts = () => {\n // TRY TO KEEP IN SYNC WITH CHANGES IN server.js from manager (CSP headers)\n return [\n \"https://dev.manager.trackunit.com\",\n \"https://stage.manager.trackunit.com\",\n \"https://new.manager.trackunit.com\",\n \"http://localhost:5005/\",\n \"http://localhost:5010/\",\n \"http://localhost:5011/\",\n //Allow inline data like icons\n \"data:\",\n //Allow vector based google maps\n \"blob:\",\n //IMAGES\n \"https://images.iris.trackunit.com\",\n \"https://*.awsapi.trackunit.com/\", // loading images from machines api\n //SENTRY\n \"https://browser.sentry-cdn.com\",\n //GOOGLE\n \"https://*.gstatic.com\",\n \"https://*.googleapis.com\",\n \"https://*.ggpht.com\",\n //AMPLITUDE\n \"https://*.amplitude.com\",\n //SPECCHECK\n \"https://*.speccheck.com\",\n \"https://api.hsforms.com\",\n ];\n};\n\n/**\n * Returns default CSP config\n *\n * ! Internal use only !\n */\nexport const defaultCspConfig = () => {\n return {\n \"default-src\": defaultValidHosts(),\n \"script-src\": [...defaultValidHosts(), UNSAFE_EVAL],\n \"img-src\": defaultValidHosts(),\n \"worker-src\": defaultValidHosts(),\n \"connect-src\": defaultValidHosts(),\n };\n};\n"]}
|