@valon-technologies/gestalt 0.0.1-alpha.19 → 0.0.1-alpha.20
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/package.json +1 -1
- package/src/protocol.ts +4 -1
package/package.json
CHANGED
package/src/protocol.ts
CHANGED
|
@@ -145,7 +145,10 @@ function normalizeJsonValue(
|
|
|
145
145
|
path: string,
|
|
146
146
|
seen: WeakSet<object>,
|
|
147
147
|
): JsonValue {
|
|
148
|
-
if (value === null
|
|
148
|
+
if (value === null) {
|
|
149
|
+
return null;
|
|
150
|
+
}
|
|
151
|
+
if (typeof value === "string" || typeof value === "boolean") {
|
|
149
152
|
return value;
|
|
150
153
|
}
|
|
151
154
|
if (typeof value === "number") {
|