Comparing version 7.2.3 to 7.2.4
@@ -107,3 +107,3 @@ "use strict"; | ||
mergeNames: (gen, from, to) => gen.if(codegen_1._ `${to} !== true && ${from} !== undefined`, () => { | ||
gen.if(codegen_1._ `${from} === true`, () => gen.assign(to, true), () => gen.code(codegen_1._ `Object.assign(${to}, ${from})`)); | ||
gen.if(codegen_1._ `${from} === true`, () => gen.assign(to, true), () => gen.assign(to, codegen_1._ `${to} || {}`).code(codegen_1._ `Object.assign(${to}, ${from})`)); | ||
}), | ||
@@ -110,0 +110,0 @@ mergeToName: (gen, from, to) => gen.if(codegen_1._ `${to} !== true`, () => { |
@@ -131,3 +131,3 @@ import type {AnySchema, EvaluatedProperties, EvaluatedItems} from "../types" | ||
() => gen.assign(to, true), | ||
() => gen.code(_`Object.assign(${to}, ${from})`) | ||
() => gen.assign(to, _`${to} || {}`).code(_`Object.assign(${to}, ${from})`) | ||
) | ||
@@ -134,0 +134,0 @@ }), |
{ | ||
"name": "ajv", | ||
"version": "7.2.3", | ||
"version": "7.2.4", | ||
"description": "Another JSON Schema Validator", | ||
@@ -5,0 +5,0 @@ "main": "dist/ajv.js", |
Sorry, the diff of this file is not supported yet
927198