gd-sprest 9.8.7 → 9.8.8

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
@@ -6,7 +6,7 @@ import { GraphTypes, SPTypes } from "./sptypes";
6
6
  * SharePoint REST Library
7
7
  */
8
8
  export const $REST = {
9
- __ver: 9.87,
9
+ __ver: 9.88,
10
10
  AppContext: (siteUrl) => { return Lib.Site.getAppContext(siteUrl); },
11
11
  Apps: Lib.Apps,
12
12
  ContextInfo: Lib.ContextInfo,
@@ -436,7 +436,7 @@ export const Request = {
436
436
  // Parse the requests
437
437
  Executor(base.base.batchRequests, batchRequest => {
438
438
  // Do nothing if the stop flag is set
439
- if (root.stopFl) {
439
+ if (root.stopFl || base.stopFl) {
440
440
  return;
441
441
  }
442
442
  // Return a promise
@@ -705,7 +705,7 @@ export const Request = {
705
705
  // Get the root base object
706
706
  let root = Helper.getRootParent(base);
707
707
  // See if we are getting all items in the base request
708
- if (base.getAllItemsFl && root.stopFl != true) {
708
+ if (base.getAllItemsFl && (root.stopFl || base.stopFl) != true) {
709
709
  // Create the target information to query the next set of results
710
710
  let targetInfo = Object.create(base.targetInfo);
711
711
  targetInfo.accessToken = base.targetInfo.accessToken || (base.xhr.isGraph ? Graph.Token : null);