@swagger-api/apidom-ns-openapi-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,16 @@
|
|
|
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
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- return support for Node.js >=12.20.0 ([#3356](https://github.com/swagger-api/apidom/issues/3356)) ([75528ec](https://github.com/swagger-api/apidom/commit/75528eca3cc54bfae2240d8482d0858f0f7dbef9))
|
|
11
|
+
|
|
12
|
+
## [0.82.1](https://github.com/swagger-api/apidom/compare/v0.82.0...v0.82.1) (2023-11-03)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package @swagger-api/apidom-ns-openapi-2
|
|
15
|
+
|
|
6
16
|
# [0.82.0](https://github.com/swagger-api/apidom/compare/v0.81.0...v0.82.0) (2023-11-01)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @swagger-api/apidom-ns-openapi-2
|
|
@@ -334,7 +334,7 @@ const plugin = () => () => {
|
|
|
334
334
|
// no empty Element, continue with next one
|
|
335
335
|
if (!isEmptyElement(element.value)) return undefined;
|
|
336
336
|
const [,,, ancestors] = rest;
|
|
337
|
-
const ancestor = ancestors.
|
|
337
|
+
const ancestor = ancestors[ancestors.length - 1]; // @TODO(vladimir.gorej@gmail.com): can be replaced by Array.prototype.at in future
|
|
338
338
|
const elementFactory = findElementFactory(ancestor, (0, _apidomCore.toValue)(element.key));
|
|
339
339
|
|
|
340
340
|
// no element factory found
|
|
@@ -347,7 +347,7 @@ const plugin = () => () => {
|
|
|
347
347
|
StringElement(element, ...rest) {
|
|
348
348
|
if (!isEmptyElement(element)) return undefined;
|
|
349
349
|
const [,,, ancestors] = rest;
|
|
350
|
-
const ancestor = ancestors.
|
|
350
|
+
const ancestor = ancestors[ancestors.length - 1]; // @TODO(vladimir.gorej@gmail.com): can be replaced by Array.prototype.at in future
|
|
351
351
|
|
|
352
352
|
// we're only interested in empty elements in ArrayElements
|
|
353
353
|
if (!(0, _apidomCore.isArrayElement)(ancestor)) return undefined;
|
|
@@ -2766,7 +2766,7 @@ const plugin = () => () => {
|
|
|
2766
2766
|
// no empty Element, continue with next one
|
|
2767
2767
|
if (!isEmptyElement(element.value)) return undefined;
|
|
2768
2768
|
const [,,, ancestors] = rest;
|
|
2769
|
-
const ancestor = ancestors.
|
|
2769
|
+
const ancestor = ancestors[ancestors.length - 1]; // @TODO(vladimir.gorej@gmail.com): can be replaced by Array.prototype.at in future
|
|
2770
2770
|
const elementFactory = findElementFactory(ancestor, (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_39__["default"])(element.key));
|
|
2771
2771
|
|
|
2772
2772
|
// no element factory found
|
|
@@ -2779,7 +2779,7 @@ const plugin = () => () => {
|
|
|
2779
2779
|
StringElement(element, ...rest) {
|
|
2780
2780
|
if (!isEmptyElement(element)) return undefined;
|
|
2781
2781
|
const [,,, ancestors] = rest;
|
|
2782
|
-
const ancestor = ancestors.
|
|
2782
|
+
const ancestor = ancestors[ancestors.length - 1]; // @TODO(vladimir.gorej@gmail.com): can be replaced by Array.prototype.at in future
|
|
2783
2783
|
|
|
2784
2784
|
// we're only interested in empty elements in ArrayElements
|
|
2785
2785
|
if (!(0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.isArrayElement)(ancestor)) return undefined;
|
|
@@ -16643,59 +16643,6 @@ var has =
|
|
|
16643
16643
|
|
|
16644
16644
|
/***/ }),
|
|
16645
16645
|
|
|
16646
|
-
/***/ 84506:
|
|
16647
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
16648
|
-
|
|
16649
|
-
"use strict";
|
|
16650
|
-
__webpack_require__.r(__webpack_exports__);
|
|
16651
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16652
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
16653
|
-
/* harmony export */ });
|
|
16654
|
-
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(45652);
|
|
16655
|
-
/* harmony import */ var _isNil_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27596);
|
|
16656
|
-
|
|
16657
|
-
|
|
16658
|
-
/**
|
|
16659
|
-
* Returns whether or not an object or its prototype chain has a property with
|
|
16660
|
-
* the specified name
|
|
16661
|
-
*
|
|
16662
|
-
* @func
|
|
16663
|
-
* @memberOf R
|
|
16664
|
-
* @since v0.7.0
|
|
16665
|
-
* @category Object
|
|
16666
|
-
* @sig s -> {s: x} -> Boolean
|
|
16667
|
-
* @param {String} prop The name of the property to check for.
|
|
16668
|
-
* @param {Object} obj The object to query.
|
|
16669
|
-
* @return {Boolean} Whether the property exists.
|
|
16670
|
-
* @example
|
|
16671
|
-
*
|
|
16672
|
-
* function Rectangle(width, height) {
|
|
16673
|
-
* this.width = width;
|
|
16674
|
-
* this.height = height;
|
|
16675
|
-
* }
|
|
16676
|
-
* Rectangle.prototype.area = function() {
|
|
16677
|
-
* return this.width * this.height;
|
|
16678
|
-
* };
|
|
16679
|
-
*
|
|
16680
|
-
* const square = new Rectangle(2, 2);
|
|
16681
|
-
* R.hasIn('width', square); //=> true
|
|
16682
|
-
* R.hasIn('area', square); //=> true
|
|
16683
|
-
*/
|
|
16684
|
-
|
|
16685
|
-
var hasIn =
|
|
16686
|
-
/*#__PURE__*/
|
|
16687
|
-
(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function hasIn(prop, obj) {
|
|
16688
|
-
if ((0,_isNil_js__WEBPACK_IMPORTED_MODULE_1__["default"])(obj)) {
|
|
16689
|
-
return false;
|
|
16690
|
-
}
|
|
16691
|
-
|
|
16692
|
-
return prop in obj;
|
|
16693
|
-
});
|
|
16694
|
-
|
|
16695
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (hasIn);
|
|
16696
|
-
|
|
16697
|
-
/***/ }),
|
|
16698
|
-
|
|
16699
16646
|
/***/ 78152:
|
|
16700
16647
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
16701
16648
|
|
|
@@ -19678,59 +19625,6 @@ var nth =
|
|
|
19678
19625
|
|
|
19679
19626
|
/***/ }),
|
|
19680
19627
|
|
|
19681
|
-
/***/ 54783:
|
|
19682
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
19683
|
-
|
|
19684
|
-
"use strict";
|
|
19685
|
-
__webpack_require__.r(__webpack_exports__);
|
|
19686
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19687
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
19688
|
-
/* harmony export */ });
|
|
19689
|
-
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(45652);
|
|
19690
|
-
|
|
19691
|
-
/**
|
|
19692
|
-
* Returns a partial copy of an object omitting the keys specified.
|
|
19693
|
-
*
|
|
19694
|
-
* @func
|
|
19695
|
-
* @memberOf R
|
|
19696
|
-
* @since v0.1.0
|
|
19697
|
-
* @category Object
|
|
19698
|
-
* @sig [String] -> {String: *} -> {String: *}
|
|
19699
|
-
* @param {Array} names an array of String property names to omit from the new object
|
|
19700
|
-
* @param {Object} obj The object to copy from
|
|
19701
|
-
* @return {Object} A new object with properties from `names` not on it.
|
|
19702
|
-
* @see R.pick
|
|
19703
|
-
* @example
|
|
19704
|
-
*
|
|
19705
|
-
* R.omit(['a', 'd'], {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, c: 3}
|
|
19706
|
-
*/
|
|
19707
|
-
|
|
19708
|
-
var omit =
|
|
19709
|
-
/*#__PURE__*/
|
|
19710
|
-
(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function omit(names, obj) {
|
|
19711
|
-
var result = {};
|
|
19712
|
-
var index = {};
|
|
19713
|
-
var idx = 0;
|
|
19714
|
-
var len = names.length;
|
|
19715
|
-
|
|
19716
|
-
while (idx < len) {
|
|
19717
|
-
index[names[idx]] = 1;
|
|
19718
|
-
idx += 1;
|
|
19719
|
-
}
|
|
19720
|
-
|
|
19721
|
-
for (var prop in obj) {
|
|
19722
|
-
if (!index.hasOwnProperty(prop)) {
|
|
19723
|
-
result[prop] = obj[prop];
|
|
19724
|
-
}
|
|
19725
|
-
}
|
|
19726
|
-
|
|
19727
|
-
return result;
|
|
19728
|
-
});
|
|
19729
|
-
|
|
19730
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (omit);
|
|
19731
|
-
|
|
19732
|
-
/***/ }),
|
|
19733
|
-
|
|
19734
19628
|
/***/ 33229:
|
|
19735
19629
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
19736
19630
|
|
|
@@ -21248,8 +21142,9 @@ visitor, {
|
|
|
21248
21142
|
}
|
|
21249
21143
|
} while (stack !== undefined);
|
|
21250
21144
|
if (edits.length !== 0) {
|
|
21251
|
-
return edits.
|
|
21145
|
+
return edits[edits.length - 1][1]; // @TODO(vladimir.gorej@gmail.com): can be replaced by Array.prototype.at in future
|
|
21252
21146
|
}
|
|
21147
|
+
|
|
21253
21148
|
return root;
|
|
21254
21149
|
};
|
|
21255
21150
|
|
|
@@ -21400,8 +21295,9 @@ visitor, {
|
|
|
21400
21295
|
}
|
|
21401
21296
|
} while (stack !== undefined);
|
|
21402
21297
|
if (edits.length !== 0) {
|
|
21403
|
-
return edits.
|
|
21298
|
+
return edits[edits.length - 1][1]; // @TODO(vladimir.gorej@gmail.com): can be replaced by Array.prototype.at in future
|
|
21404
21299
|
}
|
|
21300
|
+
|
|
21405
21301
|
return root;
|
|
21406
21302
|
};
|
|
21407
21303
|
|
|
@@ -22576,10 +22472,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22576
22472
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
22577
22473
|
/* harmony export */ });
|
|
22578
22474
|
/* harmony import */ var _babel_runtime_corejs3_core_js_aggregate_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21427);
|
|
22579
|
-
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39723);
|
|
22580
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(84506);
|
|
22581
|
-
|
|
22582
|
-
|
|
22583
22475
|
|
|
22584
22476
|
class ApiDOMAggregateError extends _babel_runtime_corejs3_core_js_aggregate_error__WEBPACK_IMPORTED_MODULE_0__ {
|
|
22585
22477
|
constructor(errors, message, options) {
|
|
@@ -22596,15 +22488,15 @@ class ApiDOMAggregateError extends _babel_runtime_corejs3_core_js_aggregate_erro
|
|
|
22596
22488
|
|
|
22597
22489
|
/**
|
|
22598
22490
|
* This needs to stay here until our minimum supported version of Node.js is >= 16.9.0.
|
|
22599
|
-
* Node.js
|
|
22491
|
+
* Node.js >= 16.9.0 supports error causes natively.
|
|
22600
22492
|
*/
|
|
22601
|
-
if (
|
|
22493
|
+
if (options != null && typeof options === 'object' && Object.hasOwn(options, 'cause') && !('cause' in this)) {
|
|
22602
22494
|
const {
|
|
22603
22495
|
cause
|
|
22604
22496
|
} = options;
|
|
22605
22497
|
this.cause = cause;
|
|
22606
|
-
if (cause instanceof Error &&
|
|
22607
|
-
this.stack = `${this.stack}\nCAUSE: ${cause
|
|
22498
|
+
if (cause instanceof Error && 'stack' in cause) {
|
|
22499
|
+
this.stack = `${this.stack}\nCAUSE: ${cause.stack}`;
|
|
22608
22500
|
}
|
|
22609
22501
|
}
|
|
22610
22502
|
}
|
|
@@ -22621,12 +22513,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22621
22513
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
22622
22514
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
22623
22515
|
/* harmony export */ });
|
|
22624
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(84506);
|
|
22625
|
-
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39723);
|
|
22626
22516
|
/* harmony import */ var _ApiDOMAggregateError_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(57345);
|
|
22627
22517
|
|
|
22628
|
-
|
|
22629
|
-
|
|
22630
22518
|
class ApiDOMError extends Error {
|
|
22631
22519
|
static [Symbol.hasInstance](instance) {
|
|
22632
22520
|
// we want to ApiDOMAggregateError to act as if ApiDOMError was its superclass
|
|
@@ -22648,13 +22536,13 @@ class ApiDOMError extends Error {
|
|
|
22648
22536
|
* This needs to stay here until our minimum supported version of Node.js is >= 16.9.0.
|
|
22649
22537
|
* Node.js is >= 16.9.0 supports error causes natively.
|
|
22650
22538
|
*/
|
|
22651
|
-
if (
|
|
22539
|
+
if (options != null && typeof options === 'object' && Object.hasOwn(options, 'cause') && !('cause' in this)) {
|
|
22652
22540
|
const {
|
|
22653
22541
|
cause
|
|
22654
22542
|
} = options;
|
|
22655
22543
|
this.cause = cause;
|
|
22656
|
-
if (cause instanceof Error &&
|
|
22657
|
-
this.stack = `${this.stack}\nCAUSE: ${cause
|
|
22544
|
+
if (cause instanceof Error && 'stack' in cause) {
|
|
22545
|
+
this.stack = `${this.stack}\nCAUSE: ${cause.stack}`;
|
|
22658
22546
|
}
|
|
22659
22547
|
}
|
|
22660
22548
|
}
|
|
@@ -22671,15 +22559,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22671
22559
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
22672
22560
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
22673
22561
|
/* harmony export */ });
|
|
22674
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(54783);
|
|
22675
22562
|
/* harmony import */ var _ApiDOMError_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7471);
|
|
22676
22563
|
|
|
22677
|
-
|
|
22678
22564
|
class ApiDOMStructuredError extends _ApiDOMError_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
22679
22565
|
constructor(message, structuredOptions) {
|
|
22680
22566
|
super(message, structuredOptions);
|
|
22681
|
-
if (typeof structuredOptions
|
|
22682
|
-
|
|
22567
|
+
if (structuredOptions != null && typeof structuredOptions === 'object') {
|
|
22568
|
+
const {
|
|
22569
|
+
cause,
|
|
22570
|
+
...causelessOptions
|
|
22571
|
+
} = structuredOptions;
|
|
22572
|
+
Object.assign(this, causelessOptions);
|
|
22683
22573
|
}
|
|
22684
22574
|
}
|
|
22685
22575
|
}
|