@swagger-api/apidom-core 0.70.0 → 0.71.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 +12 -0
- package/NOTICE +57 -0
- package/cjs/predicates/helpers.cjs +2 -2
- package/cjs/predicates/index.cjs +1 -1
- package/dist/apidom-core.browser.js +367 -433
- package/dist/apidom-core.browser.min.js +1 -1
- package/es/predicates/helpers.js +2 -2
- package/es/predicates/index.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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.71.0](https://github.com/swagger-api/apidom/compare/v0.70.4...v0.71.0) (2023-07-13)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.70.1](https://github.com/swagger-api/apidom/compare/v0.70.0...v0.70.1) (2023-06-15)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
17
|
+
|
|
6
18
|
# [0.70.0](https://github.com/swagger-api/apidom/compare/v0.69.3...v0.70.0) (2023-05-23)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @swagger-api/apidom-core
|
package/NOTICE
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
ApiDOM
|
|
2
|
+
Copyright 2020 SmartBear Software Inc.
|
|
3
|
+
ApiDOM is licensed under Apache 2.0 license.
|
|
4
|
+
Copy of the Apache 2.0 license can be found in `LICENSES/Apache-2.0.txt` file.
|
|
5
|
+
|
|
6
|
+
json-schema-ref-parser
|
|
7
|
+
Copyright (c) 2015 James Messinger
|
|
8
|
+
File packages/apidom-reference/src/util/url.ts (the file) was originally created under MIT license in https://github.com/APIDevTools/json-schema-ref-parser repository.
|
|
9
|
+
The file has been copied into this project and modified. All modifications are licensed under Apache 2.0 License.
|
|
10
|
+
Copy of the MIT license can be found in `LICENSES/MIT.txt` file.
|
|
11
|
+
|
|
12
|
+
graphql-js
|
|
13
|
+
Copyright (c) GraphQL Contributors
|
|
14
|
+
File packages/apidom-ast/src/traversal/visitor.ts (the file) was originally created under MIT license in https://github.com/graphql/graphql-js repository.
|
|
15
|
+
The file has been copied into this project and modified. All modifications are licensed under Apache 2.0 License.
|
|
16
|
+
Copy of the MIT license can be found in `LICENSES/MIT.txt` file.
|
|
17
|
+
|
|
18
|
+
babel-plugin-add-import-extension
|
|
19
|
+
Copyright (c) 2019 Karl Prieb
|
|
20
|
+
File scripts/babel-plugin-add-import-extension.cjs (the file) was originally created under MIT license in https://codeberg.org/karl/babel-plugin-add-import-extension.
|
|
21
|
+
The file has been copied into this project and modified. All modifications are licensed under Apache 2.0 License.
|
|
22
|
+
Copy of the MIT license can be found in `LICENSES/MIT.txt` file.
|
|
23
|
+
|
|
24
|
+
refract-spec
|
|
25
|
+
Copyright (c) 2015 refractproject
|
|
26
|
+
Specific texts in README.md (the file) were originally created under MIT license in https://github.com/refractproject/refract-spec repository.
|
|
27
|
+
Specific texts have been copied into this project and modified. All modifications are licensed under Apache 2.0 License.
|
|
28
|
+
Copy of the MIT license can be found in `LICENSES/MIT.txt` file.
|
|
29
|
+
|
|
30
|
+
api-elements
|
|
31
|
+
Copyright (c) 2015 Apiary Inc.
|
|
32
|
+
Specific texts in README.md (the file) were originally created under MIT license in https://github.com/refractproject/refract-spec repository.
|
|
33
|
+
Specific texts have been copied into this project and modified. All modifications are licensed under Apache 2.0 License.
|
|
34
|
+
Copy of the MIT license can be found in `LICENSES/MIT.txt` file.
|
|
35
|
+
|
|
36
|
+
deepmerge
|
|
37
|
+
Copyright (c) 2012 James Halliday, Josh Duff, and other contributors
|
|
38
|
+
- File packages/apidom-core/src/deepmerge.ts contains algorithms that we originally created
|
|
39
|
+
in https://github.com/TehShrike/deepmerge/blob/master/index.js to handle deep merging of JavaScript Objects and Arrays.
|
|
40
|
+
These algorithms have been reverse engineered and adapted to support deep merging of ApiDOM structures.
|
|
41
|
+
- File packages/apidom-core/test/deepmerge.ts contains tests and fixtures that we originally created
|
|
42
|
+
in https://github.com/TehShrike/deepmerge/blob/master/test/merge.js to test deep merging of JavaScript Objects and Arrays.
|
|
43
|
+
These tests have been adapted to support testing deep merging of ApiDOM structures.
|
|
44
|
+
- File packages/apidom-core/README.md contains text fragments that were originally created
|
|
45
|
+
in https://github.com/TehShrike/deepmerge/blob/master/readme.md to document deepmerge library.
|
|
46
|
+
These text fragments have been amended to describe merging of ApiDOM structures.
|
|
47
|
+
Copy of the MIT license can be found in `LICENSES/MIT.txt` file.
|
|
48
|
+
All modifications are licensed under Apache 2.0 License.
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
If the SPDX-FileCopyrightText and SPDX-License-Identifier tags are not present in the file,
|
|
53
|
+
it is assumed that these tags have following implicit value:
|
|
54
|
+
|
|
55
|
+
SPDX-FileCopyrightText: Copyright 2020-2021 SmartBear Software Inc.
|
|
56
|
+
SPDX-License-Identifier: Apache-2.0
|
|
57
|
+
|
|
@@ -6,11 +6,11 @@ const hasMethod = (name, obj) => typeof (obj === null || obj === void 0 ? void 0
|
|
|
6
6
|
const hasBasicElementProps = element => element != null && Object.prototype.hasOwnProperty.call(element, '_storedElement') && Object.prototype.hasOwnProperty.call(element, '_content');
|
|
7
7
|
const primitiveEq = (val, obj) => {
|
|
8
8
|
var _obj$primitive;
|
|
9
|
-
return (obj === null || obj === void 0
|
|
9
|
+
return (obj === null || obj === void 0 || (_obj$primitive = obj.primitive) === null || _obj$primitive === void 0 ? void 0 : _obj$primitive.call(obj)) === val;
|
|
10
10
|
};
|
|
11
11
|
const hasClass = (cls, obj) => {
|
|
12
12
|
var _obj$classes, _obj$classes$includes;
|
|
13
|
-
return (obj === null || obj === void 0
|
|
13
|
+
return (obj === null || obj === void 0 || (_obj$classes = obj.classes) === null || _obj$classes === void 0 || (_obj$classes$includes = _obj$classes.includes) === null || _obj$classes$includes === void 0 ? void 0 : _obj$classes$includes.call(_obj$classes, cls)) || false;
|
|
14
14
|
};
|
|
15
15
|
const isElementType = (name, element) => (element === null || element === void 0 ? void 0 : element.element) === name;
|
|
16
16
|
exports.isElementType = isElementType;
|
package/cjs/predicates/index.cjs
CHANGED
|
@@ -126,7 +126,7 @@ const isPrimitiveElement = element => {
|
|
|
126
126
|
exports.isPrimitiveElement = isPrimitiveElement;
|
|
127
127
|
const hasElementSourceMap = element => {
|
|
128
128
|
var _element$meta, _element$meta$get;
|
|
129
|
-
return isSourceMapElement(element === null || element === void 0
|
|
129
|
+
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'));
|
|
130
130
|
};
|
|
131
131
|
exports.hasElementSourceMap = hasElementSourceMap;
|
|
132
132
|
const includesSymbols = (symbols, element) => {
|