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 +1 -1
- package/build/utils/request.js +5 -0
- package/dist/gd-sprest.js +1 -1
- package/dist/gd-sprest.min.js +1 -1
- package/package.json +1 -1
package/build/rest.js
CHANGED
package/build/utils/request.js
CHANGED
|
@@ -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) {
|