@swagger-api/apidom-error 1.0.0-beta.12 → 1.0.0-beta.14

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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.0.0-beta.14](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.13...v1.0.0-beta.14) (2025-03-11)
7
+
8
+ **Note:** Version bump only for package @swagger-api/apidom-error
9
+
10
+ # [1.0.0-beta.13](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.12...v1.0.0-beta.13) (2025-03-10)
11
+
12
+ **Note:** Version bump only for package @swagger-api/apidom-error
13
+
6
14
  # [1.0.0-beta.12](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.11...v1.0.0-beta.12) (2025-02-11)
7
15
 
8
16
  **Note:** Version bump only for package @swagger-api/apidom-error
@@ -54,51 +54,39 @@ class ApiDOMAggregateError extends AggregateError {
54
54
 
55
55
  /***/ }),
56
56
 
57
- /***/ 797:
57
+ /***/ 428:
58
58
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
59
59
 
60
60
  __webpack_require__.r(__webpack_exports__);
61
61
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
62
62
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
63
63
  /* harmony export */ });
64
- /* harmony import */ var _ApiDOMAggregateError_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(172);
64
+ /* harmony import */ var _UnsupportedOperationError_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(537);
65
+
65
66
 
66
67
  /**
67
68
  * @public
68
69
  */
69
- class ApiDOMError extends Error {
70
- static [Symbol.hasInstance](instance) {
71
- // we want to ApiDOMAggregateError to act as if ApiDOMError was its superclass
72
- return super[Symbol.hasInstance](instance) || Function.prototype[Symbol.hasInstance].call(_ApiDOMAggregateError_ts__WEBPACK_IMPORTED_MODULE_0__["default"], instance);
73
- }
74
- constructor(message, options) {
75
- super(message, options);
76
- this.name = this.constructor.name;
77
- if (typeof message === 'string') {
78
- this.message = message;
79
- }
80
- if (typeof Error.captureStackTrace === 'function') {
81
- Error.captureStackTrace(this, this.constructor);
82
- } else {
83
- this.stack = new Error(message).stack;
84
- }
70
+ class NotImplementedError extends _UnsupportedOperationError_ts__WEBPACK_IMPORTED_MODULE_0__["default"] {}
71
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (NotImplementedError);
85
72
 
86
- /**
87
- * This needs to stay here until our minimum supported version of Node.js is >= 16.9.0.
88
- * Node.js is >= 16.9.0 supports error causes natively.
89
- */
90
- if (options != null && typeof options === 'object' && Object.hasOwn(options, 'cause') && !('cause' in this)) {
91
- const {
92
- cause
93
- } = options;
94
- this.cause = cause;
95
- if (cause instanceof Error && 'stack' in cause) {
96
- this.stack = `${this.stack}\nCAUSE: ${cause.stack}`;
97
- }
98
- }
99
- }
100
- }
101
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ApiDOMError);
73
+ /***/ }),
74
+
75
+ /***/ 537:
76
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
77
+
78
+ __webpack_require__.r(__webpack_exports__);
79
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
80
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
81
+ /* harmony export */ });
82
+ /* harmony import */ var _ApiDOMError_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(797);
83
+
84
+
85
+ /**
86
+ * @public
87
+ */
88
+ class UnsupportedOperationError extends _ApiDOMError_ts__WEBPACK_IMPORTED_MODULE_0__["default"] {}
89
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (UnsupportedOperationError);
102
90
 
103
91
  /***/ }),
104
92
 
@@ -130,39 +118,51 @@ class ApiDOMStructuredError extends _ApiDOMError_ts__WEBPACK_IMPORTED_MODULE_0__
130
118
 
131
119
  /***/ }),
132
120
 
133
- /***/ 428:
121
+ /***/ 797:
134
122
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
135
123
 
136
124
  __webpack_require__.r(__webpack_exports__);
137
125
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
138
126
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
139
127
  /* harmony export */ });
140
- /* harmony import */ var _UnsupportedOperationError_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(537);
141
-
128
+ /* harmony import */ var _ApiDOMAggregateError_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(172);
142
129
 
143
130
  /**
144
131
  * @public
145
132
  */
146
- class NotImplementedError extends _UnsupportedOperationError_ts__WEBPACK_IMPORTED_MODULE_0__["default"] {}
147
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (NotImplementedError);
148
-
149
- /***/ }),
150
-
151
- /***/ 537:
152
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
153
-
154
- __webpack_require__.r(__webpack_exports__);
155
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
156
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
157
- /* harmony export */ });
158
- /* harmony import */ var _ApiDOMError_ts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(797);
159
-
133
+ class ApiDOMError extends Error {
134
+ static [Symbol.hasInstance](instance) {
135
+ // we want to ApiDOMAggregateError to act as if ApiDOMError was its superclass
136
+ return super[Symbol.hasInstance](instance) || Function.prototype[Symbol.hasInstance].call(_ApiDOMAggregateError_ts__WEBPACK_IMPORTED_MODULE_0__["default"], instance);
137
+ }
138
+ constructor(message, options) {
139
+ super(message, options);
140
+ this.name = this.constructor.name;
141
+ if (typeof message === 'string') {
142
+ this.message = message;
143
+ }
144
+ if (typeof Error.captureStackTrace === 'function') {
145
+ Error.captureStackTrace(this, this.constructor);
146
+ } else {
147
+ this.stack = new Error(message).stack;
148
+ }
160
149
 
161
- /**
162
- * @public
163
- */
164
- class UnsupportedOperationError extends _ApiDOMError_ts__WEBPACK_IMPORTED_MODULE_0__["default"] {}
165
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (UnsupportedOperationError);
150
+ /**
151
+ * This needs to stay here until our minimum supported version of Node.js is >= 16.9.0.
152
+ * Node.js is >= 16.9.0 supports error causes natively.
153
+ */
154
+ if (options != null && typeof options === 'object' && Object.hasOwn(options, 'cause') && !('cause' in this)) {
155
+ const {
156
+ cause
157
+ } = options;
158
+ this.cause = cause;
159
+ if (cause instanceof Error && 'stack' in cause) {
160
+ this.stack = `${this.stack}\nCAUSE: ${cause.stack}`;
161
+ }
162
+ }
163
+ }
164
+ }
165
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ApiDOMError);
166
166
 
167
167
  /***/ })
168
168
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swagger-api/apidom-error",
3
- "version": "1.0.0-beta.12",
3
+ "version": "1.0.0-beta.14",
4
4
  "description": "Backward compatible custom ApiDOM errors with causes.",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -49,5 +49,5 @@
49
49
  "README.md",
50
50
  "CHANGELOG.md"
51
51
  ],
52
- "gitHead": "1b61144bc3fb791bb62baee30b07f2a3199108f6"
52
+ "gitHead": "553ad463f8abc2213345212c7170dc4267e30178"
53
53
  }