@elliemae/pui-app-sdk 4.0.0-alpha.2 → 4.0.0-alpha.3
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.
|
@@ -39,8 +39,8 @@ const parseAppConfig = (data) => {
|
|
|
39
39
|
(0, import_appdynamics.setAppDynamicsUserData)({ envName: activeEnv });
|
|
40
40
|
(0, import_web_analytics.updateBAEventParameters)({ envName: activeEnv });
|
|
41
41
|
};
|
|
42
|
-
const loadAppConfig = () => new Promise((resolve, reject) => {
|
|
43
|
-
(0, import_http_client.getHTTPClient)().get(`${(0, import_window.getAssetPath)()}app.config.json`).then(({ data }) => {
|
|
42
|
+
const loadAppConfig = (assetPath = "") => new Promise((resolve, reject) => {
|
|
43
|
+
(0, import_http_client.getHTTPClient)().get(`${assetPath || (0, import_window.getAssetPath)()}app.config.json`).then(({ data }) => {
|
|
44
44
|
parseAppConfig(data);
|
|
45
45
|
resolve();
|
|
46
46
|
}).catch((err) => {
|
|
@@ -14,8 +14,8 @@ const parseAppConfig = (data) => {
|
|
|
14
14
|
setAppDynamicsUserData({ envName: activeEnv });
|
|
15
15
|
updateBAEventParameters({ envName: activeEnv });
|
|
16
16
|
};
|
|
17
|
-
const loadAppConfig = () => new Promise((resolve, reject) => {
|
|
18
|
-
getHTTPClient().get(`${getAssetPath()}app.config.json`).then(({ data }) => {
|
|
17
|
+
const loadAppConfig = (assetPath = "") => new Promise((resolve, reject) => {
|
|
18
|
+
getHTTPClient().get(`${assetPath || getAssetPath()}app.config.json`).then(({ data }) => {
|
|
19
19
|
parseAppConfig(data);
|
|
20
20
|
resolve();
|
|
21
21
|
}).catch((err) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const loadAppConfig: () => Promise<void>;
|
|
1
|
+
export declare const loadAppConfig: (assetPath?: string) => Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-app-sdk",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.3",
|
|
4
4
|
"description": "ICE MT UI Platform Application SDK ",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css",
|
|
@@ -93,6 +93,7 @@
|
|
|
93
93
|
"test:fix": "pui-cli test -f",
|
|
94
94
|
"test:watch": "pui-cli test -w",
|
|
95
95
|
"test:staged": "jest --coverage --passWithNoTests --bail --findRelatedTests",
|
|
96
|
+
"tscheck": "pui-cli tscheck --files",
|
|
96
97
|
"upgrade": "ncu -u && npm run setup",
|
|
97
98
|
"prepare": "[ -n \"$CI\" ] || husky install"
|
|
98
99
|
},
|
|
@@ -140,7 +141,7 @@
|
|
|
140
141
|
"@elliemae/ds-popperjs": "~3.0.3",
|
|
141
142
|
"@elliemae/ds-toast": "~3.0.3",
|
|
142
143
|
"@elliemae/em-ssf-guest": "~1.11.1",
|
|
143
|
-
"@elliemae/pui-cli": "7.0.0-alpha.
|
|
144
|
+
"@elliemae/pui-cli": "7.0.0-alpha.11",
|
|
144
145
|
"@elliemae/pui-diagnostics": "~2.7.4",
|
|
145
146
|
"@elliemae/pui-e2e-test-sdk": "~7.3.4",
|
|
146
147
|
"@elliemae/pui-micro-frontend-base": "~1.11.2",
|