gd-sprest 6.9.3 → 6.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/rest.js
CHANGED
package/dist/gd-sprest.js
CHANGED
|
@@ -170,7 +170,7 @@ eval("\n\nvar __createBinding = this && this.__createBinding || (Object.create ?
|
|
|
170
170
|
/***/ (function(__unused_webpack_module, exports) {
|
|
171
171
|
|
|
172
172
|
"use strict";
|
|
173
|
-
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({\n value: true\n}));\nexports.loadSPCore = void 0;\n/**\r\n * Loads the core SharePoint JavaScript library for JSOM.\r\n */\n\nexports.loadSPCore = function () {\n // Return a promise\n return new Promise(function (resolve) {\n // Define the core libraries to load\n var libs = [\"init\", \"MicrosoftAjax\", \"SP.Runtime\", \"SP\"]; // Parse the libraries\n\n for (var i = 0; i < libs.length; i++) {\n var libName = libs[i]; // See if a script already exists\n\n if (document.querySelector(\"script[title='\" + libName + \"']\") == null) {\n // Log\n console.debug(\"[gd-sprest] Loading the core library: \" + libName); // Load the library\n\n var elScript = document.createElement(\"script\");\n elScript.title = libName;\n elScript.src = document.location.origin + \"/_layouts/15/\" + libName + \".js\";\n document.head.appendChild(elScript);\n } else {\n // Log\n console.debug(\"[gd-sprest] Core library already loaded: \" + libName);\n } // Resolve the request\n\n\n
|
|
173
|
+
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({\n value: true\n}));\nexports.loadSPCore = void 0;\n/**\r\n * Loads the core SharePoint JavaScript library for JSOM.\r\n */\n\nexports.loadSPCore = function () {\n // Return a promise\n return new Promise(function (resolve) {\n // Define the core libraries to load\n var libs = [\"init\", \"MicrosoftAjax\", \"SP.Runtime\", \"SP\"]; // Parse the libraries\n\n for (var i = 0; i < libs.length; i++) {\n var libName = libs[i]; // See if a script already exists\n\n if (document.querySelector(\"script[title='\" + libName + \"']\") == null) {\n // Log\n console.debug(\"[gd-sprest] Loading the core library: \" + libName); // Load the library\n\n var elScript = document.createElement(\"script\");\n elScript.title = libName;\n elScript.src = document.location.origin + \"/_layouts/15/\" + libName + \".js\";\n document.head.appendChild(elScript);\n } else {\n // Log\n console.debug(\"[gd-sprest] Core library already loaded: \" + libName);\n }\n } // Resolve the request\n\n\n resolve();\n });\n};\n\n//# sourceURL=webpack://gd-sprest/./build/helper/methods/loadSPCore.js?");
|
|
174
174
|
|
|
175
175
|
/***/ }),
|
|
176
176
|
|
|
@@ -742,7 +742,7 @@ eval("\n\nObject.defineProperty(exports, \"__esModule\", ({\n value: true\n}));
|
|
|
742
742
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
743
743
|
|
|
744
744
|
"use strict";
|
|
745
|
-
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({\n value: true\n}));\nexports.$REST = void 0;\n\nvar Helper = __webpack_require__(/*! ./helper */ \"./build/helper/index.js\");\n\nvar Lib = __webpack_require__(/*! ./lib */ \"./build/lib/index.js\");\n\nvar sptypes_1 = __webpack_require__(/*! ./sptypes */ \"./build/sptypes/index.js\");\n/**\r\n * SharePoint REST Library\r\n */\n\n\nexports.$REST = {\n __ver: 6.
|
|
745
|
+
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({\n value: true\n}));\nexports.$REST = void 0;\n\nvar Helper = __webpack_require__(/*! ./helper */ \"./build/helper/index.js\");\n\nvar Lib = __webpack_require__(/*! ./lib */ \"./build/lib/index.js\");\n\nvar sptypes_1 = __webpack_require__(/*! ./sptypes */ \"./build/sptypes/index.js\");\n/**\r\n * SharePoint REST Library\r\n */\n\n\nexports.$REST = {\n __ver: 6.94,\n AppContext: function AppContext(siteUrl) {\n return Lib.Site.getAppContext(siteUrl);\n },\n Apps: Lib.Apps,\n ContextInfo: Lib.ContextInfo,\n DefaultRequestToHostFl: false,\n Graph: Lib.Graph,\n GroupService: Lib.GroupService,\n GroupSiteManager: Lib.GroupSiteManager,\n Helper: Helper,\n HubSites: Lib.HubSites,\n HubSitesUtility: Lib.HubSitesUtility,\n List: Lib.List,\n ListByEntityName: Lib.List.getByEntityName,\n ListDataAsStream: Lib.List.getDataAsStream,\n Navigation: Lib.Navigation,\n PeopleManager: Lib.PeopleManager,\n PeoplePicker: Lib.PeoplePicker,\n ProfileLoader: Lib.ProfileLoader,\n RemoteWeb: function RemoteWeb(requestUrl) {\n return Lib.Web.getRemoteWeb(requestUrl);\n },\n Search: Lib.Search,\n Site: Lib.Site,\n SiteManager: Lib.SiteManager,\n SiteExists: function SiteExists(url) {\n return Lib.Site.exists(url);\n },\n SiteUrl: function SiteUrl(id) {\n return Lib.Site.getUrlById(id);\n },\n SPTypes: sptypes_1.SPTypes,\n SocialFeed: Lib.SocialFeed,\n ThemeManager: Lib.ThemeManager,\n UserProfile: Lib.UserProfile,\n Utility: Lib.Utility,\n Web: Lib.Web,\n WebTemplateExtensions: Lib.WebTemplateExtensions,\n WorkflowInstanceService: Lib.WorkflowInstanceService,\n WorkflowSubscriptionService: Lib.WorkflowSubscriptionService\n}; // See if the library doesn't exist, or is an older version\n\nvar global = Lib.ContextInfo.window.$REST;\n\nif (global == null || global.__ver == null || global.__ver < exports.$REST.__ver) {\n // Set the global variable\n Lib.ContextInfo.window.$REST = exports.$REST; // Ensure the SP lib exists\n\n if (Lib.ContextInfo.window.SP) {\n // If MDS is turned on in a SP2013 environment, it may throw an error\n try {\n // Alert other scripts this library is loaded\n Lib.ContextInfo.window.SP.SOD.notifyScriptLoadedAndExecuteWaitingJobs(\"gd-sprest\");\n Lib.ContextInfo.window.SP.SOD.notifyScriptLoadedAndExecuteWaitingJobs(\"gd-sprest.js\");\n } catch (_a) {\n // Log\n console.error(\"[gd-sprest] Error notifying scripts using the SP SOD library.\");\n }\n }\n}\n\n//# sourceURL=webpack://gd-sprest/./build/rest.js?");
|
|
746
746
|
|
|
747
747
|
/***/ }),
|
|
748
748
|
|