slnodejs 6.1.167 → 6.1.175

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.
@@ -6946,16 +6946,16 @@ function fromByteArray (uint8) {
6946
6946
  var w = this.words[i];
6947
6947
  var word = (((w << off) | carry) & 0xffffff).toString(16);
6948
6948
  carry = (w >>> (24 - off)) & 0xffffff;
6949
- if (carry !== 0 || i !== this.length - 1) {
6950
- out = zeros[6 - word.length] + word + out;
6951
- } else {
6952
- out = word + out;
6953
- }
6954
6949
  off += 2;
6955
6950
  if (off >= 26) {
6956
6951
  off -= 26;
6957
6952
  i--;
6958
6953
  }
6954
+ if (carry !== 0 || i !== this.length - 1) {
6955
+ out = zeros[6 - word.length] + word + out;
6956
+ } else {
6957
+ out = word + out;
6958
+ }
6959
6959
  }
6960
6960
  if (carry !== 0) {
6961
6961
  out = carry.toString(16) + out;
@@ -50165,11 +50165,18 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
50165
50165
  BackendProxy.prototype.submitBlobAsync = function (body, buildSessionId, blobId) {
50166
50166
  var _this = this;
50167
50167
  var url = sl_routes_1.SLRoutes.blobs(buildSessionId, blobId);
50168
- return new Promise(function (res, rej) {
50169
- _this.client.post(body, url, function (error) {
50170
- rej(error);
50168
+ return new Promise(function (resolve, reject) {
50169
+ _this.client.post(body, url, function (error, statusCode) {
50170
+ _this.logger.debug("Blob " + blobId + " uploaded with status code " + statusCode);
50171
+ if (error) {
50172
+ _this.logger.error("Error while submitting sl-mapping, '" + error + "'");
50173
+ return reject(error);
50174
+ }
50175
+ else {
50176
+ _this.logger.info('sl-mapping submitted successfully');
50177
+ return resolve();
50178
+ }
50171
50179
  }, true, contracts_1.ContentType.OCTET_STREAM);
50172
- res(null);
50173
50180
  });
50174
50181
  };
50175
50182
  BackendProxy.prototype.submitBlob = function (body, buildSessionId, blobId, callback) {