@swagger-api/apidom-parser-adapter-openapi-yaml-3-1 0.78.0 → 0.80.0
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.80.0](https://github.com/swagger-api/apidom/compare/v0.79.0...v0.80.0) (2023-10-26)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @swagger-api/apidom-parser-adapter-openapi-yaml-3-1
|
|
9
|
+
|
|
10
|
+
# [0.79.0](https://github.com/swagger-api/apidom/compare/v0.78.0...v0.79.0) (2023-10-24)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @swagger-api/apidom-parser-adapter-openapi-yaml-3-1
|
|
13
|
+
|
|
6
14
|
# [0.78.0](https://github.com/swagger-api/apidom/compare/v0.77.0...v0.78.0) (2023-10-17)
|
|
7
15
|
|
|
8
16
|
### Bug Fixes
|
|
@@ -17267,7 +17267,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17267
17267
|
/* harmony export */ mergeAll: () => (/* binding */ mergeAll),
|
|
17268
17268
|
/* harmony export */ visit: () => (/* binding */ visit)
|
|
17269
17269
|
/* harmony export */ });
|
|
17270
|
-
/* harmony import */ var _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
17270
|
+
/* harmony import */ var _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(69985);
|
|
17271
17271
|
|
|
17272
17272
|
|
|
17273
17273
|
/**
|
|
@@ -17538,7 +17538,9 @@ visitor, {
|
|
|
17538
17538
|
let result;
|
|
17539
17539
|
if (!Array.isArray(node)) {
|
|
17540
17540
|
if (!nodePredicate(node)) {
|
|
17541
|
-
throw new _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"](`Invalid AST Node: ${
|
|
17541
|
+
throw new _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"](`Invalid AST Node: ${String(node)}`, {
|
|
17542
|
+
node
|
|
17543
|
+
});
|
|
17542
17544
|
}
|
|
17543
17545
|
|
|
17544
17546
|
// cycle detected; skipping over a sub-tree to avoid recursion
|
|
@@ -17687,7 +17689,9 @@ visitor, {
|
|
|
17687
17689
|
let result;
|
|
17688
17690
|
if (!Array.isArray(node)) {
|
|
17689
17691
|
if (!nodePredicate(node)) {
|
|
17690
|
-
throw new _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"](`Invalid AST Node:
|
|
17692
|
+
throw new _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"](`Invalid AST Node: ${String(node)}`, {
|
|
17693
|
+
node
|
|
17694
|
+
});
|
|
17691
17695
|
}
|
|
17692
17696
|
|
|
17693
17697
|
// cycle detected; skipping over a sub-tree to avoid recursion
|
|
@@ -17793,6 +17797,7 @@ class YamlTagError extends _YamlSchemaError_mjs__WEBPACK_IMPORTED_MODULE_0__["de
|
|
|
17793
17797
|
this.tagKind = structuredOptions.tagKind;
|
|
17794
17798
|
this.tagPosition = structuredOptions.tagPosition;
|
|
17795
17799
|
this.nodeCanonicalContent = structuredOptions.nodeCanonicalContent;
|
|
17800
|
+
this.node = structuredOptions.node;
|
|
17796
17801
|
}
|
|
17797
17802
|
}
|
|
17798
17803
|
}
|
|
@@ -18693,7 +18698,8 @@ const FailsafeSchema = stampit__WEBPACK_IMPORTED_MODULE_0__({
|
|
|
18693
18698
|
specificTagName,
|
|
18694
18699
|
explicitTagName: node.tag.explicitName,
|
|
18695
18700
|
tagKind: node.tag.kind,
|
|
18696
|
-
tagPosition: (0,ramda__WEBPACK_IMPORTED_MODULE_7__["default"])(node.tag.position)
|
|
18701
|
+
tagPosition: (0,ramda__WEBPACK_IMPORTED_MODULE_7__["default"])(node.tag.position),
|
|
18702
|
+
node: node.clone()
|
|
18697
18703
|
});
|
|
18698
18704
|
}
|
|
18699
18705
|
|
|
@@ -18704,7 +18710,8 @@ const FailsafeSchema = stampit__WEBPACK_IMPORTED_MODULE_0__({
|
|
|
18704
18710
|
explicitTagName: node.tag.explicitName,
|
|
18705
18711
|
tagKind: node.tag.kind,
|
|
18706
18712
|
tagPosition: (0,ramda__WEBPACK_IMPORTED_MODULE_7__["default"])(node.tag.position),
|
|
18707
|
-
nodeCanonicalContent: canonicalNode.content
|
|
18713
|
+
nodeCanonicalContent: canonicalNode.content,
|
|
18714
|
+
node: node.clone()
|
|
18708
18715
|
});
|
|
18709
18716
|
}
|
|
18710
18717
|
return tag.resolve(canonicalNode);
|
|
@@ -18933,7 +18940,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18933
18940
|
/* harmony export */ });
|
|
18934
18941
|
/* harmony import */ var _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(69985);
|
|
18935
18942
|
|
|
18936
|
-
class CloneError extends _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
18943
|
+
class CloneError extends _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
18944
|
+
constructor(message, structuredOptions) {
|
|
18945
|
+
super(message, structuredOptions);
|
|
18946
|
+
if (typeof structuredOptions !== 'undefined') {
|
|
18947
|
+
this.value = structuredOptions.source;
|
|
18948
|
+
}
|
|
18949
|
+
}
|
|
18950
|
+
}
|
|
18937
18951
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CloneError);
|
|
18938
18952
|
|
|
18939
18953
|
/***/ }),
|
|
@@ -18978,32 +18992,72 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18978
18992
|
/* harmony export */ cloneShallow: () => (/* binding */ cloneShallow)
|
|
18979
18993
|
/* harmony export */ });
|
|
18980
18994
|
/* harmony import */ var minim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67952);
|
|
18981
|
-
/* harmony import */ var
|
|
18982
|
-
/* harmony import */ var
|
|
18995
|
+
/* harmony import */ var _predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36903);
|
|
18996
|
+
/* harmony import */ var _errors_DeepCloneError_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(34646);
|
|
18983
18997
|
/* harmony import */ var _errors_ShallowCloneError_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(10219);
|
|
18984
18998
|
|
|
18985
18999
|
|
|
18986
19000
|
|
|
18987
19001
|
|
|
18988
|
-
const
|
|
18989
|
-
|
|
18990
|
-
|
|
19002
|
+
const cloneDeep = (value, options = {}) => {
|
|
19003
|
+
const {
|
|
19004
|
+
visited = new WeakMap()
|
|
19005
|
+
} = options;
|
|
19006
|
+
const passThroughOptions = {
|
|
19007
|
+
...options,
|
|
19008
|
+
visited
|
|
19009
|
+
};
|
|
19010
|
+
|
|
19011
|
+
// detect cycle and return memoized value
|
|
19012
|
+
if (visited.has(value)) {
|
|
19013
|
+
return visited.get(value);
|
|
19014
|
+
}
|
|
19015
|
+
if (value instanceof minim__WEBPACK_IMPORTED_MODULE_0__.KeyValuePair) {
|
|
19016
|
+
const {
|
|
19017
|
+
key,
|
|
19018
|
+
value: val
|
|
19019
|
+
} = value;
|
|
19020
|
+
const keyCopy = (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isElement)(key) ? cloneDeep(key, passThroughOptions) : key;
|
|
19021
|
+
const valueCopy = (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isElement)(val) ? cloneDeep(val, passThroughOptions) : val;
|
|
19022
|
+
const copy = new minim__WEBPACK_IMPORTED_MODULE_0__.KeyValuePair(keyCopy, valueCopy);
|
|
19023
|
+
visited.set(value, copy);
|
|
19024
|
+
return copy;
|
|
18991
19025
|
}
|
|
18992
|
-
return value;
|
|
18993
|
-
};
|
|
18994
|
-
const cloneDeep = value => {
|
|
18995
19026
|
if (value instanceof minim__WEBPACK_IMPORTED_MODULE_0__.ObjectSlice) {
|
|
18996
|
-
const
|
|
18997
|
-
|
|
19027
|
+
const mapper = element => cloneDeep(element, passThroughOptions);
|
|
19028
|
+
const items = [...value].map(mapper);
|
|
19029
|
+
const copy = new minim__WEBPACK_IMPORTED_MODULE_0__.ObjectSlice(items);
|
|
19030
|
+
visited.set(value, copy);
|
|
19031
|
+
return copy;
|
|
18998
19032
|
}
|
|
18999
19033
|
if (value instanceof minim__WEBPACK_IMPORTED_MODULE_0__.ArraySlice) {
|
|
19000
|
-
const
|
|
19001
|
-
|
|
19034
|
+
const mapper = element => cloneDeep(element, passThroughOptions);
|
|
19035
|
+
const items = [...value].map(mapper);
|
|
19036
|
+
const copy = new minim__WEBPACK_IMPORTED_MODULE_0__.ArraySlice(items);
|
|
19037
|
+
visited.set(value, copy);
|
|
19038
|
+
return copy;
|
|
19002
19039
|
}
|
|
19003
|
-
if (
|
|
19004
|
-
|
|
19040
|
+
if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isElement)(value)) {
|
|
19041
|
+
const copy = cloneShallow(value); // eslint-disable-line @typescript-eslint/no-use-before-define
|
|
19042
|
+
|
|
19043
|
+
visited.set(value, copy);
|
|
19044
|
+
if (value.content) {
|
|
19045
|
+
if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isElement)(value.content)) {
|
|
19046
|
+
copy.content = cloneDeep(value.content, passThroughOptions);
|
|
19047
|
+
} else if (value.content instanceof minim__WEBPACK_IMPORTED_MODULE_0__.KeyValuePair) {
|
|
19048
|
+
copy.content = cloneDeep(value.content, passThroughOptions);
|
|
19049
|
+
} else if (Array.isArray(value.content)) {
|
|
19050
|
+
const mapper = element => cloneDeep(element, passThroughOptions);
|
|
19051
|
+
copy.content = value.content.map(mapper);
|
|
19052
|
+
} else {
|
|
19053
|
+
copy.content = value.content;
|
|
19054
|
+
}
|
|
19055
|
+
} else {
|
|
19056
|
+
copy.content = value.content;
|
|
19057
|
+
}
|
|
19058
|
+
return copy;
|
|
19005
19059
|
}
|
|
19006
|
-
throw new
|
|
19060
|
+
throw new _errors_DeepCloneError_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]("Value provided to cloneDeep function couldn't be cloned", {
|
|
19007
19061
|
value
|
|
19008
19062
|
});
|
|
19009
19063
|
};
|
|
@@ -19041,7 +19095,7 @@ const cloneShallowElement = element => {
|
|
|
19041
19095
|
if (element.attributes.length > 0) {
|
|
19042
19096
|
copy._attributes = cloneDeep(element.attributes);
|
|
19043
19097
|
}
|
|
19044
|
-
if ((0,
|
|
19098
|
+
if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isElement)(element.content)) {
|
|
19045
19099
|
const content = element.content;
|
|
19046
19100
|
copy.content = cloneShallowElement(content);
|
|
19047
19101
|
} else if (Array.isArray(element.content)) {
|
|
@@ -19065,7 +19119,7 @@ const cloneShallow = value => {
|
|
|
19065
19119
|
if (value instanceof minim__WEBPACK_IMPORTED_MODULE_0__.ArraySlice) {
|
|
19066
19120
|
return cloneShallowArraySlice(value);
|
|
19067
19121
|
}
|
|
19068
|
-
if ((0,
|
|
19122
|
+
if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isElement)(value)) {
|
|
19069
19123
|
return cloneShallowElement(value);
|
|
19070
19124
|
}
|
|
19071
19125
|
throw new _errors_ShallowCloneError_mjs__WEBPACK_IMPORTED_MODULE_3__["default"]("Value provided to cloneShallow function couldn't be cloned", {
|
|
@@ -19309,19 +19363,25 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19309
19363
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
19310
19364
|
/* harmony export */ isElementType: () => (/* binding */ isElementType)
|
|
19311
19365
|
/* harmony export */ });
|
|
19312
|
-
|
|
19313
|
-
|
|
19314
|
-
const
|
|
19315
|
-
|
|
19316
|
-
return (obj === null || obj === void 0 || (_obj$primitive = obj.primitive) === null || _obj$primitive === void 0 ? void 0 : _obj$primitive.call(obj)) === val;
|
|
19366
|
+
/* harmony import */ var minim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67952);
|
|
19367
|
+
|
|
19368
|
+
const hasMethod = (name, element) => {
|
|
19369
|
+
return typeof element === 'object' && element !== null && name in element && typeof element[name] === 'function';
|
|
19317
19370
|
};
|
|
19318
|
-
const
|
|
19319
|
-
|
|
19320
|
-
|
|
19371
|
+
const hasBasicElementProps = element => typeof element === 'object' && element != null && '_storedElement' in element && typeof element._storedElement === 'string' &&
|
|
19372
|
+
// eslint-disable-line no-underscore-dangle
|
|
19373
|
+
'_content' in element;
|
|
19374
|
+
const primitiveEq = (val, element) => {
|
|
19375
|
+
if (typeof element === 'object' && element !== null && 'primitive' in element) {
|
|
19376
|
+
return typeof element.primitive === 'function' && element.primitive() === val;
|
|
19377
|
+
}
|
|
19378
|
+
return false;
|
|
19321
19379
|
};
|
|
19322
|
-
const
|
|
19380
|
+
const hasClass = (cls, element) => {
|
|
19381
|
+
return typeof element === 'object' && element !== null && 'classes' in element && (Array.isArray(element.classes) || element.classes instanceof minim__WEBPACK_IMPORTED_MODULE_0__.ArrayElement) && element.classes.includes(cls);
|
|
19382
|
+
};
|
|
19383
|
+
const isElementType = (name, element) => typeof element === 'object' && element !== null && 'element' in element && element.element === name;
|
|
19323
19384
|
const createPredicate = predicateCreator => {
|
|
19324
|
-
// @ts-ignore
|
|
19325
19385
|
return predicateCreator({
|
|
19326
19386
|
hasMethod,
|
|
19327
19387
|
hasBasicElementProps,
|
|
@@ -19472,8 +19532,7 @@ const isPrimitiveElement = element => {
|
|
|
19472
19532
|
return (0,_helpers_mjs__WEBPACK_IMPORTED_MODULE_1__.isElementType)('object', element) || (0,_helpers_mjs__WEBPACK_IMPORTED_MODULE_1__.isElementType)('array', element) || (0,_helpers_mjs__WEBPACK_IMPORTED_MODULE_1__.isElementType)('boolean', element) || (0,_helpers_mjs__WEBPACK_IMPORTED_MODULE_1__.isElementType)('number', element) || (0,_helpers_mjs__WEBPACK_IMPORTED_MODULE_1__.isElementType)('string', element) || (0,_helpers_mjs__WEBPACK_IMPORTED_MODULE_1__.isElementType)('null', element) || (0,_helpers_mjs__WEBPACK_IMPORTED_MODULE_1__.isElementType)('member', element);
|
|
19473
19533
|
};
|
|
19474
19534
|
const hasElementSourceMap = element => {
|
|
19475
|
-
|
|
19476
|
-
return isSourceMapElement(element === null || element === void 0 || (_element$meta = element.meta) === null || _element$meta === void 0 || (_element$meta$get = _element$meta.get) === null || _element$meta$get === void 0 ? void 0 : _element$meta$get.call(_element$meta, 'sourceMap'));
|
|
19535
|
+
return isSourceMapElement(element.meta.get('sourceMap'));
|
|
19477
19536
|
};
|
|
19478
19537
|
const includesSymbols = (symbols, element) => {
|
|
19479
19538
|
if (symbols.length === 0) {
|