@trackunit/iris-app-sdk-webpack 1.11.48 → 1.11.49
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/iris-app-sdk-webpack",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.49",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"repository": "https://github.com/Trackunit/manager",
|
|
6
6
|
"executors": "./executors.json",
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
"win-ca": "^3.5.1",
|
|
16
16
|
"copy-webpack-plugin": "11.0.0",
|
|
17
17
|
"webpack-bundle-analyzer": "^4.8.0",
|
|
18
|
-
"@trackunit/iris-app-build-utilities": "1.12.
|
|
19
|
-
"@trackunit/iris-app-api": "1.14.
|
|
20
|
-
"@trackunit/iris-app-webpack-plugin": "1.11.
|
|
18
|
+
"@trackunit/iris-app-build-utilities": "1.12.49",
|
|
19
|
+
"@trackunit/iris-app-api": "1.14.44",
|
|
20
|
+
"@trackunit/iris-app-webpack-plugin": "1.11.49",
|
|
21
21
|
"tslib": "^2.6.2"
|
|
22
22
|
},
|
|
23
23
|
"types": "./src/index.d.ts",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export type Settings = {
|
|
2
|
-
approvalUrl: URL;
|
|
3
|
-
repoUrl: URL;
|
|
4
|
-
env: string;
|
|
5
|
-
devTermsAccept: boolean;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* Provides the settings for the Iris App server based on the environment.
|
|
9
|
-
*/
|
|
10
|
-
export declare function getSettings(): Settings;
|
|
11
|
-
/**
|
|
12
|
-
* Provides the base URL for the Iris App server based on the environment.
|
|
13
|
-
*
|
|
14
|
-
* @param {string} env The environment to get the base URL for.
|
|
15
|
-
* @returns {URL} The base URL for the Iris App server.
|
|
16
|
-
*/
|
|
17
|
-
export declare function getBaseUrl(env: string): URL;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getSettings = getSettings;
|
|
4
|
-
exports.getBaseUrl = getBaseUrl;
|
|
5
|
-
/**
|
|
6
|
-
* Provides the settings for the Iris App server based on the environment.
|
|
7
|
-
*/
|
|
8
|
-
function getSettings() {
|
|
9
|
-
const env = process.env.TU_ENV?.toUpperCase() ?? "PROD";
|
|
10
|
-
const baseUrl = getBaseUrl(env);
|
|
11
|
-
const devTermsAccept = process.env.TU_DEV_TERMS_AND_CONDITIONS?.toLowerCase() === "accept";
|
|
12
|
-
return {
|
|
13
|
-
approvalUrl: new URL("approve/", baseUrl),
|
|
14
|
-
repoUrl: new URL("repo/", baseUrl),
|
|
15
|
-
env,
|
|
16
|
-
devTermsAccept,
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Provides the base URL for the Iris App server based on the environment.
|
|
21
|
-
*
|
|
22
|
-
* @param {string} env The environment to get the base URL for.
|
|
23
|
-
* @returns {URL} The base URL for the Iris App server.
|
|
24
|
-
*/
|
|
25
|
-
function getBaseUrl(env) {
|
|
26
|
-
switch (env.toUpperCase()) {
|
|
27
|
-
case "PROD":
|
|
28
|
-
return new URL(process.env.BASE_URL ?? "https://iris.trackunit.app/");
|
|
29
|
-
case "STAGE":
|
|
30
|
-
return new URL(process.env.BASE_URL ?? "https://stage.iris.trackunit.app/");
|
|
31
|
-
case "DEV":
|
|
32
|
-
return new URL(process.env.BASE_URL ?? "https://dev.iris.trackunit.app/");
|
|
33
|
-
default:
|
|
34
|
-
throw new Error(`Unknown environment: ${env}`);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=irisAppServerSettings.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"irisAppServerSettings.js","sourceRoot":"","sources":["../../../../../../../libs/iris-app-sdk/webpack/src/executors/utils/irisAppServerSettings.ts"],"names":[],"mappings":";;AAUA,kCAWC;AAQD,gCAWC;AAjCD;;GAEG;AACH,SAAgB,WAAW;IACzB,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,MAAM,CAAC;IACxD,MAAM,OAAO,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC;IAChC,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE,WAAW,EAAE,KAAK,QAAQ,CAAC;IAE3F,OAAO;QACL,WAAW,EAAE,IAAI,GAAG,CAAC,UAAU,EAAE,OAAO,CAAC;QACzC,OAAO,EAAE,IAAI,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC;QAClC,GAAG;QACH,cAAc;KACf,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,SAAgB,UAAU,CAAC,GAAW;IACpC,QAAQ,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC;QAC1B,KAAK,MAAM;YACT,OAAO,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,6BAA6B,CAAC,CAAC;QACxE,KAAK,OAAO;YACV,OAAO,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,mCAAmC,CAAC,CAAC;QAC9E,KAAK,KAAK;YACR,OAAO,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,iCAAiC,CAAC,CAAC;QAC5E;YACE,MAAM,IAAI,KAAK,CAAC,wBAAwB,GAAG,EAAE,CAAC,CAAC;IACnD,CAAC;AACH,CAAC","sourcesContent":["export type Settings = {\n approvalUrl: URL;\n repoUrl: URL;\n env: string;\n devTermsAccept: boolean;\n};\n\n/**\n * Provides the settings for the Iris App server based on the environment.\n */\nexport function getSettings(): Settings {\n const env = process.env.TU_ENV?.toUpperCase() ?? \"PROD\";\n const baseUrl = getBaseUrl(env);\n const devTermsAccept = process.env.TU_DEV_TERMS_AND_CONDITIONS?.toLowerCase() === \"accept\";\n\n return {\n approvalUrl: new URL(\"approve/\", baseUrl),\n repoUrl: new URL(\"repo/\", baseUrl),\n env,\n devTermsAccept,\n };\n}\n\n/**\n * Provides the base URL for the Iris App server based on the environment.\n *\n * @param {string} env The environment to get the base URL for.\n * @returns {URL} The base URL for the Iris App server.\n */\nexport function getBaseUrl(env: string) {\n switch (env.toUpperCase()) {\n case \"PROD\":\n return new URL(process.env.BASE_URL ?? \"https://iris.trackunit.app/\");\n case \"STAGE\":\n return new URL(process.env.BASE_URL ?? \"https://stage.iris.trackunit.app/\");\n case \"DEV\":\n return new URL(process.env.BASE_URL ?? \"https://dev.iris.trackunit.app/\");\n default:\n throw new Error(`Unknown environment: ${env}`);\n }\n}\n"]}
|