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

@pnp/common

Package Overview
Dependencies
Maintainers
6
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnp/common - npm Package Compare versions

Comparing version 1.0.0-beta.11 to 1.0.0-rc.0

docs/custom-httpclientimpl.md

285

dist/common.es5.js
/**
@license
* @pnp/common v1.0.0-beta.11 - pnp - provides shared functionality across all pnp libraries
* @pnp/common v1.0.0-rc.0 - pnp - provides shared functionality across all pnp libraries
* MIT (https://github.com/pnp/pnp/blob/master/LICENSE)

@@ -303,2 +303,168 @@ * Copyright (c) 2018 Microsoft

/**
* Gets a callback function which will maintain context across async calls.
* Allows for the calling pattern getCtxCallback(thisobj, method, methodarg1, methodarg2, ...)
*
* @param context The object that will be the 'this' value in the callback
* @param method The method to which we will apply the context and parameters
* @param params Optional, additional arguments to supply to the wrapped method when it is invoked
*/
function getCtxCallback(context, method) {
var params = [];
for (var _i = 2; _i < arguments.length; _i++) {
params[_i - 2] = arguments[_i];
}
return function () {
method.apply(context, params);
};
}
/**
* Adds a value to a date
*
* @param date The date to which we will add units, done in local time
* @param interval The name of the interval to add, one of: ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second']
* @param units The amount to add to date of the given interval
*
* http://stackoverflow.com/questions/1197928/how-to-add-30-minutes-to-a-javascript-date-object
*/
function dateAdd(date, interval, units) {
var ret = new Date(date); // don't change original date
switch (interval.toLowerCase()) {
case "year":
ret.setFullYear(ret.getFullYear() + units);
break;
case "quarter":
ret.setMonth(ret.getMonth() + 3 * units);
break;
case "month":
ret.setMonth(ret.getMonth() + units);
break;
case "week":
ret.setDate(ret.getDate() + 7 * units);
break;
case "day":
ret.setDate(ret.getDate() + units);
break;
case "hour":
ret.setTime(ret.getTime() + units * 3600000);
break;
case "minute":
ret.setTime(ret.getTime() + units * 60000);
break;
case "second":
ret.setTime(ret.getTime() + units * 1000);
break;
default:
ret = undefined;
break;
}
return ret;
}
/**
* Combines an arbitrary set of paths ensuring and normalizes the slashes
*
* @param paths 0 to n path parts to combine
*/
function combinePaths() {
var paths = [];
for (var _i = 0; _i < arguments.length; _i++) {
paths[_i] = arguments[_i];
}
return paths
.filter(function (path) { return !Util.stringIsNullOrEmpty(path); })
.map(function (path) { return path.replace(/^[\\|\/]/, "").replace(/[\\|\/]$/, ""); })
.join("/")
.replace(/\\/g, "/");
}
/**
* Gets a random string of chars length
*
* @param chars The length of the random string to generate
*/
function getRandomString(chars) {
var text = new Array(chars);
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for (var i = 0; i < chars; i++) {
text[i] = possible.charAt(Math.floor(Math.random() * possible.length));
}
return text.join("");
}
/**
* Gets a random GUID value
*
* http://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript
*/
/* tslint:disable no-bitwise */
function getGUID() {
var d = new Date().getTime();
var guid = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
var r = (d + Math.random() * 16) % 16 | 0;
d = Math.floor(d / 16);
return (c === "x" ? r : (r & 0x3 | 0x8)).toString(16);
});
return guid;
}
/* tslint:enable */
/**
* Determines if a given value is a function
*
* @param cf The thing to test for functionness
*/
function isFunc(cf) {
return typeof cf === "function";
}
/**
* Determines if an object is both defined and not null
* @param obj Object to test
*/
function objectDefinedNotNull(obj) {
return typeof obj !== "undefined" && obj !== null;
}
/**
* @returns whether the provided parameter is a JavaScript Array or not.
*/
function isArray(array) {
if (Array.isArray) {
return Array.isArray(array);
}
return array && typeof array.length === "number" && array.constructor === Array;
}
/**
* Provides functionality to extend the given object by doing a shallow copy
*
* @param target The object to which properties will be copied
* @param source The source object from which properties will be copied
* @param noOverwrite If true existing properties on the target are not overwritten from the source
*
*/
function extend(target, source, noOverwrite) {
if (noOverwrite === void 0) { noOverwrite = false; }
if (!Util.objectDefinedNotNull(source)) {
return target;
}
// ensure we don't overwrite things we don't want overwritten
var check = noOverwrite ? function (o, i) { return !(i in o); } : function () { return true; };
return Object.getOwnPropertyNames(source)
.filter(function (v) { return check(target, v); })
.reduce(function (t, v) {
t[v] = source[v];
return t;
}, target);
}
/**
* Determines if a given url is absolute
*
* @param url The url to check to see if it is absolute
*/
function isUrlAbsolute(url) {
return /^https?:\/\/|^\/\//i.test(url);
}
/**
* Determines if a string is null or empty or undefined
*
* @param s The string to test
*/
function stringIsNullOrEmpty(s) {
return typeof s === "undefined" || s === null || s.length < 1;
}
var Util = /** @class */ (function () {

@@ -315,11 +481,3 @@ function Util() {

*/
Util.getCtxCallback = function (context, method) {
var params = [];
for (var _i = 2; _i < arguments.length; _i++) {
params[_i - 2] = arguments[_i];
}
return function () {
method.apply(context, params);
};
};
Util.getCtxCallback = getCtxCallback;
/**

@@ -334,35 +492,3 @@ * Adds a value to a date

*/
Util.dateAdd = function (date, interval, units) {
var ret = new Date(date); // don't change original date
switch (interval.toLowerCase()) {
case "year":
ret.setFullYear(ret.getFullYear() + units);
break;
case "quarter":
ret.setMonth(ret.getMonth() + 3 * units);
break;
case "month":
ret.setMonth(ret.getMonth() + units);
break;
case "week":
ret.setDate(ret.getDate() + 7 * units);
break;
case "day":
ret.setDate(ret.getDate() + units);
break;
case "hour":
ret.setTime(ret.getTime() + units * 3600000);
break;
case "minute":
ret.setTime(ret.getTime() + units * 60000);
break;
case "second":
ret.setTime(ret.getTime() + units * 1000);
break;
default:
ret = undefined;
break;
}
return ret;
};
Util.dateAdd = dateAdd;
/**

@@ -373,13 +499,3 @@ * Combines an arbitrary set of paths ensuring and normalizes the slashes

*/
Util.combinePaths = function () {
var paths = [];
for (var _i = 0; _i < arguments.length; _i++) {
paths[_i] = arguments[_i];
}
return paths
.filter(function (path) { return !Util.stringIsNullOrEmpty(path); })
.map(function (path) { return path.replace(/^[\\|\/]/, "").replace(/[\\|\/]$/, ""); })
.join("/")
.replace(/\\/g, "/");
};
Util.combinePaths = combinePaths;
/**

@@ -390,10 +506,3 @@ * Gets a random string of chars length

*/
Util.getRandomString = function (chars) {
var text = new Array(chars);
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for (var i = 0; i < chars; i++) {
text[i] = possible.charAt(Math.floor(Math.random() * possible.length));
}
return text.join("");
};
Util.getRandomString = getRandomString;
/**

@@ -404,13 +513,3 @@ * Gets a random GUID value

*/
/* tslint:disable no-bitwise */
Util.getGUID = function () {
var d = new Date().getTime();
var guid = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
var r = (d + Math.random() * 16) % 16 | 0;
d = Math.floor(d / 16);
return (c === "x" ? r : (r & 0x3 | 0x8)).toString(16);
});
return guid;
};
/* tslint:enable */
Util.getGUID = getGUID;
/**

@@ -421,5 +520,3 @@ * Determines if a given value is a function

*/
Util.isFunc = function (cf) {
return typeof cf === "function";
};
Util.isFunc = isFunc;
/**

@@ -429,14 +526,7 @@ * Determines if an object is both defined and not null

*/
Util.objectDefinedNotNull = function (obj) {
return typeof obj !== "undefined" && obj !== null;
};
Util.objectDefinedNotNull = objectDefinedNotNull;
/**
* @returns whether the provided parameter is a JavaScript Array or not.
*/
Util.isArray = function (array) {
if (Array.isArray) {
return Array.isArray(array);
}
return array && typeof array.length === "number" && array.constructor === Array;
};
Util.isArray = isArray;
/**

@@ -450,16 +540,3 @@ * Provides functionality to extend the given object by doing a shallow copy

*/
Util.extend = function (target, source, noOverwrite) {
if (noOverwrite === void 0) { noOverwrite = false; }
if (!Util.objectDefinedNotNull(source)) {
return target;
}
// ensure we don't overwrite things we don't want overwritten
var check = noOverwrite ? function (o, i) { return !(i in o); } : function () { return true; };
return Object.getOwnPropertyNames(source)
.filter(function (v) { return check(target, v); })
.reduce(function (t, v) {
t[v] = source[v];
return t;
}, target);
};
Util.extend = extend;
/**

@@ -470,5 +547,3 @@ * Determines if a given url is absolute

*/
Util.isUrlAbsolute = function (url) {
return /^https?:\/\/|^\/\//i.test(url);
};
Util.isUrlAbsolute = isUrlAbsolute;
/**

@@ -479,5 +554,3 @@ * Determines if a string is null or empty or undefined

*/
Util.stringIsNullOrEmpty = function (s) {
return typeof s === "undefined" || s === null || s.length < 1;
};
Util.stringIsNullOrEmpty = stringIsNullOrEmpty;
return Util;

@@ -776,3 +849,3 @@ }());

export { Util, readBlobAsText, readBlobAsArrayBuffer, Dictionary, deprecated, beta, UrlException, setup, RuntimeConfigImpl, RuntimeConfig, mergeHeaders, mergeOptions, FetchClient, BearerTokenFetchClient, PnPClientStorageWrapper, PnPClientStorage };
export { readBlobAsText, readBlobAsArrayBuffer, Dictionary, deprecated, beta, UrlException, setup, RuntimeConfigImpl, RuntimeConfig, mergeHeaders, mergeOptions, FetchClient, BearerTokenFetchClient, PnPClientStorageWrapper, PnPClientStorage, getCtxCallback, dateAdd, combinePaths, getRandomString, getGUID, isFunc, objectDefinedNotNull, isArray, extend, isUrlAbsolute, stringIsNullOrEmpty, Util };
//# sourceMappingURL=common.es5.js.map
/**
@license
* @pnp/common v1.0.0-beta.11 - pnp - provides shared functionality across all pnp libraries
* @pnp/common v1.0.0-rc.0 - pnp - provides shared functionality across all pnp libraries
* MIT (https://github.com/pnp/pnp/blob/master/LICENSE)

@@ -220,3 +220,3 @@ * Copyright (c) 2018 Microsoft

@license
* @pnp/logging v1.0.0-beta.11 - pnp - light-weight, subscribable logging framework
* @pnp/logging v1.0.0-rc.0 - pnp - light-weight, subscribable logging framework
* MIT (https://github.com/pnp/pnp/blob/master/LICENSE)

@@ -320,3 +320,3 @@ * Copyright (c) 2018 Microsoft

Logger.error = function (err) {
Logger.instance.log({ data: err, level: 3 /* Error */, message: "[" + err.name + "]::" + err.message });
Logger.instance.log({ data: err, level: 3 /* Error */, message: err.message });
};

@@ -435,3 +435,180 @@ return Logger;

