gd-sprest 9.6.0 → 9.6.2

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.60,
12
+ __ver: 9.62,
13
13
  AppContext: function (siteUrl) { return Lib.Site.getAppContext(siteUrl); },
14
14
  Apps: Lib.Apps,
15
15
  ContextInfo: Lib.ContextInfo,
@@ -606,13 +606,13 @@ exports.Request = {
606
606
  helper_1.Helper.updateSearchResults(obj);
607
607
  }
608
608
  // Else, see if this is a graph request
609
- else if (data["@odata.context"]) {
609
+ else if (data["@odata.context"] || data["odata.type"] || data["odata.metadata"]) {
610
610
  // Save a reference to it
611
611
  obj["d"] = data;
612
612
  // Update the base object's properties
613
613
  exports.Request.addProperties(obj, data);
614
614
  // Add the methods
615
- exports.Request.addMethods(obj, data, data["@odata.context"]);
615
+ exports.Request.addMethods(obj, data, data["@odata.context"] || data["odata.type"] || data["odata.metadata"]);
616
616
  // See if we are not bypassing the processing of the response
617
617
  if (base.targetInfo.disableProcessing != true) {
618
618
  // Update the data collection