ywana-core8 0.0.640 → 0.0.643
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/dist/index.cjs +2 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +2 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +2 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentType.js +2 -3
package/dist/index.cjs
CHANGED
@@ -1145,8 +1145,7 @@ var ContentType = /*#__PURE__*/function () {
|
|
1145
1145
|
}).every(function (_ref3) {
|
1146
1146
|
var name = _ref3[0],
|
1147
1147
|
attr = _ref3[1];
|
1148
|
-
|
1149
|
-
return data[name] === null ? false : data[name] === undefined ? false : _this.checkType(attr, data[name]);
|
1148
|
+
return data[name] === null ? false : data[name] === undefined ? false : data[name] === "" ? false : _this.checkType(attr, data[name]);
|
1150
1149
|
});
|
1151
1150
|
}
|
1152
1151
|
/**
|
@@ -1261,7 +1260,7 @@ var Content = /*#__PURE__*/function () {
|
|
1261
1260
|
var _proto2 = Content.prototype;
|
1262
1261
|
|
1263
1262
|
_proto2.isValid = function isValid() {
|
1264
|
-
console.log("Content.isValid",
|
1263
|
+
console.log("Content.isValid", this._value);
|
1265
1264
|
return this._type.validate(this._value);
|
1266
1265
|
};
|
1267
1266
|
|