fix(core): empty strings and zero numbers are also included in the flags and serialization

This commit is contained in:
teidesu 2021-05-09 14:34:52 +03:00
parent 0c9dfa172d
commit 320f4fdd24

View file

@ -10,7 +10,7 @@ write(`// This file is auto-generated. Do not edit.
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function _has (value) { return +!!(Array.isArray(value) ? value.length : value); }
function _has (value) { return +!!(Array.isArray(value) ? value.length : value !== undefined); }
function _assert_has (obj, prop) { if (obj[prop] === void 0) throw new Error('Object ' + obj._ + ' is missing required property ' + prop) }
exports.default = {`)