gd-sprest 9.4.0 → 9.4.1

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: 9.40,
12
+ __ver: 9.41,
13
13
  AppContext: function (siteUrl) { return Lib.Site.getAppContext(siteUrl); },
14
14
  Apps: Lib.Apps,
15
15
  ContextInfo: Lib.ContextInfo,
@@ -510,7 +510,7 @@ exports.Request = {
510
510
  if (isBatchRequest === void 0) { isBatchRequest = false; }
511
511
  if (batchIdx === void 0) { batchIdx = 0; }
512
512
  // Ensure the request was successful
513
- if (base.status >= 200 && base.status < 300) {
513
+ if ((base.status >= 200 && base.status < 300) || (isBatchRequest && base.status == 422)) {
514
514
  // Return if we are expecting a buffer
515
515
  if (base.requestType == requestType_1.RequestType.GetBuffer) {
516
516
  return;