Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@microsoft/sp-core-library

Package Overview
Dependencies
Maintainers
2
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/sp-core-library - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

6

CHANGELOG.json

@@ -5,2 +5,8 @@ {

{
"version": "1.3.0",
"tag": "@microsoft/sp-core-library_v1.3.0",
"date": "Fri, 22 Sep 2017 20:19:09 GMT",
"comments": {}
},
{
"version": "1.2.0",

@@ -7,0 +13,0 @@ "tag": "@microsoft/sp-core-library_v1.2.0",

7

CHANGELOG.md
# Change Log - @microsoft/sp-core-library
This log was last generated on Fri, 25 Aug 2017 22:24:38 GMT and should not be manually modified.
This log was last generated on Fri, 22 Sep 2017 21:14:03 GMT and should not be manually modified.
## 1.3.0
Fri, 22 Sep 2017 20:19:09 GMT
*Changes not tracked*
## 1.2.0

@@ -6,0 +11,0 @@ Fri, 25 Aug 2017 20:31:17 GMT

4

dist/7263c7d0-1d6a-45ec-8d85-d4d1d234171b.manifest.json

@@ -5,3 +5,3 @@ {

"componentType": "Library",
"version": "1.2.0",
"version": "1.3.0",
"manifestVersion": 2,

@@ -21,3 +21,3 @@ "loaderConfig": {

"type": "component",
"version": "1.2.0",
"version": "1.3.0",
"id": "73e1dc6c-8441-42cc-ad47-4bd3659f8a3a"

@@ -24,0 +24,0 @@ }

@@ -1,2 +0,2 @@

define("7263c7d0-1d6a-45ec-8d85-d4d1d234171b_1.2.0", ["@microsoft/sp-lodash-subset"], function(__WEBPACK_EXTERNAL_MODULE_1__) { return /******/ (function(modules) { // webpackBootstrap
define("7263c7d0-1d6a-45ec-8d85-d4d1d234171b_1.3.0", ["@microsoft/sp-lodash-subset"], function(__WEBPACK_EXTERNAL_MODULE_2__) { return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache

@@ -9,5 +9,5 @@ /******/ var installedModules = {};

/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/
/******/ }
/******/ // Create a new module (and put it into the cache)

@@ -37,5 +37,2 @@ /******/ var module = installedModules[moduleId] = {

/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports

@@ -68,3 +65,3 @@ /******/ __webpack_require__.d = function(exports, name, getter) {

/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 2);
/******/ return __webpack_require__(__webpack_require__.s = 0);
/******/ })

@@ -76,43 +73,3 @@ /************************************************************************/

var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function() {
var strings = {
"_gIErrcTokcw+/VVwa+ReIA": {
"invalidEnvironmentTypeError": "***EnvironmentType is invalid",
"invalidGuidStringError": "***Invalid GUID string: \"{0}\"",
"isFalseValidateError": "***The value for \"{0}\" is false",
"isNullValidateError": "***The value for \"{0}\" must not be null",
"isUndefinedValidateError": "***The value for \"{0}\" must not be undefined",
"isEmptyStringValidateError": "***The value for \"{0}\" must not be an empty string",
"invalidVersionStringError": "***Invalid version string: \"{0}\"",
"logVerboseLevelMessage": "***{0}: VERBOSE {1}",
"logInfoLevelMessage": "***{0}: {1}",
"logWarningLevelMessage": "***{0}: WARNING {1}",
"logErrorLevelMessage": "***{0}: ERROR: {1}",
"serviceScopeConsumingBeforeFinished": "***Cannot consume services because the scope is not finished yet",
"serviceScopeConsumingDuringAutoCreation": "***Cannot consume services during ServiceScope autocreation",
"serviceScopeAlreadyFinishedError": "***The ServiceScope is already finished",
"serviceScopeProvideServiceAfterFinishedError": "***Cannot register service because the scope is already finished",
"serviceScopeProvideServiceThatAlreadyExists": "***The service key \"{0}\" has already been registered in this scope",
"spErrorInnerErrorText": "***INNERERROR:",
"spErrorCallStackText": "***CALLSTACK:",
"spErrorLogPropertiesText": "***LOGPROPERTIES:"
}
};
strings.default = strings;
return strings;
}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
/***/ }),
/* 1 */
/***/ (function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE_1__;
/***/ }),
/* 2 */
/***/ (function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1),__webpack_require__(0)], __WEBPACK_AMD_DEFINE_RESULT__ = function(__WEBPACK_EXTERNAL_MODULE_25__, __WEBPACK_EXTERNAL_MODULE_26__) { return /******/ (function(modules) { // webpackBootstrap
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1),__webpack_require__(2)], __WEBPACK_AMD_DEFINE_RESULT__ = function(__WEBPACK_EXTERNAL_MODULE_10__, __WEBPACK_EXTERNAL_MODULE_15__) { return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache

@@ -125,5 +82,5 @@ /******/ var installedModules = {};

/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/
/******/ }
/******/ // Create a new module (and put it into the cache)

@@ -153,5 +110,2 @@ /******/ var module = installedModules[moduleId] = {

/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports

@@ -184,3 +138,3 @@ /******/ __webpack_require__.d = function(exports, name, getter) {

/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 27);
/******/ return __webpack_require__(__webpack_require__.s = 8);
/******/ })

@@ -233,3 +187,3 @@ /************************************************************************/

? require('resx-strings/en-us.json')
: __webpack_require__(26);
: __webpack_require__(10);
exports.default = strings['_gIErrcTokcw+/VVwa+ReIA'];

@@ -365,34 +319,2 @@

Object.defineProperty(exports, "__esModule", { value: true });
var DefaultLogHandler_1 = __webpack_require__(24);
var Log = (function () {
function Log() {
}
Log._initialize = function (logHandler) {
Log._logHandler = logHandler;
};
Log.verbose = function (source, message, scope) {
Log._logHandler.verbose(source, message, scope);
};
Log.info = function (source, message, scope) {
Log._logHandler.info(source, message, scope);
};
Log.warn = function (source, message, scope) {
Log._logHandler.warn(source, message, scope);
};
Log.error = function (source, error, scope) {
Log._logHandler.error(source, error, scope);
};
Log._logHandler = new DefaultLogHandler_1.default();
return Log;
}());
exports.default = Log;
/***/ }),
/* 5 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Validate_1 = __webpack_require__(0);

@@ -425,2 +347,34 @@ var ServiceKey = (function () {

/***/ }),
/* 5 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var DefaultLogHandler_1 = __webpack_require__(21);
var Log = (function () {
function Log() {
}
Log._initialize = function (logHandler) {
Log._logHandler = logHandler;
};
Log.verbose = function (source, message, scope) {
Log._logHandler.verbose(source, message, scope);
};
Log.info = function (source, message, scope) {
Log._logHandler.info(source, message, scope);
};
Log.warn = function (source, message, scope) {
Log._logHandler.warn(source, message, scope);
};
Log.error = function (source, error, scope) {
Log._logHandler.error(source, error, scope);
};
Log._logHandler = new DefaultLogHandler_1.default();
return Log;
}());
exports.default = Log;
/***/ }),
/* 6 */

