@aeriajs/compiler 0.0.46 → 0.0.48
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/dist/codegen/utils.js +3 -1
- package/dist/codegen/utils.mjs +3 -1
- package/package.json +3 -3
package/dist/codegen/utils.js
CHANGED
|
@@ -131,7 +131,9 @@ const recursivelyUnwrapPropertyNodes = (properties) => {
|
|
|
131
131
|
}, {});
|
|
132
132
|
};
|
|
133
133
|
exports.recursivelyUnwrapPropertyNodes = recursivelyUnwrapPropertyNodes;
|
|
134
|
-
const isRecord = (value) =>
|
|
134
|
+
const isRecord = (value) => {
|
|
135
|
+
return !!(value && typeof value === 'object');
|
|
136
|
+
};
|
|
135
137
|
const stringify = (value, parents = []) => {
|
|
136
138
|
if (Array.isArray(value)) {
|
|
137
139
|
let arrayString = '[\n';
|
package/dist/codegen/utils.mjs
CHANGED
|
@@ -116,7 +116,9 @@ export const recursivelyUnwrapPropertyNodes = (properties) => {
|
|
|
116
116
|
return acc;
|
|
117
117
|
}, {});
|
|
118
118
|
};
|
|
119
|
-
const isRecord = (value) =>
|
|
119
|
+
const isRecord = (value) => {
|
|
120
|
+
return !!(value && typeof value === "object");
|
|
121
|
+
};
|
|
120
122
|
export const stringify = (value, parents = []) => {
|
|
121
123
|
if (Array.isArray(value)) {
|
|
122
124
|
let arrayString = "[\n";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/compiler",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.48",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"dist"
|
|
22
22
|
],
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@aeriajs/common": "^0.0.
|
|
25
|
-
"@aeriajs/types": "^0.0.
|
|
24
|
+
"@aeriajs/common": "^0.0.151",
|
|
25
|
+
"@aeriajs/types": "^0.0.129"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@aeriajs/common": "link:../common",
|