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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.640",
3
+ "version": "0.0.643",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -80,8 +80,7 @@ export class ContentType {
80
80
  return attributes
81
81
  .filter(([name, attr]) => attr.required === true)
82
82
  .every(([name, attr]) => {
83
- console.log("validate", name, data[name], data[name] === null ? "NULL" : data[name] === undefined ? "UNDEFINED" : data[name])
84
- return data[name] === null ? false : data[name] === undefined ? false : this.checkType(attr, data[name])
83
+ return data[name] === null ? false : data[name] === undefined ? false : data[name] === "" ? false: this.checkType(attr, data[name])
85
84
  })
86
85
  }
87
86
 
@@ -190,7 +189,7 @@ export class Content {
190
189
  }
191
190
 
192
191
  isValid() {
193
- console.log("Content.isValid", this_value)
192
+ console.log("Content.isValid", this._value)
194
193
  return this._type.validate(this._value)
195
194
  }
196
195