gd-sprest 9.5.6 → 9.5.7

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
@@ -9,7 +9,7 @@ var sptypes_1 = require("./sptypes");
9
9
  * SharePoint REST Library
10
10
  */
11
11
  exports.$REST = {
12
- __ver: 9.56,
12
+ __ver: 9.57,
13
13
  AppContext: function (siteUrl) { return Lib.Site.getAppContext(siteUrl); },
14
14
  Apps: Lib.Apps,
15
15
  ContextInfo: Lib.ContextInfo,
@@ -66,7 +66,7 @@ exports.Helper = {
66
66
  // Copy the target information
67
67
  targetInfo = Object.create(base.targetInfo);
68
68
  // See if this is a graph request and an id exists for the parent
69
- if ((base["@odata.etag"] || (base === null || base === void 0 ? void 0 : base.parent["@odata.context"])) && base["id"]) {
69
+ if ((base["@odata.etag"] || ((base === null || base === void 0 ? void 0 : base.parent) ? base === null || base === void 0 ? void 0 : base.parent["@odata.context"] : null)) && base["id"]) {
70
70
  // Append the id
71
71
  targetInfo.endpoint += "/" + base["id"];
72
72
  }