gd-sprest 7.9.6 → 7.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.
@@ -4711,7 +4711,7 @@ exports.Mapper = {
4711
4711
  "AttachmentFiles|SP.Attachment.Collection|('[Name]')|SP.Attachment", "Comments|Microsoft.SharePoint.Comments.comment.Collection|('[Name]')|Microsoft.SharePoint.Comments.comment",
4712
4712
  "ContentType|SP.ContentType", "FieldValuesAsHtml", "FieldValuesAsText", "FieldValuesForEdit", "File|SP.File", "FirstUniqueAncestorSecurableObject",
4713
4713
  "Folder|SP.Folder", "GetDlpPolicyTip", "ParentList", "Properties", "RoleAssignments|SP.RoleAssignment.Collection|roleassignments|([Name])|SP.RoleAssignment",
4714
- "Versions|SP.ListItemVersion.Collection"
4714
+ "Versions|SP.ListItemVersion.Collection|(Name)|SPListItemVersion"
4715
4715
  ],
4716
4716
  addThumbnailFieldData: {
4717
4717
  argNames: ["imageStream", "imageName", "fieldInternalName"],
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: 7.95,
12
+ __ver: 7.98,
13
13
  AppContext: function (siteUrl) { return Lib.Site.getAppContext(siteUrl); },
14
14
  Apps: Lib.Apps,
15
15
  ContextInfo: Lib.ContextInfo,
@@ -373,14 +373,13 @@ exports.Helper = {
373
373
  },
374
374
  // Method to update the search results
375
375
  updateSearchResults: function (base) {
376
- var _a;
377
376
  // See if this contains search results
378
377
  var results = base["postquery"];
379
378
  if (results == null || results.PrimaryQueryResult == null) {
380
379
  return;
381
380
  }
382
381
  // Clear the results
383
- base["results"] = base["results"] || [];
382
+ base["postquery"].results = base["postquery"].results || [];
384
383
  // Parse the results
385
384
  for (var i = 0; i < results.PrimaryQueryResult.RelevantResults.RowCount; i++) {
386
385
  var data = {};
@@ -392,7 +391,7 @@ exports.Helper = {
392
391
  data[cell.Key] = cell.Value;
393
392
  }
394
393
  // Append the result
395
- (_a = base["results"]) === null || _a === void 0 ? void 0 : _a.push(data);
394
+ base["postquery"].results.push(data);
396
395
  }
397
396
  }
398
397
  };