@ada-support/embed2 1.0.33 → 1.0.34
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/dist/npm-entry/index.js +20 -13
- package/package.json +1 -1
package/dist/npm-entry/index.js
CHANGED
|
@@ -8492,7 +8492,7 @@ var client = new error_tracker_BrowserClient({
|
|
|
8492
8492
|
return event;
|
|
8493
8493
|
},
|
|
8494
8494
|
environment: "production",
|
|
8495
|
-
release: "
|
|
8495
|
+
release: "8920d7ba7d0078df10f4e731ddb98d3a7716a234",
|
|
8496
8496
|
sampleRate: 0.25,
|
|
8497
8497
|
autoSessionTracking: false,
|
|
8498
8498
|
// Integrations don't seem to work with Sentry: https://github.com/getsentry/sentry-javascript/issues/2541
|
|
@@ -9176,7 +9176,7 @@ function getEmbedURL(_ref) {
|
|
|
9176
9176
|
polyfillVersionString = "legacy";
|
|
9177
9177
|
}
|
|
9178
9178
|
|
|
9179
|
-
return concat_default()(_context5 = concat_default()(_context6 = concat_default()(_context7 = "".concat(host, "/embed/")).call(_context7, polyfillVersionString, "/")).call(_context6, frameName, "/")).call(_context5, "
|
|
9179
|
+
return concat_default()(_context5 = concat_default()(_context6 = concat_default()(_context7 = "".concat(host, "/embed/")).call(_context7, polyfillVersionString, "/")).call(_context6, frameName, "/")).call(_context5, "8920d7b", "/index.html");
|
|
9180
9180
|
}
|
|
9181
9181
|
/**
|
|
9182
9182
|
* Generate the Chat / API URL
|
|
@@ -9797,7 +9797,7 @@ var IGNORED_ERRORS = [// This error most likely comes from a browser extension
|
|
|
9797
9797
|
init({
|
|
9798
9798
|
dsn: null,
|
|
9799
9799
|
environment: "production",
|
|
9800
|
-
release: "
|
|
9800
|
+
release: "8920d7ba7d0078df10f4e731ddb98d3a7716a234",
|
|
9801
9801
|
ignoreErrors: IGNORED_ERRORS,
|
|
9802
9802
|
tracesSampleRate: 0.1,
|
|
9803
9803
|
autoSessionTracking: false
|
|
@@ -9897,8 +9897,7 @@ function getChatterFromStorage() {
|
|
|
9897
9897
|
|
|
9898
9898
|
function _getChatterFromStorage() {
|
|
9899
9899
|
_getChatterFromStorage = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee3() {
|
|
9900
|
-
var
|
|
9901
|
-
|
|
9900
|
+
var state, privateMode, client;
|
|
9902
9901
|
return regenerator_default().wrap(function _callee3$(_context3) {
|
|
9903
9902
|
while (1) {
|
|
9904
9903
|
switch (_context3.prev = _context3.next) {
|
|
@@ -9907,12 +9906,20 @@ function _getChatterFromStorage() {
|
|
|
9907
9906
|
return store.getState();
|
|
9908
9907
|
|
|
9909
9908
|
case 2:
|
|
9910
|
-
|
|
9911
|
-
|
|
9912
|
-
|
|
9909
|
+
state = _context3.sent;
|
|
9910
|
+
|
|
9911
|
+
if (state) {
|
|
9912
|
+
_context3.next = 5;
|
|
9913
|
+
break;
|
|
9914
|
+
}
|
|
9915
|
+
|
|
9916
|
+
return _context3.abrupt("return", null);
|
|
9917
|
+
|
|
9918
|
+
case 5:
|
|
9919
|
+
privateMode = state.privateMode, client = state.client;
|
|
9913
9920
|
return _context3.abrupt("return", retrieveStorage(CHATTER_STORAGE_KEY, client, Boolean(privateMode)));
|
|
9914
9921
|
|
|
9915
|
-
case
|
|
9922
|
+
case 7:
|
|
9916
9923
|
case "end":
|
|
9917
9924
|
return _context3.stop();
|
|
9918
9925
|
}
|
|
@@ -14367,7 +14374,7 @@ window.__AdaEmbedConstructor = Embed;
|
|
|
14367
14374
|
/* harmony export */ });
|
|
14368
14375
|
var isModern = new RegExp("((CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone|CPU IPhone OS)[ +]+(14|(1[5-9]|[2-9]\\d|\\d{3,}))[_.]\\d+(?:[_.]\\d+)?)|((Chromium|Chrome)\\/(92|(9[3-9]|\\d{3,}))\\.\\d+(?:\\.\\d+)?)|(Version\\/(14|(1[5-9]|[2-9]\\d|\\d{3,}))\\.\\d+(?:\\.\\d+)? Safari\\/)|(Firefox\\/(91|(9[2-9]|\\d{3,}))\\.\\d+\\.\\d+)|(Firefox\\/(91|(9[2-9]|\\d{3,}))\\.\\d+(pre|[ab]\\d+[a-z]*)?)").test(navigator.userAgent);
|
|
14369
14376
|
var isProduction = "production" === "production";
|
|
14370
|
-
var embed2Version = "
|
|
14377
|
+
var embed2Version = "8920d7b";
|
|
14371
14378
|
|
|
14372
14379
|
/***/ }),
|
|
14373
14380
|
|
|
@@ -23764,7 +23771,7 @@ function _loadEmbed() {
|
|
|
23764
23771
|
polyfillVersionString = "legacy";
|
|
23765
23772
|
}
|
|
23766
23773
|
|
|
23767
|
-
embedScriptSource = concat_default()(_context16 = concat_default()(_context17 = "".concat(host, "/embed/")).call(_context17, polyfillVersionString, "/client/")).call(_context16, "
|
|
23774
|
+
embedScriptSource = concat_default()(_context16 = concat_default()(_context17 = "".concat(host, "/embed/")).call(_context17, polyfillVersionString, "/client/")).call(_context16, "8920d7b", "/index.js");
|
|
23768
23775
|
}
|
|
23769
23776
|
|
|
23770
23777
|
clientScriptExists = Boolean( true || // The client script is bundled with npm module
|
|
@@ -23891,10 +23898,10 @@ function createEmbedObject() {
|
|
|
23891
23898
|
handle: adaSettings.handle,
|
|
23892
23899
|
embedVersion: 2,
|
|
23893
23900
|
embedSettings: adaSettings,
|
|
23894
|
-
version: "1.0.
|
|
23901
|
+
version: "1.0.34",
|
|
23895
23902
|
isNpm: true,
|
|
23896
23903
|
hostPage: window.location.href,
|
|
23897
|
-
commitHash: "
|
|
23904
|
+
commitHash: "8920d7b"
|
|
23898
23905
|
}, {
|
|
23899
23906
|
sampleRate: 0.01 // 1% of logs will go through
|
|
23900
23907
|
|