@swagger-api/apidom-parser-adapter-openapi-yaml-2 0.82.0 → 0.82.2

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
+ ## [0.82.2](https://github.com/swagger-api/apidom/compare/v0.82.1...v0.82.2) (2023-11-03)
7
+
8
+ **Note:** Version bump only for package @swagger-api/apidom-parser-adapter-openapi-yaml-2
9
+
10
+ ## [0.82.1](https://github.com/swagger-api/apidom/compare/v0.82.0...v0.82.1) (2023-11-03)
11
+
12
+ **Note:** Version bump only for package @swagger-api/apidom-parser-adapter-openapi-yaml-2
13
+
6
14
  # [0.82.0](https://github.com/swagger-api/apidom/compare/v0.81.0...v0.82.0) (2023-11-01)
7
15
 
8
16
  **Note:** Version bump only for package @swagger-api/apidom-parser-adapter-openapi-yaml-2
@@ -12231,59 +12231,6 @@ var has =
12231
12231
 
12232
12232
  /***/ }),
12233
12233
 
12234
- /***/ 84506:
12235
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
12236
-
12237
- "use strict";
12238
- __webpack_require__.r(__webpack_exports__);
12239
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12240
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
12241
- /* harmony export */ });
12242
- /* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(45652);
12243
- /* harmony import */ var _isNil_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27596);
12244
-
12245
-
12246
- /**
12247
- * Returns whether or not an object or its prototype chain has a property with
12248
- * the specified name
12249
- *
12250
- * @func
12251
- * @memberOf R
12252
- * @since v0.7.0
12253
- * @category Object
12254
- * @sig s -> {s: x} -> Boolean
12255
- * @param {String} prop The name of the property to check for.
12256
- * @param {Object} obj The object to query.
12257
- * @return {Boolean} Whether the property exists.
12258
- * @example
12259
- *
12260
- * function Rectangle(width, height) {
12261
- * this.width = width;
12262
- * this.height = height;
12263
- * }
12264
- * Rectangle.prototype.area = function() {
12265
- * return this.width * this.height;
12266
- * };
12267
- *
12268
- * const square = new Rectangle(2, 2);
12269
- * R.hasIn('width', square); //=> true
12270
- * R.hasIn('area', square); //=> true
12271
- */
12272
-
12273
- var hasIn =
12274
- /*#__PURE__*/
12275
- (0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function hasIn(prop, obj) {
12276
- if ((0,_isNil_js__WEBPACK_IMPORTED_MODULE_1__["default"])(obj)) {
12277
- return false;
12278
- }
12279
-
12280
- return prop in obj;
12281
- });
12282
-
12283
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (hasIn);
12284
-
12285
- /***/ }),
12286
-
12287
12234
  /***/ 78152:
12288
12235
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
12289
12236
 
@@ -17602,8 +17549,9 @@ visitor, {
17602
17549
  }
17603
17550
  } while (stack !== undefined);
17604
17551
  if (edits.length !== 0) {
17605
- return edits.at(-1)[1];
17552
+ return edits[edits.length - 1][1]; // @TODO(vladimir.gorej@gmail.com): can be replaced by Array.prototype.at in future
17606
17553
  }
17554
+
17607
17555
  return root;
17608
17556
  };
17609
17557
 
@@ -17754,8 +17702,9 @@ visitor, {
17754
17702
  }
17755
17703
  } while (stack !== undefined);
17756
17704
  if (edits.length !== 0) {
17757
- return edits.at(-1)[1];
17705
+ return edits[edits.length - 1][1]; // @TODO(vladimir.gorej@gmail.com): can be replaced by Array.prototype.at in future
17758
17706
  }
17707
+
17759
17708
  return root;
17760
17709
  };
17761
17710
 
@@ -20097,10 +20046,6 @@ __webpack_require__.r(__webpack_exports__);
20097
20046
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
20098
20047
  /* harmony export */ });
20099
20048
  /* harmony import */ var _babel_runtime_corejs3_core_js_aggregate_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21427);
