backendless 7.2.4 → 7.2.6

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.4
3
+ * Backendless SDK for JavaScript. Version: 7.2.6
4
4
  *
5
5
  * Copyright 2012-2023 BACKENDLESS.COM. All Rights Reserved.
6
6
  *
@@ -7339,12 +7339,9 @@ var Logging = /*#__PURE__*/function () {
7339
7339
  }, {
7340
7340
  key: "push",
7341
7341
  value: function push(logger, logLevel, message, exception) {
7342
- if (typeof message !== 'string') {
7343
- throw new Error('"message" must be a string');
7344
- }
7345
7342
  this.messages.push({
7346
7343
  logger: logger,
7347
- message: message,
7344
+ message: convertMessageToString(message),
7348
7345
  exception: exception,
7349
7346
  'log-level': logLevel,
7350
7347
  timestamp: Date.now()
@@ -7414,6 +7411,18 @@ var Logging = /*#__PURE__*/function () {
7414
7411
  return Logging;
7415
7412
  }();
7416
7413
  exports["default"] = Logging;
7414
+ function convertMessageToString(message) {
7415
+ if (typeof message === 'string') {
7416
+ return message;
7417
+ }
7418
+ if (typeof message === 'undefined') {
7419
+ return 'undefined';
7420
+ }
7421
+ if (typeof message === 'function') {
7422
+ return Object.prototype.toString.call(message);
7423
+ }
7424
+ return JSON.stringify(message);
7425
+ }
7417
7426
 
7418
7427
  /***/ }),
7419
7428
 
@@ -10215,7 +10224,7 @@ var OpResult = /*#__PURE__*/function () {
10215
10224
  }, {
10216
10225
  key: "isObjectRef",
10217
10226
  value: function isObjectRef() {
10218
- return this.operationType === _constants.OperationType.CREATE || this.operationType === _constants.OperationType.UPDATE;
10227
+ return this.operationType === _constants.OperationType.CREATE || this.operationType === _constants.OperationType.UPDATE || this.operationType === _constants.OperationType.UPSERT;
10219
10228
  }
10220
10229
  }, {
10221
10230
  key: "setOpResultId",