@pendo/agent 2.281.0 → 2.282.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/README.md +24 -5
- package/bin/cli.js +80 -11
- package/dist/dom.esm.js +222 -221
- package/dist/pendo.module.js +2810 -2792
- package/dist/pendo.module.min.js +13 -13
- package/package.json +1 -1
- package/setup.js +12 -12
package/package.json
CHANGED
package/setup.js
CHANGED
|
@@ -48,11 +48,11 @@ export async function getServerConfig(options) {
|
|
|
48
48
|
delete config.assetHost;
|
|
49
49
|
options.recording = {
|
|
50
50
|
...options.recording,
|
|
51
|
-
|
|
51
|
+
workerUrl: `${options.assetHost ? options.assetHost : ''}${config.assetPath ? '/' + config.assetPath : ''}/replay.worker.min.js`
|
|
52
52
|
};
|
|
53
53
|
if (options.assets.localOnly) {
|
|
54
54
|
config.preventCodeInjection = true;
|
|
55
|
-
config.
|
|
55
|
+
config.useAssetHostForDesigner = true;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
delete options.assets;
|
|
@@ -71,7 +71,7 @@ export async function getServerConfig(options) {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
function exit(message, error) {
|
|
74
|
-
throw new Error(`Failed to load Pendo agent: ${message}`, {
|
|
74
|
+
throw new Error(`Failed to load Pendo agent: ${message}`, { cause: error });
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
function addPlugins(pendo, options) {
|
|
@@ -81,11 +81,11 @@ function addPlugins(pendo, options) {
|
|
|
81
81
|
plugin = plugin();
|
|
82
82
|
}
|
|
83
83
|
pendo.addExtension({
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
84
|
+
name: plugin.name,
|
|
85
|
+
version: '1.0.0',
|
|
86
|
+
type: 'agent',
|
|
87
|
+
use: 'plugin',
|
|
88
|
+
uri: plugin
|
|
89
89
|
});
|
|
90
90
|
});
|
|
91
91
|
}
|
|
@@ -95,9 +95,9 @@ function generateBaseAgentConfig(env) {
|
|
|
95
95
|
exit(`Unknown environment "${env}", please specify a valid environment for your subscription.`);
|
|
96
96
|
}
|
|
97
97
|
return {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
98
|
+
env: servers.ENV[env],
|
|
99
|
+
designerServer: servers.data[env],
|
|
100
|
+
server: servers.data[env],
|
|
101
|
+
assetHost: servers.assetHost[env]
|
|
102
102
|
};
|
|
103
103
|
}
|