@@ -544,6 +498,7 @@ /***/ (function(module, exports, __webpack_require__) {

var Text_1 = __webpack_require__(2);
var Log_1 = __webpack_require__(4);
var Log_1 = __webpack_require__(5);
var EventManager = (function () {
function EventManager() {
this._listeners = new Map();
this._raisedEvents = new Map();
}

@@ -564,2 +519,3 @@ Object.defineProperty(EventManager, "instance", {

Validate_1.default.isNotNullOrUndefined(eventArgs, 'eventArgs');
this._raisedEvents.set(eventName, eventArgs);
if (!this._listeners.has(eventName)) {

@@ -592,2 +548,5 @@ return;

this._listeners.get(eventName).push({ observer: observer, eventHandler: eventHandler });
if (this._raisedEvents.has(eventName)) {
eventHandler.apply(observer, this._raisedEvents.get(eventName));
}
};

@@ -622,3 +581,61 @@ EventManager.prototype.unregisterEvent = function (eventName, observer, eventHandler) {

Object.defineProperty(exports, "__esModule", { value: true });
var BrowserDetection_1 = __webpack_require__(9);
exports._BrowserDetection = BrowserDetection_1.default;
exports._Browser = BrowserDetection_1.Browser;
exports._OS = BrowserDetection_1.OS;
var DisplayMode_1 = __webpack_require__(11);
exports.DisplayMode = DisplayMode_1.default;
var Guid_1 = __webpack_require__(3);
exports.Guid = Guid_1.default;
var IBrowserCompatibility_1 = __webpack_require__(12);
exports.BrowserSupportLevel = IBrowserCompatibility_1.BrowserSupportLevel;
var JsonUtilities_1 = __webpack_require__(13);
exports.JsonUtilities = JsonUtilities_1.default;
var Text_1 = __webpack_require__(2);
exports.Text = Text_1.default;
var Version_1 = __webpack_require__(6);
exports.Version = Version_1.default;
var Validate_1 = __webpack_require__(0);
exports.Validate = Validate_1.default;
var UrlUtilities_1 = __webpack_require__(14);
exports.UrlUtilities = UrlUtilities_1.default;
var UrlQueryParameterCollection_1 = __webpack_require__(16);
exports.UrlQueryParameterCollection = UrlQueryParameterCollection_1.default;
var TimeProvider_1 = __webpack_require__(17);
exports.TimeProvider = TimeProvider_1.default;
var RandomNumberGenerator_1 = __webpack_require__(18);
exports.RandomNumberGenerator = RandomNumberGenerator_1.default;
var ServiceKey_1 = __webpack_require__(4);
exports.ServiceKey = ServiceKey_1.default;
var ServiceScope_1 = __webpack_require__(19);
exports.ServiceScope = ServiceScope_1.default;
var Session_1 = __webpack_require__(20);
exports.Session = Session_1.default;
var Environment_1 = __webpack_require__(22);
exports.Environment = Environment_1.default;
exports.EnvironmentType = Environment_1.EnvironmentType;
var SPFlight_1 = __webpack_require__(23);
exports._SPFlight = SPFlight_1.default;
var SPKillSwitch_1 = __webpack_require__(24);
exports._SPKillSwitch = SPKillSwitch_1.default;
var SPError_1 = __webpack_require__(25);
exports.SPError = SPError_1.default;
var Log_1 = __webpack_require__(5);
exports.Log = Log_1.default;
var Event_1 = __webpack_require__(26);
exports.Event = Event_1.default;
var EventArgs_1 = __webpack_require__(27);
exports.EventArgs = EventArgs_1.default;
var EventManager_1 = __webpack_require__(7);
exports._EventManager = EventManager_1.default;
/***/ }),
/* 9 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Version_1 = __webpack_require__(6);
var Browser;

@@ -753,3 +770,9 @@ (function (Browser) {

/***/ }),
/* 9 */
/* 10 */
/***/ (function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE_10__;
/***/ }),
/* 11 */
/***/ (function(module, exports, __webpack_require__) {

@@ -769,3 +792,3 @@

/***/ }),
/* 10 */
/* 12 */
/***/ (function(module, exports, __webpack_require__) {

@@ -776,41 +799,2 @@

Object.defineProperty(exports, "__esModule", { value: true });
var Validate_1 = __webpack_require__(0);
var SPCoreLibraryStrings_resx_1 = __webpack_require__(1);
var EnvironmentType;
(function (EnvironmentType) {
EnvironmentType[EnvironmentType["Test"] = 0] = "Test";
EnvironmentType[EnvironmentType["Local"] = 1] = "Local";
EnvironmentType[EnvironmentType["SharePoint"] = 2] = "SharePoint";
EnvironmentType[EnvironmentType["ClassicSharePoint"] = 3] = "ClassicSharePoint";
})(EnvironmentType = exports.EnvironmentType || (exports.EnvironmentType = {}));
var Environment = (function () {
function Environment() {
}
Environment._initialize = function (data) {
Validate_1.default.isNotNullOrUndefined(data, 'data');
Environment._type = data.type;
Validate_1.default.isNotNullOrUndefined(Environment._type, 'environmentType');
if (!EnvironmentType.hasOwnProperty(data.type.toString())) {
throw new Error(SPCoreLibraryStrings_resx_1.default.invalidEnvironmentTypeError);
}
};
Object.defineProperty(Environment, "type", {
get: function () {
return this._type;
},
enumerable: true,
configurable: true
});
return Environment;
}());
exports.default = Environment;
/***/ }),
/* 11 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var BrowserSupportLevel;

@@ -826,3 +810,3 @@ (function (BrowserSupportLevel) {

/***/ }),
/* 12 */
/* 13 */
/***/ (function(module, exports, __webpack_require__) {

@@ -863,3 +847,3 @@

/***/ }),
/* 13 */
/* 14 */
/***/ (function(module, exports, __webpack_require__) {

@@ -869,94 +853,30 @@

var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var lodash = __webpack_require__(15);
var Validate_1 = __webpack_require__(0);
var SPCoreLibraryStrings_resx_1 = __webpack_require__(1);
var SPError = (function (_super) {
__extends(SPError, _super);
function SPError(errorCode, message, logProperties) {
var _this = _super.call(this, message) || this;
_this.__proto__ = SPError.prototype;
Validate_1.default.isNonemptyString(errorCode, 'errorCode');
Validate_1.default.isNonemptyString(message, 'message');
_this._errorCode = errorCode;
_this.message = message;
_this._logProperties = logProperties;
_this.stack = (new Error()).stack || SPError._generateErrorStackForIE();
return _this;
var UrlUtilities = (function () {
function UrlUtilities() {
}
Object.defineProperty(SPError.prototype, "id", {
get: function () {
return -1;
},
enumerable: true,
configurable: true
});
Object.defineProperty(SPError.prototype, "category", {
get: function () {
return 'SPError';
},
enumerable: true,
configurable: true
});
SPError._generateErrorStackForIE = function () {
try {
throw new Error();
}
catch (e) {
return e.stack;
}
UrlUtilities.removeEndSlash = function (url) {
return lodash.trimEnd(url, '/');
};
SPError.prototype.toStringForUI = function () {
return this._toString(true);
UrlUtilities.convertToODataStringLiteral = function (value) {
Validate_1.default.isNotNullOrUndefined(value, 'value');
value = value.replace(/'/g, "''");
value = "'" + value + "'";
return value;
};
SPError.prototype.toString = function () {
return this._toString();
};
SPError.prototype._toString = function (logDebug) {
if (!this._errorString) {
var errorMessageArray = [
"[" + this.category + "." + this._errorCode + "]:",
"" + this.message,
''
];
if (logDebug || true) {
if (this.innerError) {
errorMessageArray = errorMessageArray.concat([
SPCoreLibraryStrings_resx_1.default.spErrorInnerErrorText,
this.innerError.message
]);
}
if (this.stack) {
errorMessageArray = errorMessageArray.concat([
SPCoreLibraryStrings_resx_1.default.spErrorCallStackText,
this.stack
]);
}
if (this._logProperties) {
errorMessageArray = errorMessageArray.concat([
SPCoreLibraryStrings_resx_1.default.spErrorLogPropertiesText,
JSON.stringify(this._logProperties)
]);
}
}
this._errorString = errorMessageArray.join('\r\n');
}
return this._errorString;
};
return SPError;
}(Error));
exports.default = SPError;
return UrlUtilities;
}());
exports.default = UrlUtilities;
/***/ }),
/* 14 */
/* 15 */
/***/ (function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE_15__;
/***/ }),
/* 16 */
/***/ (function(module, exports, __webpack_require__) {

@@ -967,173 +887,83 @@

Object.defineProperty(exports, "__esModule", { value: true });
var DISABLED_FLIGHT_PREFIX = '!';
var SPFlight = (function () {
function SPFlight() {
var UrlQueryParameterCollection = (function () {
function UrlQueryParameterCollection(url) {
this._queryParameterList = this._getUrlQueryParameterArray(url);
}
SPFlight.initialize = function (flights, debugFlights) {
this._isInitialized = true;
this._enabledFlightsMap = flights || [];
if (debugFlights && debugFlights.length > 0) {
try {
var debugFlightStrings = debugFlights.split(',');
this._forceEnabledFlights = debugFlightStrings
.filter(function (value) { return value[0] !== DISABLED_FLIGHT_PREFIX; })
.map(function (value) { return parseInt(value, 10); })
.filter(function (value) { return !isNaN(value); });
this._forceDisabledFlights = debugFlightStrings
.filter(function (value) { return value[0] === DISABLED_FLIGHT_PREFIX; })
.map(function (value) { return parseInt(value.slice(1), 10); })
.filter(function (value) { return !isNaN(value); });
console.log("Debug flights are enabled.");
if (this._forceEnabledFlights.length > 0) {
console.log("Enabled flights: " + this._forceEnabledFlights.join(', '));
UrlQueryParameterCollection.prototype.getValue = function (param) {
for (var _i = 0, _a = this._queryParameterList; _i < _a.length; _i++) {
var queryParam = _a[_i];
if (param === undefined) {
if (queryParam.key === undefined) {
return queryParam.value;
}
if (this._forceDisabledFlights.length > 0) {
console.log("Disabled flights: " + this._forceDisabledFlights.join(', '));
}
continue;
}
catch (error) {
this._forceEnabledFlights = [];
this._forceDisabledFlights = [];
console.log("Error parsing debugFlights query string parameter: " + error);
else if (param.toUpperCase() === queryParam.key) {
return queryParam.value;
}
}
else {
this._forceEnabledFlights = [];
this._forceDisabledFlights = [];
}
this._validateDebugFlights();
return undefined;
};
SPFlight.isEnabled = function (flight) {
if (!this._isInitialized && !false) {
throw new Error("Flights are not initialized. Flight requested: " + flight);
}
if (!flight || flight < 0) {
return false;
}
if (this._forceEnabledFlights.indexOf(flight) !== -1) {
return true;
}
if (this._forceDisabledFlights.indexOf(flight) !== -1) {
return false;
}
var enabledFlightsIndex = flight >> 5;
if (enabledFlightsIndex < 0 || enabledFlightsIndex >= this._enabledFlightsMap.length) {
return false;
}
var bitMask = 1 << (flight & 31);
return (this._enabledFlightsMap[enabledFlightsIndex] & bitMask) !== 0;
};
SPFlight._validateDebugFlights = function () {
var debugFlightsSet = new Set(this._forceEnabledFlights.concat(this._forceDisabledFlights));
if (debugFlightsSet.size < (this._forceEnabledFlights.length + this._forceDisabledFlights.length)) {
throw new Error('There are flights that are forced to be both enabled and disabled');
}
};
SPFlight._isInitialized = false;
SPFlight._forceEnabledFlights = [];
SPFlight._forceDisabledFlights = [];
SPFlight._enabledFlightsMap = [];
return SPFlight;
}());
exports.default = SPFlight;
/***/ }),
/* 15 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Guid_1 = __webpack_require__(3);
var SPKillSwitch = (function () {
function SPKillSwitch() {
}
SPKillSwitch.initialize = function (killSwitchGuids, debugKillswitches) {
this._isInitialized = true;
this._activatedKillSwitches = new Map();
if (killSwitchGuids) {
for (var _i = 0, _a = Object.keys(killSwitchGuids); _i < _a.length; _i++) {
var killSwitchGuid = _a[_i];
var normalizedKillSwitchGuid = Guid_1.default.tryParse(killSwitchGuid);
if (normalizedKillSwitchGuid) {
this._activatedKillSwitches.set(normalizedKillSwitchGuid.toString(), true);
UrlQueryParameterCollection.prototype.getValues = function (param) {
var queryParams = [];
for (var _i = 0, _a = this._queryParameterList; _i < _a.length; _i++) {
var queryParam = _a[_i];
if (param === undefined) {
if (queryParam.key === undefined) {
queryParams.push(queryParam.value);
}
continue;
}
else if (param.toUpperCase() === queryParam.key) {
queryParams.push(queryParam.value);
}
}
if (debugKillswitches && debugKillswitches.length) {
try {
for (var killSwitch in debugKillswitches.split(',').map(function (value) { return Guid_1.default.tryParse(value); })) {
if (killSwitch) {
this._activatedKillSwitches.set(killSwitch.toString(), true);
}
return queryParams.length > 0 ? queryParams : undefined;
};
UrlQueryParameterCollection.prototype._getUrlQueryParameterArray = function (url) {
var queryParameterList = [];
var urlParser = document.createElement('a');
urlParser.href = url;
var queryParams = urlParser.search.substring(1).split('&');
for (var _i = 0, queryParams_1 = queryParams; _i < queryParams_1.length; _i++) {
var queryParam = queryParams_1[_i];
if (queryParam !== '') {
var equalsIndex = queryParam.indexOf('=');
var key = void 0;
var value = void 0;
if (equalsIndex < 0) {
key = queryParam;
value = undefined;
}
else if (equalsIndex === 0) {
key = '';
value = queryParam.length === 1 ? '' : queryParam.substring(1);
}
else {
key = queryParam.substring(0, equalsIndex);
value =
queryParam.substring(equalsIndex).length === 1 ?
'' :
queryParam.substring(equalsIndex + 1);
}
queryParameterList.push({
key: decodeURIComponent(key.toUpperCase()),
value: value
});
}
catch (error) {
console.log("Error parsing killSwitches query string parameter: " + error);
else {
queryParameterList.push({
key: undefined,
value: undefined
});
}
}
return queryParameterList;
};
SPKillSwitch.isActivated = function (killSwitchGuid, date, featureName) {
if (!this._isInitialized && !false) {
throw new Error("Killswitches are not initialized. Killswitch requested: " + killSwitchGuid);
}
if (!killSwitchGuid) {
return false;
}
return this._activatedKillSwitches.get(killSwitchGuid.toString());
};
SPKillSwitch._isInitialized = false;
SPKillSwitch._activatedKillSwitches = new Map();
return SPKillSwitch;
return UrlQueryParameterCollection;
}());
exports.default = SPKillSwitch;
exports.default = UrlQueryParameterCollection;
/***/ }),
/* 16 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Guid_1 = __webpack_require__(3);
var Validate_1 = __webpack_require__(0);
var Log_1 = __webpack_require__(4);
var Session = (function () {
function Session() {
}
Session._initialize = function (data) {
Validate_1.default.isNotNullOrUndefined(data, 'data');
Session._applicationId = Guid_1.default.tryParse(data.applicationId) || Guid_1.default.empty;
var pageIdGuid = Guid_1.default.tryParse(data.pageId);
if (!pageIdGuid) {
Log_1.default.warn('Session', 'The pageId parameter was undefined or invalid. Generating a new Guid', undefined);
pageIdGuid = Guid_1.default.newGuid();
}
Session._pageId = pageIdGuid;
};
Session._changePage = function () {
Session._pageId = Guid_1.default.newGuid();
};
Object.defineProperty(Session, "applicationId", {
get: function () {
return this._applicationId;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Session, "pageId", {
get: function () {
return this._pageId;
},
enumerable: true,
configurable: true
});
return Session;
}());
exports.default = Session;
/***/ }),
/* 17 */

@@ -1145,22 +975,16 @@ /***/ (function(module, exports, __webpack_require__) {

Object.defineProperty(exports, "__esModule", { value: true });
var Validate_1 = __webpack_require__(0);
var EventManager_1 = __webpack_require__(7);
var Event = (function () {
function Event(name) {
Validate_1.default.isNonemptyString(name, 'name');
this._name = name;
var ServiceKey_1 = __webpack_require__(4);
var TimeProvider = (function () {
function TimeProvider(serviceScope) {
}
Event.prototype.add = function (observer, eventHandler) {
Validate_1.default.isNotNullOrUndefined(observer, 'component');
Validate_1.default.isNotNullOrUndefined(eventHandler, 'eventHandler');
EventManager_1.default.instance.registerEvent(this._name, observer, eventHandler);
TimeProvider.prototype.getDate = function () {
return new Date();
};
Event.prototype.remove = function (observer, eventHandler) {
Validate_1.default.isNotNullOrUndefined(observer, 'component');
Validate_1.default.isNotNullOrUndefined(eventHandler, 'eventHandler');
EventManager_1.default.instance.unregisterEvent(this._name, observer, eventHandler);
TimeProvider.prototype.getTimestamp = function () {
return performance.now();
};
return Event;
TimeProvider.serviceKey = ServiceKey_1.default.create('sp-core-library:TimeProvider', TimeProvider);
return TimeProvider;
}());
exports.default = Event;
exports.default = TimeProvider;

@@ -1175,8 +999,13 @@

Object.defineProperty(exports, "__esModule", { value: true });
var EventArgs = (function () {
function EventArgs() {
var ServiceKey_1 = __webpack_require__(4);
var RandomNumberGenerator = (function () {
function RandomNumberGenerator(serviceScope) {
}
return EventArgs;
RandomNumberGenerator.prototype.generate = function () {
return Math.random();
};
RandomNumberGenerator.serviceKey = ServiceKey_1.default.create('sp-core-library:RandomNumberGenerator', RandomNumberGenerator);
return RandomNumberGenerator;
}());
exports.default = EventArgs;
exports.default = RandomNumberGenerator;

@@ -1291,13 +1120,38 @@

Object.defineProperty(exports, "__esModule", { value: true });
var ServiceKey_1 = __webpack_require__(5);
var RandomNumberGenerator = (function () {
function RandomNumberGenerator(serviceScope) {
var Guid_1 = __webpack_require__(3);
var Validate_1 = __webpack_require__(0);
var Log_1 = __webpack_require__(5);
var Session = (function () {
function Session() {
}
RandomNumberGenerator.prototype.generate = function () {
return Math.random();
Session._initialize = function (data) {
Validate_1.default.isNotNullOrUndefined(data, 'data');
Session._applicationId = Guid_1.default.tryParse(data.applicationId) || Guid_1.default.empty;
var pageIdGuid = Guid_1.default.tryParse(data.pageId);
if (!pageIdGuid) {
Log_1.default.warn('Session', 'The pageId parameter was undefined or invalid. Generating a new Guid', undefined);
pageIdGuid = Guid_1.default.newGuid();
}
Session._pageId = pageIdGuid;
};
RandomNumberGenerator.serviceKey = ServiceKey_1.default.create('sp-core-library:RandomNumberGenerator', RandomNumberGenerator);
return RandomNumberGenerator;
Session._changePage = function () {
Session._pageId = Guid_1.default.newGuid();
};
Object.defineProperty(Session, "applicationId", {
get: function () {
return this._applicationId;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Session, "pageId", {
get: function () {
return this._pageId;
},
enumerable: true,
configurable: true
});
return Session;
}());
exports.default = RandomNumberGenerator;
exports.default = Session;

@@ -1312,16 +1166,30 @@

Object.defineProperty(exports, "__esModule", { value: true });
var ServiceKey_1 = __webpack_require__(5);
var TimeProvider = (function () {
function TimeProvider(serviceScope) {
var Text_1 = __webpack_require__(2);
var SPCoreLibraryStrings_resx_1 = __webpack_require__(1);
var DefaultLogHandler = (function () {
function DefaultLogHandler() {
}
TimeProvider.prototype.getDate = function () {
return new Date();
DefaultLogHandler.prototype.verbose = function (source, message, scope) {
if (true) {
console.log(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.logVerboseLevelMessage, source));
}
};
TimeProvider.prototype.getTimestamp = function () {
return performance.now();
DefaultLogHandler.prototype.info = function (source, message, scope) {
if (true) {
console.info(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.logInfoLevelMessage, source));
}
};
TimeProvider.serviceKey = ServiceKey_1.default.create('sp-core-library:TimeProvider', TimeProvider);
return TimeProvider;
DefaultLogHandler.prototype.warn = function (source, message, scope) {
if (true) {
console.warn(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.logWarningLevelMessage, source));
}
};
DefaultLogHandler.prototype.error = function (source, error, scope) {
if (true) {
console.error(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.logErrorLevelMessage, source, error.message));
}
};
return DefaultLogHandler;
}());
exports.default = TimeProvider;
exports.default = DefaultLogHandler;

@@ -1336,84 +1204,116 @@

Object.defineProperty(exports, "__esModule", { value: true });
var UrlQueryParameterCollection = (function () {
function UrlQueryParameterCollection(url) {
this._queryParameterList = this._getUrlQueryParameterArray(url);
var Validate_1 = __webpack_require__(0);
var SPCoreLibraryStrings_resx_1 = __webpack_require__(1);
var EnvironmentType;
(function (EnvironmentType) {
EnvironmentType[EnvironmentType["Test"] = 0] = "Test";
EnvironmentType[EnvironmentType["Local"] = 1] = "Local";
EnvironmentType[EnvironmentType["SharePoint"] = 2] = "SharePoint";
EnvironmentType[EnvironmentType["ClassicSharePoint"] = 3] = "ClassicSharePoint";
})(EnvironmentType = exports.EnvironmentType || (exports.EnvironmentType = {}));
var Environment = (function () {
function Environment() {
}
UrlQueryParameterCollection.prototype.getValue = function (param) {
for (var _i = 0, _a = this._queryParameterList; _i < _a.length; _i++) {
var queryParam = _a[_i];
if (param === undefined) {
if (queryParam.key === undefined) {
return queryParam.value;
}
continue;
}
else if (param.toUpperCase() === queryParam.key) {
return queryParam.value;
}
Environment._initialize = function (data) {
Validate_1.default.isNotNullOrUndefined(data, 'data');
Environment._type = data.type;
Validate_1.default.isNotNullOrUndefined(Environment._type, 'environmentType');
if (!EnvironmentType.hasOwnProperty(data.type.toString())) {
throw new Error(SPCoreLibraryStrings_resx_1.default.invalidEnvironmentTypeError);
}
return undefined;
};
UrlQueryParameterCollection.prototype.getValues = function (param) {
var queryParams = [];
for (var _i = 0, _a = this._queryParameterList; _i < _a.length; _i++) {
var queryParam = _a[_i];
if (param === undefined) {
if (queryParam.key === undefined) {
queryParams.push(queryParam.value);
Object.defineProperty(Environment, "type", {
get: function () {
return this._type;
},
enumerable: true,
configurable: true
});
return Environment;
}());
exports.default = Environment;
/***/ }),
/* 23 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var DISABLED_FLIGHT_PREFIX = '!';
var SPFlight = (function () {
function SPFlight() {
}
SPFlight.initialize = function (flights, debugFlights) {
this._isInitialized = true;
this._enabledFlightsMap = flights || [];
if (debugFlights && debugFlights.length > 0) {
try {
var debugFlightStrings = debugFlights.split(',');
this._forceEnabledFlights = debugFlightStrings
.filter(function (value) { return value[0] !== DISABLED_FLIGHT_PREFIX; })
.map(function (value) { return parseInt(value, 10); })
.filter(function (value) { return !isNaN(value); });
this._forceDisabledFlights = debugFlightStrings
.filter(function (value) { return value[0] === DISABLED_FLIGHT_PREFIX; })
.map(function (value) { return parseInt(value.slice(1), 10); })
.filter(function (value) { return !isNaN(value); });
console.log("Debug flights are enabled.");
if (this._forceEnabledFlights.length > 0) {
console.log("Enabled flights: " + this._forceEnabledFlights.join(', '));
}
continue;
if (this._forceDisabledFlights.length > 0) {
console.log("Disabled flights: " + this._forceDisabledFlights.join(', '));
}
}
else if (param.toUpperCase() === queryParam.key) {
queryParams.push(queryParam.value);
catch (error) {
this._forceEnabledFlights = [];
this._forceDisabledFlights = [];
console.log("Error parsing debugFlights query string parameter: " + error);
}
}
return queryParams.length > 0 ? queryParams : undefined;
else {
this._forceEnabledFlights = [];
this._forceDisabledFlights = [];
}
this._validateDebugFlights();
};
UrlQueryParameterCollection.prototype._getUrlQueryParameterArray = function (url) {
var queryParameterList = [];
var urlParser = document.createElement('a');
urlParser.href = url;
var queryParams = urlParser.search.substring(1).split('&');
for (var _i = 0, queryParams_1 = queryParams; _i < queryParams_1.length; _i++) {
var queryParam = queryParams_1[_i];
if (queryParam !== '') {
var equalsIndex = queryParam.indexOf('=');
var key = void 0;
var value = void 0;
if (equalsIndex < 0) {
key = queryParam;
value = undefined;
}
else if (equalsIndex === 0) {
key = '';
value = queryParam.length === 1 ? '' : queryParam.substring(1);
}
else {
key = queryParam.substring(0, equalsIndex);
value =
queryParam.substring(equalsIndex).length === 1 ?
'' :
queryParam.substring(equalsIndex + 1);
}
queryParameterList.push({
key: decodeURIComponent(key.toUpperCase()),
value: value
});
}
else {
queryParameterList.push({
key: undefined,
value: undefined
});
}
SPFlight.isEnabled = function (flight) {
if (!this._isInitialized && !false) {
throw new Error("Flights are not initialized. Flight requested: " + flight);
}
return queryParameterList;
if (!flight || flight < 0) {
return false;
}
if (this._forceEnabledFlights.indexOf(flight) !== -1) {
return true;
}
if (this._forceDisabledFlights.indexOf(flight) !== -1) {
return false;
}
var enabledFlightsIndex = flight >> 5;
if (enabledFlightsIndex < 0 || enabledFlightsIndex >= this._enabledFlightsMap.length) {
return false;
}
var bitMask = 1 << (flight & 31);
return (this._enabledFlightsMap[enabledFlightsIndex] & bitMask) !== 0;
};
return UrlQueryParameterCollection;
SPFlight._validateDebugFlights = function () {
var debugFlightsSet = new Set(this._forceEnabledFlights.concat(this._forceDisabledFlights));
if (debugFlightsSet.size < (this._forceEnabledFlights.length + this._forceDisabledFlights.length)) {
throw new Error('There are flights that are forced to be both enabled and disabled');
}
};
SPFlight._isInitialized = false;
SPFlight._forceEnabledFlights = [];
SPFlight._forceDisabledFlights = [];
SPFlight._enabledFlightsMap = [];
return SPFlight;
}());
exports.default = UrlQueryParameterCollection;
exports.default = SPFlight;
/***/ }),
/* 23 */
/* 24 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1424,23 +1324,49 @@

Object.defineProperty(exports, "__esModule", { value: true });
var lodash = __webpack_require__(25);
var Validate_1 = __webpack_require__(0);
var UrlUtilities = (function () {
function UrlUtilities() {
var Guid_1 = __webpack_require__(3);
var SPKillSwitch = (function () {
function SPKillSwitch() {
}
UrlUtilities.removeEndSlash = function (url) {
return lodash.trimEnd(url, '/');
SPKillSwitch.initialize = function (killSwitchGuids, debugKillswitches) {
this._isInitialized = true;
this._activatedKillSwitches = new Map();
if (killSwitchGuids) {
for (var _i = 0, _a = Object.keys(killSwitchGuids); _i < _a.length; _i++) {
var killSwitchGuid = _a[_i];
var normalizedKillSwitchGuid = Guid_1.default.tryParse(killSwitchGuid);
if (normalizedKillSwitchGuid) {
this._activatedKillSwitches.set(normalizedKillSwitchGuid.toString(), true);
}
}
}
if (debugKillswitches && debugKillswitches.length) {
try {
for (var killSwitch in debugKillswitches.split(',').map(function (value) { return Guid_1.default.tryParse(value); })) {
if (killSwitch) {
this._activatedKillSwitches.set(killSwitch.toString(), true);
}
}
}
catch (error) {
console.log("Error parsing killSwitches query string parameter: " + error);
}
}
};
UrlUtilities.convertToODataStringLiteral = function (value) {
Validate_1.default.isNotNullOrUndefined(value, 'value');
value = value.replace(/'/g, "''");
value = "'" + value + "'";
return value;
SPKillSwitch.isActivated = function (killSwitchGuid, date, featureName) {
if (!this._isInitialized && !false) {
throw new Error("Killswitches are not initialized. Killswitch requested: " + killSwitchGuid);
}
if (!killSwitchGuid) {
return false;
}
return this._activatedKillSwitches.get(killSwitchGuid.toString());
};
return UrlUtilities;
SPKillSwitch._isInitialized = false;
SPKillSwitch._activatedKillSwitches = new Map();
return SPKillSwitch;
}());
exports.default = UrlUtilities;
exports.default = SPKillSwitch;
/***/ }),
/* 24 */
/* 25 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1450,44 +1376,120 @@

var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var Text_1 = __webpack_require__(2);
var Validate_1 = __webpack_require__(0);
var SPCoreLibraryStrings_resx_1 = __webpack_require__(1);
var DefaultLogHandler = (function () {
function DefaultLogHandler() {
var SPError = (function (_super) {
__extends(SPError, _super);
function SPError(errorCode, message, logProperties) {
var _this = _super.call(this, message) || this;
_this.__proto__ = SPError.prototype;
Validate_1.default.isNonemptyString(errorCode, 'errorCode');
Validate_1.default.isNonemptyString(message, 'message');
_this._errorCode = errorCode;
_this.message = message;
_this._logProperties = logProperties;
_this.stack = (new Error()).stack || SPError._generateErrorStackForIE();
return _this;
}
DefaultLogHandler.prototype.verbose = function (source, message, scope) {
if (true) {
console.log(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.logVerboseLevelMessage, source));
Object.defineProperty(SPError.prototype, "id", {
get: function () {
return -1;
},
enumerable: true,
configurable: true
});
Object.defineProperty(SPError.prototype, "category", {
get: function () {
return 'SPError';
},
enumerable: true,
configurable: true
});
SPError._generateErrorStackForIE = function () {
try {
throw new Error();
}
};
DefaultLogHandler.prototype.info = function (source, message, scope) {
if (true) {
console.info(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.logInfoLevelMessage, source));
catch (e) {
return e.stack;
}
};
DefaultLogHandler.prototype.warn = function (source, message, scope) {
if (true) {
console.warn(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.logWarningLevelMessage, source));
}
SPError.prototype.toStringForUI = function () {
return this._toString(true);
};
DefaultLogHandler.prototype.error = function (source, error, scope) {
if (true) {
console.error(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.logErrorLevelMessage, source, error.message));
SPError.prototype.toString = function () {
return this._toString();
};
SPError.prototype._toString = function (logDebug) {
if (!this._errorString) {
var errorMessageArray = [
"[" + this.category + "." + this._errorCode + "]:",
"" + this.message,
''
];
if (logDebug || true) {
if (this.innerError) {
errorMessageArray = errorMessageArray.concat([
SPCoreLibraryStrings_resx_1.default.spErrorInnerErrorText,
this.innerError.message
]);
}
if (this.stack) {
errorMessageArray = errorMessageArray.concat([
SPCoreLibraryStrings_resx_1.default.spErrorCallStackText,
this.stack
]);
}
if (this._logProperties) {
errorMessageArray = errorMessageArray.concat([
SPCoreLibraryStrings_resx_1.default.spErrorLogPropertiesText,
JSON.stringify(this._logProperties)
]);
}
}
this._errorString = errorMessageArray.join('\r\n');
}
return this._errorString;
};
return DefaultLogHandler;
}());
exports.default = DefaultLogHandler;
return SPError;
}(Error));
exports.default = SPError;
/***/ }),
/* 25 */
/***/ (function(module, exports) {
/* 26 */
/***/ (function(module, exports, __webpack_require__) {
module.exports = __WEBPACK_EXTERNAL_MODULE_25__;
"use strict";
/***/ }),
/* 26 */
/***/ (function(module, exports) {
Object.defineProperty(exports, "__esModule", { value: true });
var Validate_1 = __webpack_require__(0);
var EventManager_1 = __webpack_require__(7);
var Event = (function () {
function Event(name) {
Validate_1.default.isNonemptyString(name, 'name');
this._name = name;
}
Event.prototype.add = function (observer, eventHandler) {
Validate_1.default.isNotNullOrUndefined(observer, 'component');
Validate_1.default.isNotNullOrUndefined(eventHandler, 'eventHandler');
EventManager_1.default.instance.registerEvent(this._name, observer, eventHandler);
};
Event.prototype.remove = function (observer, eventHandler) {
Validate_1.default.isNotNullOrUndefined(observer, 'component');
Validate_1.default.isNotNullOrUndefined(eventHandler, 'eventHandler');
EventManager_1.default.instance.unregisterEvent(this._name, observer, eventHandler);
};
return Event;
}());
exports.default = Event;
module.exports = __WEBPACK_EXTERNAL_MODULE_26__;

@@ -1501,51 +1503,8 @@ /***/ }),

Object.defineProperty(exports, "__esModule", { value: true });
var BrowserDetection_1 = __webpack_require__(8);
exports._BrowserDetection = BrowserDetection_1.default;
exports._Browser = BrowserDetection_1.Browser;
exports._OS = BrowserDetection_1.OS;
var DisplayMode_1 = __webpack_require__(9);
exports.DisplayMode = DisplayMode_1.default;
var Guid_1 = __webpack_require__(3);
exports.Guid = Guid_1.default;
var IBrowserCompatibility_1 = __webpack_require__(11);
exports.BrowserSupportLevel = IBrowserCompatibility_1.BrowserSupportLevel;
var JsonUtilities_1 = __webpack_require__(12);
exports.JsonUtilities = JsonUtilities_1.default;
var Text_1 = __webpack_require__(2);
exports.Text = Text_1.default;
var Version_1 = __webpack_require__(6);
exports.Version = Version_1.default;
var Validate_1 = __webpack_require__(0);
exports.Validate = Validate_1.default;
var UrlUtilities_1 = __webpack_require__(23);
exports.UrlUtilities = UrlUtilities_1.default;
var UrlQueryParameterCollection_1 = __webpack_require__(22);
exports.UrlQueryParameterCollection = UrlQueryParameterCollection_1.default;
var TimeProvider_1 = __webpack_require__(21);
exports.TimeProvider = TimeProvider_1.default;
var RandomNumberGenerator_1 = __webpack_require__(20);
exports.RandomNumberGenerator = RandomNumberGenerator_1.default;
var ServiceKey_1 = __webpack_require__(5);
exports.ServiceKey = ServiceKey_1.default;
var ServiceScope_1 = __webpack_require__(19);
exports.ServiceScope = ServiceScope_1.default;
var Session_1 = __webpack_require__(16);
exports.Session = Session_1.default;
var Environment_1 = __webpack_require__(10);
exports.Environment = Environment_1.default;
exports.EnvironmentType = Environment_1.EnvironmentType;
var SPFlight_1 = __webpack_require__(14);
exports._SPFlight = SPFlight_1.default;
var SPKillSwitch_1 = __webpack_require__(15);
exports._SPKillSwitch = SPKillSwitch_1.default;
var SPError_1 = __webpack_require__(13);
exports.SPError = SPError_1.default;
var Log_1 = __webpack_require__(4);
exports.Log = Log_1.default;
var Event_1 = __webpack_require__(17);
exports.Event = Event_1.default;
var EventArgs_1 = __webpack_require__(18);
exports.EventArgs = EventArgs_1.default;
var EventManager_1 = __webpack_require__(7);
exports._EventManager = EventManager_1.default;
var EventArgs = (function () {
function EventArgs() {
}
return EventArgs;
}());
exports.default = EventArgs;

@@ -1558,4 +1517,44 @@

/***/ }),
/* 1 */
/***/ (function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function() {
var strings = {
"_gIErrcTokcw+/VVwa+ReIA": {
"invalidEnvironmentTypeError": "***EnvironmentType is invalid",
"invalidGuidStringError": "***Invalid GUID string: \"{0}\"",
"isFalseValidateError": "***The value for \"{0}\" is false",
"isNullValidateError": "***The value for \"{0}\" must not be null",
"isUndefinedValidateError": "***The value for \"{0}\" must not be undefined",
"isEmptyStringValidateError": "***The value for \"{0}\" must not be an empty string",
"invalidVersionStringError": "***Invalid version string: \"{0}\"",
"logVerboseLevelMessage": "***{0}: VERBOSE {1}",
"logInfoLevelMessage": "***{0}: {1}",
"logWarningLevelMessage": "***{0}: WARNING {1}",
"logErrorLevelMessage": "***{0}: ERROR: {1}",
"serviceScopeConsumingBeforeFinished": "***Cannot consume services because the scope is not finished yet",
"serviceScopeConsumingDuringAutoCreation": "***Cannot consume services during ServiceScope autocreation",
"serviceScopeAlreadyFinishedError": "***The ServiceScope is already finished",
"serviceScopeProvideServiceAfterFinishedError": "***Cannot register service because the scope is already finished",
"serviceScopeProvideServiceThatAlreadyExists": "***The service key \"{0}\" has already been registered in this scope",
"spErrorInnerErrorText": "***INNERERROR:",
"spErrorCallStackText": "***CALLSTACK:",
"spErrorLogPropertiesText": "***LOGPROPERTIES:"
}
};
strings.default = strings;
return strings;
}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
/***/ }),
/* 2 */
/***/ (function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE_2__;
/***/ })
/******/ ])});;
//# sourceMappingURL=sp-core-library_en-us.js.map

@@ -1,2 +0,2 @@

define("7263c7d0-1d6a-45ec-8d85-d4d1d234171b_1.2.0", ["@microsoft/sp-lodash-subset","resx-strings"], function(__WEBPACK_EXTERNAL_MODULE_25__, __WEBPACK_EXTERNAL_MODULE_26__) { return /******/ (function(modules) { // webpackBootstrap
define("7263c7d0-1d6a-45ec-8d85-d4d1d234171b_1.3.0", ["resx-strings","@microsoft/sp-lodash-subset"], function(__WEBPACK_EXTERNAL_MODULE_10__, __WEBPACK_EXTERNAL_MODULE_15__) { return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache

@@ -9,5 +9,5 @@ /******/ var installedModules = {};

/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/
/******/ }
/******/ // Create a new module (and put it into the cache)

@@ -37,5 +37,2 @@ /******/ var module = installedModules[moduleId] = {

/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports

@@ -68,3 +65,3 @@ /******/ __webpack_require__.d = function(exports, name, getter) {

/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 27);
/******/ return __webpack_require__(__webpack_require__.s = 8);
/******/ })

@@ -117,3 +114,3 @@ /************************************************************************/

? require('resx-strings/en-us.json')
: __webpack_require__(26);
: __webpack_require__(10);
exports.default = strings['_gIErrcTokcw+/VVwa+ReIA'];

@@ -249,34 +246,2 @@

Object.defineProperty(exports, "__esModule", { value: true });
var DefaultLogHandler_1 = __webpack_require__(24);
var Log = (function () {
function Log() {
}
Log._initialize = function (logHandler) {
Log._logHandler = logHandler;
};
Log.verbose = function (source, message, scope) {
Log._logHandler.verbose(source, message, scope);
};
Log.info = function (source, message, scope) {
Log._logHandler.info(source, message, scope);
};
Log.warn = function (source, message, scope) {
Log._logHandler.warn(source, message, scope);
};
Log.error = function (source, error, scope) {
Log._logHandler.error(source, error, scope);
};
Log._logHandler = new DefaultLogHandler_1.default();
return Log;
}());
exports.default = Log;
/***/ }),
/* 5 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Validate_1 = __webpack_require__(0);

@@ -309,2 +274,34 @@ var ServiceKey = (function () {

/***/ }),
/* 5 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var DefaultLogHandler_1 = __webpack_require__(21);
var Log = (function () {
function Log() {
}
Log._initialize = function (logHandler) {
Log._logHandler = logHandler;
};
Log.verbose = function (source, message, scope) {
Log._logHandler.verbose(source, message, scope);
};
Log.info = function (source, message, scope) {
Log._logHandler.info(source, message, scope);
};
Log.warn = function (source, message, scope) {
Log._logHandler.warn(source, message, scope);
};
Log.error = function (source, error, scope) {
Log._logHandler.error(source, error, scope);
};
Log._logHandler = new DefaultLogHandler_1.default();
return Log;
}());
exports.default = Log;
/***/ }),
/* 6 */

@@ -428,6 +425,7 @@ /***/ (function(module, exports, __webpack_require__) {

var Text_1 = __webpack_require__(2);
var Log_1 = __webpack_require__(4);
var Log_1 = __webpack_require__(5);
var EventManager = (function () {
function EventManager() {
this._listeners = new Map();
this._raisedEvents = new Map();
}

@@ -448,2 +446,3 @@ Object.defineProperty(EventManager, "instance", {

Validate_1.default.isNotNullOrUndefined(eventArgs, 'eventArgs');
this._raisedEvents.set(eventName, eventArgs);
if (!this._listeners.has(eventName)) {

@@ -476,2 +475,5 @@ return;

this._listeners.get(eventName).push({ observer: observer, eventHandler: eventHandler });
if (this._raisedEvents.has(eventName)) {
eventHandler.apply(observer, this._raisedEvents.get(eventName));
}
};

@@ -506,3 +508,61 @@ EventManager.prototype.unregisterEvent = function (eventName, observer, eventHandler) {

Object.defineProperty(exports, "__esModule", { value: true });
var BrowserDetection_1 = __webpack_require__(9);
exports._BrowserDetection = BrowserDetection_1.default;
exports._Browser = BrowserDetection_1.Browser;
exports._OS = BrowserDetection_1.OS;
var DisplayMode_1 = __webpack_require__(11);
exports.DisplayMode = DisplayMode_1.default;
var Guid_1 = __webpack_require__(3);
exports.Guid = Guid_1.default;
var IBrowserCompatibility_1 = __webpack_require__(12);
exports.BrowserSupportLevel = IBrowserCompatibility_1.BrowserSupportLevel;
var JsonUtilities_1 = __webpack_require__(13);
exports.JsonUtilities = JsonUtilities_1.default;
var Text_1 = __webpack_require__(2);
exports.Text = Text_1.default;
var Version_1 = __webpack_require__(6);
exports.Version = Version_1.default;
var Validate_1 = __webpack_require__(0);
exports.Validate = Validate_1.default;
var UrlUtilities_1 = __webpack_require__(14);
exports.UrlUtilities = UrlUtilities_1.default;
var UrlQueryParameterCollection_1 = __webpack_require__(16);
exports.UrlQueryParameterCollection = UrlQueryParameterCollection_1.default;
var TimeProvider_1 = __webpack_require__(17);
exports.TimeProvider = TimeProvider_1.default;
var RandomNumberGenerator_1 = __webpack_require__(18);
exports.RandomNumberGenerator = RandomNumberGenerator_1.default;
var ServiceKey_1 = __webpack_require__(4);
exports.ServiceKey = ServiceKey_1.default;
var ServiceScope_1 = __webpack_require__(19);
exports.ServiceScope = ServiceScope_1.default;
var Session_1 = __webpack_require__(20);
exports.Session = Session_1.default;
var Environment_1 = __webpack_require__(22);
exports.Environment = Environment_1.default;
exports.EnvironmentType = Environment_1.EnvironmentType;
var SPFlight_1 = __webpack_require__(23);
exports._SPFlight = SPFlight_1.default;
var SPKillSwitch_1 = __webpack_require__(24);
exports._SPKillSwitch = SPKillSwitch_1.default;
var SPError_1 = __webpack_require__(25);
exports.SPError = SPError_1.default;
var Log_1 = __webpack_require__(5);
exports.Log = Log_1.default;
var Event_1 = __webpack_require__(26);
exports.Event = Event_1.default;
var EventArgs_1 = __webpack_require__(27);
exports.EventArgs = EventArgs_1.default;
var EventManager_1 = __webpack_require__(7);
exports._EventManager = EventManager_1.default;
/***/ }),
/* 9 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Version_1 = __webpack_require__(6);
var Browser;

@@ -637,3 +697,9 @@ (function (Browser) {

/***/ }),
/* 9 */
/* 10 */
/***/ (function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE_10__;
/***/ }),
/* 11 */
/***/ (function(module, exports, __webpack_require__) {

@@ -653,3 +719,3 @@

/***/ }),
/* 10 */
/* 12 */
/***/ (function(module, exports, __webpack_require__) {

@@ -660,41 +726,2 @@

Object.defineProperty(exports, "__esModule", { value: true });
var Validate_1 = __webpack_require__(0);
var SPCoreLibraryStrings_resx_1 = __webpack_require__(1);
var EnvironmentType;
(function (EnvironmentType) {
EnvironmentType[EnvironmentType["Test"] = 0] = "Test";
EnvironmentType[EnvironmentType["Local"] = 1] = "Local";
EnvironmentType[EnvironmentType["SharePoint"] = 2] = "SharePoint";
EnvironmentType[EnvironmentType["ClassicSharePoint"] = 3] = "ClassicSharePoint";
})(EnvironmentType = exports.EnvironmentType || (exports.EnvironmentType = {}));
var Environment = (function () {
function Environment() {
}
Environment._initialize = function (data) {
Validate_1.default.isNotNullOrUndefined(data, 'data');
Environment._type = data.type;
Validate_1.default.isNotNullOrUndefined(Environment._type, 'environmentType');
if (!EnvironmentType.hasOwnProperty(data.type.toString())) {
throw new Error(SPCoreLibraryStrings_resx_1.default.invalidEnvironmentTypeError);
}
};
Object.defineProperty(Environment, "type", {
get: function () {
return this._type;
},
enumerable: true,
configurable: true
});
return Environment;
}());
exports.default = Environment;
/***/ }),
/* 11 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var BrowserSupportLevel;

@@ -710,3 +737,3 @@ (function (BrowserSupportLevel) {

/***/ }),
/* 12 */
/* 13 */
/***/ (function(module, exports, __webpack_require__) {

@@ -747,3 +774,3 @@

/***/ }),
/* 13 */
/* 14 */
/***/ (function(module, exports, __webpack_require__) {

@@ -753,94 +780,30 @@

var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var lodash = __webpack_require__(15);
var Validate_1 = __webpack_require__(0);
var SPCoreLibraryStrings_resx_1 = __webpack_require__(1);
var SPError = (function (_super) {
__extends(SPError, _super);
function SPError(errorCode, message, logProperties) {
var _this = _super.call(this, message) || this;
_this.__proto__ = SPError.prototype;
Validate_1.default.isNonemptyString(errorCode, 'errorCode');
Validate_1.default.isNonemptyString(message, 'message');
_this._errorCode = errorCode;
_this.message = message;
_this._logProperties = logProperties;
_this.stack = (new Error()).stack || SPError._generateErrorStackForIE();
return _this;
var UrlUtilities = (function () {
function UrlUtilities() {
}
Object.defineProperty(SPError.prototype, "id", {
get: function () {
return -1;
},
enumerable: true,
configurable: true
});
Object.defineProperty(SPError.prototype, "category", {
get: function () {
return 'SPError';
},
enumerable: true,
configurable: true
});
SPError._generateErrorStackForIE = function () {
try {
throw new Error();
}
catch (e) {
return e.stack;
}
UrlUtilities.removeEndSlash = function (url) {
return lodash.trimEnd(url, '/');
};
SPError.prototype.toStringForUI = function () {
return this._toString(true);
UrlUtilities.convertToODataStringLiteral = function (value) {
Validate_1.default.isNotNullOrUndefined(value, 'value');
value = value.replace(/'/g, "''");
value = "'" + value + "'";
return value;
};
SPError.prototype.toString = function () {
return this._toString();
};
SPError.prototype._toString = function (logDebug) {
if (!this._errorString) {
var errorMessageArray = [
"[" + this.category + "." + this._errorCode + "]:",
"" + this.message,
''
];
if (logDebug || true) {
if (this.innerError) {
errorMessageArray = errorMessageArray.concat([
SPCoreLibraryStrings_resx_1.default.spErrorInnerErrorText,
this.innerError.message
]);
}
if (this.stack) {
errorMessageArray = errorMessageArray.concat([
SPCoreLibraryStrings_resx_1.default.spErrorCallStackText,
this.stack
]);
}
if (this._logProperties) {
errorMessageArray = errorMessageArray.concat([
SPCoreLibraryStrings_resx_1.default.spErrorLogPropertiesText,
JSON.stringify(this._logProperties)
]);
}
}
this._errorString = errorMessageArray.join('\r\n');
}
return this._errorString;
};
return SPError;
}(Error));
exports.default = SPError;
return UrlUtilities;
}());
exports.default = UrlUtilities;
/***/ }),
/* 14 */
/* 15 */
/***/ (function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE_15__;
/***/ }),
/* 16 */
/***/ (function(module, exports, __webpack_require__) {

@@ -851,173 +814,83 @@

Object.defineProperty(exports, "__esModule", { value: true });
var DISABLED_FLIGHT_PREFIX = '!';
var SPFlight = (function () {
function SPFlight() {
var UrlQueryParameterCollection = (function () {
function UrlQueryParameterCollection(url) {
this._queryParameterList = this._getUrlQueryParameterArray(url);
}
SPFlight.initialize = function (flights, debugFlights) {
this._isInitialized = true;
this._enabledFlightsMap = flights || [];
if (debugFlights && debugFlights.length > 0) {
try {
var debugFlightStrings = debugFlights.split(',');
this._forceEnabledFlights = debugFlightStrings
.filter(function (value) { return value[0] !== DISABLED_FLIGHT_PREFIX; })
.map(function (value) { return parseInt(value, 10); })
.filter(function (value) { return !isNaN(value); });
this._forceDisabledFlights = debugFlightStrings
.filter(function (value) { return value[0] === DISABLED_FLIGHT_PREFIX; })
.map(function (value) { return parseInt(value.slice(1), 10); })
.filter(function (value) { return !isNaN(value); });
console.log("Debug flights are enabled.");
if (this._forceEnabledFlights.length > 0) {
console.log("Enabled flights: " + this._forceEnabledFlights.join(', '));
UrlQueryParameterCollection.prototype.getValue = function (param) {
for (var _i = 0, _a = this._queryParameterList; _i < _a.length; _i++) {
var queryParam = _a[_i];
if (param === undefined) {
if (queryParam.key === undefined) {
return queryParam.value;
}
if (this._forceDisabledFlights.length > 0) {
console.log("Disabled flights: " + this._forceDisabledFlights.join(', '));
}
continue;
}
catch (error) {
this._forceEnabledFlights = [];
this._forceDisabledFlights = [];
console.log("Error parsing debugFlights query string parameter: " + error);
else if (param.toUpperCase() === queryParam.key) {
return queryParam.value;
}
}
else {
this._forceEnabledFlights = [];
this._forceDisabledFlights = [];
}
this._validateDebugFlights();
return undefined;
};
SPFlight.isEnabled = function (flight) {
if (!this._isInitialized && !false) {
throw new Error("Flights are not initialized. Flight requested: " + flight);
}
if (!flight || flight < 0) {
return false;
}
if (this._forceEnabledFlights.indexOf(flight) !== -1) {
return true;
}
if (this._forceDisabledFlights.indexOf(flight) !== -1) {
return false;
}
var enabledFlightsIndex = flight >> 5;
if (enabledFlightsIndex < 0 || enabledFlightsIndex >= this._enabledFlightsMap.length) {
return false;
}
var bitMask = 1 << (flight & 31);
return (this._enabledFlightsMap[enabledFlightsIndex] & bitMask) !== 0;
};
SPFlight._validateDebugFlights = function () {
var debugFlightsSet = new Set(this._forceEnabledFlights.concat(this._forceDisabledFlights));
if (debugFlightsSet.size < (this._forceEnabledFlights.length + this._forceDisabledFlights.length)) {
throw new Error('There are flights that are forced to be both enabled and disabled');
}
};
SPFlight._isInitialized = false;
SPFlight._forceEnabledFlights = [];
SPFlight._forceDisabledFlights = [];
SPFlight._enabledFlightsMap = [];
return SPFlight;
}());
exports.default = SPFlight;
/***/ }),
/* 15 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Guid_1 = __webpack_require__(3);
var SPKillSwitch = (function () {
function SPKillSwitch() {
}
SPKillSwitch.initialize = function (killSwitchGuids, debugKillswitches) {
this._isInitialized = true;
this._activatedKillSwitches = new Map();
if (killSwitchGuids) {
for (var _i = 0, _a = Object.keys(killSwitchGuids); _i < _a.length; _i++) {
var killSwitchGuid = _a[_i];
var normalizedKillSwitchGuid = Guid_1.default.tryParse(killSwitchGuid);
if (normalizedKillSwitchGuid) {
this._activatedKillSwitches.set(normalizedKillSwitchGuid.toString(), true);
UrlQueryParameterCollection.prototype.getValues = function (param) {
var queryParams = [];
for (var _i = 0, _a = this._queryParameterList; _i < _a.length; _i++) {
var queryParam = _a[_i];
if (param === undefined) {
if (queryParam.key === undefined) {
queryParams.push(queryParam.value);
}
continue;
}
else if (param.toUpperCase() === queryParam.key) {
queryParams.push(queryParam.value);
}
}
if (debugKillswitches && debugKillswitches.length) {
try {
for (var killSwitch in debugKillswitches.split(',').map(function (value) { return Guid_1.default.tryParse(value); })) {
if (killSwitch) {
this._activatedKillSwitches.set(killSwitch.toString(), true);
}
return queryParams.length > 0 ? queryParams : undefined;
};
UrlQueryParameterCollection.prototype._getUrlQueryParameterArray = function (url) {
var queryParameterList = [];
var urlParser = document.createElement('a');
urlParser.href = url;
var queryParams = urlParser.search.substring(1).split('&');
for (var _i = 0, queryParams_1 = queryParams; _i < queryParams_1.length; _i++) {
var queryParam = queryParams_1[_i];
if (queryParam !== '') {
var equalsIndex = queryParam.indexOf('=');
var key = void 0;
var value = void 0;
if (equalsIndex < 0) {
key = queryParam;
value = undefined;
}
else if (equalsIndex === 0) {
key = '';
value = queryParam.length === 1 ? '' : queryParam.substring(1);
}
else {
key = queryParam.substring(0, equalsIndex);
value =
queryParam.substring(equalsIndex).length === 1 ?
'' :
queryParam.substring(equalsIndex + 1);
}
queryParameterList.push({
key: decodeURIComponent(key.toUpperCase()),
value: value
});
}
catch (error) {
console.log("Error parsing killSwitches query string parameter: " + error);
else {
queryParameterList.push({
key: undefined,
value: undefined
});
}
}
return queryParameterList;
};
SPKillSwitch.isActivated = function (killSwitchGuid, date, featureName) {
if (!this._isInitialized && !false) {
throw new Error("Killswitches are not initialized. Killswitch requested: " + killSwitchGuid);
}
if (!killSwitchGuid) {
return false;
}
return this._activatedKillSwitches.get(killSwitchGuid.toString());
};
SPKillSwitch._isInitialized = false;
SPKillSwitch._activatedKillSwitches = new Map();
return SPKillSwitch;
return UrlQueryParameterCollection;
}());
exports.default = SPKillSwitch;
exports.default = UrlQueryParameterCollection;
/***/ }),
/* 16 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Guid_1 = __webpack_require__(3);
var Validate_1 = __webpack_require__(0);
var Log_1 = __webpack_require__(4);
var Session = (function () {
function Session() {
}
Session._initialize = function (data) {
Validate_1.default.isNotNullOrUndefined(data, 'data');
Session._applicationId = Guid_1.default.tryParse(data.applicationId) || Guid_1.default.empty;
var pageIdGuid = Guid_1.default.tryParse(data.pageId);
if (!pageIdGuid) {
Log_1.default.warn('Session', 'The pageId parameter was undefined or invalid. Generating a new Guid', undefined);
pageIdGuid = Guid_1.default.newGuid();
}
Session._pageId = pageIdGuid;
};
Session._changePage = function () {
Session._pageId = Guid_1.default.newGuid();
};
Object.defineProperty(Session, "applicationId", {
get: function () {
return this._applicationId;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Session, "pageId", {
get: function () {
return this._pageId;
},
enumerable: true,
configurable: true
});
return Session;
}());
exports.default = Session;
/***/ }),
/* 17 */

@@ -1029,22 +902,16 @@ /***/ (function(module, exports, __webpack_require__) {

Object.defineProperty(exports, "__esModule", { value: true });
var Validate_1 = __webpack_require__(0);
var EventManager_1 = __webpack_require__(7);
var Event = (function () {
function Event(name) {
Validate_1.default.isNonemptyString(name, 'name');
this._name = name;
var ServiceKey_1 = __webpack_require__(4);
var TimeProvider = (function () {
function TimeProvider(serviceScope) {
}
Event.prototype.add = function (observer, eventHandler) {
Validate_1.default.isNotNullOrUndefined(observer, 'component');
Validate_1.default.isNotNullOrUndefined(eventHandler, 'eventHandler');
EventManager_1.default.instance.registerEvent(this._name, observer, eventHandler);
TimeProvider.prototype.getDate = function () {
return new Date();
};
Event.prototype.remove = function (observer, eventHandler) {
Validate_1.default.isNotNullOrUndefined(observer, 'component');
Validate_1.default.isNotNullOrUndefined(eventHandler, 'eventHandler');
EventManager_1.default.instance.unregisterEvent(this._name, observer, eventHandler);
TimeProvider.prototype.getTimestamp = function () {
return performance.now();
};
return Event;
TimeProvider.serviceKey = ServiceKey_1.default.create('sp-core-library:TimeProvider', TimeProvider);
return TimeProvider;
}());
exports.default = Event;
exports.default = TimeProvider;

@@ -1059,8 +926,13 @@

Object.defineProperty(exports, "__esModule", { value: true });
var EventArgs = (function () {
function EventArgs() {
var ServiceKey_1 = __webpack_require__(4);
var RandomNumberGenerator = (function () {
function RandomNumberGenerator(serviceScope) {
}
return EventArgs;
RandomNumberGenerator.prototype.generate = function () {
return Math.random();
};
RandomNumberGenerator.serviceKey = ServiceKey_1.default.create('sp-core-library:RandomNumberGenerator', RandomNumberGenerator);
return RandomNumberGenerator;
}());
exports.default = EventArgs;
exports.default = RandomNumberGenerator;

@@ -1175,13 +1047,38 @@

Object.defineProperty(exports, "__esModule", { value: true });
var ServiceKey_1 = __webpack_require__(5);
var RandomNumberGenerator = (function () {
function RandomNumberGenerator(serviceScope) {
var Guid_1 = __webpack_require__(3);
var Validate_1 = __webpack_require__(0);
var Log_1 = __webpack_require__(5);
var Session = (function () {
function Session() {
}
RandomNumberGenerator.prototype.generate = function () {
return Math.random();
Session._initialize = function (data) {
Validate_1.default.isNotNullOrUndefined(data, 'data');
Session._applicationId = Guid_1.default.tryParse(data.applicationId) || Guid_1.default.empty;
var pageIdGuid = Guid_1.default.tryParse(data.pageId);
if (!pageIdGuid) {
Log_1.default.warn('Session', 'The pageId parameter was undefined or invalid. Generating a new Guid', undefined);
pageIdGuid = Guid_1.default.newGuid();
}
Session._pageId = pageIdGuid;
};
RandomNumberGenerator.serviceKey = ServiceKey_1.default.create('sp-core-library:RandomNumberGenerator', RandomNumberGenerator);
return RandomNumberGenerator;
Session._changePage = function () {
Session._pageId = Guid_1.default.newGuid();
};
Object.defineProperty(Session, "applicationId", {
get: function () {
return this._applicationId;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Session, "pageId", {
get: function () {
return this._pageId;
},
enumerable: true,
configurable: true
});
return Session;
}());
exports.default = RandomNumberGenerator;
exports.default = Session;

@@ -1196,16 +1093,30 @@

Object.defineProperty(exports, "__esModule", { value: true });
var ServiceKey_1 = __webpack_require__(5);
var TimeProvider = (function () {
function TimeProvider(serviceScope) {
var Text_1 = __webpack_require__(2);
var SPCoreLibraryStrings_resx_1 = __webpack_require__(1);
var DefaultLogHandler = (function () {
function DefaultLogHandler() {
}
TimeProvider.prototype.getDate = function () {
return new Date();
DefaultLogHandler.prototype.verbose = function (source, message, scope) {
if (true) {
console.log(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.logVerboseLevelMessage, source));
}
};
TimeProvider.prototype.getTimestamp = function () {
return performance.now();
DefaultLogHandler.prototype.info = function (source, message, scope) {
if (true) {
console.info(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.logInfoLevelMessage, source));
}
};
TimeProvider.serviceKey = ServiceKey_1.default.create('sp-core-library:TimeProvider', TimeProvider);
return TimeProvider;
DefaultLogHandler.prototype.warn = function (source, message, scope) {
if (true) {
console.warn(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.logWarningLevelMessage, source));
}
};
DefaultLogHandler.prototype.error = function (source, error, scope) {
if (true) {
console.error(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.logErrorLevelMessage, source, error.message));
}
};
return DefaultLogHandler;
}());
exports.default = TimeProvider;
exports.default = DefaultLogHandler;

@@ -1220,84 +1131,116 @@

Object.defineProperty(exports, "__esModule", { value: true });
var UrlQueryParameterCollection = (function () {
function UrlQueryParameterCollection(url) {
this._queryParameterList = this._getUrlQueryParameterArray(url);
var Validate_1 = __webpack_require__(0);
var SPCoreLibraryStrings_resx_1 = __webpack_require__(1);
var EnvironmentType;
(function (EnvironmentType) {
EnvironmentType[EnvironmentType["Test"] = 0] = "Test";
EnvironmentType[EnvironmentType["Local"] = 1] = "Local";
EnvironmentType[EnvironmentType["SharePoint"] = 2] = "SharePoint";
EnvironmentType[EnvironmentType["ClassicSharePoint"] = 3] = "ClassicSharePoint";
})(EnvironmentType = exports.EnvironmentType || (exports.EnvironmentType = {}));
var Environment = (function () {
function Environment() {
}
UrlQueryParameterCollection.prototype.getValue = function (param) {
for (var _i = 0, _a = this._queryParameterList; _i < _a.length; _i++) {
var queryParam = _a[_i];
if (param === undefined) {
if (queryParam.key === undefined) {
return queryParam.value;
}
continue;
}
else if (param.toUpperCase() === queryParam.key) {
return queryParam.value;
}
Environment._initialize = function (data) {
Validate_1.default.isNotNullOrUndefined(data, 'data');
Environment._type = data.type;
Validate_1.default.isNotNullOrUndefined(Environment._type, 'environmentType');
if (!EnvironmentType.hasOwnProperty(data.type.toString())) {
throw new Error(SPCoreLibraryStrings_resx_1.default.invalidEnvironmentTypeError);
}
return undefined;
};
UrlQueryParameterCollection.prototype.getValues = function (param) {
var queryParams = [];
for (var _i = 0, _a = this._queryParameterList; _i < _a.length; _i++) {
var queryParam = _a[_i];
if (param === undefined) {
if (queryParam.key === undefined) {
queryParams.push(queryParam.value);
Object.defineProperty(Environment, "type", {
get: function () {
return this._type;
},
enumerable: true,
configurable: true
});
return Environment;
}());
exports.default = Environment;
/***/ }),
/* 23 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var DISABLED_FLIGHT_PREFIX = '!';
var SPFlight = (function () {
function SPFlight() {
}
SPFlight.initialize = function (flights, debugFlights) {
this._isInitialized = true;
this._enabledFlightsMap = flights || [];
if (debugFlights && debugFlights.length > 0) {
try {
var debugFlightStrings = debugFlights.split(',');
this._forceEnabledFlights = debugFlightStrings
.filter(function (value) { return value[0] !== DISABLED_FLIGHT_PREFIX; })
.map(function (value) { return parseInt(value, 10); })
.filter(function (value) { return !isNaN(value); });
this._forceDisabledFlights = debugFlightStrings
.filter(function (value) { return value[0] === DISABLED_FLIGHT_PREFIX; })
.map(function (value) { return parseInt(value.slice(1), 10); })
.filter(function (value) { return !isNaN(value); });
console.log("Debug flights are enabled.");
if (this._forceEnabledFlights.length > 0) {
console.log("Enabled flights: " + this._forceEnabledFlights.join(', '));
}
continue;
if (this._forceDisabledFlights.length > 0) {
console.log("Disabled flights: " + this._forceDisabledFlights.join(', '));
}
}
else if (param.toUpperCase() === queryParam.key) {
queryParams.push(queryParam.value);
catch (error) {
this._forceEnabledFlights = [];
this._forceDisabledFlights = [];
console.log("Error parsing debugFlights query string parameter: " + error);
}
}
return queryParams.length > 0 ? queryParams : undefined;
else {
this._forceEnabledFlights = [];
this._forceDisabledFlights = [];
}
this._validateDebugFlights();
};
UrlQueryParameterCollection.prototype._getUrlQueryParameterArray = function (url) {
var queryParameterList = [];
var urlParser = document.createElement('a');
urlParser.href = url;
var queryParams = urlParser.search.substring(1).split('&');
for (var _i = 0, queryParams_1 = queryParams; _i < queryParams_1.length; _i++) {
var queryParam = queryParams_1[_i];
if (queryParam !== '') {
var equalsIndex = queryParam.indexOf('=');
var key = void 0;
var value = void 0;
if (equalsIndex < 0) {
key = queryParam;
value = undefined;
}
else if (equalsIndex === 0) {
key = '';
value = queryParam.length === 1 ? '' : queryParam.substring(1);
}
else {
key = queryParam.substring(0, equalsIndex);
value =
queryParam.substring(equalsIndex).length === 1 ?
'' :
queryParam.substring(equalsIndex + 1);
}
queryParameterList.push({
key: decodeURIComponent(key.toUpperCase()),
value: value
});
}
else {
queryParameterList.push({
key: undefined,
value: undefined
});
}
SPFlight.isEnabled = function (flight) {
if (!this._isInitialized && !false) {
throw new Error("Flights are not initialized. Flight requested: " + flight);
}
return queryParameterList;
if (!flight || flight < 0) {
return false;
}
if (this._forceEnabledFlights.indexOf(flight) !== -1) {
return true;
}
if (this._forceDisabledFlights.indexOf(flight) !== -1) {
return false;
}
var enabledFlightsIndex = flight >> 5;
if (enabledFlightsIndex < 0 || enabledFlightsIndex >= this._enabledFlightsMap.length) {
return false;
}
var bitMask = 1 << (flight & 31);
return (this._enabledFlightsMap[enabledFlightsIndex] & bitMask) !== 0;
};
return UrlQueryParameterCollection;
SPFlight._validateDebugFlights = function () {
var debugFlightsSet = new Set(this._forceEnabledFlights.concat(this._forceDisabledFlights));
if (debugFlightsSet.size < (this._forceEnabledFlights.length + this._forceDisabledFlights.length)) {
throw new Error('There are flights that are forced to be both enabled and disabled');
}
};
SPFlight._isInitialized = false;
SPFlight._forceEnabledFlights = [];
SPFlight._forceDisabledFlights = [];
SPFlight._enabledFlightsMap = [];
return SPFlight;
}());
exports.default = UrlQueryParameterCollection;
exports.default = SPFlight;
/***/ }),
/* 23 */
/* 24 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1308,23 +1251,49 @@

Object.defineProperty(exports, "__esModule", { value: true });
var lodash = __webpack_require__(25);
var Validate_1 = __webpack_require__(0);
var UrlUtilities = (function () {
function UrlUtilities() {
var Guid_1 = __webpack_require__(3);
var SPKillSwitch = (function () {
function SPKillSwitch() {
}
UrlUtilities.removeEndSlash = function (url) {
return lodash.trimEnd(url, '/');
SPKillSwitch.initialize = function (killSwitchGuids, debugKillswitches) {
this._isInitialized = true;
this._activatedKillSwitches = new Map();
if (killSwitchGuids) {
for (var _i = 0, _a = Object.keys(killSwitchGuids); _i < _a.length; _i++) {
var killSwitchGuid = _a[_i];
var normalizedKillSwitchGuid = Guid_1.default.tryParse(killSwitchGuid);
if (normalizedKillSwitchGuid) {
this._activatedKillSwitches.set(normalizedKillSwitchGuid.toString(), true);
}
}
}
if (debugKillswitches && debugKillswitches.length) {
try {
for (var killSwitch in debugKillswitches.split(',').map(function (value) { return Guid_1.default.tryParse(value); })) {
if (killSwitch) {
this._activatedKillSwitches.set(killSwitch.toString(), true);
}
}
}
catch (error) {
console.log("Error parsing killSwitches query string parameter: " + error);
}
}
};
UrlUtilities.convertToODataStringLiteral = function (value) {
Validate_1.default.isNotNullOrUndefined(value, 'value');
value = value.replace(/'/g, "''");
value = "'" + value + "'";
return value;
SPKillSwitch.isActivated = function (killSwitchGuid, date, featureName) {
if (!this._isInitialized && !false) {
throw new Error("Killswitches are not initialized. Killswitch requested: " + killSwitchGuid);
}
if (!killSwitchGuid) {
return false;
}
return this._activatedKillSwitches.get(killSwitchGuid.toString());
};
return UrlUtilities;
SPKillSwitch._isInitialized = false;
SPKillSwitch._activatedKillSwitches = new Map();
return SPKillSwitch;
}());
exports.default = UrlUtilities;
exports.default = SPKillSwitch;
/***/ }),
/* 24 */
/* 25 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1334,44 +1303,120 @@

var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var Text_1 = __webpack_require__(2);
var Validate_1 = __webpack_require__(0);
var SPCoreLibraryStrings_resx_1 = __webpack_require__(1);
var DefaultLogHandler = (function () {
function DefaultLogHandler() {
var SPError = (function (_super) {
__extends(SPError, _super);
function SPError(errorCode, message, logProperties) {
var _this = _super.call(this, message) || this;
_this.__proto__ = SPError.prototype;
Validate_1.default.isNonemptyString(errorCode, 'errorCode');
Validate_1.default.isNonemptyString(message, 'message');
_this._errorCode = errorCode;
_this.message = message;
_this._logProperties = logProperties;
_this.stack = (new Error()).stack || SPError._generateErrorStackForIE();
return _this;
}
DefaultLogHandler.prototype.verbose = function (source, message, scope) {
if (true) {
console.log(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.logVerboseLevelMessage, source));
Object.defineProperty(SPError.prototype, "id", {
get: function () {
return -1;
},
enumerable: true,
configurable: true
});
Object.defineProperty(SPError.prototype, "category", {
get: function () {
return 'SPError';
},
enumerable: true,
configurable: true
});
SPError._generateErrorStackForIE = function () {
try {
throw new Error();
}
};
DefaultLogHandler.prototype.info = function (source, message, scope) {
if (true) {
console.info(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.logInfoLevelMessage, source));
catch (e) {
return e.stack;
}
};
DefaultLogHandler.prototype.warn = function (source, message, scope) {
if (true) {
console.warn(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.logWarningLevelMessage, source));
}
SPError.prototype.toStringForUI = function () {
return this._toString(true);
};
DefaultLogHandler.prototype.error = function (source, error, scope) {
if (true) {
console.error(Text_1.default.format(SPCoreLibraryStrings_resx_1.default.logErrorLevelMessage, source, error.message));
SPError.prototype.toString = function () {
return this._toString();
};
SPError.prototype._toString = function (logDebug) {
if (!this._errorString) {
var errorMessageArray = [
"[" + this.category + "." + this._errorCode + "]:",
"" + this.message,
''
];
if (logDebug || true) {
if (this.innerError) {
errorMessageArray = errorMessageArray.concat([
SPCoreLibraryStrings_resx_1.default.spErrorInnerErrorText,
this.innerError.message
]);
}
if (this.stack) {
errorMessageArray = errorMessageArray.concat([
SPCoreLibraryStrings_resx_1.default.spErrorCallStackText,
this.stack
]);
}
if (this._logProperties) {
errorMessageArray = errorMessageArray.concat([
SPCoreLibraryStrings_resx_1.default.spErrorLogPropertiesText,
JSON.stringify(this._logProperties)
]);
}
}
this._errorString = errorMessageArray.join('\r\n');
}
return this._errorString;
};
return DefaultLogHandler;
}());
exports.default = DefaultLogHandler;
return SPError;
}(Error));
exports.default = SPError;
/***/ }),
/* 25 */
/***/ (function(module, exports) {
/* 26 */
/***/ (function(module, exports, __webpack_require__) {
module.exports = __WEBPACK_EXTERNAL_MODULE_25__;
"use strict";
/***/ }),
/* 26 */
/***/ (function(module, exports) {
Object.defineProperty(exports, "__esModule", { value: true });
var Validate_1 = __webpack_require__(0);
var EventManager_1 = __webpack_require__(7);
var Event = (function () {
function Event(name) {
Validate_1.default.isNonemptyString(name, 'name');
this._name = name;
}
Event.prototype.add = function (observer, eventHandler) {
Validate_1.default.isNotNullOrUndefined(observer, 'component');
Validate_1.default.isNotNullOrUndefined(eventHandler, 'eventHandler');
EventManager_1.default.instance.registerEvent(this._name, observer, eventHandler);
};
Event.prototype.remove = function (observer, eventHandler) {
Validate_1.default.isNotNullOrUndefined(observer, 'component');
Validate_1.default.isNotNullOrUndefined(eventHandler, 'eventHandler');
EventManager_1.default.instance.unregisterEvent(this._name, observer, eventHandler);
};
return Event;
}());
exports.default = Event;
module.exports = __WEBPACK_EXTERNAL_MODULE_26__;

@@ -1385,51 +1430,8 @@ /***/ }),

Object.defineProperty(exports, "__esModule", { value: true });
var BrowserDetection_1 = __webpack_require__(8);
exports._BrowserDetection = BrowserDetection_1.default;
exports._Browser = BrowserDetection_1.Browser;
exports._OS = BrowserDetection_1.OS;
var DisplayMode_1 = __webpack_require__(9);
exports.DisplayMode = DisplayMode_1.default;
var Guid_1 = __webpack_require__(3);
exports.Guid = Guid_1.default;
var IBrowserCompatibility_1 = __webpack_require__(11);
exports.BrowserSupportLevel = IBrowserCompatibility_1.BrowserSupportLevel;
var JsonUtilities_1 = __webpack_require__(12);
exports.JsonUtilities = JsonUtilities_1.default;
var Text_1 = __webpack_require__(2);
exports.Text = Text_1.default;
var Version_1 = __webpack_require__(6);
exports.Version = Version_1.default;
var Validate_1 = __webpack_require__(0);
exports.Validate = Validate_1.default;
var UrlUtilities_1 = __webpack_require__(23);
exports.UrlUtilities = UrlUtilities_1.default;
var UrlQueryParameterCollection_1 = __webpack_require__(22);
exports.UrlQueryParameterCollection = UrlQueryParameterCollection_1.default;
var TimeProvider_1 = __webpack_require__(21);
exports.TimeProvider = TimeProvider_1.default;
var RandomNumberGenerator_1 = __webpack_require__(20);
exports.RandomNumberGenerator = RandomNumberGenerator_1.default;
var ServiceKey_1 = __webpack_require__(5);
exports.ServiceKey = ServiceKey_1.default;
var ServiceScope_1 = __webpack_require__(19);
exports.ServiceScope = ServiceScope_1.default;
var Session_1 = __webpack_require__(16);
exports.Session = Session_1.default;
var Environment_1 = __webpack_require__(10);
exports.Environment = Environment_1.default;
exports.EnvironmentType = Environment_1.EnvironmentType;
var SPFlight_1 = __webpack_require__(14);
exports._SPFlight = SPFlight_1.default;
var SPKillSwitch_1 = __webpack_require__(15);
exports._SPKillSwitch = SPKillSwitch_1.default;
var SPError_1 = __webpack_require__(13);
exports.SPError = SPError_1.default;
var Log_1 = __webpack_require__(4);
exports.Log = Log_1.default;
var Event_1 = __webpack_require__(17);
exports.Event = Event_1.default;
var EventArgs_1 = __webpack_require__(18);
exports.EventArgs = EventArgs_1.default;
var EventManager_1 = __webpack_require__(7);
exports._EventManager = EventManager_1.default;
var EventArgs = (function () {
function EventArgs() {
}
return EventArgs;
}());
exports.default = EventArgs;

@@ -1436,0 +1438,0 @@

@@ -17,2 +17,3 @@ import { IEventObserver } from './IEventObserver';

private _listeners;
private _raisedEvents;
/**

@@ -19,0 +20,0 @@ * Instance of the EventManager.

@@ -9,2 +9,3 @@ "use strict";

this._listeners = new Map();
this._raisedEvents = new Map();
}

@@ -25,2 +26,3 @@ Object.defineProperty(EventManager, "instance", {

Validate_1.default.isNotNullOrUndefined(eventArgs, 'eventArgs');
this._raisedEvents.set(eventName, eventArgs);
if (!this._listeners.has(eventName)) {

@@ -53,2 +55,5 @@ return;

this._listeners.get(eventName).push({ observer: observer, eventHandler: eventHandler });
if (this._raisedEvents.has(eventName)) {
eventHandler.apply(observer, this._raisedEvents.get(eventName));
}
};

@@ -55,0 +60,0 @@ EventManager.prototype.unregisterEvent = function (eventName, observer, eventHandler) {

define([], function() {
var strings = {
"_gIErrcTokcw+/VVwa+ReIA": {
"invalidEnvironmentTypeError": "[!!--##***ĔņvıřōŋmėʼnţŦŷƿȅ ĭš įņvàľĭđ##--!!]",
"invalidGuidStringError": "[!!--##***Īʼnvǻĺĩď ĞŪĬĎ ŝťŕīƞĝ: \"{0}\"##--!!]",
"isFalseValidateError": "[!!--##***Ťħȅ vąŀůę ƒŏŕ \"{0}\" ĭş ƒãľśė##--!!]",
"isNullValidateError": "[!!--##***Ţĥĕ vāľŭē ƒōŗ \"{0}\" mũşť ňơŧ ƅě ʼnũĺľ##--!!]",
"isUndefinedValidateError": "[!!--##***Ŧĥȅ văŀũȅ ƒőŗ \"{0}\" mūśť ņōť ƅě ůƞđēƒıńȅď##--!!]",
"isEmptyStringValidateError": "[!!--##***Ţĥę vȃŀŭȇ ƒōŕ \"{0}\" mũŝť ńōŧ ƀȇ ąň ēmƥŧŷ śţŗįƞġ##--!!]",
"invalidVersionStringError": "[!!--##***Īŋvǻłīď vēřŝıơň ŝţřĭŋġ: \"{0}\"##--!!]",
"logVerboseLevelMessage": "[!!--##***{0}: VĔƦɃŐŚȄ {1}##--!!]",
"invalidEnvironmentTypeError": "[!!--##***ȆńvĩŗőňmȅƞťŤɏƥȅ ĩś ĭƞvȁŀĩď##--!!]",
"invalidGuidStringError": "[!!--##***İŋváĺīđ ĢŮĮĐ šťŗĩʼnğ: \"{0}\"##--!!]",
"isFalseValidateError": "[!!--##***Ţĥȇ vǻŀůě ƒŏř \"{0}\" ĩş ƒȃļşē##--!!]",
"isNullValidateError": "[!!--##***Ţĥȅ váĺūȅ ƒōŗ \"{0}\" můśŧ ňōť Ƅė ņũłľ##--!!]",
"isUndefinedValidateError": "[!!--##***Ťĥě vāŀűė ƒōŕ \"{0}\" můśŧ ńŏţ ƀę ŭńďęƒĭņěď##--!!]",
"isEmptyStringValidateError": "[!!--##***Ťħē váĺűę ƒőř \"{0}\" mųšť ʼnōŧ ƅĕ āń ēmƿŧƴ šŧŗīńģ##--!!]",
"invalidVersionStringError": "[!!--##***İńvåŀīđ vęŕšĭőń şţŕıņģ: \"{0}\"##--!!]",
"logVerboseLevelMessage": "[!!--##***{0}: VĚŘʙŎŜĘ {1}##--!!]",
"logInfoLevelMessage": "[!!--##***{0}: {1}##--!!]",
"logWarningLevelMessage": "[!!--##***{0}: ŴȂŔŃĮŇĜ {1}##--!!]",
"logErrorLevelMessage": "[!!--##***{0}: ĘŖŖŌŔ: {1}##--!!]",
"serviceScopeConsumingBeforeFinished": "[!!--##***Ćȁŋņŏť čőŋšūmě šĕŗvīĉěş ƅēĉàųšę ŧĥȇ śćőƿȇ ıš ņơŧ ƒĭƞĩśħēď ȳȅŧ##--!!]",
"serviceScopeConsumingDuringAutoCreation": "[!!--##***Ċȁƞńŏţ čơʼnšūmė şȇřvıčěš đũŕįƞġ ŚĕřvĩčěŜĉơƿĕ ȃůţōčŗėȃţĩōń##--!!]",
"serviceScopeAlreadyFinishedError": "[!!--##***Ŧħĕ ŜȇŕvĩčȅŜĉőƿē īŝ ȃļŕĕåđɏ ƒıʼnĭśĥȅď##--!!]",
"serviceScopeProvideServiceAfterFinishedError": "[!!--##***Ĉãņƞőŧ ŕėģīšŧěŕ şėŗvĭċę Ƃęćǻůŝę ťĥė şćơƥė ĩŝ äľŕėãđȳ ƒĭŋįşħēđ##--!!]",
"serviceScopeProvideServiceThatAlreadyExists": "[!!--##***Ťĥę śȅŕvıċē ƙȅŷ \"{0}\" ħäş ãļŕĕȁďŷ Ƅęȇń ŕĕġįşţěŕēď ĭņ ţĥįš ŝćōƥȇ##--!!]",
"spErrorInnerErrorText": "[!!--##***ĨŃŅĘŖĔŔŘƠŘ:##--!!]",
"spErrorCallStackText": "[!!--##***ĈĂĻĿŠŢȀĈƘ:##--!!]",
"spErrorLogPropertiesText": "[!!--##***ĿŎĞƤƦŎƤĖƦŢĬĘŞ:##--!!]"
"logWarningLevelMessage": "[!!--##***{0}: ŴȀŘƝĪŃĢ {1}##--!!]",
"logErrorLevelMessage": "[!!--##***{0}: ȄŘŖŐƦ: {1}##--!!]",
"serviceScopeConsumingBeforeFinished": "[!!--##***Čåņŋőţ ĉőņšũmȅ şėŗvĭčėš ƅěċäũśȇ ţĥȇ şċơƿĕ ış ňơţ ƒĩņįşĥȅđ ƴěţ##--!!]",
"serviceScopeConsumingDuringAutoCreation": "[!!--##***Čāņńŏŧ ćŏŋşŭmė şėŗvĩčēŝ đŭŗĭņĝ ŚȇŗvĩčȅŚĉŏƥē åűţőćřēȃťıōň##--!!]",
"serviceScopeAlreadyFinishedError": "[!!--##***Ťĥē ŠėřvįčėŜċōƿē ĩŝ ãŀřęąđɏ ƒįňĩşĥėđ##--!!]",
"serviceScopeProvideServiceAfterFinishedError": "[!!--##***Čäʼnŋōŧ ŗȇġįśţĕř śȅŗvįćȇ ƅĕċȁűšě ťħė šċơƥē įŝ ǻĺřȅâďŷ ƒįňĭšĥĕđ##--!!]",
"serviceScopeProvideServiceThatAlreadyExists": "[!!--##***Ťħĕ śėřvıčė ĸȅȳ \"{0}\" ĥǻŝ áłŗėåđŷ ɓȅȇŋ řĕģįśţėŗĕď ĩƞ ŧħĩŝ ŝĉŏƿę##--!!]",
"spErrorInnerErrorText": "[!!--##***ĬƝŃȆŔȄŔŔƠŘ:##--!!]",
"spErrorCallStackText": "[!!--##***ĆĀĹĻŚŢÃĆƘ:##--!!]",
"spErrorLogPropertiesText": "[!!--##***ĽŐĜƤŔŎƤĔƦŦĪĘŞ:##--!!]"
}

@@ -24,0 +24,0 @@ };

{
"_gIErrcTokcw+/VVwa+ReIA": {
"invalidEnvironmentTypeError": "[!!--##***ĔņvıřōŋmėʼnţŦŷƿȅ ĭš įņvàľĭđ##--!!]",
"invalidGuidStringError": "[!!--##***Īʼnvǻĺĩď ĞŪĬĎ ŝťŕīƞĝ: \"{0}\"##--!!]",
"isFalseValidateError": "[!!--##***Ťħȅ vąŀůę ƒŏŕ \"{0}\" ĭş ƒãľśė##--!!]",
"isNullValidateError": "[!!--##***Ţĥĕ vāľŭē ƒōŗ \"{0}\" mũşť ňơŧ ƅě ʼnũĺľ##--!!]",
"isUndefinedValidateError": "[!!--##***Ŧĥȅ văŀũȅ ƒőŗ \"{0}\" mūśť ņōť ƅě ůƞđēƒıńȅď##--!!]",
"isEmptyStringValidateError": "[!!--##***Ţĥę vȃŀŭȇ ƒōŕ \"{0}\" mũŝť ńōŧ ƀȇ ąň ēmƥŧŷ śţŗįƞġ##--!!]",
"invalidVersionStringError": "[!!--##***Īŋvǻłīď vēřŝıơň ŝţřĭŋġ: \"{0}\"##--!!]",
"logVerboseLevelMessage": "[!!--##***{0}: VĔƦɃŐŚȄ {1}##--!!]",
"invalidEnvironmentTypeError": "[!!--##***ȆńvĩŗőňmȅƞťŤɏƥȅ ĩś ĭƞvȁŀĩď##--!!]",
"invalidGuidStringError": "[!!--##***İŋváĺīđ ĢŮĮĐ šťŗĩʼnğ: \"{0}\"##--!!]",
"isFalseValidateError": "[!!--##***Ţĥȇ vǻŀůě ƒŏř \"{0}\" ĩş ƒȃļşē##--!!]",
"isNullValidateError": "[!!--##***Ţĥȅ váĺūȅ ƒōŗ \"{0}\" můśŧ ňōť Ƅė ņũłľ##--!!]",
"isUndefinedValidateError": "[!!--##***Ťĥě vāŀűė ƒōŕ \"{0}\" můśŧ ńŏţ ƀę ŭńďęƒĭņěď##--!!]",
"isEmptyStringValidateError": "[!!--##***Ťħē váĺűę ƒőř \"{0}\" mųšť ʼnōŧ ƅĕ āń ēmƿŧƴ šŧŗīńģ##--!!]",
"invalidVersionStringError": "[!!--##***İńvåŀīđ vęŕšĭőń şţŕıņģ: \"{0}\"##--!!]",
"logVerboseLevelMessage": "[!!--##***{0}: VĚŘʙŎŜĘ {1}##--!!]",
"logInfoLevelMessage": "[!!--##***{0}: {1}##--!!]",
"logWarningLevelMessage": "[!!--##***{0}: ŴȂŔŃĮŇĜ {1}##--!!]",
"logErrorLevelMessage": "[!!--##***{0}: ĘŖŖŌŔ: {1}##--!!]",
"serviceScopeConsumingBeforeFinished": "[!!--##***Ćȁŋņŏť čőŋšūmě šĕŗvīĉěş ƅēĉàųšę ŧĥȇ śćőƿȇ ıš ņơŧ ƒĭƞĩśħēď ȳȅŧ##--!!]",
"serviceScopeConsumingDuringAutoCreation": "[!!--##***Ċȁƞńŏţ čơʼnšūmė şȇřvıčěš đũŕįƞġ ŚĕřvĩčěŜĉơƿĕ ȃůţōčŗėȃţĩōń##--!!]",
"serviceScopeAlreadyFinishedError": "[!!--##***Ŧħĕ ŜȇŕvĩčȅŜĉőƿē īŝ ȃļŕĕåđɏ ƒıʼnĭśĥȅď##--!!]",
"serviceScopeProvideServiceAfterFinishedError": "[!!--##***Ĉãņƞőŧ ŕėģīšŧěŕ şėŗvĭċę Ƃęćǻůŝę ťĥė şćơƥė ĩŝ äľŕėãđȳ ƒĭŋįşħēđ##--!!]",
"serviceScopeProvideServiceThatAlreadyExists": "[!!--##***Ťĥę śȅŕvıċē ƙȅŷ \"{0}\" ħäş ãļŕĕȁďŷ Ƅęȇń ŕĕġįşţěŕēď ĭņ ţĥįš ŝćōƥȇ##--!!]",
"spErrorInnerErrorText": "[!!--##***ĨŃŅĘŖĔŔŘƠŘ:##--!!]",
"spErrorCallStackText": "[!!--##***ĈĂĻĿŠŢȀĈƘ:##--!!]",
"spErrorLogPropertiesText": "[!!--##***ĿŎĞƤƦŎƤĖƦŢĬĘŞ:##--!!]"
"logWarningLevelMessage": "[!!--##***{0}: ŴȀŘƝĪŃĢ {1}##--!!]",
"logErrorLevelMessage": "[!!--##***{0}: ȄŘŖŐƦ: {1}##--!!]",
"serviceScopeConsumingBeforeFinished": "[!!--##***Čåņŋőţ ĉőņšũmȅ şėŗvĭčėš ƅěċäũśȇ ţĥȇ şċơƿĕ ış ňơţ ƒĩņįşĥȅđ ƴěţ##--!!]",
"serviceScopeConsumingDuringAutoCreation": "[!!--##***Čāņńŏŧ ćŏŋşŭmė şėŗvĩčēŝ đŭŗĭņĝ ŚȇŗvĩčȅŚĉŏƥē åűţőćřēȃťıōň##--!!]",
"serviceScopeAlreadyFinishedError": "[!!--##***Ťĥē ŠėřvįčėŜċōƿē ĩŝ ãŀřęąđɏ ƒįňĩşĥėđ##--!!]",
"serviceScopeProvideServiceAfterFinishedError": "[!!--##***Čäʼnŋōŧ ŗȇġįśţĕř śȅŗvįćȇ ƅĕċȁűšě ťħė šċơƥē įŝ ǻĺřȅâďŷ ƒįňĭšĥĕđ##--!!]",
"serviceScopeProvideServiceThatAlreadyExists": "[!!--##***Ťħĕ śėřvıčė ĸȅȳ \"{0}\" ĥǻŝ áłŗėåđŷ ɓȅȇŋ řĕģįśţėŗĕď ĩƞ ŧħĩŝ ŝĉŏƿę##--!!]",
"spErrorInnerErrorText": "[!!--##***ĬƝŃȆŔȄŔŔƠŘ:##--!!]",
"spErrorCallStackText": "[!!--##***ĆĀĹĻŚŢÃĆƘ:##--!!]",
"spErrorLogPropertiesText": "[!!--##***ĽŐĜƤŔŎƤĔƦŦĪĘŞ:##--!!]"
}
}
define([], function() {
var strings = {
"_gIErrcTokcw+/VVwa+ReIA": {
"invalidEnvironmentTypeError": "***ĒņvĩŕōƞmęŋťŢŷƿē ĭş ĩńvàŀĩđ",
"invalidGuidStringError": "***Ĩňvàŀĭđ ĞŪĬƉ şţŗĩƞğ: \"{0}\"",
"isFalseValidateError": "***Ţħȇ vāłůĕ ƒŏř \"{0}\" ış ƒäŀšę",
"isNullValidateError": "***Ţħȇ vȁļŭȅ ƒơř \"{0}\" mūŝť ƞōŧ ƅĕ ňůĺł",
"isUndefinedValidateError": "***Ťĥę vàŀūē ƒōŕ \"{0}\" mũśţ ŋơŧ Ƅě ŭŋđėƒįŋēđ",
"isEmptyStringValidateError": "***Ŧħȅ vāļųȅ ƒőŗ \"{0}\" mūśţ ŋōŧ Ƃē äņ ėmƥťɏ şţŕīňğ",
"invalidVersionStringError": "***Ĩʼnváĺįđ věŕšīŏń śţŗįňġ: \"{0}\"",
"logVerboseLevelMessage": "***{0}: VȄŖɃŐŞĒ {1}",
"invalidEnvironmentTypeError": "***ĒņvıŕőņmęŋţŦȳƿĕ ĭŝ ıʼnvąĺĩď",
"invalidGuidStringError": "***Ĩńvåļıđ ĢŲĨĎ śŧřįʼnĝ: \"{0}\"",
"isFalseValidateError": "***Ťĥē vȃľůĕ ƒőř \"{0}\" ĭš ƒâľśę",
"isNullValidateError": "***Ŧĥę vȁŀűē ƒőŕ \"{0}\" műŝţ ňōŧ ƅĕ ńūľľ",
"isUndefinedValidateError": "***Ţĥĕ vȁľūȇ ƒŏŗ \"{0}\" mųşť ŋőŧ ƃė ūňďęƒįƞȅđ",
"isEmptyStringValidateError": "***Ťĥē vȁĺũē ƒōŕ \"{0}\" mųšť ńŏţ Ƅė ąƞ ȇmƥţƴ śţŕĭʼnğ",
"invalidVersionStringError": "***Ĩʼnvàłĩđ věŕŝĩőņ šţŗīƞģ: \"{0}\"",
"logVerboseLevelMessage": "***{0}: VĚŘɃŌŠĔ {1}",
"logInfoLevelMessage": "***{0}: {1}",
"logWarningLevelMessage": "***{0}: ŴÀŖŇĮŃĜ {1}",
"logErrorLevelMessage": "***{0}: ĖƦŖŐƦ: {1}",
"serviceScopeConsumingBeforeFinished": "***Ċąŋƞőť ċơƞşůmȇ şēřvįĉȇş ɓĕĉāűšĕ ťĥē ŝčőƿȇ įŝ ņőť ƒĩŋīšħěđ ȳȇţ",
"serviceScopeConsumingDuringAutoCreation": "***Ċąňŋŏŧ ćơňśųmȇ şȇŗvĩćȇŝ ďųřĩņġ ŚęŕvıċēŜċőƥĕ āűţōċŕȇȁŧĭŏŋ",
"serviceScopeAlreadyFinishedError": "***Ťħē ŞęŕvįčėŠčōƿē īş āłŕęȃďŷ ƒĩʼnĭśĥēď",
"serviceScopeProvideServiceAfterFinishedError": "***Ĉȁŋʼnŏŧ ŕěğįşţēř šěŗvīĉē ƃȅćâūśē ţĥĕ ŝčơƥȇ īŝ āĺřēȁďƴ ƒıňıŝħȅđ",
"serviceScopeProvideServiceThatAlreadyExists": "***Ťħė ŝēřvįčȇ ĸėȳ \"{0}\" ħäš äłřĕãđɏ ƀėĕņ ŕȅĝĩşŧěŕěď īň ţħĩŝ šćŏƥȅ",
"spErrorInnerErrorText": "***ĬŃŅĒŘĒŖƦŌƦ:",
"spErrorCallStackText": "***ĆÃŁĽŠŦÃČƘ:",
"spErrorLogPropertiesText": "***ĿŎĞƤŖŎƤȄŔŢĬȆŜ:"
"logWarningLevelMessage": "***{0}: ŴȂƦŅĮƝĜ {1}",
"logErrorLevelMessage": "***{0}: ĔŔŔƠŖ: {1}",
"serviceScopeConsumingBeforeFinished": "***Ċãńʼnŏŧ ĉơʼnŝūmĕ şēŗvĩĉȇś Ƅĕċäŭşě ťħȇ śćőƥě ış ńŏť ƒĭňĩšħȅď ȳęŧ",
"serviceScopeConsumingDuringAutoCreation": "***Ĉȁʼnʼnơť ćơňşųmė ŝęřvįĉēş đŭŗıňġ ŜėřvĩčěŚċơƥē äųţōčŗĕåťīōň",
"serviceScopeAlreadyFinishedError": "***Ťĥě ŠěřvıĉȇŜċơƿȅ ĩś âŀŕĕąďŷ ƒįʼnīśħēď",
"serviceScopeProvideServiceAfterFinishedError": "***Ĉăŋņōŧ ŗȇġįŝŧȅř śěřvįĉȅ ƃěĉáűšė ţĥē ŝćŏƥē īś âłŗȅǻđȳ ƒĭňĭşĥĕđ",
"serviceScopeProvideServiceThatAlreadyExists": "***Ŧħę šēŕvĭĉȇ ƙĕȳ \"{0}\" ħáš äľŗęáďɏ Ƃȇėň ŕȅğįşţēŗěď īƞ ŧħĭš śčōƿě",
"spErrorInnerErrorText": "***ĨŊƝĘŖĘŔŖŎŔ:",
"spErrorCallStackText": "***ČÄĿĽŜŦÄĆƘ:",
"spErrorLogPropertiesText": "***ĻŌĠƤŔƠƤĒƦŦĪĒŚ:"
}

@@ -24,0 +24,0 @@ };

{
"_gIErrcTokcw+/VVwa+ReIA": {
"invalidEnvironmentTypeError": "***ĒņvĩŕōƞmęŋťŢŷƿē ĭş ĩńvàŀĩđ",
"invalidGuidStringError": "***Ĩňvàŀĭđ ĞŪĬƉ şţŗĩƞğ: \"{0}\"",
"isFalseValidateError": "***Ţħȇ vāłůĕ ƒŏř \"{0}\" ış ƒäŀšę",
"isNullValidateError": "***Ţħȇ vȁļŭȅ ƒơř \"{0}\" mūŝť ƞōŧ ƅĕ ňůĺł",
"isUndefinedValidateError": "***Ťĥę vàŀūē ƒōŕ \"{0}\" mũśţ ŋơŧ Ƅě ŭŋđėƒįŋēđ",
"isEmptyStringValidateError": "***Ŧħȅ vāļųȅ ƒőŗ \"{0}\" mūśţ ŋōŧ Ƃē äņ ėmƥťɏ şţŕīňğ",
"invalidVersionStringError": "***Ĩʼnváĺįđ věŕšīŏń śţŗįňġ: \"{0}\"",
"logVerboseLevelMessage": "***{0}: VȄŖɃŐŞĒ {1}",
"invalidEnvironmentTypeError": "***ĒņvıŕőņmęŋţŦȳƿĕ ĭŝ ıʼnvąĺĩď",
"invalidGuidStringError": "***Ĩńvåļıđ ĢŲĨĎ śŧřįʼnĝ: \"{0}\"",
"isFalseValidateError": "***Ťĥē vȃľůĕ ƒőř \"{0}\" ĭš ƒâľśę",
"isNullValidateError": "***Ŧĥę vȁŀűē ƒőŕ \"{0}\" műŝţ ňōŧ ƅĕ ńūľľ",
"isUndefinedValidateError": "***Ţĥĕ vȁľūȇ ƒŏŗ \"{0}\" mųşť ŋőŧ ƃė ūňďęƒįƞȅđ",
"isEmptyStringValidateError": "***Ťĥē vȁĺũē ƒōŕ \"{0}\" mųšť ńŏţ Ƅė ąƞ ȇmƥţƴ śţŕĭʼnğ",
"invalidVersionStringError": "***Ĩʼnvàłĩđ věŕŝĩőņ šţŗīƞģ: \"{0}\"",
"logVerboseLevelMessage": "***{0}: VĚŘɃŌŠĔ {1}",
"logInfoLevelMessage": "***{0}: {1}",
"logWarningLevelMessage": "***{0}: ŴÀŖŇĮŃĜ {1}",
"logErrorLevelMessage": "***{0}: ĖƦŖŐƦ: {1}",
"serviceScopeConsumingBeforeFinished": "***Ċąŋƞőť ċơƞşůmȇ şēřvįĉȇş ɓĕĉāűšĕ ťĥē ŝčőƿȇ įŝ ņőť ƒĩŋīšħěđ ȳȇţ",
"serviceScopeConsumingDuringAutoCreation": "***Ċąňŋŏŧ ćơňśųmȇ şȇŗvĩćȇŝ ďųřĩņġ ŚęŕvıċēŜċőƥĕ āűţōċŕȇȁŧĭŏŋ",
"serviceScopeAlreadyFinishedError": "***Ťħē ŞęŕvįčėŠčōƿē īş āłŕęȃďŷ ƒĩʼnĭśĥēď",
"serviceScopeProvideServiceAfterFinishedError": "***Ĉȁŋʼnŏŧ ŕěğįşţēř šěŗvīĉē ƃȅćâūśē ţĥĕ ŝčơƥȇ īŝ āĺřēȁďƴ ƒıňıŝħȅđ",
"serviceScopeProvideServiceThatAlreadyExists": "***Ťħė ŝēřvįčȇ ĸėȳ \"{0}\" ħäš äłřĕãđɏ ƀėĕņ ŕȅĝĩşŧěŕěď īň ţħĩŝ šćŏƥȅ",
"spErrorInnerErrorText": "***ĬŃŅĒŘĒŖƦŌƦ:",
"spErrorCallStackText": "***ĆÃŁĽŠŦÃČƘ:",
"spErrorLogPropertiesText": "***ĿŎĞƤŖŎƤȄŔŢĬȆŜ:"
"logWarningLevelMessage": "***{0}: ŴȂƦŅĮƝĜ {1}",
"logErrorLevelMessage": "***{0}: ĔŔŔƠŖ: {1}",
"serviceScopeConsumingBeforeFinished": "***Ċãńʼnŏŧ ĉơʼnŝūmĕ şēŗvĩĉȇś Ƅĕċäŭşě ťħȇ śćőƥě ış ńŏť ƒĭňĩšħȅď ȳęŧ",
"serviceScopeConsumingDuringAutoCreation": "***Ĉȁʼnʼnơť ćơňşųmė ŝęřvįĉēş đŭŗıňġ ŜėřvĩčěŚċơƥē äųţōčŗĕåťīōň",
"serviceScopeAlreadyFinishedError": "***Ťĥě ŠěřvıĉȇŜċơƿȅ ĩś âŀŕĕąďŷ ƒįʼnīśħēď",
"serviceScopeProvideServiceAfterFinishedError": "***Ĉăŋņōŧ ŗȇġįŝŧȅř śěřvįĉȅ ƃěĉáűšė ţĥē ŝćŏƥē īś âłŗȅǻđȳ ƒĭňĭşĥĕđ",
"serviceScopeProvideServiceThatAlreadyExists": "***Ŧħę šēŕvĭĉȇ ƙĕȳ \"{0}\" ħáš äľŗęáďɏ Ƃȇėň ŕȅğįşţēŗěď īƞ ŧħĭš śčōƿě",
"spErrorInnerErrorText": "***ĨŊƝĘŖĘŔŖŎŔ:",
"spErrorCallStackText": "***ČÄĿĽŜŦÄĆƘ:",
"spErrorLogPropertiesText": "***ĻŌĠƤŔƠƤĒƦŦĪĒŚ:"
}
}
{
"name": "@microsoft/sp-core-library",
"version": "1.2.0",
"version": "1.3.0",
"description": "SharePoint Framework core libraries",

@@ -10,3 +10,3 @@ "license": "SEE LICENSE IN \"EULA\" FOLDER",

"devDependencies": {
"@ms/sp-build-internal-web": "~0.6.1",
"@ms/sp-build-internal-web": "~0.7.0",
"@types/chai": "3.4.34",

@@ -18,4 +18,4 @@ "@types/mocha": "2.2.38",

"dependencies": {
"@microsoft/sp-lodash-subset": "~1.2.0",
"@microsoft/sp-module-interfaces": "~1.2.0",
"@microsoft/sp-lodash-subset": "~1.3.0",
"@microsoft/sp-module-interfaces": "~1.3.0",
"@types/es6-collections": "0.5.29",

@@ -22,0 +22,0 @@ "@types/webpack-env": "1.13.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc