js-mvc-framework
Advanced tools
Comparing version 1.2.17 to 1.2.18
@@ -19,3 +19,16 @@ import { Content, Model } from '/dependencies/mvc-framework.js' | ||
const { content } = new Model({ | ||
const { schema, content } = new Model({ | ||
schema: { | ||
propertyA: { | ||
type: { | ||
propertyB: { | ||
type: { | ||
propertyC: { | ||
type: String | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
content: { | ||
@@ -34,6 +47,9 @@ propertyA: { | ||
console.log($event.type, $event.basename, $event.detail) | ||
} | ||
}, | ||
} | ||
}, { enableEvents: true }) | ||
// console.log(schema) | ||
// console.log(content) | ||
// console.log(content.object) | ||
console.log(content.get("propertyA.propertyB.propertyC")) |
@@ -34,6 +34,3 @@ import { regularExpressions, recursiveAssign } from '../../../../../../../Coutil/index.js' | ||
if(subpaths.length) { | ||
propertyValue = root[propertyKey] | ||
// Recursive: True | ||
// Property Value: Undefined | ||
if(recursive && propertyValue === undefined) { | ||
if(recursive && root[propertyKey] === undefined) { | ||
// Subschema | ||
@@ -56,4 +53,6 @@ let subschema | ||
})) | ||
root[propertyKey] = propertyValue | ||
} | ||
else { | ||
propertyValue = root[propertyKey] | ||
} | ||
// Subpath Error | ||
@@ -64,5 +63,2 @@ if(subpathError === false && propertyValue === undefined) { return undefined } | ||
} | ||
else { | ||
propertyValue = $value | ||
} | ||
// Validation | ||
@@ -83,3 +79,3 @@ if(schema && enableValidation) { | ||
// Value: Object Literal | ||
else if(typeof $value === 'object') { | ||
if(typeof $value === 'object') { | ||
// Value: Content | ||
@@ -86,0 +82,0 @@ if($value?.classToString === Content.toString()) { $value = $value.object } |
@@ -107,7 +107,3 @@ import { typeOf, recursiveAssign } from '../../Coutil/index.js' | ||
]) => { | ||
// if(typeof $propertyDescriptor.value === 'object') { | ||
// $parsement[$propertyDescriptorName] = $propertyDescriptor.value?.parse() | ||
// } else { | ||
$parsement[$propertyDescriptorName] = $propertyDescriptor.value | ||
// } | ||
$parsement[$propertyDescriptorName] = $propertyDescriptor.value | ||
return $parsement | ||
@@ -114,0 +110,0 @@ }, parsement) |
{ | ||
"name": "js-mvc-framework", | ||
"author": "Thomas Patrick Welborn", | ||
"version": "1.2.17", | ||
"version": "1.2.18", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1656729
12696