const { gen, compositeRule, data, opts } = it;
if (defaultValue === undefined)
return;
- const childData = codegen_1._ `${data}${codegen_1.getProperty(prop)}`;
+ const childData = (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(prop)}`;
if (compositeRule) {
- util_1.checkStrictMode(it, `default is ignored for: ${childData}`);
+ (0, util_1.checkStrictMode)(it, `default is ignored for: ${childData}`);
return;
}
- let condition = codegen_1._ `${childData} === undefined`;
+ let condition = (0, codegen_1._) `${childData} === undefined`;
if (opts.useDefaults === "empty") {
- condition = codegen_1._ `${condition} || ${childData} === null || ${childData} === ""`;
+ condition = (0, codegen_1._) `${condition} || ${childData} === null || ${childData} === ""`;
}
// `${childData} === undefined` +
// (opts.useDefaults === "empty" ? ` || ${childData} === null || ${childData} === ""` : "")
- gen.if(condition, codegen_1._ `${childData} = ${codegen_1.stringify(defaultValue)}`);
+ gen.if(condition, (0, codegen_1._) `${childData} = ${(0, codegen_1.stringify)(defaultValue)}`);
}
//# sourceMappingURL=defaults.js.map
\ No newline at end of file