@microsoft/sp-core-library
Advanced tools
Comparing version 1.17.4 to 1.18.0-beta.1
@@ -5,3 +5,3 @@ { | ||
"componentType": "Library", | ||
"version": "1.17.4", | ||
"version": "1.18.0", | ||
"manifestVersion": 2, | ||
@@ -17,67 +17,67 @@ "loaderConfig": { | ||
"paths": { | ||
"default": "sp-core-library_default_8cbc57f2b07d5f246e14.js", | ||
"en-US": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"qps-ploca": "sp-core-library_qps-ploca_8cbc57f2b07d5f246e14.js", | ||
"qps-ploc": "sp-core-library_qps-ploc_8cbc57f2b07d5f246e14.js", | ||
"en-GB": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"en-NZ": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"en-IE": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"en-AU": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"bn": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"chr": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"dv": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"div": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"en": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"fil": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"haw": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"iu": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"lo": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"moh": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"sq": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"am": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"hy": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"mk": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"bs": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"my": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"dz": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"en-CY": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"en-EG": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"en-IL": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"en-IS": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"en-JO": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"en-KE": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"en-KW": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"en-MK": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"en-MT": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"en-PK": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"en-QA": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"en-SA": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"en-LK": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"en-AE": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"en-VN": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"is": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"km": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"kh": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"mt": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"fa": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"gd": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"sr-Cyrl-BA": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"sr-Latn-BA": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"sd": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"si": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"so": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"ti-ET": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"uz": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"en-SG": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"en-HK": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"en-MY": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"en-PH": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"en-TT": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"en-AZ": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"en-BH": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"en-BN": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"en-ID": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js", | ||
"mi": "sp-core-library_en-us_8cbc57f2b07d5f246e14.js" | ||
"default": "sp-core-library_default_e467faa4ef8412f460ae.js", | ||
"en-US": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"qps-ploca": "sp-core-library_qps-ploca_e467faa4ef8412f460ae.js", | ||
"qps-ploc": "sp-core-library_qps-ploc_e467faa4ef8412f460ae.js", | ||
"en-GB": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"en-NZ": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"en-IE": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"en-AU": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"bn": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"chr": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"dv": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"div": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"en": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"fil": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"haw": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"iu": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"lo": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"moh": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"sq": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"am": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"hy": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"mk": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"bs": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"my": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"dz": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"en-CY": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"en-EG": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"en-IL": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"en-IS": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"en-JO": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"en-KE": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"en-KW": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"en-MK": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"en-MT": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"en-PK": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"en-QA": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"en-SA": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"en-LK": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"en-AE": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"en-VN": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"is": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"km": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"kh": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"mt": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"fa": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"gd": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"sr-Cyrl-BA": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"sr-Latn-BA": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"sd": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"si": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"so": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"ti-ET": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"uz": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"en-SG": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"en-HK": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"en-MY": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"en-PH": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"en-TT": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"en-AZ": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"en-BH": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"en-BN": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"en-ID": "sp-core-library_en-us_e467faa4ef8412f460ae.js", | ||
"mi": "sp-core-library_en-us_e467faa4ef8412f460ae.js" | ||
}, | ||
"defaultPath": "sp-core-library_default_8cbc57f2b07d5f246e14.js" | ||
"defaultPath": "sp-core-library_default_e467faa4ef8412f460ae.js" | ||
}, | ||
@@ -92,3 +92,3 @@ "tslib": { | ||
"id": "2e09fb9b-13bb-48f2-859f-97d6fff71176", | ||
"version": "1.3.154" | ||
"version": "1.3.248" | ||
} | ||
@@ -95,0 +95,0 @@ } |
@@ -16,2 +16,3 @@ /** | ||
import { ILocalizedString } from '@microsoft/sp-module-interfaces'; | ||
import { VetoValues as _VetoValues } from '@ms/odsp-core-bundle'; | ||
@@ -1165,2 +1166,4 @@ /* Excluded from this release type: _BROKER_IN_USE_KEY */ | ||
export { _VetoValues } | ||
export { } |
@@ -16,2 +16,3 @@ /** | ||
import { ILocalizedString } from '@microsoft/sp-module-interfaces'; | ||
import { VetoValues as _VetoValues } from '@ms/odsp-core-bundle'; | ||
@@ -1165,2 +1166,4 @@ /* Excluded from this release type: _BROKER_IN_USE_KEY */ | ||
export { _VetoValues } | ||
export { } |
@@ -16,2 +16,3 @@ /** | ||
import { ILocalizedString } from '@microsoft/sp-module-interfaces'; | ||
import { VetoValues as _VetoValues } from '@ms/odsp-core-bundle'; | ||
@@ -1165,2 +1166,4 @@ /* Excluded from this release type: _BROKER_IN_USE_KEY */ | ||
export { _VetoValues } | ||
export { } |
@@ -8,5 +8,5 @@ // This file is read by tools that parse documentation comments conforming to the TSDoc standard. | ||
"packageName": "@microsoft/api-extractor", | ||
"packageVersion": "7.34.4" | ||
"packageVersion": "7.35.1" | ||
} | ||
] | ||
} |
@@ -16,2 +16,3 @@ "use strict"; | ||
var _teamsAppEntityId = 'TeamsAppEntityId'; | ||
var _teamsHostName = 'TeamsHostName'; | ||
/** | ||
@@ -66,6 +67,12 @@ * @internal | ||
var teamsHostType = BrowserUtilities.isTeamsBrowserHosted() ? 'TeamsWeb' : 'TeamsNative'; | ||
var isSB = !SPKillSwitch_1.default.isActivated('b5f32a9e-4c34-49bd-9778-85c9d04afe4a' | ||
/* '09/20/2022', 'prchando - Add Custom appHostType for Secure Broker traffic' */ | ||
) && this.isUsingSecureBroker(); | ||
return appHostType ? "".concat(appHostType).concat(isSB ? '_SB_' : '_').concat(teamsHostType) : teamsHostType; | ||
var isSB = this.isUsingSecureBroker(); | ||
appHostType = appHostType ? "".concat(appHostType).concat(isSB ? '_SB_' : '_').concat(teamsHostType) : teamsHostType; | ||
if (!SPKillSwitch_1.default.isActivated('5af8e468-6778-4452-bab5-47d5c685f4d1' | ||
/* '05/24/2023', 'Extract the hostname from the context and set it in the local storage to determine the Teams version' */ | ||
)) { | ||
var teamsVersion = BrowserUtilities.safelyAccessLocalStorage(_teamsHostName); | ||
if (teamsVersion === 'TeamsModern') { | ||
appHostType += "_".concat(teamsVersion); | ||
} | ||
} | ||
} | ||
@@ -159,8 +166,8 @@ return appHostType; | ||
)) { | ||
return BrowserUtilities.isTeamsHosted() && (localStorage === null || localStorage === void 0 ? void 0 : localStorage.getItem(_teamsAppEntityId)) | ||
? ((_a = localStorage === null || localStorage === void 0 ? void 0 : localStorage.getItem(_teamsAppEntityId)) === null || _a === void 0 ? void 0 : _a.indexOf('sharepointtab_')) !== -1 | ||
return BrowserUtilities.isTeamsHosted() && BrowserUtilities.safelyAccessLocalStorage(_teamsAppEntityId) | ||
? ((_a = BrowserUtilities.safelyAccessLocalStorage(_teamsAppEntityId)) === null || _a === void 0 ? void 0 : _a.indexOf('sharepointtab_')) !== -1 | ||
: false; | ||
} | ||
return (BrowserUtilities.isTeamsHosted() && | ||
((_b = localStorage === null || localStorage === void 0 ? void 0 : localStorage.getItem(_teamsAppEntityId)) === null || _b === void 0 ? void 0 : _b.indexOf('sharepointtab_')) !== -1); | ||
((_b = BrowserUtilities.safelyAccessLocalStorage(_teamsAppEntityId)) === null || _b === void 0 ? void 0 : _b.indexOf('sharepointtab_')) !== -1); | ||
}; | ||
@@ -170,3 +177,3 @@ BrowserUtilities.isViva1PHosted = function () { | ||
return (BrowserUtilities.isTeamsHosted() && | ||
(localStorage === null || localStorage === void 0 ? void 0 : localStorage.getItem(_teamsAppEntityId)) === _vivaConnections1PAppId); | ||
BrowserUtilities.safelyAccessLocalStorage(_teamsAppEntityId) === _vivaConnections1PAppId); | ||
} | ||
@@ -183,3 +190,4 @@ catch (_a) { | ||
var queryParameters = new URL(window.location.href).searchParams; | ||
return !!((BrowserUtilities.isTeamsHosted() && (localStorage === null || localStorage === void 0 ? void 0 : localStorage.getItem(_teamsAppEntityId)) === _vivaTopicsAppId) || | ||
return !!((BrowserUtilities.isTeamsHosted() && | ||
BrowserUtilities.safelyAccessLocalStorage(_teamsAppEntityId) === _vivaTopicsAppId) || | ||
queryParameters.get('app') === 'topics'); | ||
@@ -193,3 +201,4 @@ } | ||
try { | ||
return BrowserUtilities.isTeamsHosted() && (localStorage === null || localStorage === void 0 ? void 0 : localStorage.getItem(_teamsAppEntityId)) === _classHomeAppId; | ||
return (BrowserUtilities.isTeamsHosted() && | ||
BrowserUtilities.safelyAccessLocalStorage(_teamsAppEntityId) === _classHomeAppId); | ||
} | ||
@@ -226,3 +235,3 @@ catch (_a) { | ||
}; | ||
BrowserUtilities.isTeamsWebViewHosted = function () { | ||
BrowserUtilities.isTeamsWebViewHostedDeprecated = function () { | ||
var ua = navigator.userAgent; | ||
@@ -232,8 +241,19 @@ return ( | ||
/Teams\/((?:(\d+)\.)?(?:(\d+)\.)?(?:(\d+)\.\d+)).* Electron\/((?:(\d+)\.)?(?:(\d+)\.)?(?:(\d+)\.\d+))/.test(ua) || | ||
localStorage.getItem('TeamsHostClientType') === | ||
BrowserUtilities.safelyAccessLocalStorage('TeamsHostClientType') === | ||
'desktop' /* This will be the case in Teams Desktop app */); | ||
}; | ||
BrowserUtilities.isTeamsWebViewHosted = function () { | ||
if (SPKillSwitch_1.default.isActivated('910b07a1-0a43-4bfa-8a93-ba5929b8621f' | ||
/* '06/06/2023', 'For Teams2.1, rely on the local storage' */ | ||
)) { | ||
return BrowserUtilities.isTeamsWebViewHostedDeprecated(); | ||
} | ||
else { | ||
return (BrowserUtilities.isTeamsHosted() && | ||
BrowserUtilities.safelyAccessLocalStorage('TeamsHostClientType') === 'desktop'); /* This will be the case in Teams Desktop app */ | ||
} | ||
}; | ||
BrowserUtilities.isTeams1PVivaDesktopHosted = function () { | ||
return (BrowserUtilities.isTeamsWebViewHosted() && | ||
localStorage.getItem(_teamsAppEntityId) === _vivaConnections1PAppId); | ||
BrowserUtilities.safelyAccessLocalStorage(_teamsAppEntityId) === _vivaConnections1PAppId); | ||
}; | ||
@@ -244,3 +264,3 @@ /** | ||
* 2. Teams in Browser: Iframe | ||
* | ||
* Old Teams: | ||
* Desktop Client is identifiable via the user-agent. | ||
@@ -251,6 +271,22 @@ * However, for Teams in Browser, since we cannot leverage user-agent, | ||
* SharePoint is currently running in Teams in Browser. | ||
* | ||
* For Teams 2.1: | ||
* window.name property is equal to "embedded-page-container" for desktop | ||
* and browser. We rely on localStorage from Teams context to find the correct host. | ||
* If localStorage has not been set in the lifecycle, this api may not return the correct result in new Teams | ||
*/ | ||
BrowserUtilities.isTeamsBrowserHosted = function () { | ||
BrowserUtilities.isTeamsBrowserHostedDeprecated = function () { | ||
return window.name === _teamsBrowserWindowName; | ||
}; | ||
BrowserUtilities.isTeamsBrowserHosted = function () { | ||
if (SPKillSwitch_1.default.isActivated('910b07a1-0a43-4bfa-8a93-ba5929b8621f' | ||
/* '06/06/2023', 'For Teams2.1, rely on the local storage' */ | ||
)) { | ||
return BrowserUtilities.isTeamsBrowserHostedDeprecated(); | ||
} | ||
else { | ||
return (BrowserUtilities.isTeamsHosted() && | ||
BrowserUtilities.safelyAccessLocalStorage('TeamsHostClientType') === 'web'); /* This will be the case in Teams Browser app */ | ||
} | ||
}; | ||
BrowserUtilities.isTeamsBrowserOrDesktop = function () { | ||
@@ -308,3 +344,3 @@ return BrowserUtilities.isTeamsWebViewHosted() || BrowserUtilities.isTeamsBrowserHosted(); | ||
*/ | ||
BrowserUtilities.isTeamsHosted = function () { | ||
BrowserUtilities.isTeamsHostedDeprecated = function () { | ||
var isWindowNativeInterface = Boolean(window.parent === window.self && window.nativeInterface); | ||
@@ -317,2 +353,20 @@ return (isWindowNativeInterface || | ||
}; | ||
BrowserUtilities.isTeamsHosted = function () { | ||
if (SPKillSwitch_1.default.isActivated('910b07a1-0a43-4bfa-8a93-ba5929b8621f' | ||
/* '05/25/2023', 'For Teams2.1, rely on the local storage' */ | ||
)) { | ||
return BrowserUtilities.isTeamsHostedDeprecated(); | ||
} | ||
else { | ||
var ua = navigator.userAgent; | ||
var isElectron = | ||
/* Electron WebView (scoped to Microsoft Teams for now) - Desktop Client scenario */ | ||
/Teams\/((?:(\d+)\.)?(?:(\d+)\.)?(?:(\d+)\.\d+)).* Electron\/((?:(\d+)\.)?(?:(\d+)\.)?(?:(\d+)\.\d+))/.test(ua); | ||
var isEmbeddedContainer = window.name === _teamsBrowserWindowName; | ||
return (isElectron || | ||
isEmbeddedContainer || | ||
BrowserUtilities.isTeamsAndroidHosted() || | ||
BrowserUtilities.isTeamsIOSHosted()); | ||
} | ||
}; | ||
BrowserUtilities.isiOSWebView = function () { | ||
@@ -451,2 +505,8 @@ return /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/.test(navigator.userAgent); | ||
/** | ||
* Returns true if the workbench page is opened. | ||
*/ | ||
BrowserUtilities.isWorkbenchHosted = function () { | ||
return location.href.indexOf('_layouts/15/workbench.aspx') !== -1; | ||
}; | ||
/** | ||
* Returns true if SharePoint site is embedded within SharePoint which is hosted in Teams client. | ||
@@ -483,2 +543,20 @@ * This check is not required for Teams browser because, this api needs to be used along with isTeamsHosted, | ||
}; | ||
// a call to access localStorage will throw an error if called by a cross-domain iframe | ||
// if the call localStorage throws an error, catch the error and return null instead | ||
BrowserUtilities.safelyAccessLocalStorage = function (key) { | ||
try { | ||
return localStorage === null || localStorage === void 0 ? void 0 : localStorage.getItem(key); | ||
} | ||
catch (error) { | ||
if (!SPKillSwitch_1.default.isActivated('274b24bf-e198-427e-ade6-a472ecbb02c3' | ||
/* '05/18/2023', 'Do not throw if fail to access localStorage' */ | ||
)) { | ||
// tslint:disable-next-line:no-null-keyword | ||
return null; | ||
} | ||
else { | ||
throw error; | ||
} | ||
} | ||
}; | ||
return BrowserUtilities; | ||
@@ -485,0 +563,0 @@ }()); |
@@ -12,2 +12,7 @@ "use strict"; | ||
var SPFX_DEBUG_FLIGHT_ID = 205; | ||
// Debug flight id. This flight is only enabled for internal Microsoft tenants like the eDog tenant. This flight | ||
// is used for debug level testing and should not be enabled for PROD customer tenants due security reasons. | ||
// Enabling this flight on PROD customer tenants can deem them vulnerable to script injection. This flight is | ||
// intended to be used as a replacement for the SPFX_DEBUG_FLIGHT_ID flight. | ||
var CLIENT_DEBUG_FEATURE_OVERRIDES_FLIGHT_ID = 60763; | ||
/** | ||
@@ -45,2 +50,3 @@ * NOT FOR USE BY THIRD PARTY DEVELOPERS | ||
return (SPFlight.isEnabled(SPFX_DEBUG_FLIGHT_ID) || | ||
SPFlight.isEnabled(CLIENT_DEBUG_FEATURE_OVERRIDES_FLIGHT_ID) || | ||
(SPKillSwitch_1.default.isActivated('f5a6830a-99fa-4cc4-8361-62d32a5805f3' | ||
@@ -47,0 +53,0 @@ /* DO NOT GRADUATE THIS KILLSWITCH. It is for turning on debugging on secure broker in SPDF */ |
@@ -5,3 +5,3 @@ "use strict"; | ||
var Guid_1 = tslib_1.__importDefault(require("./Guid")); | ||
var _1 = require("."); | ||
var Validate_1 = tslib_1.__importDefault(require("./Validate")); | ||
var DISABLED_KILLSWITCH_PREFIX = '!'; | ||
@@ -75,3 +75,3 @@ /** | ||
if (DEBUG) { | ||
_1.Validate.isNotNullOrUndefined(killSwitchGuid, 'killSwitchGuid'); | ||
Validate_1.default.isNotNullOrUndefined(killSwitchGuid, 'killSwitchGuid'); | ||
if (typeof killSwitchGuid === 'string') { | ||
@@ -78,0 +78,0 @@ var parsedKillSwitchGuid = Guid_1.default.parse(killSwitchGuid); |
{ | ||
"name": "@microsoft/sp-core-library", | ||
"version": "1.17.4", | ||
"version": "1.18.0-beta.1", | ||
"description": "SharePoint Framework core libraries", | ||
@@ -14,3 +14,3 @@ "license": "https://aka.ms/spfx/license", | ||
"devDependencies": { | ||
"@rushstack/heft": "0.49.7", | ||
"@rushstack/heft": "0.51.0", | ||
"@types/react": "17.0.45", | ||
@@ -20,10 +20,10 @@ "@types/react-dom": "17.0.17", | ||
"react-dom": "17.0.1", | ||
"@ms/odsp-core-bundle": "1.3.154", | ||
"@ms/spfx-internal-web-build-rig": "0.1.0" | ||
"@ms/odsp-core-bundle": "1.3.248", | ||
"@ms/spfx-internal-web-build-next-rig": "0.1.0" | ||
}, | ||
"dependencies": { | ||
"tslib": "2.3.1", | ||
"@microsoft/sp-lodash-subset": "1.17.4", | ||
"@microsoft/sp-module-interfaces": "1.17.4", | ||
"@microsoft/sp-odata-types": "1.17.4" | ||
"@microsoft/sp-lodash-subset": "1.18.0-beta.1", | ||
"@microsoft/sp-module-interfaces": "1.18.0-beta.1", | ||
"@microsoft/sp-odata-types": "1.18.0-beta.1" | ||
}, | ||
@@ -43,11 +43,10 @@ "engines": { | ||
"deploy": "heft dev-deploy", | ||
"start": "heft start --clean", | ||
"test": "heft test --no-build", | ||
"test-watch": "heft test --watch", | ||
"build-watch": "heft build --lite", | ||
"_phase:build": "heft build --clean", | ||
"_phase:test": "heft test --no-build", | ||
"_phase:build-incremental": "heft build --lite", | ||
"start": "heft build-watch --serve", | ||
"test": "heft test", | ||
"test-watch": "heft test-watch", | ||
"_phase:build": "heft run --only build -- --clean", | ||
"_phase:test": "heft run --only test -- --clean", | ||
"_phase:build-incremental": "heft run --only build --", | ||
"_phase:depscan": "heft depscan" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
490955
7731
1
+ Added@microsoft/sp-lodash-subset@1.18.0-beta.1(transitive)
+ Added@microsoft/sp-module-interfaces@1.18.0-beta.1(transitive)
+ Added@microsoft/sp-odata-types@1.18.0-beta.1(transitive)
+ Added@rushstack/node-core-library@3.59.2(transitive)
- Removed@microsoft/sp-lodash-subset@1.17.4(transitive)
- Removed@microsoft/sp-module-interfaces@1.17.4(transitive)
- Removed@microsoft/sp-odata-types@1.17.4(transitive)
- Removed@rushstack/node-core-library@3.55.2(transitive)