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 CHANGED
@@ -1145,8 +1145,8 @@ var ContentType = /*#__PURE__*/function () {
1145
1145
  }).every(function (_ref3) {
1146
1146
  var name = _ref3[0],
1147
1147
  attr = _ref3[1];
1148
- console.log("validate", name, data[name], data[name] ? data[name] : null);
1149
- return data[name] ? _this.checkType(attr, data[name]) : false;
1148
+ console.log("validate", name, data[name], data[name] === null ? "NULL" : data[name] === undefined ? "UNDEFINED" : data[name]);
1149
+ return data[name] === null ? false : data[name] === undefined ? false : _this.checkType(attr, data[name]);
1150
1150
  });
1151
1151
  }
1152
1152
  /**
@@ -1261,6 +1261,7 @@ var Content = /*#__PURE__*/function () {
1261
1261
  var _proto2 = Content.prototype;
1262
1262
 
1263
1263
  _proto2.isValid = function isValid() {
1264
+ console.log("Content.isValid", this._value);
1264
1265
  return this._type.validate(this._value);
1265
1266
  };
1266
1267