"use strict";
/* harmony export (immutable) */ __webpack_exports__["e"] = getCtxCallback;
/* harmony export (immutable) */ __webpack_exports__["c"] = dateAdd;
/* harmony export (immutable) */ __webpack_exports__["b"] = combinePaths;
/* harmony export (immutable) */ __webpack_exports__["g"] = getRandomString;
/* harmony export (immutable) */ __webpack_exports__["f"] = getGUID;
/* harmony export (immutable) */ __webpack_exports__["i"] = isFunc;
/* harmony export (immutable) */ __webpack_exports__["k"] = objectDefinedNotNull;
/* harmony export (immutable) */ __webpack_exports__["h"] = isArray;
/* harmony export (immutable) */ __webpack_exports__["d"] = extend;
/* harmony export (immutable) */ __webpack_exports__["j"] = isUrlAbsolute;
/* harmony export (immutable) */ __webpack_exports__["l"] = stringIsNullOrEmpty;
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Util; });
/**
* Gets a callback function which will maintain context across async calls.
* Allows for the calling pattern getCtxCallback(thisobj, method, methodarg1, methodarg2, ...)
*
* @param context The object that will be the 'this' value in the callback
* @param method The method to which we will apply the context and parameters
* @param params Optional, additional arguments to supply to the wrapped method when it is invoked
*/
function getCtxCallback(context, method) {
var params = [];
for (var _i = 2; _i < arguments.length; _i++) {
params[_i - 2] = arguments[_i];
}
return function () {
method.apply(context, params);
};
}
/**
* Adds a value to a date
*
* @param date The date to which we will add units, done in local time
* @param interval The name of the interval to add, one of: ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second']
* @param units The amount to add to date of the given interval
*
* http://stackoverflow.com/questions/1197928/how-to-add-30-minutes-to-a-javascript-date-object
*/
function dateAdd(date, interval, units) {
var ret = new Date(date); // don't change original date
switch (interval.toLowerCase()) {
case "year":
ret.setFullYear(ret.getFullYear() + units);
break;
case "quarter":
ret.setMonth(ret.getMonth() + 3 * units);
break;
case "month":
ret.setMonth(ret.getMonth() + units);
break;
case "week":
ret.setDate(ret.getDate() + 7 * units);
break;
case "day":
ret.setDate(ret.getDate() + units);
break;
case "hour":
ret.setTime(ret.getTime() + units * 3600000);
break;
case "minute":
ret.setTime(ret.getTime() + units * 60000);
break;
case "second":
ret.setTime(ret.getTime() + units * 1000);
break;
default:
ret = undefined;
break;
}
return ret;
}
/**
* Combines an arbitrary set of paths ensuring and normalizes the slashes
*
* @param paths 0 to n path parts to combine
*/
function combinePaths() {
var paths = [];
for (var _i = 0; _i < arguments.length; _i++) {
paths[_i] = arguments[_i];
}
return paths
.filter(function (path) { return !Util.stringIsNullOrEmpty(path); })
.map(function (path) { return path.replace(/^[\\|\/]/, "").replace(/[\\|\/]$/, ""); })
.join("/")
.replace(/\\/g, "/");
}
/**
* Gets a random string of chars length
*
* @param chars The length of the random string to generate
*/
function getRandomString(chars) {
var text = new Array(chars);
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for (var i = 0; i < chars; i++) {
text[i] = possible.charAt(Math.floor(Math.random() * possible.length));
}
return text.join("");
}
/**
* Gets a random GUID value
*
* http://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript
*/
/* tslint:disable no-bitwise */
function getGUID() {
var d = new Date().getTime();
var guid = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
var r = (d + Math.random() * 16) % 16 | 0;
d = Math.floor(d / 16);
return (c === "x" ? r : (r & 0x3 | 0x8)).toString(16);
});
return guid;
}
/* tslint:enable */
/**
* Determines if a given value is a function
*
* @param cf The thing to test for functionness
*/
function isFunc(cf) {
return typeof cf === "function";
}
/**
* Determines if an object is both defined and not null
* @param obj Object to test
*/
function objectDefinedNotNull(obj) {
return typeof obj !== "undefined" && obj !== null;
}
/**
* @returns whether the provided parameter is a JavaScript Array or not.
*/
function isArray(array) {
if (Array.isArray) {
return Array.isArray(array);
}
return array && typeof array.length === "number" && array.constructor === Array;
}
/**
* Provides functionality to extend the given object by doing a shallow copy
*
* @param target The object to which properties will be copied
* @param source The source object from which properties will be copied
* @param noOverwrite If true existing properties on the target are not overwritten from the source
*
*/
function extend(target, source, noOverwrite) {
if (noOverwrite === void 0) { noOverwrite = false; }
if (!Util.objectDefinedNotNull(source)) {
return target;
}
// ensure we don't overwrite things we don't want overwritten
var check = noOverwrite ? function (o, i) { return !(i in o); } : function () { return true; };
return Object.getOwnPropertyNames(source)
.filter(function (v) { return check(target, v); })
.reduce(function (t, v) {
t[v] = source[v];
return t;
}, target);
}
/**
* Determines if a given url is absolute
*
* @param url The url to check to see if it is absolute
*/
function isUrlAbsolute(url) {
return /^https?:\/\/|^\/\//i.test(url);
}
/**
* Determines if a string is null or empty or undefined
*
* @param s The string to test
*/
function stringIsNullOrEmpty(s) {
return typeof s === "undefined" || s === null || s.length < 1;
}
var Util = /** @class */ (function () {

@@ -448,11 +625,3 @@ function Util() {

*/
Util.getCtxCallback = function (context, method) {
var params = [];
for (var _i = 2; _i < arguments.length; _i++) {
params[_i - 2] = arguments[_i];
}
return function () {
method.apply(context, params);
};
};
Util.getCtxCallback = getCtxCallback;
/**

@@ -467,35 +636,3 @@ * Adds a value to a date

*/
Util.dateAdd = function (date, interval, units) {
var ret = new Date(date); // don't change original date
switch (interval.toLowerCase()) {
case "year":
ret.setFullYear(ret.getFullYear() + units);
break;
case "quarter":
ret.setMonth(ret.getMonth() + 3 * units);
break;
case "month":
ret.setMonth(ret.getMonth() + units);
break;
case "week":
ret.setDate(ret.getDate() + 7 * units);
break;
case "day":
ret.setDate(ret.getDate() + units);
break;
case "hour":
ret.setTime(ret.getTime() + units * 3600000);
break;
case "minute":
ret.setTime(ret.getTime() + units * 60000);
break;
case "second":
ret.setTime(ret.getTime() + units * 1000);
break;
default:
ret = undefined;
break;
}
return ret;
};
Util.dateAdd = dateAdd;
/**

@@ -506,13 +643,3 @@ * Combines an arbitrary set of paths ensuring and normalizes the slashes

*/
Util.combinePaths = function () {
var paths = [];
for (var _i = 0; _i < arguments.length; _i++) {
paths[_i] = arguments[_i];
}
return paths
.filter(function (path) { return !Util.stringIsNullOrEmpty(path); })
.map(function (path) { return path.replace(/^[\\|\/]/, "").replace(/[\\|\/]$/, ""); })
.join("/")
.replace(/\\/g, "/");
};
Util.combinePaths = combinePaths;
/**

@@ -523,10 +650,3 @@ * Gets a random string of chars length

*/
Util.getRandomString = function (chars) {
var text = new Array(chars);
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for (var i = 0; i < chars; i++) {
text[i] = possible.charAt(Math.floor(Math.random() * possible.length));
}
return text.join("");
};
Util.getRandomString = getRandomString;
/**

@@ -537,13 +657,3 @@ * Gets a random GUID value

*/
/* tslint:disable no-bitwise */
Util.getGUID = function () {
var d = new Date().getTime();
var guid = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
var r = (d + Math.random() * 16) % 16 | 0;
d = Math.floor(d / 16);
return (c === "x" ? r : (r & 0x3 | 0x8)).toString(16);
});
return guid;
};
/* tslint:enable */
Util.getGUID = getGUID;
/**

@@ -554,5 +664,3 @@ * Determines if a given value is a function

*/
Util.isFunc = function (cf) {
return typeof cf === "function";
};
Util.isFunc = isFunc;
/**

@@ -562,14 +670,7 @@ * Determines if an object is both defined and not null

*/
Util.objectDefinedNotNull = function (obj) {
return typeof obj !== "undefined" && obj !== null;
};
Util.objectDefinedNotNull = objectDefinedNotNull;
/**
* @returns whether the provided parameter is a JavaScript Array or not.
*/
Util.isArray = function (array) {
if (Array.isArray) {
return Array.isArray(array);
}
return array && typeof array.length === "number" && array.constructor === Array;
};
Util.isArray = isArray;
/**

@@ -583,16 +684,3 @@ * Provides functionality to extend the given object by doing a shallow copy

*/
Util.extend = function (target, source, noOverwrite) {
if (noOverwrite === void 0) { noOverwrite = false; }
if (!Util.objectDefinedNotNull(source)) {
return target;
}
// ensure we don't overwrite things we don't want overwritten
var check = noOverwrite ? function (o, i) { return !(i in o); } : function () { return true; };
return Object.getOwnPropertyNames(source)
.filter(function (v) { return check(target, v); })
.reduce(function (t, v) {
t[v] = source[v];
return t;
}, target);
};
Util.extend = extend;
/**

@@ -603,5 +691,3 @@ * Determines if a given url is absolute

*/
Util.isUrlAbsolute = function (url) {
return /^https?:\/\/|^\/\//i.test(url);
};
Util.isUrlAbsolute = isUrlAbsolute;
/**

@@ -612,5 +698,3 @@ * Determines if a string is null or empty or undefined

*/
Util.stringIsNullOrEmpty = function (s) {
return typeof s === "undefined" || s === null || s.length < 1;
};
Util.stringIsNullOrEmpty = stringIsNullOrEmpty;
return Util;

@@ -904,14 +988,13 @@ }());

/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_common__ = __webpack_require__(6);
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "Util", function() { return __WEBPACK_IMPORTED_MODULE_0__src_common__["i"]; });
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "readBlobAsText", function() { return __WEBPACK_IMPORTED_MODULE_0__src_common__["o"]; });
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "readBlobAsArrayBuffer", function() { return __WEBPACK_IMPORTED_MODULE_0__src_common__["n"]; });
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "readBlobAsText", function() { return __WEBPACK_IMPORTED_MODULE_0__src_common__["y"]; });
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "readBlobAsArrayBuffer", function() { return __WEBPACK_IMPORTED_MODULE_0__src_common__["x"]; });
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "Dictionary", function() { return __WEBPACK_IMPORTED_MODULE_0__src_common__["b"]; });
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "deprecated", function() { return __WEBPACK_IMPORTED_MODULE_0__src_common__["k"]; });
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "deprecated", function() { return __WEBPACK_IMPORTED_MODULE_0__src_common__["m"]; });
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "beta", function() { return __WEBPACK_IMPORTED_MODULE_0__src_common__["j"]; });
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "UrlException", function() { return __WEBPACK_IMPORTED_MODULE_0__src_common__["h"]; });
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "setup", function() { return __WEBPACK_IMPORTED_MODULE_0__src_common__["p"]; });
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "setup", function() { return __WEBPACK_IMPORTED_MODULE_0__src_common__["z"]; });
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "RuntimeConfigImpl", function() { return __WEBPACK_IMPORTED_MODULE_0__src_common__["g"]; });
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "RuntimeConfig", function() { return __WEBPACK_IMPORTED_MODULE_0__src_common__["f"]; });
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "mergeHeaders", function() { return __WEBPACK_IMPORTED_MODULE_0__src_common__["l"]; });
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "mergeOptions", function() { return __WEBPACK_IMPORTED_MODULE_0__src_common__["m"]; });
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "mergeHeaders", function() { return __WEBPACK_IMPORTED_MODULE_0__src_common__["u"]; });
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "mergeOptions", function() { return __WEBPACK_IMPORTED_MODULE_0__src_common__["v"]; });
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "FetchClient", function() { return __WEBPACK_IMPORTED_MODULE_0__src_common__["c"]; });

