@native-systems/utility 2.1.1 → 2.1.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.
package/dist/index.cjs CHANGED
@@ -655,13 +655,22 @@ var PgException = /*#__PURE__*/ (function (Error1) {
655
655
  {
656
656
  key: 'getStatus',
657
657
  value: function getStatus() {
658
- var _this_err;
659
- var _this_err_code;
660
- return (_this_err_code =
661
- (_this_err = this.err) === null || _this_err === void 0
658
+ var _this_err_cause, _this_err, _this_err1;
659
+ var _this_err_cause_code, _ref;
660
+ return (_ref =
661
+ (_this_err_cause_code =
662
+ (_this_err = this.err) === null || _this_err === void 0
663
+ ? void 0
664
+ : (_this_err_cause = _this_err.cause) === null ||
665
+ _this_err_cause === void 0
666
+ ? void 0
667
+ : _this_err_cause.code) !== null &&
668
+ _this_err_cause_code !== void 0
669
+ ? _this_err_cause_code
670
+ : (_this_err1 = this.err) === null || _this_err1 === void 0
662
671
  ? void 0
663
- : _this_err.code) !== null && _this_err_code !== void 0
664
- ? _this_err_code
672
+ : _this_err1.code) !== null && _ref !== void 0
673
+ ? _ref
665
674
  : PostgresError.UNDEFINED_CODE;
666
675
  },
667
676
  },
package/dist/index.esm.js CHANGED
@@ -653,13 +653,22 @@ var PgException = /*#__PURE__*/ (function (Error1) {
653
653
  {
654
654
  key: 'getStatus',
655
655
  value: function getStatus() {
656
- var _this_err;
657
- var _this_err_code;
658
- return (_this_err_code =
659
- (_this_err = this.err) === null || _this_err === void 0
656
+ var _this_err_cause, _this_err, _this_err1;
657
+ var _this_err_cause_code, _ref;
658
+ return (_ref =
659
+ (_this_err_cause_code =
660
+ (_this_err = this.err) === null || _this_err === void 0
661
+ ? void 0
662
+ : (_this_err_cause = _this_err.cause) === null ||
663
+ _this_err_cause === void 0
664
+ ? void 0
665
+ : _this_err_cause.code) !== null &&
666
+ _this_err_cause_code !== void 0
667
+ ? _this_err_cause_code
668
+ : (_this_err1 = this.err) === null || _this_err1 === void 0
660
669
  ? void 0
661
- : _this_err.code) !== null && _this_err_code !== void 0
662
- ? _this_err_code
670
+ : _this_err1.code) !== null && _ref !== void 0
671
+ ? _ref
663
672
  : PostgresError.UNDEFINED_CODE;
664
673
  },
665
674
  },
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },
13
- "version": "2.1.1",
13
+ "version": "2.1.3",
14
14
  "license": "MIT",
15
15
  "private": false,
16
16
  "engines": {