ywana-core8 0.0.638 → 0.0.641
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 +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +3 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +3 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentType.js +3 -4
package/dist/index.modern.js
CHANGED
@@ -1137,8 +1137,8 @@ var ContentType = /*#__PURE__*/function () {
|
|
1137
1137
|
}).every(function (_ref3) {
|
1138
1138
|
var name = _ref3[0],
|
1139
1139
|
attr = _ref3[1];
|
1140
|
-
console.log("validate", name, data[name], data[name] ? data[name] :
|
1141
|
-
return data[name] ? _this.checkType(attr, data[name])
|
1140
|
+
console.log("validate", name, data[name], data[name] === null ? "NULL" : data[name] === undefined ? "UNDEFINED" : data[name]);
|
1141
|
+
return data[name] === null ? false : data[name] === undefined ? false : _this.checkType(attr, data[name]);
|
1142
1142
|
});
|
1143
1143
|
}
|
1144
1144
|
/**
|
@@ -1253,6 +1253,7 @@ var Content = /*#__PURE__*/function () {
|
|
1253
1253
|
var _proto2 = Content.prototype;
|
1254
1254
|
|
1255
1255
|
_proto2.isValid = function isValid() {
|
1256
|
+
console.log("Content.isValid", this._value);
|
1256
1257
|
return this._type.validate(this._value);
|
1257
1258
|
};
|
1258
1259
|
|