@aeriajs/compiler 0.0.46 → 0.0.47

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.
@@ -131,7 +131,9 @@ const recursivelyUnwrapPropertyNodes = (properties) => {
131
131
  }, {});
132
132
  };
133
133
  exports.recursivelyUnwrapPropertyNodes = recursivelyUnwrapPropertyNodes;
134
- const isRecord = (value) => typeof value === 'object';
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';
@@ -116,7 +116,9 @@ export const recursivelyUnwrapPropertyNodes = (properties) => {
116
116
  return acc;
117
117
  }, {});
118
118
  };
119
- const isRecord = (value) => typeof value === "object";
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.46",
3
+ "version": "0.0.47",
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.149",
25
- "@aeriajs/types": "^0.0.127"
24
+ "@aeriajs/common": "^0.0.150",
25
+ "@aeriajs/types": "^0.0.128"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@aeriajs/common": "link:../common",