gd-sprest 9.8.5 → 9.8.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 -4
- 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
|
@@ -670,6 +670,9 @@ export const Request = {
|
|
|
670
670
|
if (isBatchRequest) {
|
|
671
671
|
// Process the callbacks
|
|
672
672
|
Batch.processCallbacks(base.base.batchRequests[batchIdx]);
|
|
673
|
+
// See if the callback for odata query exists and call the event
|
|
674
|
+
let callbackQuery = base.targetInfo.callbackQuery || base.base.targetInfo.callbackQuery;
|
|
675
|
+
callbackQuery ? callbackQuery(base.base.batchRequests[batchIdx]) : null;
|
|
673
676
|
}
|
|
674
677
|
}
|
|
675
678
|
},
|
|
@@ -695,10 +698,8 @@ export const Request = {
|
|
|
695
698
|
// Set the next item flag
|
|
696
699
|
base.nextFl = data["@odata.nextLink"] || (data.d && data.d.__next);
|
|
697
700
|
// See if the callback for odata query exists
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
base.targetInfo.callbackQuery(((_a = data.d) === null || _a === void 0 ? void 0 : _a.results) || data.value);
|
|
701
|
-
}
|
|
701
|
+
let callbackQuery = base.targetInfo.callbackQuery || base.base.targetInfo.callbackQuery;
|
|
702
|
+
callbackQuery ? callbackQuery(((_a = data.d) === null || _a === void 0 ? void 0 : _a.results) || data.value) : null;
|
|
702
703
|
// See if there are more items to get
|
|
703
704
|
if (base.nextFl) {
|
|
704
705
|
// Get the root base object
|