gd-sprest 8.9.6 → 8.9.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.
@@ -54,6 +54,9 @@ export interface ITargetInfoProps {
54
54
  /** Sets the Cache-Control header to no-cache */
55
55
  disableCache?: boolean;
56
56
 
57
+ /** True to not process the response, when dealing with querying large lists. */
58
+ disableProcessing?: boolean;
59
+
57
60
  /** The endpoint of the request. */
58
61
  endpoint?: string;
59
62
 
package/FUNDING.yml ADDED
@@ -0,0 +1,2 @@
1
+ github: [octocat, surftocat]
2
+ custom: [https://paypal.me/Dattabase, dattabase.com]
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: 8.96,
12
+ __ver: 8.98,
13
13
  AppContext: function (siteUrl) { return Lib.Site.getAppContext(siteUrl); },
14
14
  Apps: Lib.Apps,
15
15
  ContextInfo: Lib.ContextInfo,
@@ -560,10 +560,13 @@ exports.Request = {
560
560
  exports.Request.addProperties(obj, objData);
561
561
  // Add the methods
562
562
  exports.Request.addMethods(obj, objData, objData["@odata.context"]);
563
- // Update the data collection
564
- helper_1.Helper.updateDataCollection(obj, objData["results"]);
565
- // Update the expanded properties
566
- helper_1.Helper.updateExpandedProperties(obj);
563
+ // See if we are not bypassing the processing of the response
564
+ if (base.targetInfo.disableProcessing != true) {
565
+ // Update the data collection
566
+ helper_1.Helper.updateDataCollection(obj, objData["results"]);
567
+ // Update the expanded properties
568
+ helper_1.Helper.updateExpandedProperties(obj);
569
+ }
567
570
  // Update the search results
568
571
  helper_1.Helper.updateSearchResults(obj);
569
572
  }
@@ -584,10 +587,13 @@ exports.Request = {
584
587
  exports.Request.addProperties(obj, data.d);
585
588
  // Add the methods
586
589
  exports.Request.addMethods(obj, data.d, data["@odata.context"]);
587
- // Update the data collection
588
- helper_1.Helper.updateDataCollection(obj, data.d.results);
589
- // Update the expanded properties
590
- helper_1.Helper.updateExpandedProperties(obj);
590
+ // See if we are not bypassing the processing of the response
591
+ if (base.targetInfo.disableProcessing != true) {
592
+ // Update the data collection
593
+ helper_1.Helper.updateDataCollection(obj, data.d.results);
594
+ // Update the expanded properties
595
+ helper_1.Helper.updateExpandedProperties(obj);
596
+ }
591
597
  // Update the search results
592
598
  helper_1.Helper.updateSearchResults(obj);
593
599
  }
@@ -599,8 +605,11 @@ exports.Request = {
599
605
  exports.Request.addProperties(obj, data);
600
606
  // Add the methods
601
607
  exports.Request.addMethods(obj, data, data["@odata.context"]);
602
- // Update the data collection
603
- helper_1.Helper.updateDataCollection(obj, data.value);
608
+ // See if we are not bypassing the processing of the response
609
+ if (base.targetInfo.disableProcessing != true) {
610
+ // Update the data collection
611
+ helper_1.Helper.updateDataCollection(obj, data.value);
612
+ }
604
613
  }
605
614
  else {
606
615
  // Update the base object's properties
@@ -673,10 +682,13 @@ exports.Request = {
673
682
  // Convert the response and see if values were returned
674
683
  var data = JSON.parse(xhr.response);
675
684
  if (data.d || data.value) {
676
- // Update the data collection
677
- helper_1.Helper.updateDataCollection(base, ((_a = data.d) === null || _a === void 0 ? void 0 : _a.results) || data.value);
678
- // Update the expanded properties
679
- helper_1.Helper.updateExpandedProperties(base);
685
+ // See if we are not bypassing the processing of the response
686
+ if (base.targetInfo.disableProcessing != true) {
687
+ // Update the data collection
688
+ helper_1.Helper.updateDataCollection(base, ((_a = data.d) === null || _a === void 0 ? void 0 : _a.results) || data.value);
689
+ // Update the expanded properties
690
+ helper_1.Helper.updateExpandedProperties(base);
691
+ }
680
692
  // Append the raw data results
681
693
  if ((_b = base["d"]) === null || _b === void 0 ? void 0 : _b.results) {
682
694
  base["d"].results = base["d"].results.concat((_c = data.d) === null || _c === void 0 ? void 0 : _c.results);
@@ -7380,6 +7380,9 @@ declare module 'gd-sprest/utils/targetInfo' {
7380
7380
  /** Sets the Cache-Control header to no-cache */
7381
7381
  disableCache?: boolean;
7382
7382
 
7383
+ /** True to not process the response, when dealing with querying large lists. */
7384
+ disableProcessing?: boolean;
7385
+
7383
7386
  /** The endpoint of the request. */
7384
7387
  endpoint?: string;
7385
7388