@inboxsdk/core 2.1.60 → 2.1.61
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/inboxsdk.js +34 -16
- package/inboxsdk.js.map +1 -1
- package/package.json +1 -1
- package/pageWorld.js.map +1 -1
- package/src/common/get-extension-id.d.ts +2 -1
- package/src/common/get-extension-id.d.ts.map +1 -1
package/inboxsdk.js
CHANGED
|
@@ -371,7 +371,7 @@ function isNotNil(value) {
|
|
|
371
371
|
|
|
372
372
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- SDK_VERSION is injected by webpack
|
|
373
373
|
///@ts-ignore
|
|
374
|
-
const BUILD_VERSION = "2.1.
|
|
374
|
+
const BUILD_VERSION = "2.1.61-1718747129530-da0f4707d79e342c";
|
|
375
375
|
if (false) {}
|
|
376
376
|
|
|
377
377
|
/***/ }),
|
|
@@ -2646,7 +2646,7 @@ options.insert = htmlElement => {
|
|
|
2646
2646
|
htmlElement.setAttribute('data-inboxsdk-version',
|
|
2647
2647
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- this is injected by webpack
|
|
2648
2648
|
///@ts-ignore
|
|
2649
|
-
"2.1.
|
|
2649
|
+
"2.1.61-1718747129530-da0f4707d79e342c");
|
|
2650
2650
|
document.head.append(htmlElement);
|
|
2651
2651
|
};
|
|
2652
2652
|
options.domAPI = (styleDomAPI_default());
|
|
@@ -10197,7 +10197,7 @@ options.insert = htmlElement => {
|
|
|
10197
10197
|
htmlElement.setAttribute('data-inboxsdk-version',
|
|
10198
10198
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- this is injected by webpack
|
|
10199
10199
|
///@ts-ignore
|
|
10200
|
-
"2.1.
|
|
10200
|
+
"2.1.61-1718747129530-da0f4707d79e342c");
|
|
10201
10201
|
document.head.append(htmlElement);
|
|
10202
10202
|
};
|
|
10203
10203
|
options.domAPI = (styleDomAPI_default());
|
|
@@ -10347,17 +10347,35 @@ var sha256 = __webpack_require__(6049);
|
|
|
10347
10347
|
var sha256_default = /*#__PURE__*/__webpack_require__.n(sha256);
|
|
10348
10348
|
// EXTERNAL MODULE: ./src/common/ajax.ts + 1 modules
|
|
10349
10349
|
var ajax = __webpack_require__(8587);
|
|
10350
|
+
// EXTERNAL MODULE: ./node_modules/lodash/once.js
|
|
10351
|
+
var once = __webpack_require__(8921);
|
|
10352
|
+
var once_default = /*#__PURE__*/__webpack_require__.n(once);
|
|
10350
10353
|
;// CONCATENATED MODULE: ./src/common/get-extension-id.ts
|
|
10351
|
-
|
|
10352
|
-
|
|
10353
|
-
|
|
10354
|
-
|
|
10355
|
-
|
|
10356
|
-
|
|
10357
|
-
|
|
10354
|
+
|
|
10355
|
+
const getExtensionId = once_default()(() => {
|
|
10356
|
+
try {
|
|
10357
|
+
const chrome = globalThis.chrome;
|
|
10358
|
+
if (chrome?.runtime?.getURL) {
|
|
10359
|
+
return chrome.runtime.getURL('');
|
|
10360
|
+
}
|
|
10361
|
+
// MV2
|
|
10362
|
+
if (chrome?.extension?.getURL) {
|
|
10363
|
+
return chrome.extension.getURL('');
|
|
10364
|
+
}
|
|
10365
|
+
} catch (e) {
|
|
10366
|
+
// When an extension is reloaded or removed, then Chrome APIs in any of its
|
|
10367
|
+
// pre-existing content scripts start throwing "Extension context
|
|
10368
|
+
// invalidated" errors. We only use extension IDs for logging, so we
|
|
10369
|
+
// shouldn't treat this as fatal.
|
|
10370
|
+
console.error('Failed to read extension ID:', e);
|
|
10358
10371
|
}
|
|
10359
10372
|
return null;
|
|
10360
|
-
}
|
|
10373
|
+
});
|
|
10374
|
+
|
|
10375
|
+
// pre-cache the extension ID so we still know it inside this content script if
|
|
10376
|
+
// the extension is reloaded or removed later.
|
|
10377
|
+
getExtensionId();
|
|
10378
|
+
/* harmony default export */ const get_extension_id = (getExtensionId);
|
|
10361
10379
|
;// CONCATENATED MODULE: ./src/common/get-session-id.ts
|
|
10362
10380
|
function getSessionId() {
|
|
10363
10381
|
const attrValue = typeof document !== 'undefined' && document.documentElement.getAttribute('data-inboxsdk-session-id');
|
|
@@ -10473,7 +10491,7 @@ function logError(err, details, context) {
|
|
|
10473
10491
|
stuffToLog.push('\n\nExtension App Ids:', JSON.stringify(appIds, null, 2));
|
|
10474
10492
|
stuffToLog.push('\nSent by App:', sentByApp);
|
|
10475
10493
|
stuffToLog.push('\nSession Id:', sessionId);
|
|
10476
|
-
stuffToLog.push('\nExtension Id:',
|
|
10494
|
+
stuffToLog.push('\nExtension Id:', get_extension_id());
|
|
10477
10495
|
stuffToLog.push('\nInboxSDK Loader Version:', loaderVersion);
|
|
10478
10496
|
stuffToLog.push('\nInboxSDK Implementation Version:', implVersion);
|
|
10479
10497
|
console.error(...stuffToLog);
|
|
@@ -10486,7 +10504,7 @@ function logError(err, details, context) {
|
|
|
10486
10504
|
sentByApp,
|
|
10487
10505
|
sessionId,
|
|
10488
10506
|
emailHash: userEmailHash,
|
|
10489
|
-
extensionId:
|
|
10507
|
+
extensionId: get_extension_id(),
|
|
10490
10508
|
loaderVersion: loaderVersion,
|
|
10491
10509
|
implementationVersion: implVersion,
|
|
10492
10510
|
origin: document.location.origin,
|
|
@@ -11053,7 +11071,7 @@ function _trackEvent(appId, type, eventName, properties) {
|
|
|
11053
11071
|
};
|
|
11054
11072
|
if (type != 'gmail') {
|
|
11055
11073
|
Object.assign(event, {
|
|
11056
|
-
extensionId:
|
|
11074
|
+
extensionId: get_extension_id(),
|
|
11057
11075
|
appIds: getAppIdsProperty(appId)
|
|
11058
11076
|
});
|
|
11059
11077
|
} else {
|
|
@@ -14926,7 +14944,7 @@ options.insert = htmlElement => {
|
|
|
14926
14944
|
htmlElement.setAttribute('data-inboxsdk-version',
|
|
14927
14945
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- this is injected by webpack
|
|
14928
14946
|
///@ts-ignore
|
|
14929
|
-
"2.1.
|
|
14947
|
+
"2.1.61-1718747129530-da0f4707d79e342c");
|
|
14930
14948
|
document.head.append(htmlElement);
|
|
14931
14949
|
};
|
|
14932
14950
|
options.domAPI = (styleDomAPI_default());
|
|
@@ -19655,7 +19673,7 @@ mole_view_module_options.insert = htmlElement => {
|
|
|
19655
19673
|
htmlElement.setAttribute('data-inboxsdk-version',
|
|
19656
19674
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- this is injected by webpack
|
|
19657
19675
|
///@ts-ignore
|
|
19658
|
-
"2.1.
|
|
19676
|
+
"2.1.61-1718747129530-da0f4707d79e342c");
|
|
19659
19677
|
document.head.append(htmlElement);
|
|
19660
19678
|
};
|
|
19661
19679
|
mole_view_module_options.domAPI = (styleDomAPI_default());
|