20100
- /* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39723);
20101
- /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(84506);
20102
-
20103
-
20104
20049
 
20105
20050
  class ApiDOMAggregateError extends _babel_runtime_corejs3_core_js_aggregate_error__WEBPACK_IMPORTED_MODULE_0__ {
20106
20051
  constructor(errors, message, options) {
@@ -20117,15 +20062,15 @@ class ApiDOMAggregateError extends _babel_runtime_corejs3_core_js_aggregate_erro
20117
20062
 
20118
20063
  /**
20119
20064
  * This needs to stay here until our minimum supported version of Node.js is >= 16.9.0.
20120
- * Node.js is >= 16.9.0 supports error causes natively.
20065
+ * Node.js >= 16.9.0 supports error causes natively.
20121
20066
  */
20122
- if ((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_1__["default"])(options) && (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])('cause', options) && !(0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])('cause', this)) {
20067
+ if (options != null && typeof options === 'object' && Object.hasOwn(options, 'cause') && !('cause' in this)) {
20123
20068
  const {
20124
20069
  cause
20125
20070
  } = options;
20126
20071
  this.cause = cause;
20127
- if (cause instanceof Error && (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])('stack', cause)) {
20128
- this.stack = `${this.stack}\nCAUSE: ${cause === null || cause === void 0 ? void 0 : cause.stack}`;
20072
+ if (cause instanceof Error && 'stack' in cause) {
20073
+ this.stack = `${this.stack}\nCAUSE: ${cause.stack}`;
20129
20074
  }
20130
20075
  }
20131
20076
  }
@@ -20142,12 +20087,8 @@ __webpack_require__.r(__webpack_exports__);
20142
20087
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
20143
20088
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
20144
20089
  /* harmony export */ });
20145
- /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(84506);
20146
- /* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39723);
20147
20090
  /* harmony import */ var _ApiDOMAggregateError_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(57345);
20148
20091
 
20149
-
20150
-
20151
20092
  class ApiDOMError extends Error {
20152
20093
  static [Symbol.hasInstance](instance) {
20153
20094
  // we want to ApiDOMAggregateError to act as if ApiDOMError was its superclass
@@ -20169,13 +20110,13 @@ class ApiDOMError extends Error {
20169
20110
  * This needs to stay here until our minimum supported version of Node.js is >= 16.9.0.
20170
20111
  * Node.js is >= 16.9.0 supports error causes natively.
20171
20112
  */
20172
- if ((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_1__["default"])(options) && (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])('cause', options) && !(0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])('cause', this)) {
20113
+ if (options != null && typeof options === 'object' && Object.hasOwn(options, 'cause') && !('cause' in this)) {
20173
20114
  const {
20174
20115
  cause
20175
20116
  } = options;
20176
20117
  this.cause = cause;
20177
- if (cause instanceof Error && (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])('stack', cause)) {
20178
- this.stack = `${this.stack}\nCAUSE: ${cause === null || cause === void 0 ? void 0 : cause.stack}`;
20118
+ if (cause instanceof Error && 'stack' in cause) {
20119
+ this.stack = `${this.stack}\nCAUSE: ${cause.stack}`;
20179
20120
  }
20180
20121
  }
20181
20122
  }
@@ -20192,15 +20133,17 @@ __webpack_require__.r(__webpack_exports__);
20192
20133
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
20193
20134
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
20194
20135
  /* harmony export */ });
20195
- /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(54783);
20196
20136
  /* harmony import */ var _ApiDOMError_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7471);
20197
20137
 
20198
-
20199
20138
  class ApiDOMStructuredError extends _ApiDOMError_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
20200
20139
  constructor(message, structuredOptions) {
20201
20140
  super(message, structuredOptions);
20202
- if (typeof structuredOptions !== 'undefined') {
20203
- Object.assign(this, (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])(['cause'], structuredOptions));
20141
+ if (structuredOptions != null && typeof structuredOptions === 'object') {
20142
+ const {
20143
+ cause,
20144
+ ...causelessOptions
20145
+ } = structuredOptions;
20146
+ Object.assign(this, causelessOptions);
20204
20147
  }
20205
20148
  }
20206
20149
  }
@@ -28187,7 +28130,7 @@ const analyze = (cst, {
28187
28130
  } = {}) => {
28188
28131
  const cursor = cst.walk();
28189
28132
  const iterator = new _TreeCursorIterator_mjs__WEBPACK_IMPORTED_MODULE_0__["default"](cursor);
28190
- const rootNode = [...iterator].at(0);
28133
+ const rootNode = [...iterator][0];
28191
28134
  const cstVisitor = (0,_visitors_CstVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])();
28192
28135
  const astVisitor = (0,_visitors_YamlAstVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"])();
28193
28136
  const schema = (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"])();