@aeriajs/common 0.0.86 → 0.0.88
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.
|
@@ -6,7 +6,7 @@ const getReferenceProperty = (property) => {
|
|
|
6
6
|
'items' in property
|
|
7
7
|
? property.items
|
|
8
8
|
: null,
|
|
9
|
-
'additionalProperties' in property
|
|
9
|
+
'additionalProperties' in property && typeof property.additionalProperties === 'object'
|
|
10
10
|
? property.additionalProperties
|
|
11
11
|
: null,
|
|
12
12
|
property,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export const getReferenceProperty = (property) => {
|
|
3
3
|
const search = [
|
|
4
4
|
"items" in property ? property.items : null,
|
|
5
|
-
"additionalProperties" in property ? property.additionalProperties : null,
|
|
5
|
+
"additionalProperties" in property && typeof property.additionalProperties === "object" ? property.additionalProperties : null,
|
|
6
6
|
property
|
|
7
7
|
];
|
|
8
8
|
const reference = search.find((_) => !!_);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/common",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.88",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"bson": "^6.5.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@aeriajs/types": "^0.0.
|
|
34
|
+
"@aeriajs/types": "^0.0.76",
|
|
35
35
|
"bson": "^6.5.0"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|