jitz-sharepoint-utilities 2.0.9 → 2.0.10

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.
@@ -18,10 +18,10 @@ export default class Repository<T extends IModel> implements IRepository<T> {
18
18
  this.context = context;
19
19
  this.listName = listName;
20
20
  this.listGuid = listGuid;
21
- this.listUrl = `${this.context.siteUrl}/_api/web/lists/${
21
+ this.listUrl = `${this.context.siteUrl}/_api/web/lists${
22
22
  this.listGuid == ""
23
- ? "GetByTitle('" + this.listName + "')"
24
- : "lists(guid'" + this.listGuid + "')"
23
+ ? "/GetByTitle('" + this.listName + "')"
24
+ : "(guid'" + this.listGuid + "')"
25
25
  }`;
26
26
  }
27
27
 
@@ -43,9 +43,9 @@ var Repository = /** @class */ (function () {
43
43
  this.context = context;
44
44
  this.listName = listName;
45
45
  this.listGuid = listGuid;
46
- this.listUrl = "".concat(this.context.siteUrl, "/_api/web/lists/").concat(this.listGuid == ""
47
- ? "GetByTitle('" + this.listName + "')"
48
- : "lists(guid'" + this.listGuid + "')");
46
+ this.listUrl = "".concat(this.context.siteUrl, "/_api/web/lists").concat(this.listGuid == ""
47
+ ? "/GetByTitle('" + this.listName + "')"
48
+ : "(guid'" + this.listGuid + "')");
49
49
  }
50
50
  Repository.prototype.getAll = function (selectFields, expand, filters, orderBy, top, skip, skipTokenUniqueField, skipTokenUniqueFieldValue) {
51
51
  var queryUrlGetAllItems = "".concat(this.listUrl, "/items");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jitz-sharepoint-utilities",
3
- "version": "2.0.9",
3
+ "version": "2.0.10",
4
4
  "description": "Essential SharePoint utilities for SharePoint Add-in and SPFx development",
5
5
  "author": "Jithendra Mani",
6
6
  "license": "ISC",