@pendo/agent 2.294.0 → 2.295.0
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/bin/cli.js +6 -6
- package/dist/dom.esm.js +21 -21
- package/dist/pendo.debugger.min.js +6 -6
- package/dist/pendo.module.js +160 -153
- package/dist/pendo.module.min.js +8 -8
- package/dist/pendo.preview.min.js +3 -3
- package/dist/servers.json +60 -24
- package/package.json +1 -1
- package/setup.js +4 -10
package/dist/servers.json
CHANGED
|
@@ -1,29 +1,65 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
2
|
+
"au": {
|
|
3
|
+
"server": "https://app.au.pendo.io",
|
|
4
|
+
"assetHost": "cdn.au.pendo.io",
|
|
5
|
+
"assetPath": "agent/releases/2.295.0",
|
|
6
|
+
"ENV": "prod-au",
|
|
7
|
+
"DESIGNER_SERVER": "https://app.au.pendo.io",
|
|
8
|
+
"GLOBAL_BUCKET": "pendo-au-static",
|
|
9
|
+
"SUBSCRIPTION_BUCKET": "pendo-au-static"
|
|
10
10
|
},
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
11
|
+
"eu": {
|
|
12
|
+
"server": "https://app.eu.pendo.io",
|
|
13
|
+
"assetHost": "cdn.eu.pendo.io",
|
|
14
|
+
"assetPath": "agent/releases/2.295.0",
|
|
15
|
+
"ENV": "prod-eu",
|
|
16
|
+
"DESIGNER_SERVER": "https://app.eu.pendo.io",
|
|
17
|
+
"GLOBAL_BUCKET": "pendo-eu-static",
|
|
18
|
+
"SUBSCRIPTION_BUCKET": "pendo-eu-static"
|
|
19
19
|
},
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
20
|
+
"gov": {
|
|
21
|
+
"server": "https://app.gov.pendo.io",
|
|
22
|
+
"assetHost": "cdn.gov.pendo.io",
|
|
23
|
+
"assetPath": "agent/releases/2.295.0",
|
|
24
|
+
"ENV": "prod-gov",
|
|
25
|
+
"DESIGNER_SERVER": "https://app.gov.pendo.io",
|
|
26
|
+
"GLOBAL_BUCKET": "pendo-govramp-static",
|
|
27
|
+
"SUBSCRIPTION_BUCKET": "pendo-gov-static"
|
|
28
|
+
},
|
|
29
|
+
"hsbc": {
|
|
30
|
+
"server": "https://app.hsbc.pendo.io",
|
|
31
|
+
"assetHost": "cdn.hsbc.pendo.io",
|
|
32
|
+
"assetPath": "agent/releases/2.295.0",
|
|
33
|
+
"ENV": "prod-hsbc",
|
|
34
|
+
"DESIGNER_SERVER": "https://app.hsbc.pendo.io",
|
|
35
|
+
"GLOBAL_BUCKET": "pendo-hsbc-static",
|
|
36
|
+
"SUBSCRIPTION_BUCKET": "pendo-hsb-static"
|
|
37
|
+
},
|
|
38
|
+
"io": {
|
|
39
|
+
"server": "https://app.pendo.io",
|
|
40
|
+
"assetHost": "cdn.pendo.io",
|
|
41
|
+
"assetPath": "agent/releases/2.295.0",
|
|
42
|
+
"ENV": "prod-io",
|
|
43
|
+
"DESIGNER_SERVER": "https://app.pendo.io",
|
|
44
|
+
"GLOBAL_BUCKET": "pendo-io-static",
|
|
45
|
+
"SUBSCRIPTION_BUCKET": "pendo-static"
|
|
46
|
+
},
|
|
47
|
+
"jpn": {
|
|
48
|
+
"server": "https://app.jpn.pendo.io",
|
|
49
|
+
"assetHost": "cdn.jpn.pendo.io",
|
|
50
|
+
"assetPath": "agent/releases/2.295.0",
|
|
51
|
+
"ENV": "prod-jpn",
|
|
52
|
+
"DESIGNER_SERVER": "https://app.jpn.pendo.io",
|
|
53
|
+
"GLOBAL_BUCKET": "pendo-jp-prod-static",
|
|
54
|
+
"SUBSCRIPTION_BUCKET": "pendo-jp-prod-static"
|
|
55
|
+
},
|
|
56
|
+
"us1": {
|
|
57
|
+
"server": "us1.https://app.pendo.io",
|
|
58
|
+
"assetHost": "us1.cdn.pendo.io",
|
|
59
|
+
"assetPath": "agent/releases/2.295.0",
|
|
60
|
+
"ENV": "prod-us1",
|
|
61
|
+
"DESIGNER_SERVER": "us1.https://app.pendo.io",
|
|
62
|
+
"GLOBAL_BUCKET": "pendo-us1-static",
|
|
63
|
+
"SUBSCRIPTION_BUCKET": "pendo-us1-static"
|
|
28
64
|
}
|
|
29
65
|
}
|
package/package.json
CHANGED
package/setup.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import packageJson from './package.json';
|
|
2
1
|
import servers from './dist/servers.json';
|
|
3
2
|
|
|
4
3
|
export async function startAgent(initAgent, options = {}) {
|
|
@@ -56,9 +55,8 @@ export async function getServerConfig(options) {
|
|
|
56
55
|
}
|
|
57
56
|
|
|
58
57
|
delete options.assets;
|
|
59
|
-
} else {
|
|
60
|
-
config.assetPath = `agent/releases/${packageJson.version}`;
|
|
61
58
|
}
|
|
59
|
+
|
|
62
60
|
if (options.globalKey) {
|
|
63
61
|
config.pendoGlobalKey = options.globalKey;
|
|
64
62
|
}
|
|
@@ -91,13 +89,9 @@ function addPlugins(pendo, options) {
|
|
|
91
89
|
}
|
|
92
90
|
|
|
93
91
|
function generateBaseAgentConfig(env) {
|
|
94
|
-
if (!servers
|
|
92
|
+
if (!servers[env]) {
|
|
95
93
|
exit(`Unknown environment "${env}", please specify a valid environment for your subscription.`);
|
|
96
94
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
designerServer: servers.data[env],
|
|
100
|
-
server: servers.data[env],
|
|
101
|
-
assetHost: servers.assetHost[env]
|
|
102
|
-
};
|
|
95
|
+
|
|
96
|
+
return servers[env];
|
|
103
97
|
}
|