@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/bin/cli.js
CHANGED
|
@@ -15,7 +15,7 @@ function config() {
|
|
|
15
15
|
console.error('\nExample: $ pendo config --apiKey=3d0ffbc4-bd4d-438f-69b5-354efd574672');
|
|
16
16
|
process.exit(1);
|
|
17
17
|
}
|
|
18
|
-
if (!options.env || !servers
|
|
18
|
+
if (!options.env || !servers[options.env]) {
|
|
19
19
|
console.error('Missing or invalid option "env", please provide a valid environment for your subscription using the "--env=" parameter');
|
|
20
20
|
console.error('\nExample: $ pendo config --env=io');
|
|
21
21
|
process.exit(1);
|
|
@@ -25,7 +25,7 @@ function config() {
|
|
|
25
25
|
options.output = 'pendo.config.json';
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
const url = new URL(`agent/static/${options.apiKey}/config.json`, `https://${servers
|
|
28
|
+
const url = new URL(`agent/static/${options.apiKey}/config.json`, `https://${servers[options.env].assetHost}`).toString();
|
|
29
29
|
try {
|
|
30
30
|
https.get(url, function(response) {
|
|
31
31
|
let data = '';
|
|
@@ -48,7 +48,7 @@ function config() {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
function configHelp() {
|
|
51
|
-
const environments = Object.keys(JSON.parse(fs.readFileSync(new URL('../dist/servers.json', import.meta.url), 'utf8'))
|
|
51
|
+
const environments = Object.keys(JSON.parse(fs.readFileSync(new URL('../dist/servers.json', import.meta.url), 'utf8')));
|
|
52
52
|
console.log(`Usage: pendo config --apiKey=<application_api_key> --env=<subscription_environment> [--output=<filename>]
|
|
53
53
|
|
|
54
54
|
Download a new configuration file for a specific application built from the most recent subscription and application settings.
|
|
@@ -106,7 +106,7 @@ Examples:
|
|
|
106
106
|
|
|
107
107
|
function designer() {
|
|
108
108
|
const servers = JSON.parse(fs.readFileSync(new URL('../dist/servers.json', import.meta.url), 'utf8'));
|
|
109
|
-
if (!options.env || !servers
|
|
109
|
+
if (!options.env || !servers[options.env]) {
|
|
110
110
|
console.error('Missing or invalid option "env", please provide a valid environment for your subscription using the "--env=" parameter');
|
|
111
111
|
console.error('\nExample: $ pendo designer --env=io');
|
|
112
112
|
process.exit(1);
|
|
@@ -121,7 +121,7 @@ function designer() {
|
|
|
121
121
|
|
|
122
122
|
designerFiles.forEach(filename => {
|
|
123
123
|
try {
|
|
124
|
-
const pluginUrl = new URL(`in-app-designer/latest/${filename}`, `${servers
|
|
124
|
+
const pluginUrl = new URL(`in-app-designer/latest/${filename}`, `${servers[options.env].server}`).toString();
|
|
125
125
|
const filePath = path.join(options.dest, filename);
|
|
126
126
|
const file = fs.createWriteStream(filePath);
|
|
127
127
|
|
|
@@ -161,7 +161,7 @@ function designer() {
|
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
function designerHelp() {
|
|
164
|
-
const environments = Object.keys(JSON.parse(fs.readFileSync(new URL('../dist/servers.json', import.meta.url), 'utf8'))
|
|
164
|
+
const environments = Object.keys(JSON.parse(fs.readFileSync(new URL('../dist/servers.json', import.meta.url), 'utf8')));
|
|
165
165
|
console.log(`Usage: pendo designer --env=<subscription_environment> --dest=<destination_folder>
|
|
166
166
|
|
|
167
167
|
Download new copies of the plugin files needed for the Visual Design Studio to launch and operate correctly.
|
package/dist/dom.esm.js
CHANGED
|
@@ -7057,9 +7057,10 @@ function isNativeCode(fn) { return /native/.test(fn); }
|
|
|
7057
7057
|
// we've added trident to track this actual version of IE so we can
|
|
7058
7058
|
// attempt to handle these cases too.
|
|
7059
7059
|
// holds major version number for IE or NaN for real browsers
|
|
7060
|
-
var msie;
|
|
7060
|
+
var msie = determineMSIE(getUA());
|
|
7061
|
+
determineTrident(getUA(), msie);
|
|
7061
7062
|
function pint(str) { return parseInt(str, 10); }
|
|
7062
|
-
|
|
7063
|
+
function lowercase(string) { return _.isString(string) ? string.toLowerCase() : string; }
|
|
7063
7064
|
function isMinimumIEVersion(minVersion) {
|
|
7064
7065
|
var sniffer = this;
|
|
7065
7066
|
if (isNaN(sniffer.msie) || sniffer.msie == null)
|
|
@@ -7071,22 +7072,20 @@ function getUA() {
|
|
|
7071
7072
|
}
|
|
7072
7073
|
// IE 11 changed the format of the UserAgent string.
|
|
7073
7074
|
// See http://msdn.microsoft.com/en-us/library/ms537503.aspx
|
|
7074
|
-
|
|
7075
|
-
var
|
|
7076
|
-
if (isNaN(
|
|
7077
|
-
|
|
7075
|
+
function determineMSIE(userAgent) {
|
|
7076
|
+
var version = pint((/msie (\d+)/.exec(lowercase(userAgent)) || [])[1]);
|
|
7077
|
+
if (isNaN(version)) {
|
|
7078
|
+
version = pint((/trident\/.*; rv:(\d+)/.exec(lowercase(userAgent)) || [])[1]);
|
|
7078
7079
|
}
|
|
7079
|
-
return
|
|
7080
|
-
}
|
|
7081
|
-
|
|
7082
|
-
var
|
|
7083
|
-
|
|
7084
|
-
|
|
7085
|
-
v = 3;
|
|
7080
|
+
return version;
|
|
7081
|
+
}
|
|
7082
|
+
function determineTrident(userAgent, ieVersion) {
|
|
7083
|
+
var version = pint((/trident\/(\d+)/.exec(lowercase(userAgent)) || [])[1]);
|
|
7084
|
+
if (isNaN(version) && ieVersion == 7) {
|
|
7085
|
+
version = 3;
|
|
7086
7086
|
}
|
|
7087
|
-
return
|
|
7088
|
-
}
|
|
7089
|
-
determineTrident(getUA(), msie);
|
|
7087
|
+
return version;
|
|
7088
|
+
}
|
|
7090
7089
|
var eventSupport = {};
|
|
7091
7090
|
var android = pint((/android (\d+)/.exec(lowercase(getUA())) || [])[1]);
|
|
7092
7091
|
var boxee = /Boxee/i.test(getUA());
|
|
@@ -7143,11 +7142,12 @@ function shouldWrapHashChange() {
|
|
|
7143
7142
|
function isMobileUserAgent() {
|
|
7144
7143
|
return (/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i).test(getUA());
|
|
7145
7144
|
}
|
|
7146
|
-
|
|
7145
|
+
function isSafari(userAgent) {
|
|
7146
|
+
if (userAgent === void 0) { userAgent = getUA(); }
|
|
7147
|
+
return userAgent.indexOf('Safari') >= 0 && !userAgent.indexOf('Chrome') >= 0;
|
|
7148
|
+
}
|
|
7147
7149
|
var sniffer = {
|
|
7148
|
-
// jshint -W018
|
|
7149
7150
|
supportsHistoryApi: shouldWrapNativeHistory,
|
|
7150
|
-
// jshint +W018
|
|
7151
7151
|
supportsHashChange: shouldWrapHashChange,
|
|
7152
7152
|
hasEvent: function (event) {
|
|
7153
7153
|
// IE9 implements 'input' event it's so fubared that we rather pretend that it doesn't have
|
|
@@ -7167,7 +7167,7 @@ var sniffer = {
|
|
|
7167
7167
|
android: android,
|
|
7168
7168
|
msie: msie,
|
|
7169
7169
|
msieDocumentMode: documentMode,
|
|
7170
|
-
safari:
|
|
7170
|
+
safari: isSafari(),
|
|
7171
7171
|
sri: ('integrity' in document.createElement('script')),
|
|
7172
7172
|
addEventListener: _.isFunction(window.addEventListener),
|
|
7173
7173
|
MutationObserver: isNativeCode(window.MutationObserver),
|
|
@@ -7312,7 +7312,7 @@ function getScreenPosition(element) {
|
|
|
7312
7312
|
};
|
|
7313
7313
|
}
|
|
7314
7314
|
|
|
7315
|
-
var VERSION = '2.
|
|
7315
|
+
var VERSION = '2.295.0_';
|
|
7316
7316
|
|
|
7317
7317
|
var decodeURIComponent = _.isFunction(window.decodeURIComponent) ? window.decodeURIComponent : _.identity;
|
|
7318
7318
|
|