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.
- package/build/mapper/def.js +1 -1
- package/build/rest.js +1 -1
- package/build/utils/helper.js +2 -3
- package/dist/gd-sprest.js +1 -1
- package/dist/gd-sprest.min.js +1 -1
- package/package.json +1 -1
package/build/mapper/def.js
CHANGED
|
@@ -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
package/build/utils/helper.js
CHANGED
|
@@ -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["
|
|
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
|
-
|
|
394
|
+
base["postquery"].results.push(data);
|
|
396
395
|
}
|
|
397
396
|
}
|
|
398
397
|
};
|