ywana-core8 0.0.637 → 0.0.640
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/package.json
CHANGED
@@ -80,10 +80,8 @@ export class ContentType {
|
|
80
80
|
return attributes
|
81
81
|
.filter(([name, attr]) => attr.required === true)
|
82
82
|
.every(([name, attr]) => {
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
return data[name] === undefined || data[name] === null ? false: this.checkType(attr, data[name])
|
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])
|
87
85
|
})
|
88
86
|
}
|
89
87
|
|
@@ -192,6 +190,7 @@ export class Content {
|
|
192
190
|
}
|
193
191
|
|
194
192
|
isValid() {
|
193
|
+
console.log("Content.isValid", this_value)
|
195
194
|
return this._type.validate(this._value)
|
196
195
|
}
|
197
196
|
|