@@ -921,2 +1004,14 @@ /* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "BearerTokenFetchClient", function() { return __WEBPACK_IMPORTED_MODULE_0__src_common__["a"]; });

/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "PnPClientStorage", function() { return __WEBPACK_IMPORTED_MODULE_0__src_common__["d"]; });
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "getCtxCallback", function() { return __WEBPACK_IMPORTED_MODULE_0__src_common__["o"]; });
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "dateAdd", function() { return __WEBPACK_IMPORTED_MODULE_0__src_common__["l"]; });
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "combinePaths", function() { return __WEBPACK_IMPORTED_MODULE_0__src_common__["k"]; });
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "getRandomString", function() { return __WEBPACK_IMPORTED_MODULE_0__src_common__["q"]; });
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "getGUID", function() { return __WEBPACK_IMPORTED_MODULE_0__src_common__["p"]; });
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "isFunc", function() { return __WEBPACK_IMPORTED_MODULE_0__src_common__["s"]; });
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "objectDefinedNotNull", function() { return __WEBPACK_IMPORTED_MODULE_0__src_common__["w"]; });
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "isArray", function() { return __WEBPACK_IMPORTED_MODULE_0__src_common__["r"]; });
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "extend", function() { return __WEBPACK_IMPORTED_MODULE_0__src_common__["n"]; });
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "isUrlAbsolute", function() { return __WEBPACK_IMPORTED_MODULE_0__src_common__["t"]; });
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "stringIsNullOrEmpty", function() { return __WEBPACK_IMPORTED_MODULE_0__src_common__["A"]; });
/* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "Util", function() { return __WEBPACK_IMPORTED_MODULE_0__src_common__["i"]; });

@@ -931,4 +1026,4 @@ //# sourceMappingURL=index.js.map

/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__blobutil__ = __webpack_require__(7);
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "n", function() { return __WEBPACK_IMPORTED_MODULE_0__blobutil__["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "o", function() { return __WEBPACK_IMPORTED_MODULE_0__blobutil__["b"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "x", function() { return __WEBPACK_IMPORTED_MODULE_0__blobutil__["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "y", function() { return __WEBPACK_IMPORTED_MODULE_0__blobutil__["b"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__collections__ = __webpack_require__(0);

@@ -938,3 +1033,3 @@ /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_1__collections__["a"]; });

/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "j", function() { return __WEBPACK_IMPORTED_MODULE_2__decorators__["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "k", function() { return __WEBPACK_IMPORTED_MODULE_2__decorators__["b"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "m", function() { return __WEBPACK_IMPORTED_MODULE_2__decorators__["b"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__exceptions__ = __webpack_require__(9);

@@ -945,8 +1040,8 @@ /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_3__exceptions__["a"]; });

/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_4__libconfig__["b"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "p", function() { return __WEBPACK_IMPORTED_MODULE_4__libconfig__["c"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "z", function() { return __WEBPACK_IMPORTED_MODULE_4__libconfig__["c"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__netutil__ = __webpack_require__(10);
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_5__netutil__["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_5__netutil__["b"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "l", function() { return __WEBPACK_IMPORTED_MODULE_5__netutil__["c"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "m", function() { return __WEBPACK_IMPORTED_MODULE_5__netutil__["d"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "u", function() { return __WEBPACK_IMPORTED_MODULE_5__netutil__["c"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "v", function() { return __WEBPACK_IMPORTED_MODULE_5__netutil__["d"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__storage__ = __webpack_require__(12);

@@ -956,3 +1051,14 @@ /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_6__storage__["a"]; });

/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__util__ = __webpack_require__(2);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return __WEBPACK_IMPORTED_MODULE_7__util__["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "i", function() { return __WEBPACK_IMPORTED_MODULE_7__util__["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "k", function() { return __WEBPACK_IMPORTED_MODULE_7__util__["b"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "l", function() { return __WEBPACK_IMPORTED_MODULE_7__util__["c"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "n", function() { return __WEBPACK_IMPORTED_MODULE_7__util__["d"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "o", function() { return __WEBPACK_IMPORTED_MODULE_7__util__["e"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "p", function() { return __WEBPACK_IMPORTED_MODULE_7__util__["f"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "q", function() { return __WEBPACK_IMPORTED_MODULE_7__util__["g"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "r", function() { return __WEBPACK_IMPORTED_MODULE_7__util__["h"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "s", function() { return __WEBPACK_IMPORTED_MODULE_7__util__["i"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "t", function() { return __WEBPACK_IMPORTED_MODULE_7__util__["j"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "w", function() { return __WEBPACK_IMPORTED_MODULE_7__util__["k"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "A", function() { return __WEBPACK_IMPORTED_MODULE_7__util__["l"]; });

@@ -959,0 +1065,0 @@

/**
@license
* @pnp/common v1.0.0-beta.11 - pnp - provides shared functionality across all pnp libraries
* @pnp/common v1.0.0-rc.0 - pnp - provides shared functionality across all pnp libraries
* MIT (https://github.com/pnp/pnp/blob/master/LICENSE)

@@ -12,3 +12,3 @@ * Copyright (c) 2018 Microsoft

@license
* @pnp/logging v1.0.0-beta.11 - pnp - light-weight, subscribable logging framework
* @pnp/logging v1.0.0-rc.0 - pnp - light-weight, subscribable logging framework
* MIT (https://github.com/pnp/pnp/blob/master/LICENSE)

@@ -20,3 +20,3 @@ * Copyright (c) 2018 Microsoft

*/
var r=function(){function e(){}return Object.defineProperty(e,"activeLogLevel",{get:function(){return e.instance.activeLogLevel},set:function(t){e.instance.activeLogLevel=t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"instance",{get:function(){return void 0!==e._instance&&null!==e._instance||(e._instance=new o),e._instance},enumerable:!0,configurable:!0}),e.subscribe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];t.map(function(t){return e.instance.subscribe(t)})},e.clearSubscribers=function(){return e.instance.clearSubscribers()},Object.defineProperty(e,"count",{get:function(){return e.instance.count},enumerable:!0,configurable:!0}),e.write=function(t,n){void 0===n&&(n=0),e.instance.log({level:n,message:t})},e.writeJSON=function(t,n){void 0===n&&(n=0),e.instance.log({level:n,message:JSON.stringify(t)})},e.log=function(t){e.instance.log(t)},e.error=function(t){e.instance.log({data:t,level:3,message:"["+t.name+"]::"+t.message})},e}(),o=function(){function e(e,t){void 0===e&&(e=2),void 0===t&&(t=[]),this.activeLogLevel=e,this.subscribers=t}return e.prototype.subscribe=function(e){this.subscribers.push(e)},e.prototype.clearSubscribers=function(){var e=this.subscribers.slice(0);return this.subscribers.length=0,e},Object.defineProperty(e.prototype,"count",{get:function(){return this.subscribers.length},enumerable:!0,configurable:!0}),e.prototype.write=function(e,t){void 0===t&&(t=0),this.log({level:t,message:e})},e.prototype.log=function(e){void 0!==e&&this.activeLogLevel<=e.level&&this.subscribers.map(function(t){return t.log(e)})},e}();(function(){function e(){}e.prototype.log=function(e){var t=this.format(e);switch(e.level){case 0:case 1:console.log(t);break;case 2:console.warn(t);break;case 3:console.error(t)}},e.prototype.format=function(e){var t=[];return t.push("Message: "+e.message),void 0!==e.data&&t.push(" Data: "+JSON.stringify(e.data)),t.join("")}})(),function(){function e(e){this.method=e}e.prototype.log=function(e){this.method(e)}}()},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){function e(){}return e.getCtxCallback=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){t.apply(e,n)}},e.dateAdd=function(e,t,n){var r=new Date(e);switch(t.toLowerCase()){case"year":r.setFullYear(r.getFullYear()+n);break;case"quarter":r.setMonth(r.getMonth()+3*n);break;case"month":r.setMonth(r.getMonth()+n);break;case"week":r.setDate(r.getDate()+7*n);break;case"day":r.setDate(r.getDate()+n);break;case"hour":r.setTime(r.getTime()+36e5*n);break;case"minute":r.setTime(r.getTime()+6e4*n);break;case"second":r.setTime(r.getTime()+1e3*n);break;default:r=void 0}return r},e.combinePaths=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.filter(function(t){return!e.stringIsNullOrEmpty(t)}).map(function(e){return e.replace(/^[\\|\/]/,"").replace(/[\\|\/]$/,"")}).join("/").replace(/\\/g,"/")},e.getRandomString=function(e){for(var t=new Array(e),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=0;r<e;r++)t[r]=n.charAt(Math.floor(Math.random()*n.length));return t.join("")},e.getGUID=function(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)})},e.isFunc=function(e){return"function"==typeof e},e.objectDefinedNotNull=function(e){return void 0!==e&&null!==e},e.isArray=function(e){return Array.isArray?Array.isArray(e):e&&"number"==typeof e.length&&e.constructor===Array},e.extend=function(t,n,r){if(void 0===r&&(r=!1),!e.objectDefinedNotNull(n))return t;var o=r?function(e,t){return!(t in e)}:function(){return!0};return Object.getOwnPropertyNames(n).filter(function(e){return o(t,e)}).reduce(function(e,t){return e[t]=n[t],e},t)},e.isUrlAbsolute=function(e){return/^https?:\/\/|^\/\//i.test(e)},e.stringIsNullOrEmpty=function(e){return void 0===e||null===e||e.length<1},e}()},function(e,t,n){"use strict";function r(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}t.a=r;/*! *****************************************************************************
var r=function(){function e(){}return Object.defineProperty(e,"activeLogLevel",{get:function(){return e.instance.activeLogLevel},set:function(t){e.instance.activeLogLevel=t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"instance",{get:function(){return void 0!==e._instance&&null!==e._instance||(e._instance=new o),e._instance},enumerable:!0,configurable:!0}),e.subscribe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];t.map(function(t){return e.instance.subscribe(t)})},e.clearSubscribers=function(){return e.instance.clearSubscribers()},Object.defineProperty(e,"count",{get:function(){return e.instance.count},enumerable:!0,configurable:!0}),e.write=function(t,n){void 0===n&&(n=0),e.instance.log({level:n,message:t})},e.writeJSON=function(t,n){void 0===n&&(n=0),e.instance.log({level:n,message:JSON.stringify(t)})},e.log=function(t){e.instance.log(t)},e.error=function(t){e.instance.log({data:t,level:3,message:t.message})},e}(),o=function(){function e(e,t){void 0===e&&(e=2),void 0===t&&(t=[]),this.activeLogLevel=e,this.subscribers=t}return e.prototype.subscribe=function(e){this.subscribers.push(e)},e.prototype.clearSubscribers=function(){var e=this.subscribers.slice(0);return this.subscribers.length=0,e},Object.defineProperty(e.prototype,"count",{get:function(){return this.subscribers.length},enumerable:!0,configurable:!0}),e.prototype.write=function(e,t){void 0===t&&(t=0),this.log({level:t,message:e})},e.prototype.log=function(e){void 0!==e&&this.activeLogLevel<=e.level&&this.subscribers.map(function(t){return t.log(e)})},e}();(function(){function e(){}e.prototype.log=function(e){var t=this.format(e);switch(e.level){case 0:case 1:console.log(t);break;case 2:console.warn(t);break;case 3:console.error(t)}},e.prototype.format=function(e){var t=[];return t.push("Message: "+e.message),void 0!==e.data&&t.push(" Data: "+JSON.stringify(e.data)),t.join("")}})(),function(){function e(e){this.method=e}e.prototype.log=function(e){this.method(e)}}()},function(e,t,n){"use strict";function r(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){t.apply(e,n)}}function o(e,t,n){var r=new Date(e);switch(t.toLowerCase()){case"year":r.setFullYear(r.getFullYear()+n);break;case"quarter":r.setMonth(r.getMonth()+3*n);break;case"month":r.setMonth(r.getMonth()+n);break;case"week":r.setDate(r.getDate()+7*n);break;case"day":r.setDate(r.getDate()+n);break;case"hour":r.setTime(r.getTime()+36e5*n);break;case"minute":r.setTime(r.getTime()+6e4*n);break;case"second":r.setTime(r.getTime()+1e3*n);break;default:r=void 0}return r}function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return!h.stringIsNullOrEmpty(e)}).map(function(e){return e.replace(/^[\\|\/]/,"").replace(/[\\|\/]$/,"")}).join("/").replace(/\\/g,"/")}function u(e){for(var t=new Array(e),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=0;r<e;r++)t[r]=n.charAt(Math.floor(Math.random()*n.length));return t.join("")}function c(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)})}function a(e){return"function"==typeof e}function s(e){return void 0!==e&&null!==e}function f(e){return Array.isArray?Array.isArray(e):e&&"number"==typeof e.length&&e.constructor===Array}function l(e,t,n){if(void 0===n&&(n=!1),!h.objectDefinedNotNull(t))return e;var r=n?function(e,t){return!(t in e)}:function(){return!0};return Object.getOwnPropertyNames(t).filter(function(t){return r(e,t)}).reduce(function(e,n){return e[n]=t[n],e},e)}function d(e){return/^https?:\/\/|^\/\//i.test(e)}function p(e){return void 0===e||null===e||e.length<1}t.e=r,t.c=o,t.b=i,t.g=u,t.f=c,t.i=a,t.k=s,t.h=f,t.d=l,t.j=d,t.l=p,n.d(t,"a",function(){return h});var h=function(){function e(){}return e.getCtxCallback=r,e.dateAdd=o,e.combinePaths=i,e.getRandomString=u,e.getGUID=c,e.isFunc=a,e.objectDefinedNotNull=s,e.isArray=f,e.extend=l,e.isUrlAbsolute=d,e.stringIsNullOrEmpty=p,e}()},function(e,t,n){"use strict";function r(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}t.a=r;/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.

@@ -35,3 +35,3 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use

***************************************************************************** */
var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};Object.assign},function(e,t,n){"use strict";function r(e){a.extend(e)}t.c=r,n.d(t,"b",function(){return i}),n.d(t,"a",function(){return a});var o=n(0),i=function(){function e(){this._v=new o.a,this._v.add("defaultCachingStore","session"),this._v.add("defaultCachingTimeoutSeconds",60),this._v.add("globalCacheDisable",!1),this._v.add("enableCacheExpiration",!1),this._v.add("cacheExpirationIntervalMilliseconds",750),this._v.add("spfxContext",null)}return e.prototype.extend=function(e){var t=this;Object.keys(e).forEach(function(n){t._v.add(n,e[n])})},e.prototype.get=function(e){return this._v.get(e)},Object.defineProperty(e.prototype,"defaultCachingStore",{get:function(){return this.get("defaultCachingStore")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultCachingTimeoutSeconds",{get:function(){return this.get("defaultCachingTimeoutSeconds")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"globalCacheDisable",{get:function(){return this.get("globalCacheDisable")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enableCacheExpiration",{get:function(){return this.get("enableCacheExpiration")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cacheExpirationIntervalMilliseconds",{get:function(){return this.get("cacheExpirationIntervalMilliseconds")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"spfxContext",{get:function(){return this.get("spfxContext")},enumerable:!0,configurable:!0}),e}(),u=new i,a=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6);n.d(t,"Util",function(){return r.i}),n.d(t,"readBlobAsText",function(){return r.o}),n.d(t,"readBlobAsArrayBuffer",function(){return r.n}),n.d(t,"Dictionary",function(){return r.b}),n.d(t,"deprecated",function(){return r.k}),n.d(t,"beta",function(){return r.j}),n.d(t,"UrlException",function(){return r.h}),n.d(t,"setup",function(){return r.p}),n.d(t,"RuntimeConfigImpl",function(){return r.g}),n.d(t,"RuntimeConfig",function(){return r.f}),n.d(t,"mergeHeaders",function(){return r.l}),n.d(t,"mergeOptions",function(){return r.m}),n.d(t,"FetchClient",function(){return r.c}),n.d(t,"BearerTokenFetchClient",function(){return r.a}),n.d(t,"PnPClientStorageWrapper",function(){return r.e}),n.d(t,"PnPClientStorage",function(){return r.d})},function(e,t,n){"use strict";var r=n(7);n.d(t,"n",function(){return r.a}),n.d(t,"o",function(){return r.b});var o=n(0);n.d(t,"b",function(){return o.a});var i=n(8);n.d(t,"j",function(){return i.a}),n.d(t,"k",function(){return i.b});var u=n(9);n.d(t,"h",function(){return u.a});var a=n(4);n.d(t,"f",function(){return a.a}),n.d(t,"g",function(){return a.b}),n.d(t,"p",function(){return a.c});var c=n(10);n.d(t,"a",function(){return c.a}),n.d(t,"c",function(){return c.b}),n.d(t,"l",function(){return c.c}),n.d(t,"m",function(){return c.d});var s=n(12);n.d(t,"d",function(){return s.a}),n.d(t,"e",function(){return s.b});var f=n(2);n.d(t,"i",function(){return f.a})},function(e,t,n){"use strict";function r(e){return i(e,"string")}function o(e){return i(e,"buffer")}function i(e,t){return new Promise(function(n,r){try{var o=new FileReader;switch(o.onload=function(e){n(e.target.result)},t){case"string":o.readAsText(e);break;case"buffer":o.readAsArrayBuffer(e)}}catch(e){r(e)}})}t.b=r,t.a=o},function(e,t,n){"use strict";function r(e,t){return function(n,r,o){var u=o.value;o.value=function(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];return i.a.log({data:{descriptor:o,propertyKey:r,target:n},level:2,message:"("+e+") "+t}),u.apply(this,a)}}}function o(e){return void 0===e&&(e="This feature is flagged as beta and is subject to change."),function(t,n,r){var o=r.value;r.value=function(){for(var u=[],a=0;a<arguments.length;a++)u[a]=arguments[a];return i.a.log({data:{descriptor:r,propertyKey:n,target:t},level:2,message:e}),o.apply(this,u)}}}t.b=r,t.a=o;var i=n(1)},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(3),o=n(1),i=function(e){function t(t){var n=e.call(this,t)||this;return n.name="UrlException",o.a.log({data:{},level:3,message:"["+n.name+"]::"+n.message}),n}return r.a(t,e),t}(Error)},function(e,t,n){"use strict";(function(e){function r(e,t){if(void 0!==t&&null!==t){new Request("",{headers:t}).headers.forEach(function(t,n){e.append(n,t)})}}function o(e,t){if(u.a.objectDefinedNotNull(t)){var n=u.a.extend(e.headers||{},t.headers);e=u.a.extend(e,t),e.headers=n}}t.c=r,t.d=o,n.d(t,"b",function(){return a}),n.d(t,"a",function(){return c});var i=n(3),u=n(2),a=function(){function t(){}return t.prototype.fetch=function(t,n){return e.fetch(t,n)},t}(),c=function(e){function t(t){var n=e.call(this)||this;return n._token=t,n}return i.a(t,e),t.prototype.fetch=function(t,n){void 0===n&&(n={});var o=new Headers;return r(o,n.headers),o.set("Authorization","Bearer "+this._token),n.headers=o,e.prototype.fetch.call(this,t,n)},t}(a)}).call(t,n(11))},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"a",function(){return s});var r=n(2),o=n(0),i=n(4),u=n(1),a=function(){function e(e,t){void 0===t&&(t=-1),this.store=e,this.defaultTimeoutMinutes=t,this.enabled=this.test(),i.a.enableCacheExpiration&&(u.a.write("Enabling cache expiration.",1),this.cacheExpirationHandler())}return e.prototype.get=function(e){if(!this.enabled)return null;var t=this.store.getItem(e);if(null==t)return null;var n=JSON.parse(t);return new Date(n.expiration)<=new Date?(u.a.write("Removing item with key '"+e+"' from cache due to expiration.",1),this.delete(e),null):n.value},e.prototype.put=function(e,t,n){this.enabled&&this.store.setItem(e,this.createPersistable(t,n))},e.prototype.delete=function(e){this.enabled&&this.store.removeItem(e)},e.prototype.getOrPut=function(e,t,n){var r=this;return this.enabled?new Promise(function(o){var i=r.get(e);null==i?t().then(function(t){r.put(e,t,n),o(t)}):o(i)}):t()},e.prototype.deleteExpired=function(){var e=this;return new Promise(function(t,n){e.enabled||t();try{for(var r=0;r<e.store.length;r++){var o=e.store.key(r);null!==o&&/["|']?pnp["|']? ?: ?1/i.test(e.store.getItem(o))&&e.get(o)}t()}catch(e){n(e)}})},e.prototype.test=function(){try{return this.store.setItem("test","test"),this.store.removeItem("test"),!0}catch(e){return!1}},e.prototype.createPersistable=function(e,t){if(void 0===t){var n=i.a.defaultCachingTimeoutSeconds;this.defaultTimeoutMinutes>0&&(n=60*this.defaultTimeoutMinutes),t=r.a.dateAdd(new Date,"second",n)}return JSON.stringify({pnp:1,expiration:t,value:e})},e.prototype.cacheExpirationHandler=function(){var e=this;u.a.write("Called cache expiration handler.",0),this.deleteExpired().then(function(t){setTimeout(r.a.getCtxCallback(e,e.cacheExpirationHandler),i.a.cacheExpirationIntervalMilliseconds)}).catch(function(e){u.a.log({data:e,level:3,message:"Error deleting expired cache entries, see data for details. Timeout not reset."})})},e}(),c=function(){function e(e){void 0===e&&(e=new o.a),this._store=e}return Object.defineProperty(e.prototype,"length",{get:function(){return this._store.count},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this._store.clear()},e.prototype.getItem=function(e){return this._store.get(e)},e.prototype.key=function(e){return this._store.getKeys()[e]},e.prototype.removeItem=function(e){this._store.remove(e)},e.prototype.setItem=function(e,t){this._store.add(e,t)},e}(),s=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=null),this._local=e,this._session=t}return Object.defineProperty(e.prototype,"local",{get:function(){return null===this._local&&(this._local=new a("undefined"!=typeof localStorage?localStorage:new c)),this._local},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"session",{get:function(){return null===this._session&&(this._session=new a("undefined"!=typeof sessionStorage?sessionStorage:new c)),this._session},enumerable:!0,configurable:!0}),e}()}])});
var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};Object.assign},function(e,t,n){"use strict";function r(e){c.extend(e)}t.c=r,n.d(t,"b",function(){return i}),n.d(t,"a",function(){return c});var o=n(0),i=function(){function e(){this._v=new o.a,this._v.add("defaultCachingStore","session"),this._v.add("defaultCachingTimeoutSeconds",60),this._v.add("globalCacheDisable",!1),this._v.add("enableCacheExpiration",!1),this._v.add("cacheExpirationIntervalMilliseconds",750),this._v.add("spfxContext",null)}return e.prototype.extend=function(e){var t=this;Object.keys(e).forEach(function(n){t._v.add(n,e[n])})},e.prototype.get=function(e){return this._v.get(e)},Object.defineProperty(e.prototype,"defaultCachingStore",{get:function(){return this.get("defaultCachingStore")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultCachingTimeoutSeconds",{get:function(){return this.get("defaultCachingTimeoutSeconds")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"globalCacheDisable",{get:function(){return this.get("globalCacheDisable")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enableCacheExpiration",{get:function(){return this.get("enableCacheExpiration")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cacheExpirationIntervalMilliseconds",{get:function(){return this.get("cacheExpirationIntervalMilliseconds")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"spfxContext",{get:function(){return this.get("spfxContext")},enumerable:!0,configurable:!0}),e}(),u=new i,c=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6);n.d(t,"readBlobAsText",function(){return r.y}),n.d(t,"readBlobAsArrayBuffer",function(){return r.x}),n.d(t,"Dictionary",function(){return r.b}),n.d(t,"deprecated",function(){return r.m}),n.d(t,"beta",function(){return r.j}),n.d(t,"UrlException",function(){return r.h}),n.d(t,"setup",function(){return r.z}),n.d(t,"RuntimeConfigImpl",function(){return r.g}),n.d(t,"RuntimeConfig",function(){return r.f}),n.d(t,"mergeHeaders",function(){return r.u}),n.d(t,"mergeOptions",function(){return r.v}),n.d(t,"FetchClient",function(){return r.c}),n.d(t,"BearerTokenFetchClient",function(){return r.a}),n.d(t,"PnPClientStorageWrapper",function(){return r.e}),n.d(t,"PnPClientStorage",function(){return r.d}),n.d(t,"getCtxCallback",function(){return r.o}),n.d(t,"dateAdd",function(){return r.l}),n.d(t,"combinePaths",function(){return r.k}),n.d(t,"getRandomString",function(){return r.q}),n.d(t,"getGUID",function(){return r.p}),n.d(t,"isFunc",function(){return r.s}),n.d(t,"objectDefinedNotNull",function(){return r.w}),n.d(t,"isArray",function(){return r.r}),n.d(t,"extend",function(){return r.n}),n.d(t,"isUrlAbsolute",function(){return r.t}),n.d(t,"stringIsNullOrEmpty",function(){return r.A}),n.d(t,"Util",function(){return r.i})},function(e,t,n){"use strict";var r=n(7);n.d(t,"x",function(){return r.a}),n.d(t,"y",function(){return r.b});var o=n(0);n.d(t,"b",function(){return o.a});var i=n(8);n.d(t,"j",function(){return i.a}),n.d(t,"m",function(){return i.b});var u=n(9);n.d(t,"h",function(){return u.a});var c=n(4);n.d(t,"f",function(){return c.a}),n.d(t,"g",function(){return c.b}),n.d(t,"z",function(){return c.c});var a=n(10);n.d(t,"a",function(){return a.a}),n.d(t,"c",function(){return a.b}),n.d(t,"u",function(){return a.c}),n.d(t,"v",function(){return a.d});var s=n(12);n.d(t,"d",function(){return s.a}),n.d(t,"e",function(){return s.b});var f=n(2);n.d(t,"i",function(){return f.a}),n.d(t,"k",function(){return f.b}),n.d(t,"l",function(){return f.c}),n.d(t,"n",function(){return f.d}),n.d(t,"o",function(){return f.e}),n.d(t,"p",function(){return f.f}),n.d(t,"q",function(){return f.g}),n.d(t,"r",function(){return f.h}),n.d(t,"s",function(){return f.i}),n.d(t,"t",function(){return f.j}),n.d(t,"w",function(){return f.k}),n.d(t,"A",function(){return f.l})},function(e,t,n){"use strict";function r(e){return i(e,"string")}function o(e){return i(e,"buffer")}function i(e,t){return new Promise(function(n,r){try{var o=new FileReader;switch(o.onload=function(e){n(e.target.result)},t){case"string":o.readAsText(e);break;case"buffer":o.readAsArrayBuffer(e)}}catch(e){r(e)}})}t.b=r,t.a=o},function(e,t,n){"use strict";function r(e,t){return function(n,r,o){var u=o.value;o.value=function(){for(var c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];return i.a.log({data:{descriptor:o,propertyKey:r,target:n},level:2,message:"("+e+") "+t}),u.apply(this,c)}}}function o(e){return void 0===e&&(e="This feature is flagged as beta and is subject to change."),function(t,n,r){var o=r.value;r.value=function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];return i.a.log({data:{descriptor:r,propertyKey:n,target:t},level:2,message:e}),o.apply(this,u)}}}t.b=r,t.a=o;var i=n(1)},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(3),o=n(1),i=function(e){function t(t){var n=e.call(this,t)||this;return n.name="UrlException",o.a.log({data:{},level:3,message:"["+n.name+"]::"+n.message}),n}return r.a(t,e),t}(Error)},function(e,t,n){"use strict";(function(e){function r(e,t){if(void 0!==t&&null!==t){new Request("",{headers:t}).headers.forEach(function(t,n){e.append(n,t)})}}function o(e,t){if(u.a.objectDefinedNotNull(t)){var n=u.a.extend(e.headers||{},t.headers);e=u.a.extend(e,t),e.headers=n}}t.c=r,t.d=o,n.d(t,"b",function(){return c}),n.d(t,"a",function(){return a});var i=n(3),u=n(2),c=function(){function t(){}return t.prototype.fetch=function(t,n){return e.fetch(t,n)},t}(),a=function(e){function t(t){var n=e.call(this)||this;return n._token=t,n}return i.a(t,e),t.prototype.fetch=function(t,n){void 0===n&&(n={});var o=new Headers;return r(o,n.headers),o.set("Authorization","Bearer "+this._token),n.headers=o,e.prototype.fetch.call(this,t,n)},t}(c)}).call(t,n(11))},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";n.d(t,"b",function(){return c}),n.d(t,"a",function(){return s});var r=n(2),o=n(0),i=n(4),u=n(1),c=function(){function e(e,t){void 0===t&&(t=-1),this.store=e,this.defaultTimeoutMinutes=t,this.enabled=this.test(),i.a.enableCacheExpiration&&(u.a.write("Enabling cache expiration.",1),this.cacheExpirationHandler())}return e.prototype.get=function(e){if(!this.enabled)return null;var t=this.store.getItem(e);if(null==t)return null;var n=JSON.parse(t);return new Date(n.expiration)<=new Date?(u.a.write("Removing item with key '"+e+"' from cache due to expiration.",1),this.delete(e),null):n.value},e.prototype.put=function(e,t,n){this.enabled&&this.store.setItem(e,this.createPersistable(t,n))},e.prototype.delete=function(e){this.enabled&&this.store.removeItem(e)},e.prototype.getOrPut=function(e,t,n){var r=this;return this.enabled?new Promise(function(o){var i=r.get(e);null==i?t().then(function(t){r.put(e,t,n),o(t)}):o(i)}):t()},e.prototype.deleteExpired=function(){var e=this;return new Promise(function(t,n){e.enabled||t();try{for(var r=0;r<e.store.length;r++){var o=e.store.key(r);null!==o&&/["|']?pnp["|']? ?: ?1/i.test(e.store.getItem(o))&&e.get(o)}t()}catch(e){n(e)}})},e.prototype.test=function(){try{return this.store.setItem("test","test"),this.store.removeItem("test"),!0}catch(e){return!1}},e.prototype.createPersistable=function(e,t){if(void 0===t){var n=i.a.defaultCachingTimeoutSeconds;this.defaultTimeoutMinutes>0&&(n=60*this.defaultTimeoutMinutes),t=r.a.dateAdd(new Date,"second",n)}return JSON.stringify({pnp:1,expiration:t,value:e})},e.prototype.cacheExpirationHandler=function(){var e=this;u.a.write("Called cache expiration handler.",0),this.deleteExpired().then(function(t){setTimeout(r.a.getCtxCallback(e,e.cacheExpirationHandler),i.a.cacheExpirationIntervalMilliseconds)}).catch(function(e){u.a.log({data:e,level:3,message:"Error deleting expired cache entries, see data for details. Timeout not reset."})})},e}(),a=function(){function e(e){void 0===e&&(e=new o.a),this._store=e}return Object.defineProperty(e.prototype,"length",{get:function(){return this._store.count},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this._store.clear()},e.prototype.getItem=function(e){return this._store.get(e)},e.prototype.key=function(e){return this._store.getKeys()[e]},e.prototype.removeItem=function(e){this._store.remove(e)},e.prototype.setItem=function(e,t){this._store.add(e,t)},e}(),s=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=null),this._local=e,this._session=t}return Object.defineProperty(e.prototype,"local",{get:function(){return null===this._local&&(this._local=new c("undefined"!=typeof localStorage?localStorage:new a)),this._local},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"session",{get:function(){return null===this._session&&(this._session=new c("undefined"!=typeof sessionStorage?sessionStorage:new a)),this._session},enumerable:!0,configurable:!0}),e}()}])});
//# sourceMappingURL=common.es5.umd.bundle.min.js.map
/**
@license
* @pnp/common v1.0.0-beta.11 - pnp - provides shared functionality across all pnp libraries
* @pnp/common v1.0.0-rc.0 - pnp - provides shared functionality across all pnp libraries
* MIT (https://github.com/pnp/pnp/blob/master/LICENSE)

@@ -13,3 +13,3 @@ * Copyright (c) 2018 Microsoft

typeof define === 'function' && define.amd ? define(['exports', '@pnp/logging', 'tslib'], factory) :
(factory((global.pnp = global.pnp || {}, global.pnp.common = {}),global.logging,global.tslib_1));
(factory((global.pnp = global.pnp || {}, global.pnp.common = {}),global.pnp.logging,global.tslib_1));
}(this, (function (exports,logging,tslib_1) { 'use strict';

@@ -307,2 +307,168 @@

/**
* Gets a callback function which will maintain context across async calls.
* Allows for the calling pattern getCtxCallback(thisobj, method, methodarg1, methodarg2, ...)
*
* @param context The object that will be the 'this' value in the callback
* @param method The method to which we will apply the context and parameters
* @param params Optional, additional arguments to supply to the wrapped method when it is invoked
*/
function getCtxCallback(context, method) {
var params = [];
for (var _i = 2; _i < arguments.length; _i++) {
params[_i - 2] = arguments[_i];
}
return function () {
method.apply(context, params);
};
}
/**
* Adds a value to a date
*
* @param date The date to which we will add units, done in local time
* @param interval The name of the interval to add, one of: ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second']
* @param units The amount to add to date of the given interval
*
* http://stackoverflow.com/questions/1197928/how-to-add-30-minutes-to-a-javascript-date-object
*/
function dateAdd(date, interval, units) {
var ret = new Date(date); // don't change original date
switch (interval.toLowerCase()) {
case "year":
ret.setFullYear(ret.getFullYear() + units);
break;
case "quarter":
ret.setMonth(ret.getMonth() + 3 * units);
break;
case "month":
ret.setMonth(ret.getMonth() + units);
break;
case "week":
ret.setDate(ret.getDate() + 7 * units);
break;
case "day":
ret.setDate(ret.getDate() + units);
break;
case "hour":
ret.setTime(ret.getTime() + units * 3600000);
break;
case "minute":
ret.setTime(ret.getTime() + units * 60000);
break;
case "second":
ret.setTime(ret.getTime() + units * 1000);
break;
default:
ret = undefined;
break;
}
return ret;
}
/**
* Combines an arbitrary set of paths ensuring and normalizes the slashes
*
* @param paths 0 to n path parts to combine
*/
function combinePaths() {
var paths = [];
for (var _i = 0; _i < arguments.length; _i++) {
paths[_i] = arguments[_i];
}
return paths
.filter(function (path) { return !Util.stringIsNullOrEmpty(path); })
.map(function (path) { return path.replace(/^[\\|\/]/, "").replace(/[\\|\/]$/, ""); })
.join("/")
.replace(/\\/g, "/");
}
/**
* Gets a random string of chars length
*
* @param chars The length of the random string to generate
*/
function getRandomString(chars) {
var text = new Array(chars);
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for (var i = 0; i < chars; i++) {
text[i] = possible.charAt(Math.floor(Math.random() * possible.length));
}
return text.join("");
}
/**
* Gets a random GUID value
*
* http://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript
*/
/* tslint:disable no-bitwise */
function getGUID() {
var d = new Date().getTime();
var guid = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
var r = (d + Math.random() * 16) % 16 | 0;
d = Math.floor(d / 16);
return (c === "x" ? r : (r & 0x3 | 0x8)).toString(16);
});
return guid;
}
/* tslint:enable */
/**
* Determines if a given value is a function
*
* @param cf The thing to test for functionness
*/
function isFunc(cf) {
return typeof cf === "function";
}
/**
* Determines if an object is both defined and not null
* @param obj Object to test
*/
function objectDefinedNotNull(obj) {
return typeof obj !== "undefined" && obj !== null;
}
/**
* @returns whether the provided parameter is a JavaScript Array or not.
*/
function isArray(array) {
if (Array.isArray) {
return Array.isArray(array);
}
return array && typeof array.length === "number" && array.constructor === Array;
}
/**
* Provides functionality to extend the given object by doing a shallow copy
*
* @param target The object to which properties will be copied
* @param source The source object from which properties will be copied
* @param noOverwrite If true existing properties on the target are not overwritten from the source
*
*/
function extend(target, source, noOverwrite) {
if (noOverwrite === void 0) { noOverwrite = false; }
if (!Util.objectDefinedNotNull(source)) {
return target;
}
// ensure we don't overwrite things we don't want overwritten
var check = noOverwrite ? function (o, i) { return !(i in o); } : function () { return true; };
return Object.getOwnPropertyNames(source)
.filter(function (v) { return check(target, v); })
.reduce(function (t, v) {
t[v] = source[v];
return t;
}, target);
}
/**
* Determines if a given url is absolute
*
* @param url The url to check to see if it is absolute
*/
function isUrlAbsolute(url) {
return /^https?:\/\/|^\/\//i.test(url);
}
/**
* Determines if a string is null or empty or undefined
*
* @param s The string to test
*/
function stringIsNullOrEmpty(s) {
return typeof s === "undefined" || s === null || s.length < 1;
}
var Util = /** @class */ (function () {

@@ -319,11 +485,3 @@ function Util() {

*/
Util.getCtxCallback = function (context, method) {
var params = [];
for (var _i = 2; _i < arguments.length; _i++) {
params[_i - 2] = arguments[_i];
}
return function () {
method.apply(context, params);
};
};
Util.getCtxCallback = getCtxCallback;
/**

@@ -338,35 +496,3 @@ * Adds a value to a date

*/
Util.dateAdd = function (date, interval, units) {
var ret = new Date(date); // don't change original date
switch (interval.toLowerCase()) {
case "year":
ret.setFullYear(ret.getFullYear() + units);
break;
case "quarter":
ret.setMonth(ret.getMonth() + 3 * units);
break;
case "month":
ret.setMonth(ret.getMonth() + units);
break;
case "week":
ret.setDate(ret.getDate() + 7 * units);
break;
case "day":
ret.setDate(ret.getDate() + units);
break;
case "hour":
ret.setTime(ret.getTime() + units * 3600000);
break;
case "minute":
ret.setTime(ret.getTime() + units * 60000);
break;
case "second":
ret.setTime(ret.getTime() + units * 1000);
break;
default:
ret = undefined;
break;
}
return ret;
};
Util.dateAdd = dateAdd;
/**

@@ -377,13 +503,3 @@ * Combines an arbitrary set of paths ensuring and normalizes the slashes

*/
Util.combinePaths = function () {
var paths = [];
for (var _i = 0; _i < arguments.length; _i++) {
paths[_i] = arguments[_i];
}
return paths
.filter(function (path) { return !Util.stringIsNullOrEmpty(path); })
.map(function (path) { return path.replace(/^[\\|\/]/, "").replace(/[\\|\/]$/, ""); })
.join("/")
.replace(/\\/g, "/");
};
Util.combinePaths = combinePaths;
/**

@@ -394,10 +510,3 @@ * Gets a random string of chars length

*/
Util.getRandomString = function (chars) {
var text = new Array(chars);
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for (var i = 0; i < chars; i++) {
text[i] = possible.charAt(Math.floor(Math.random() * possible.length));
}
return text.join("");
};
Util.getRandomString = getRandomString;
/**

@@ -408,13 +517,3 @@ * Gets a random GUID value

*/
/* tslint:disable no-bitwise */
Util.getGUID = function () {
var d = new Date().getTime();
var guid = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
var r = (d + Math.random() * 16) % 16 | 0;
d = Math.floor(d / 16);
return (c === "x" ? r : (r & 0x3 | 0x8)).toString(16);
});
return guid;
};
/* tslint:enable */
Util.getGUID = getGUID;
/**

@@ -425,5 +524,3 @@ * Determines if a given value is a function

*/
Util.isFunc = function (cf) {
return typeof cf === "function";
};
Util.isFunc = isFunc;
/**

@@ -433,14 +530,7 @@ * Determines if an object is both defined and not null

*/
Util.objectDefinedNotNull = function (obj) {
return typeof obj !== "undefined" && obj !== null;
};
Util.objectDefinedNotNull = objectDefinedNotNull;
/**
* @returns whether the provided parameter is a JavaScript Array or not.
*/
Util.isArray = function (array) {
if (Array.isArray) {
return Array.isArray(array);
}
return array && typeof array.length === "number" && array.constructor === Array;
};
Util.isArray = isArray;
/**

@@ -454,16 +544,3 @@ * Provides functionality to extend the given object by doing a shallow copy

*/
Util.extend = function (target, source, noOverwrite) {
if (noOverwrite === void 0) { noOverwrite = false; }
if (!Util.objectDefinedNotNull(source)) {
return target;
}
// ensure we don't overwrite things we don't want overwritten
var check = noOverwrite ? function (o, i) { return !(i in o); } : function () { return true; };
return Object.getOwnPropertyNames(source)
.filter(function (v) { return check(target, v); })
.reduce(function (t, v) {
t[v] = source[v];
return t;
}, target);
};
Util.extend = extend;
/**

@@ -474,5 +551,3 @@ * Determines if a given url is absolute

*/
Util.isUrlAbsolute = function (url) {
return /^https?:\/\/|^\/\//i.test(url);
};
Util.isUrlAbsolute = isUrlAbsolute;
/**

@@ -483,5 +558,3 @@ * Determines if a string is null or empty or undefined

*/
Util.stringIsNullOrEmpty = function (s) {
return typeof s === "undefined" || s === null || s.length < 1;
};
Util.stringIsNullOrEmpty = stringIsNullOrEmpty;
return Util;

@@ -780,3 +853,2 @@ }());

exports.Util = Util;
exports.readBlobAsText = readBlobAsText;

@@ -797,2 +869,14 @@ exports.readBlobAsArrayBuffer = readBlobAsArrayBuffer;

exports.PnPClientStorage = PnPClientStorage;
exports.getCtxCallback = getCtxCallback;
exports.dateAdd = dateAdd;
exports.combinePaths = combinePaths;
exports.getRandomString = getRandomString;
exports.getGUID = getGUID;
exports.isFunc = isFunc;
exports.objectDefinedNotNull = objectDefinedNotNull;
exports.isArray = isArray;
exports.extend = extend;
exports.isUrlAbsolute = isUrlAbsolute;
exports.stringIsNullOrEmpty = stringIsNullOrEmpty;
exports.Util = Util;

@@ -799,0 +883,0 @@ Object.defineProperty(exports, '__esModule', { value: true });

/**
@license
* @pnp/common v1.0.0-beta.11 - pnp - provides shared functionality across all pnp libraries
* @pnp/common v1.0.0-rc.0 - pnp - provides shared functionality across all pnp libraries
* MIT (https://github.com/pnp/pnp/blob/master/LICENSE)

@@ -10,2 +10,2 @@ * Copyright (c) 2018 Microsoft

*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@pnp/logging"),require("tslib")):"function"==typeof define&&define.amd?define(["exports","@pnp/logging","tslib"],t):t((e.pnp=e.pnp||{},e.pnp.common={}),e.logging,e.tslib_1)}(this,function(e,t,n){"use strict";function r(e,t){return new Promise(function(n,r){try{var o=new FileReader;switch(o.onload=function(e){n(e.target.result)},t){case"string":o.readAsText(e);break;case"buffer":o.readAsArrayBuffer(e)}}catch(e){r(e)}})}var o=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]),this.keys=e,this.values=t}return e.prototype.get=function(e){var t=this.keys.indexOf(e);return t<0?null:this.values[t]},e.prototype.add=function(e,t){var n=this.keys.indexOf(e);n>-1?null===t?this.remove(e):this.values[n]=t:null!==t&&(this.keys.push(e),this.values.push(t))},e.prototype.merge=function(e){var t=this;if("getKeys"in e){var n=e;n.getKeys().map(function(e){t.add(e,n.get(e))})}else{var r=e;for(var o in r)r.hasOwnProperty(o)&&this.add(o,r[o])}},e.prototype.remove=function(e){var t=this.keys.indexOf(e);if(t<0)return null;var n=this.values[t];return this.keys.splice(t,1),this.values.splice(t,1),n},e.prototype.getKeys=function(){return this.keys},e.prototype.getValues=function(){return this.values},e.prototype.clear=function(){this.keys=[],this.values=[]},Object.defineProperty(e.prototype,"count",{get:function(){return this.keys.length},enumerable:!0,configurable:!0}),e}();var i=function(e){n.__extends(r,e);function r(n){var r=e.call(this,n)||this;return r.name="UrlException",t.Logger.log({data:{},level:3,message:"["+r.name+"]::"+r.message}),r}return r}(Error);var a=function(){function e(){this._v=new o,this._v.add("defaultCachingStore","session"),this._v.add("defaultCachingTimeoutSeconds",60),this._v.add("globalCacheDisable",!1),this._v.add("enableCacheExpiration",!1),this._v.add("cacheExpirationIntervalMilliseconds",750),this._v.add("spfxContext",null)}return e.prototype.extend=function(e){var t=this;Object.keys(e).forEach(function(n){t._v.add(n,e[n])})},e.prototype.get=function(e){return this._v.get(e)},Object.defineProperty(e.prototype,"defaultCachingStore",{get:function(){return this.get("defaultCachingStore")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultCachingTimeoutSeconds",{get:function(){return this.get("defaultCachingTimeoutSeconds")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"globalCacheDisable",{get:function(){return this.get("globalCacheDisable")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enableCacheExpiration",{get:function(){return this.get("enableCacheExpiration")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cacheExpirationIntervalMilliseconds",{get:function(){return this.get("cacheExpirationIntervalMilliseconds")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"spfxContext",{get:function(){return this.get("spfxContext")},enumerable:!0,configurable:!0}),e}(),u=new a,s=function(){function e(){}return e.getCtxCallback=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){t.apply(e,n)}},e.dateAdd=function(e,t,n){var r=new Date(e);switch(t.toLowerCase()){case"year":r.setFullYear(r.getFullYear()+n);break;case"quarter":r.setMonth(r.getMonth()+3*n);break;case"month":r.setMonth(r.getMonth()+n);break;case"week":r.setDate(r.getDate()+7*n);break;case"day":r.setDate(r.getDate()+n);break;case"hour":r.setTime(r.getTime()+36e5*n);break;case"minute":r.setTime(r.getTime()+6e4*n);break;case"second":r.setTime(r.getTime()+1e3*n);break;default:r=void 0}return r},e.combinePaths=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.filter(function(t){return!e.stringIsNullOrEmpty(t)}).map(function(e){return e.replace(/^[\\|\/]/,"").replace(/[\\|\/]$/,"")}).join("/").replace(/\\/g,"/")},e.getRandomString=function(e){for(var t=new Array(e),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=0;r<e;r++)t[r]=n.charAt(Math.floor(Math.random()*n.length));return t.join("")},e.getGUID=function(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)})},e.isFunc=function(e){return"function"==typeof e},e.objectDefinedNotNull=function(e){return void 0!==e&&null!==e},e.isArray=function(e){return Array.isArray?Array.isArray(e):e&&"number"==typeof e.length&&e.constructor===Array},e.extend=function(t,n,r){if(void 0===r&&(r=!1),!e.objectDefinedNotNull(n))return t;var o=r?function(e,t){return!(t in e)}:function(){return!0};return Object.getOwnPropertyNames(n).filter(function(e){return o(t,e)}).reduce(function(e,t){return e[t]=n[t],e},t)},e.isUrlAbsolute=function(e){return/^https?:\/\/|^\/\//i.test(e)},e.stringIsNullOrEmpty=function(e){return void 0===e||null===e||e.length<1},e}();function c(e,t){if(void 0!==t&&null!==t){new Request("",{headers:t}).headers.forEach(function(t,n){e.append(n,t)})}}var l=function(){function e(){}return e.prototype.fetch=function(e,t){return global.fetch(e,t)},e}(),f=function(e){n.__extends(t,e);function t(t){var n=e.call(this)||this;return n._token=t,n}return t.prototype.fetch=function(t,n){void 0===n&&(n={});var r=new Headers;return c(r,n.headers),r.set("Authorization","Bearer "+this._token),n.headers=r,e.prototype.fetch.call(this,t,n)},t}(l),p=function(){function e(e,n){void 0===n&&(n=-1),this.store=e,this.defaultTimeoutMinutes=n,this.enabled=this.test(),u.enableCacheExpiration&&(t.Logger.write("Enabling cache expiration.",1),this.cacheExpirationHandler())}return e.prototype.get=function(e){if(!this.enabled)return null;var n=this.store.getItem(e);if(null==n)return null;var r=JSON.parse(n);return new Date(r.expiration)<=new Date?(t.Logger.write("Removing item with key '"+e+"' from cache due to expiration.",1),this.delete(e),null):r.value},e.prototype.put=function(e,t,n){this.enabled&&this.store.setItem(e,this.createPersistable(t,n))},e.prototype.delete=function(e){this.enabled&&this.store.removeItem(e)},e.prototype.getOrPut=function(e,t,n){var r=this;return this.enabled?new Promise(function(o){var i=r.get(e);null==i?t().then(function(t){r.put(e,t,n),o(t)}):o(i)}):t()},e.prototype.deleteExpired=function(){var e=this;return new Promise(function(t,n){e.enabled||t();try{for(var r=0;r<e.store.length;r++){var o=e.store.key(r);null!==o&&/["|']?pnp["|']? ?: ?1/i.test(e.store.getItem(o))&&e.get(o)}t()}catch(e){n(e)}})},e.prototype.test=function(){try{return this.store.setItem("test","test"),this.store.removeItem("test"),!0}catch(e){return!1}},e.prototype.createPersistable=function(e,t){if(void 0===t){var n=u.defaultCachingTimeoutSeconds;this.defaultTimeoutMinutes>0&&(n=60*this.defaultTimeoutMinutes),t=s.dateAdd(new Date,"second",n)}return JSON.stringify({pnp:1,expiration:t,value:e})},e.prototype.cacheExpirationHandler=function(){var e=this;t.Logger.write("Called cache expiration handler.",0),this.deleteExpired().then(function(t){setTimeout(s.getCtxCallback(e,e.cacheExpirationHandler),u.cacheExpirationIntervalMilliseconds)}).catch(function(e){t.Logger.log({data:e,level:3,message:"Error deleting expired cache entries, see data for details. Timeout not reset."})})},e}(),h=function(){function e(e){void 0===e&&(e=new o),this._store=e}return Object.defineProperty(e.prototype,"length",{get:function(){return this._store.count},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this._store.clear()},e.prototype.getItem=function(e){return this._store.get(e)},e.prototype.key=function(e){return this._store.getKeys()[e]},e.prototype.removeItem=function(e){this._store.remove(e)},e.prototype.setItem=function(e,t){this._store.add(e,t)},e}(),d=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=null),this._local=e,this._session=t}return Object.defineProperty(e.prototype,"local",{get:function(){return null===this._local&&(this._local="undefined"!=typeof localStorage?new p(localStorage):new p(new h)),this._local},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"session",{get:function(){return null===this._session&&(this._session="undefined"!=typeof sessionStorage?new p(sessionStorage):new p(new h)),this._session},enumerable:!0,configurable:!0}),e}();e.Util=s,e.readBlobAsText=function(e){return r(e,"string")},e.readBlobAsArrayBuffer=function(e){return r(e,"buffer")},e.Dictionary=o,e.deprecated=function(e,n){return function(r,o,i){var a=i.value;i.value=function(){for(var u=[],s=0;s<arguments.length;s++)u[s]=arguments[s];return t.Logger.log({data:{descriptor:i,propertyKey:o,target:r},level:2,message:"("+e+") "+n}),a.apply(this,u)}}},e.beta=function(e){return void 0===e&&(e="This feature is flagged as beta and is subject to change."),function(n,r,o){var i=o.value;o.value=function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return t.Logger.log({data:{descriptor:o,propertyKey:r,target:n},level:2,message:e}),i.apply(this,a)}}},e.UrlException=i,e.setup=function(e){u.extend(e)},e.RuntimeConfigImpl=a,e.RuntimeConfig=u,e.mergeHeaders=c,e.mergeOptions=function(e,t){if(s.objectDefinedNotNull(t)){var n=s.extend(e.headers||{},t.headers);(e=s.extend(e,t)).headers=n}},e.FetchClient=l,e.BearerTokenFetchClient=f,e.PnPClientStorageWrapper=p,e.PnPClientStorage=d,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@pnp/logging"),require("tslib")):"function"==typeof define&&define.amd?define(["exports","@pnp/logging","tslib"],t):t((e.pnp=e.pnp||{},e.pnp.common={}),e.pnp.logging,e.tslib_1)}(this,function(e,t,n){"use strict";function r(e,t){return new Promise(function(n,r){try{var o=new FileReader;switch(o.onload=function(e){n(e.target.result)},t){case"string":o.readAsText(e);break;case"buffer":o.readAsArrayBuffer(e)}}catch(e){r(e)}})}var o=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]),this.keys=e,this.values=t}return e.prototype.get=function(e){var t=this.keys.indexOf(e);return t<0?null:this.values[t]},e.prototype.add=function(e,t){var n=this.keys.indexOf(e);n>-1?null===t?this.remove(e):this.values[n]=t:null!==t&&(this.keys.push(e),this.values.push(t))},e.prototype.merge=function(e){var t=this;if("getKeys"in e){var n=e;n.getKeys().map(function(e){t.add(e,n.get(e))})}else{var r=e;for(var o in r)r.hasOwnProperty(o)&&this.add(o,r[o])}},e.prototype.remove=function(e){var t=this.keys.indexOf(e);if(t<0)return null;var n=this.values[t];return this.keys.splice(t,1),this.values.splice(t,1),n},e.prototype.getKeys=function(){return this.keys},e.prototype.getValues=function(){return this.values},e.prototype.clear=function(){this.keys=[],this.values=[]},Object.defineProperty(e.prototype,"count",{get:function(){return this.keys.length},enumerable:!0,configurable:!0}),e}();var i=function(e){function r(n){var r=e.call(this,n)||this;return r.name="UrlException",t.Logger.log({data:{},level:3,message:"["+r.name+"]::"+r.message}),r}return n.__extends(r,e),r}(Error);var a=function(){function e(){this._v=new o,this._v.add("defaultCachingStore","session"),this._v.add("defaultCachingTimeoutSeconds",60),this._v.add("globalCacheDisable",!1),this._v.add("enableCacheExpiration",!1),this._v.add("cacheExpirationIntervalMilliseconds",750),this._v.add("spfxContext",null)}return e.prototype.extend=function(e){var t=this;Object.keys(e).forEach(function(n){t._v.add(n,e[n])})},e.prototype.get=function(e){return this._v.get(e)},Object.defineProperty(e.prototype,"defaultCachingStore",{get:function(){return this.get("defaultCachingStore")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultCachingTimeoutSeconds",{get:function(){return this.get("defaultCachingTimeoutSeconds")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"globalCacheDisable",{get:function(){return this.get("globalCacheDisable")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enableCacheExpiration",{get:function(){return this.get("enableCacheExpiration")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cacheExpirationIntervalMilliseconds",{get:function(){return this.get("cacheExpirationIntervalMilliseconds")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"spfxContext",{get:function(){return this.get("spfxContext")},enumerable:!0,configurable:!0}),e}(),s=new a;function u(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){t.apply(e,n)}}function c(e,t,n){var r=new Date(e);switch(t.toLowerCase()){case"year":r.setFullYear(r.getFullYear()+n);break;case"quarter":r.setMonth(r.getMonth()+3*n);break;case"month":r.setMonth(r.getMonth()+n);break;case"week":r.setDate(r.getDate()+7*n);break;case"day":r.setDate(r.getDate()+n);break;case"hour":r.setTime(r.getTime()+36e5*n);break;case"minute":r.setTime(r.getTime()+6e4*n);break;case"second":r.setTime(r.getTime()+1e3*n);break;default:r=void 0}return r}function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return!m.stringIsNullOrEmpty(e)}).map(function(e){return e.replace(/^[\\|\/]/,"").replace(/[\\|\/]$/,"")}).join("/").replace(/\\/g,"/")}function f(e){for(var t=new Array(e),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=0;r<e;r++)t[r]=n.charAt(Math.floor(Math.random()*n.length));return t.join("")}function p(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)})}function h(e){return"function"==typeof e}function d(e){return void 0!==e&&null!==e}function g(e){return Array.isArray?Array.isArray(e):e&&"number"==typeof e.length&&e.constructor===Array}function y(e,t,n){if(void 0===n&&(n=!1),!m.objectDefinedNotNull(t))return e;var r=n?function(e,t){return!(t in e)}:function(){return!0};return Object.getOwnPropertyNames(t).filter(function(t){return r(e,t)}).reduce(function(e,n){return e[n]=t[n],e},e)}function v(e){return/^https?:\/\/|^\/\//i.test(e)}function b(e){return void 0===e||null===e||e.length<1}var m=function(){function e(){}return e.getCtxCallback=u,e.dateAdd=c,e.combinePaths=l,e.getRandomString=f,e.getGUID=p,e.isFunc=h,e.objectDefinedNotNull=d,e.isArray=g,e.extend=y,e.isUrlAbsolute=v,e.stringIsNullOrEmpty=b,e}();function x(e,t){void 0!==t&&null!==t&&new Request("",{headers:t}).headers.forEach(function(t,n){e.append(n,t)})}var _=function(){function e(){}return e.prototype.fetch=function(e,t){return global.fetch(e,t)},e}(),w=function(e){function t(t){var n=e.call(this)||this;return n._token=t,n}return n.__extends(t,e),t.prototype.fetch=function(t,n){void 0===n&&(n={});var r=new Headers;return x(r,n.headers),r.set("Authorization","Bearer "+this._token),n.headers=r,e.prototype.fetch.call(this,t,n)},t}(_),C=function(){function e(e,n){void 0===n&&(n=-1),this.store=e,this.defaultTimeoutMinutes=n,this.enabled=this.test(),s.enableCacheExpiration&&(t.Logger.write("Enabling cache expiration.",1),this.cacheExpirationHandler())}return e.prototype.get=function(e){if(!this.enabled)return null;var n=this.store.getItem(e);if(null==n)return null;var r=JSON.parse(n);return new Date(r.expiration)<=new Date?(t.Logger.write("Removing item with key '"+e+"' from cache due to expiration.",1),this.delete(e),null):r.value},e.prototype.put=function(e,t,n){this.enabled&&this.store.setItem(e,this.createPersistable(t,n))},e.prototype.delete=function(e){this.enabled&&this.store.removeItem(e)},e.prototype.getOrPut=function(e,t,n){var r=this;return this.enabled?new Promise(function(o){var i=r.get(e);null==i?t().then(function(t){r.put(e,t,n),o(t)}):o(i)}):t()},e.prototype.deleteExpired=function(){var e=this;return new Promise(function(t,n){e.enabled||t();try{for(var r=0;r<e.store.length;r++){var o=e.store.key(r);null!==o&&/["|']?pnp["|']? ?: ?1/i.test(e.store.getItem(o))&&e.get(o)}t()}catch(e){n(e)}})},e.prototype.test=function(){try{return this.store.setItem("test","test"),this.store.removeItem("test"),!0}catch(e){return!1}},e.prototype.createPersistable=function(e,t){if(void 0===t){var n=s.defaultCachingTimeoutSeconds;this.defaultTimeoutMinutes>0&&(n=60*this.defaultTimeoutMinutes),t=m.dateAdd(new Date,"second",n)}return JSON.stringify({pnp:1,expiration:t,value:e})},e.prototype.cacheExpirationHandler=function(){var e=this;t.Logger.write("Called cache expiration handler.",0),this.deleteExpired().then(function(t){setTimeout(m.getCtxCallback(e,e.cacheExpirationHandler),s.cacheExpirationIntervalMilliseconds)}).catch(function(e){t.Logger.log({data:e,level:3,message:"Error deleting expired cache entries, see data for details. Timeout not reset."})})},e}(),k=function(){function e(e){void 0===e&&(e=new o),this._store=e}return Object.defineProperty(e.prototype,"length",{get:function(){return this._store.count},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this._store.clear()},e.prototype.getItem=function(e){return this._store.get(e)},e.prototype.key=function(e){return this._store.getKeys()[e]},e.prototype.removeItem=function(e){this._store.remove(e)},e.prototype.setItem=function(e,t){this._store.add(e,t)},e}(),O=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=null),this._local=e,this._session=t}return Object.defineProperty(e.prototype,"local",{get:function(){return null===this._local&&(this._local="undefined"!=typeof localStorage?new C(localStorage):new C(new k)),this._local},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"session",{get:function(){return null===this._session&&(this._session="undefined"!=typeof sessionStorage?new C(sessionStorage):new C(new k)),this._session},enumerable:!0,configurable:!0}),e}();e.readBlobAsText=function(e){return r(e,"string")},e.readBlobAsArrayBuffer=function(e){return r(e,"buffer")},e.Dictionary=o,e.deprecated=function(e,n){return function(r,o,i){var a=i.value;i.value=function(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return t.Logger.log({data:{descriptor:i,propertyKey:o,target:r},level:2,message:"("+e+") "+n}),a.apply(this,s)}}},e.beta=function(e){return void 0===e&&(e="This feature is flagged as beta and is subject to change."),function(n,r,o){var i=o.value;o.value=function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return t.Logger.log({data:{descriptor:o,propertyKey:r,target:n},level:2,message:e}),i.apply(this,a)}}},e.UrlException=i,e.setup=function(e){s.extend(e)},e.RuntimeConfigImpl=a,e.RuntimeConfig=s,e.mergeHeaders=x,e.mergeOptions=function(e,t){if(m.objectDefinedNotNull(t)){var n=m.extend(e.headers||{},t.headers);(e=m.extend(e,t)).headers=n}},e.FetchClient=_,e.BearerTokenFetchClient=w,e.PnPClientStorageWrapper=C,e.PnPClientStorage=O,e.getCtxCallback=u,e.dateAdd=c,e.combinePaths=l,e.getRandomString=f,e.getGUID=p,e.isFunc=h,e.objectDefinedNotNull=d,e.isArray=g,e.extend=y,e.isUrlAbsolute=v,e.stringIsNullOrEmpty=b,e.Util=m,Object.defineProperty(e,"__esModule",{value:!0})});
/**
@license
* @pnp/common v1.0.0-beta.11 - pnp - provides shared functionality across all pnp libraries
* @pnp/common v1.0.0-rc.0 - pnp - provides shared functionality across all pnp libraries
* MIT (https://github.com/pnp/pnp/blob/master/LICENSE)

@@ -256,161 +256,234 @@ * Copyright (c) 2018 Microsoft

class Util {
/**
* Gets a callback function which will maintain context across async calls.
* Allows for the calling pattern getCtxCallback(thisobj, method, methodarg1, methodarg2, ...)
*
* @param context The object that will be the 'this' value in the callback
* @param method The method to which we will apply the context and parameters
* @param params Optional, additional arguments to supply to the wrapped method when it is invoked
*/
static getCtxCallback(context, method, ...params) {
return function () {
method.apply(context, params);
};
/**
* Gets a callback function which will maintain context across async calls.
* Allows for the calling pattern getCtxCallback(thisobj, method, methodarg1, methodarg2, ...)
*
* @param context The object that will be the 'this' value in the callback
* @param method The method to which we will apply the context and parameters
* @param params Optional, additional arguments to supply to the wrapped method when it is invoked
*/
function getCtxCallback(context, method, ...params) {
return function () {
method.apply(context, params);
};
}
/**
* Adds a value to a date
*
* @param date The date to which we will add units, done in local time
* @param interval The name of the interval to add, one of: ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second']
* @param units The amount to add to date of the given interval
*
* http://stackoverflow.com/questions/1197928/how-to-add-30-minutes-to-a-javascript-date-object
*/
function dateAdd(date, interval, units) {
let ret = new Date(date); // don't change original date
switch (interval.toLowerCase()) {
case "year":
ret.setFullYear(ret.getFullYear() + units);
break;
case "quarter":
ret.setMonth(ret.getMonth() + 3 * units);
break;
case "month":
ret.setMonth(ret.getMonth() + units);
break;
case "week":
ret.setDate(ret.getDate() + 7 * units);
break;
case "day":
ret.setDate(ret.getDate() + units);
break;
case "hour":
ret.setTime(ret.getTime() + units * 3600000);
break;
case "minute":
ret.setTime(ret.getTime() + units * 60000);
break;
case "second":
ret.setTime(ret.getTime() + units * 1000);
break;
default:
ret = undefined;
break;
}
/**
* Adds a value to a date
*
* @param date The date to which we will add units, done in local time
* @param interval The name of the interval to add, one of: ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second']
* @param units The amount to add to date of the given interval
*
* http://stackoverflow.com/questions/1197928/how-to-add-30-minutes-to-a-javascript-date-object
*/
static dateAdd(date, interval, units) {
let ret = new Date(date); // don't change original date
switch (interval.toLowerCase()) {
case "year":
ret.setFullYear(ret.getFullYear() + units);
break;
case "quarter":
ret.setMonth(ret.getMonth() + 3 * units);
break;
case "month":
ret.setMonth(ret.getMonth() + units);
break;
case "week":
ret.setDate(ret.getDate() + 7 * units);
break;
case "day":
ret.setDate(ret.getDate() + units);
break;
case "hour":
ret.setTime(ret.getTime() + units * 3600000);
break;
case "minute":
ret.setTime(ret.getTime() + units * 60000);
break;
case "second":
ret.setTime(ret.getTime() + units * 1000);
break;
default:
ret = undefined;
break;
}
return ret;
return ret;
}
/**
* Combines an arbitrary set of paths ensuring and normalizes the slashes
*
* @param paths 0 to n path parts to combine
*/
function combinePaths(...paths) {
return paths
.filter(path => !Util.stringIsNullOrEmpty(path))
.map(path => path.replace(/^[\\|\/]/, "").replace(/[\\|\/]$/, ""))
.join("/")
.replace(/\\/g, "/");
}
/**
* Gets a random string of chars length
*
* @param chars The length of the random string to generate
*/
function getRandomString(chars) {
const text = new Array(chars);
const possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for (let i = 0; i < chars; i++) {
text[i] = possible.charAt(Math.floor(Math.random() * possible.length));
}
/**
* Combines an arbitrary set of paths ensuring and normalizes the slashes
*
* @param paths 0 to n path parts to combine
*/
static combinePaths(...paths) {
return paths
.filter(path => !Util.stringIsNullOrEmpty(path))
.map(path => path.replace(/^[\\|\/]/, "").replace(/[\\|\/]$/, ""))
.join("/")
.replace(/\\/g, "/");
return text.join("");
}
/**
* Gets a random GUID value
*
* http://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript
*/
/* tslint:disable no-bitwise */
function getGUID() {
let d = new Date().getTime();
const guid = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
const r = (d + Math.random() * 16) % 16 | 0;
d = Math.floor(d / 16);
return (c === "x" ? r : (r & 0x3 | 0x8)).toString(16);
});
return guid;
}
/* tslint:enable */
/**
* Determines if a given value is a function
*
* @param cf The thing to test for functionness
*/
function isFunc(cf) {
return typeof cf === "function";
}
/**
* Determines if an object is both defined and not null
* @param obj Object to test
*/
function objectDefinedNotNull(obj) {
return typeof obj !== "undefined" && obj !== null;
}
/**
* @returns whether the provided parameter is a JavaScript Array or not.
*/
function isArray(array) {
if (Array.isArray) {
return Array.isArray(array);
}
/**
* Gets a random string of chars length
*
* @param chars The length of the random string to generate
*/
static getRandomString(chars) {
const text = new Array(chars);
const possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for (let i = 0; i < chars; i++) {
text[i] = possible.charAt(Math.floor(Math.random() * possible.length));
}
return text.join("");
return array && typeof array.length === "number" && array.constructor === Array;
}
/**
* Provides functionality to extend the given object by doing a shallow copy
*
* @param target The object to which properties will be copied
* @param source The source object from which properties will be copied
* @param noOverwrite If true existing properties on the target are not overwritten from the source
*
*/
function extend(target, source, noOverwrite = false) {
if (!Util.objectDefinedNotNull(source)) {
return target;
}
/**
* Gets a random GUID value
*
* http://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript
*/
/* tslint:disable no-bitwise */
static getGUID() {
let d = new Date().getTime();
const guid = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
const r = (d + Math.random() * 16) % 16 | 0;
d = Math.floor(d / 16);
return (c === "x" ? r : (r & 0x3 | 0x8)).toString(16);
});
return guid;
}
/* tslint:enable */
/**
* Determines if a given value is a function
*
* @param cf The thing to test for functionness
*/
static isFunc(cf) {
return typeof cf === "function";
}
/**
* Determines if an object is both defined and not null
* @param obj Object to test
*/
static objectDefinedNotNull(obj) {
return typeof obj !== "undefined" && obj !== null;
}
/**
* @returns whether the provided parameter is a JavaScript Array or not.
*/
static isArray(array) {
if (Array.isArray) {
return Array.isArray(array);
}
return array && typeof array.length === "number" && array.constructor === Array;
}
/**
* Provides functionality to extend the given object by doing a shallow copy
*
* @param target The object to which properties will be copied
* @param source The source object from which properties will be copied
* @param noOverwrite If true existing properties on the target are not overwritten from the source
*
*/
static extend(target, source, noOverwrite = false) {
if (!Util.objectDefinedNotNull(source)) {
return target;
}
// ensure we don't overwrite things we don't want overwritten
const check = noOverwrite ? (o, i) => !(i in o) : () => true;
return Object.getOwnPropertyNames(source)
.filter((v) => check(target, v))
.reduce((t, v) => {
t[v] = source[v];
return t;
}, target);
}
/**
* Determines if a given url is absolute
*
* @param url The url to check to see if it is absolute
*/
static isUrlAbsolute(url) {
return /^https?:\/\/|^\/\//i.test(url);
}
/**
* Determines if a string is null or empty or undefined
*
* @param s The string to test
*/
static stringIsNullOrEmpty(s) {
return typeof s === "undefined" || s === null || s.length < 1;
}
// ensure we don't overwrite things we don't want overwritten
const check = noOverwrite ? (o, i) => !(i in o) : () => true;
return Object.getOwnPropertyNames(source)
.filter((v) => check(target, v))
.reduce((t, v) => {
t[v] = source[v];
return t;
}, target);
}
/**
* Determines if a given url is absolute
*
* @param url The url to check to see if it is absolute
*/
function isUrlAbsolute(url) {
return /^https?:\/\/|^\/\//i.test(url);
}
/**
* Determines if a string is null or empty or undefined
*
* @param s The string to test
*/
function stringIsNullOrEmpty(s) {
return typeof s === "undefined" || s === null || s.length < 1;
}
class Util {
}
/**
* Gets a callback function which will maintain context across async calls.
* Allows for the calling pattern getCtxCallback(thisobj, method, methodarg1, methodarg2, ...)
*
* @param context The object that will be the 'this' value in the callback
* @param method The method to which we will apply the context and parameters
* @param params Optional, additional arguments to supply to the wrapped method when it is invoked
*/
Util.getCtxCallback = getCtxCallback;
/**
* Adds a value to a date
*
* @param date The date to which we will add units, done in local time
* @param interval The name of the interval to add, one of: ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second']
* @param units The amount to add to date of the given interval
*
* http://stackoverflow.com/questions/1197928/how-to-add-30-minutes-to-a-javascript-date-object
*/
Util.dateAdd = dateAdd;
/**
* Combines an arbitrary set of paths ensuring and normalizes the slashes
*
* @param paths 0 to n path parts to combine
*/
Util.combinePaths = combinePaths;
/**
* Gets a random string of chars length
*
* @param chars The length of the random string to generate
*/
Util.getRandomString = getRandomString;
/**
* Gets a random GUID value
*
* http://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript
*/
Util.getGUID = getGUID;
/**
* Determines if a given value is a function
*
* @param cf The thing to test for functionness
*/
Util.isFunc = isFunc;
/**
* Determines if an object is both defined and not null
* @param obj Object to test
*/
Util.objectDefinedNotNull = objectDefinedNotNull;
/**
* @returns whether the provided parameter is a JavaScript Array or not.
*/
Util.isArray = isArray;
/**
* Provides functionality to extend the given object by doing a shallow copy
*
* @param target The object to which properties will be copied
* @param source The source object from which properties will be copied
* @param noOverwrite If true existing properties on the target are not overwritten from the source
*
*/
Util.extend = extend;
/**
* Determines if a given url is absolute
*
* @param url The url to check to see if it is absolute
*/
Util.isUrlAbsolute = isUrlAbsolute;
/**
* Determines if a string is null or empty or undefined
*
* @param s The string to test
*/
Util.stringIsNullOrEmpty = stringIsNullOrEmpty;

@@ -678,3 +751,3 @@ function mergeHeaders(target, source) {

export { Util, readBlobAsText, readBlobAsArrayBuffer, Dictionary, deprecated, beta, UrlException, setup, RuntimeConfigImpl, RuntimeConfig, mergeHeaders, mergeOptions, FetchClient, BearerTokenFetchClient, PnPClientStorageWrapper, PnPClientStorage };
export { readBlobAsText, readBlobAsArrayBuffer, Dictionary, deprecated, beta, UrlException, setup, RuntimeConfigImpl, RuntimeConfig, mergeHeaders, mergeOptions, FetchClient, BearerTokenFetchClient, PnPClientStorageWrapper, PnPClientStorage, getCtxCallback, dateAdd, combinePaths, getRandomString, getGUID, isFunc, objectDefinedNotNull, isArray, extend, isUrlAbsolute, stringIsNullOrEmpty, Util };
//# sourceMappingURL=common.js.map

@@ -17,3 +17,3 @@ # @pnp/common/collections

A dictionary using string keys and containing values of type T. It works by maintaining to parallel arrays of keys and values.
A dictionary using string keys and containing values of type T. It works by maintaining two parallel arrays of keys and values.

@@ -20,0 +20,0 @@ ```TypeScript

# @pnp/common/decorators
This module contains two decorators used internally to communicate if a feature is either being deprecated or in beta
This module contains decorators use internally within the @pnp libraries. You are welcome to use them in your projects.

@@ -5,0 +5,0 @@ ## deprecated

# @pnp/common/exceptions
This module contains general exception classes used across the @pnp libraryies.
This module contains general exception classes used across the @pnp libraries.

@@ -5,0 +5,0 @@ ## UrlException

# @pnp/common
The common modules provides a set of utilities classes and reusable building blocks used throughout the @pnp modules. They can be used wihtin your applications as well,
should you find them useful.
[![npm version](https://badge.fury.io/js/%40pnp%2Fcommon.svg)](https://badge.fury.io/js/%40pnp%2Fcommon)
The common modules provides a set of utilities classes and reusable building blocks used throughout the @pnp modules. They can be used within your applications as well.
## Getting Started
Install the library and required dependencies
`npm install @pnp\logging @pnp\common --save`
Import and use functionality, see details on modules below.
```TypeScript
import { Util } from "@pnp/common";
console.log(Util.getGUID());
```
## Exports

@@ -7,0 +22,0 @@

@@ -63,3 +63,3 @@ # @pnp/common/libconfig

// note you can use object hashes as values
RumtimeConfig.extend({
RuntimeConfig.extend({
"myKey1": "value 1",

@@ -73,3 +73,3 @@ "myKey2": {

// read your custom values
const v = RumtimeConfig.get("myKey1"); // "value 1"
const v = RuntimeConfig.get("myKey1"); // "value 1"
```

@@ -83,3 +83,3 @@

```TypeScript
import { LibraryConfiguration, RumtimeConfig } from "@pnp/common";
import { LibraryConfiguration, RuntimeConfig } from "@pnp/common";

@@ -86,0 +86,0 @@ // first we create our own interface by extending LibraryConfiguration. This allows your class to accept all the values with correct type checking. Note, because

@@ -11,3 +11,4 @@ # @pnp/common/netutil

Defines an implementation of an Http Client within the context of @pnp. This being a class with a a single method "fetch" take a URL and
options and returning a Promise<Response>. Used primarily with the shared request pipeline to define the client used to make the actual request.
options and returning a Promise<Response>. Used primarily with the shared request pipeline to define the client used to make the actual request. You can
write your own [custom implementation](custom-httpclientimpl.md) if needed.

@@ -22,8 +23,16 @@ ### RequestClient

Thid module export two classes of note, FetchClient and BearerTokenFetchClient. Both implement HttpClientImpl.
This module export two classes of note, FetchClient and BearerTokenFetchClient. Both implement HttpClientImpl.
### FetchClient
Basic implementation that calls the global (window) fetch method with no additinoal processing.
Basic implementation that calls the global (window) fetch method with no additional processing.
```TypeScript
import { FetchClient } from "@pnp/common";
const client = new FetchClient();
client.fetch("{url}", {});
```
### BearerTokenFetchClient

@@ -30,0 +39,0 @@

@@ -82,5 +82,5 @@ # @pnp/common/storage

import { RumtimeConfig } from "@pnp/common";
import { RuntimeConfig } from "@pnp/common";
RumtimeConfig.setup({
RuntimeConfig.setup({
enableCacheExpiration: true,

@@ -87,0 +87,0 @@ cacheExpirationIntervalMilliseconds: 1000, // optional

# @pnp/common/util
This module exports a single static class containing utility functions.
This module contains utility methods that you can import either individually from the common library or in a single static class "Util". Both are shown below.
```TypeScript
import {
Util,
getRandomString,
} from "@pnp/common";
// use from Util static class
console.log(Util.getRandomString(10));
// use from individual;y imported method
console.log(getRandomString(10));
```
## getCtxCallback

@@ -45,3 +59,3 @@

Combines any number of paths, normalizign the slashes as required
Combines any number of paths, normalizing the slashes as required

@@ -51,4 +65,6 @@ ```TypeScript

// "https://microsoft.com/something/more"
const paths = Util.combinePaths("https://microsoft.com", "something", "more");
// "also/works/with/relative"
const paths2 = Util.combinePaths("/also/", "/works", "with/", "/relative\\");

@@ -118,3 +134,3 @@ ```

Some methods that were no longer used internally by the @pnp libraries have been removed from this class. You can find the source for those methods
Some methods that were no longer used internally by the @pnp libraries have been removed. You can find the source for those methods
below for use in your projects should you require.

@@ -121,0 +137,0 @@

{
"name": "@pnp/common",
"version": "1.0.0-beta.11",
"version": "1.0.0-rc.0",
"description": "pnp - provides shared functionality across all pnp libraries",

@@ -8,6 +8,6 @@ "main": "./dist/common.es5.umd.js",

"dependencies": {
"tslib": "1.7.1"
"tslib": "1.8.1"
},
"peerDependencies": {
"@pnp/logging": "1.0.0-beta.11"
"@pnp/logging": "1.0.0-rc.0"
},

@@ -14,0 +14,0 @@ "author": {

![SharePoint Patterns and Practices](https://devofficecdn.azureedge.net/media/Default/PnP/sppnp.png)
The SharePoint Patterns and Practices client side libraries were created to help enable developers to do their best work, without worrying about the exact
REST api details. Built with feedback from the community they represent a way to simplify your day-to-day dev cycle while relying on tested and proven
patterns.
Please use [http://aka.ms/sppnp](http://aka.ms/sppnp) for the latest updates around the whole *SharePoint Patterns and Practices (PnP) initiative*.
## Source & Docs
This code is managed within the [main pnp repo](https://github.com/pnp/pnp), please report issues and submit pull requests there.
Please see the public site for [package documentation](https://pnp.github.io/pnp/).
### Code of Conduct
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.

@@ -7,0 +18,0 @@

@@ -9,2 +9,2 @@ export * from "./blobutil";

export * from "./storage";
export { Util } from "./util";
export * from "./util";

@@ -0,1 +1,74 @@

/**
* Gets a callback function which will maintain context across async calls.
* Allows for the calling pattern getCtxCallback(thisobj, method, methodarg1, methodarg2, ...)
*
* @param context The object that will be the 'this' value in the callback
* @param method The method to which we will apply the context and parameters
* @param params Optional, additional arguments to supply to the wrapped method when it is invoked
*/
export declare function getCtxCallback(context: any, method: Function, ...params: any[]): Function;
/**
* Adds a value to a date
*
* @param date The date to which we will add units, done in local time
* @param interval The name of the interval to add, one of: ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second']
* @param units The amount to add to date of the given interval
*
* http://stackoverflow.com/questions/1197928/how-to-add-30-minutes-to-a-javascript-date-object
*/
export declare function dateAdd(date: Date, interval: string, units: number): Date | undefined;
/**
* Combines an arbitrary set of paths ensuring and normalizes the slashes
*
* @param paths 0 to n path parts to combine
*/
export declare function combinePaths(...paths: string[]): string;
/**
* Gets a random string of chars length
*
* @param chars The length of the random string to generate
*/
export declare function getRandomString(chars: number): string;
/**
* Gets a random GUID value
*
* http://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript
*/
export declare function getGUID(): string;
/**
* Determines if a given value is a function
*
* @param cf The thing to test for functionness
*/
export declare function isFunc(cf: any): boolean;
/**
* Determines if an object is both defined and not null
* @param obj Object to test
*/
export declare function objectDefinedNotNull(obj: any): boolean;
/**
* @returns whether the provided parameter is a JavaScript Array or not.
*/
export declare function isArray(array: any): boolean;
/**
* Provides functionality to extend the given object by doing a shallow copy
*
* @param target The object to which properties will be copied
* @param source The source object from which properties will be copied
* @param noOverwrite If true existing properties on the target are not overwritten from the source
*
*/
export declare function extend(target: any, source: any, noOverwrite?: boolean): any;
/**
* Determines if a given url is absolute
*
* @param url The url to check to see if it is absolute
*/
export declare function isUrlAbsolute(url: string): boolean;
/**
* Determines if a string is null or empty or undefined
*
* @param s The string to test
*/
export declare function stringIsNullOrEmpty(s: string): boolean;
export declare class Util {

@@ -10,3 +83,3 @@ /**

*/
static getCtxCallback(context: any, method: Function, ...params: any[]): Function;
static getCtxCallback: typeof getCtxCallback;
/**

@@ -21,3 +94,3 @@ * Adds a value to a date

*/
static dateAdd(date: Date, interval: string, units: number): Date | undefined;
static dateAdd: typeof dateAdd;
/**

@@ -28,3 +101,3 @@ * Combines an arbitrary set of paths ensuring and normalizes the slashes

*/
static combinePaths(...paths: string[]): string;
static combinePaths: typeof combinePaths;
/**

@@ -35,3 +108,3 @@ * Gets a random string of chars length

*/
static getRandomString(chars: number): string;
static getRandomString: typeof getRandomString;
/**

@@ -42,3 +115,3 @@ * Gets a random GUID value

*/
static getGUID(): string;
static getGUID: typeof getGUID;
/**

@@ -49,3 +122,3 @@ * Determines if a given value is a function

*/
static isFunc(cf: any): boolean;
static isFunc: typeof isFunc;
/**

@@ -55,7 +128,7 @@ * Determines if an object is both defined and not null

*/
static objectDefinedNotNull(obj: any): boolean;
static objectDefinedNotNull: typeof objectDefinedNotNull;
/**
* @returns whether the provided parameter is a JavaScript Array or not.
*/
static isArray(array: any): boolean;
static isArray: typeof isArray;
/**

@@ -69,3 +142,3 @@ * Provides functionality to extend the given object by doing a shallow copy

*/
static extend(target: any, source: any, noOverwrite?: boolean): any;
static extend: typeof extend;
/**

@@ -76,3 +149,3 @@ * Determines if a given url is absolute

*/
static isUrlAbsolute(url: string): boolean;
static isUrlAbsolute: typeof isUrlAbsolute;
/**

@@ -83,3 +156,3 @@ * Determines if a string is null or empty or undefined

*/
static stringIsNullOrEmpty(s: string): boolean;
static stringIsNullOrEmpty: typeof stringIsNullOrEmpty;
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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