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/package.json
CHANGED
@@ -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
|
-
|
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",
|
192
|
+
console.log("Content.isValid", this._value)
|
194
193
|
return this._type.validate(this._value)
|
195
194
|
}
|
196
195
|
|