gd-sprest 9.3.6 → 9.3.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.36,
12
+ __ver: 9.37,
13
13
  AppContext: function (siteUrl) { return Lib.Site.getAppContext(siteUrl); },
14
14
  Apps: Lib.Apps,
15
15
  ContextInfo: Lib.ContextInfo,
@@ -622,6 +622,11 @@ exports.Request = {
622
622
  else {
623
623
  // Update the base object's properties
624
624
  exports.Request.addProperties(obj, data);
625
+ // See if the response is an array
626
+ if (typeof (data) === "object" && typeof (data.length) === "number" && typeof (data.push) === "function") {
627
+ // Update the data collection
628
+ helper_1.Helper.updateDataCollection(obj, data);
629
+ }
625
630
  }
626
631
  // See if the batch request exists
627
632
  if (isBatchRequest) {