backendless 7.2.2 → 7.2.3

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.
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * ********************************************************************************************************************
3
- * Backendless SDK for JavaScript. Version: 7.2.2
3
+ * Backendless SDK for JavaScript. Version: 7.2.3
4
4
  *
5
5
  * Copyright 2012-2023 BACKENDLESS.COM. All Rights Reserved.
6
6
  *
@@ -9191,10 +9191,11 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
9191
9191
  var TransactionOperationError = /*#__PURE__*/function (_Error) {
9192
9192
  (0, _inherits2["default"])(TransactionOperationError, _Error);
9193
9193
  var _super = _createSuper(TransactionOperationError);
9194
- function TransactionOperationError(message, operation) {
9194
+ function TransactionOperationError(error, operation) {
9195
9195
  var _this;
9196
9196
  (0, _classCallCheck2["default"])(this, TransactionOperationError);
9197
- _this = _super.call(this, message);
9197
+ _this = _super.call(this, error.message);
9198
+ _this.code = error.code;
9198
9199
  _this.operation = operation;
9199
9200
  return _this;
9200
9201
  }
@@ -9354,7 +9355,7 @@ var UnitOfWork = /*#__PURE__*/function () {
9354
9355
  var operation = this.payload.operations.find(function (op) {
9355
9356
  return result.error.operation.opResultId === op.meta.opResult.getOpResultId();
9356
9357
  });
9357
- result.error = new TransactionOperationError(result.error.message, operation.meta.opResult);
9358
+ result.error = new TransactionOperationError(result.error, operation.meta.opResult);
9358
9359
  operation.meta.opResult.setError(result.error);
9359
9360
  }
9360
9361
  return new UnitOfWorkResult(result);