Comparing version 5.5.1 to 5.5.2
@@ -33,3 +33,3 @@ import { getType } from './util.js'; | ||
object: { | ||
null: (_) => ({}), | ||
null: (_) => Object.create(null), | ||
string: (_) => stringToObject(_), | ||
@@ -36,0 +36,0 @@ }, |
@@ -104,3 +104,3 @@ import { coerce } from './coerce.js'; | ||
const propKeys = new Set(); | ||
const result = {}; | ||
const result = Object.create(null); | ||
const original = value; | ||
@@ -107,0 +107,0 @@ for (const [key, propSchema] of Object.entries(schema.properties || {})) { |
{ | ||
"name": "airtight", | ||
"version": "5.5.1", | ||
"version": "5.5.2", | ||
"description": "JSON Schema inspired library for validation, decoding and type conversion", | ||
@@ -5,0 +5,0 @@ "type": "module", |
26943