@trackunit/iris-app-api 0.0.90 → 0.0.91
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 +2 -0
- package/package.json +1 -1
- package/src/types/defaultValidHosts.d.ts +8 -0
- package/src/types/defaultValidHosts.js +38 -0
- package/src/types/defaultValidHosts.js.map +1 -0
- package/src/types/index.d.ts +1 -0
- package/src/types/index.js +1 -0
- package/src/types/index.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.0.91](https://github.com/Trackunit/manager/compare/iris-app-api/0.0.90...iris-app-api/0.0.91) (2023-05-11)
|
|
6
|
+
|
|
5
7
|
## [0.0.90](https://github.com/Trackunit/manager/compare/iris-app-api/0.0.89...iris-app-api/0.0.90) (2023-04-28)
|
|
6
8
|
|
|
7
9
|
## [0.0.89](https://github.com/Trackunit/manager/compare/iris-app-api/0.0.88...iris-app-api/0.0.89) (2023-04-27)
|
package/package.json
CHANGED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultValidHosts = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Returns default valid hosts for CSP for manager.
|
|
6
|
+
*
|
|
7
|
+
* ! Internal use only !
|
|
8
|
+
*
|
|
9
|
+
* @returns {string[]} - Array of valid hosts for CSP
|
|
10
|
+
*/
|
|
11
|
+
const defaultValidHosts = () => {
|
|
12
|
+
// TRY TO KEEP IN SYNC WITH CHANGES IN server.js from manager (CSP headers)
|
|
13
|
+
return [
|
|
14
|
+
"https://dev.manager.trackunit.com",
|
|
15
|
+
"https://stage.manager.trackunit.com",
|
|
16
|
+
"https://new.manager.trackunit.com",
|
|
17
|
+
"http://localhost:5005/",
|
|
18
|
+
//Allow inline data like icons
|
|
19
|
+
"data:",
|
|
20
|
+
//IMAGES
|
|
21
|
+
"https://images.iris.trackunit.com",
|
|
22
|
+
"https://*.awsapi.trackunit.com/",
|
|
23
|
+
//SENTRY
|
|
24
|
+
"https://browser.sentry-cdn.com",
|
|
25
|
+
//GOOGLE
|
|
26
|
+
"https://*.gstatic.com",
|
|
27
|
+
"https://*.googleapis.com",
|
|
28
|
+
"https://*.ggpht.com",
|
|
29
|
+
//APPCUES
|
|
30
|
+
"https://*.appcues.com",
|
|
31
|
+
//AMPLITUDE
|
|
32
|
+
"https://*.amplitude.com",
|
|
33
|
+
//SPECCHECK
|
|
34
|
+
"https://*.speccheck.com",
|
|
35
|
+
];
|
|
36
|
+
};
|
|
37
|
+
exports.defaultValidHosts = defaultValidHosts;
|
|
38
|
+
//# sourceMappingURL=defaultValidHosts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaultValidHosts.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-api/src/types/defaultValidHosts.ts"],"names":[],"mappings":";;;AAAA;;;;;;GAMG;AACI,MAAM,iBAAiB,GAAG,GAAG,EAAE;IACpC,2EAA2E;IAC3E,OAAO;QACL,mCAAmC;QACnC,qCAAqC;QACrC,mCAAmC;QACnC,wBAAwB;QACxB,8BAA8B;QAC9B,OAAO;QACP,QAAQ;QACR,mCAAmC;QACnC,iCAAiC;QACjC,QAAQ;QACR,gCAAgC;QAChC,QAAQ;QACR,uBAAuB;QACvB,0BAA0B;QAC1B,qBAAqB;QACrB,SAAS;QACT,uBAAuB;QACvB,WAAW;QACX,yBAAyB;QACzB,WAAW;QACX,yBAAyB;KAC1B,CAAC;AACJ,CAAC,CAAC;AAzBW,QAAA,iBAAiB,qBAyB5B","sourcesContent":["/**\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 //Allow inline data like icons\n \"data:\",\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 //APPCUES\n \"https://*.appcues.com\",\n //AMPLITUDE\n \"https://*.amplitude.com\",\n //SPECCHECK\n \"https://*.speccheck.com\",\n ];\n};\n"]}
|
package/src/types/index.d.ts
CHANGED
package/src/types/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./defaultValidHosts"), exports);
|
|
4
5
|
tslib_1.__exportStar(require("./irisAppCspInput"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./irisAppManifest"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./mocks"), exports);
|
package/src/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-api/src/types/index.ts"],"names":[],"mappings":";;;AAAA,4DAAkC;AAClC,4DAAkC;AAClC,kDAAwB;AACxB,6DAAmC","sourcesContent":["export * from \"./irisAppCspInput\";\nexport * from \"./irisAppManifest\";\nexport * from \"./mocks\";\nexport * from \"./modulefederation\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-api/src/types/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC;AACpC,4DAAkC;AAClC,4DAAkC;AAClC,kDAAwB;AACxB,6DAAmC","sourcesContent":["export * from \"./defaultValidHosts\";\nexport * from \"./irisAppCspInput\";\nexport * from \"./irisAppManifest\";\nexport * from \"./mocks\";\nexport * from \"./modulefederation\";\n"]}
|