gd-sprest 8.7.7 → 8.7.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
@@ -9,7 +9,7 @@ var sptypes_1 = require("./sptypes");
9
9
  * SharePoint REST Library
10
10
  */
11
11
  exports.$REST = {
12
- __ver: 8.76,
12
+ __ver: 8.78,
13
13
  AppContext: function (siteUrl) { return Lib.Site.getAppContext(siteUrl); },
14
14
  Apps: Lib.Apps,
15
15
  ContextInfo: Lib.ContextInfo,
package/build/v2/sites.js CHANGED
@@ -137,10 +137,10 @@ exports.sites.getFile = function (props) {
137
137
  /** Returns a list */
138
138
  exports.sites.getList = function (props) {
139
139
  // Finds the list
140
- var findList = function (siteId, listName) {
140
+ var findList = function (siteId, webId, listName) {
141
141
  // Return a promise
142
142
  return new Promise(function (resolve, reject) {
143
- (0, exports.sites)({ siteId: siteId }).lists().query({
143
+ (0, exports.sites)({ siteId: siteId, webId: webId }).lists().query({
144
144
  Filter: "displayName eq '" + listName + "'",
145
145
  Select: ["id"]
146
146
  }).execute(function (sites) {
@@ -164,13 +164,13 @@ exports.sites.getList = function (props) {
164
164
  // See if the id was given
165
165
  if (props.listId) {
166
166
  // Resolve the request
167
- resolve((0, exports.sites)({ siteId: props.siteId }).lists(props.listId));
167
+ resolve((0, exports.sites)({ siteId: props.siteId, webId: props.webId }).lists(props.listId));
168
168
  }
169
169
  else {
170
170
  // Find the list
171
- findList(props.siteId, props.listName).then(function (listId) {
171
+ findList(props.siteId, props.webId, props.listName).then(function (listId) {
172
172
  // Resolve the request
173
- resolve((0, exports.sites)({ siteId: props.siteId }).lists(listId));
173
+ resolve((0, exports.sites)({ siteId: props.siteId, webId: props.webId }).lists(listId));
174
174
  }, reject);
175
175
  }
176
176
  }
@@ -184,7 +184,7 @@ exports.sites.getList = function (props) {
184
184
  }
185
185
  else {
186
186
  // Find the list
187
- findList(info.siteId, props.listName).then(function (listId) {
187
+ findList(info.siteId, props.webId, props.listName).then(function (listId) {
188
188
  // Resolve the request
189
189
  resolve((0, exports.sites)({ siteId: info.siteId }).lists(listId));
190
190
  }, reject);