js-mvc-framework
Advanced tools
Comparing version 1.8.0 to 1.8.1
@@ -18,2 +18,3 @@ import { readFile } from 'node:fs/promises' | ||
browserSync: { | ||
logPrefix: "MVC Framework | Demonstrament", | ||
port: 3339, | ||
@@ -24,3 +25,2 @@ open: false, | ||
host: "demonstrament.mvc-framework", | ||
logPrefix: "MVC Framework | Demonstrament", | ||
https: { | ||
@@ -27,0 +27,0 @@ key: certificates.key.path, |
@@ -1,2 +0,4 @@ | ||
import { Core } from 'core-plex' | ||
import { Core, Coutil } from 'core-plex' | ||
const { recursiveAssign } = Coutil | ||
import Settings from './settings/index.js' | ||
import Options from './options/index.js' | ||
@@ -8,4 +10,11 @@ import PropertyClass from './property-class/index.js' | ||
static propertyClasses = [] | ||
#settings | ||
#options | ||
constructor($settings, $options) { | ||
super($settings, Object.assign({}, $options, Options)) | ||
super({ | ||
events: $settings.events || {}, | ||
propertyDefinitions: $settings.propertyDefinitions || {}, | ||
}) | ||
this.#settings = recursiveAssign({}, Settings, $settings) | ||
this.#options = recursiveAssign({}, Options, $options) | ||
if(this.settings.propertyClasses) { | ||
@@ -16,2 +25,4 @@ this.addPropertyClasses(this.settings.propertyClasses) | ||
} | ||
get settings() { return this.#settings } | ||
get options() { return this.#options } | ||
get #propertyClasses() { return this.#_propertyClasses } | ||
@@ -18,0 +29,0 @@ #getPropertyClasses() { |
@@ -1,8 +0,1 @@ | ||
export default { | ||
propertyClasses: [/*{ | ||
name: "views", definitionValue: 'Array', | ||
administer: "addViews", deadminister: "removeViews", | ||
instate: function instate($propertyClass, $property, $value) {}, | ||
deinstate: function deinstate($propertyClass, $property) {}, | ||
}*/], | ||
} | ||
export default {} |
@@ -1,2 +0,7 @@ | ||
import { expandEvents, impandEvents } from './pandEvents/index.js' | ||
import { Coutil } from 'core-plex' | ||
const { | ||
impandEvents, expandEvents, | ||
recursiveAssign, recursiveAssignConcat, | ||
typeOf, | ||
} = Coutil | ||
import { expandTree, impandTree } from './pandTree/index.js' | ||
@@ -9,7 +14,4 @@ import isPropertyDefinition from './isPropertyDefinition/index.js' | ||
import pathkeytree from './pathkeytree/index.js' | ||
import recursiveAssign from './recursiveAssign/index.js' | ||
import recursiveAssignConcat from './recursiveAssignConcat/index.js' | ||
import regularExpressions from './regularExpressions/index.js' | ||
import * as tree from './tree/index.js' | ||
import typeOf from './typeOf/index.js' | ||
import typedObjectLiteral from './typedObjectLiteral/index.js' | ||
@@ -24,2 +26,4 @@ import typedObjectLiteralFromPath from './typedObjectLiteralFromPath/index.js' | ||
expandTree, impandTree, | ||
// Recursive Assign | ||
recursiveAssign, recursiveAssignConcat, | ||
isPropertyDefinition, | ||
@@ -31,4 +35,2 @@ isPropertyValidator, | ||
pathkeytree, | ||
recursiveAssign, | ||
recursiveAssignConcat, | ||
regularExpressions, | ||
@@ -35,0 +37,0 @@ tree, |
@@ -21,3 +21,3 @@ { | ||
"dependencies": { | ||
"core-plex": "^1.3.0", | ||
"core-plex": "^1.3.2", | ||
"parsel-js": "^1.2.1", | ||
@@ -24,0 +24,0 @@ "path-to-regexp": "^8.2.0" |
{ | ||
"name": "js-mvc-framework", | ||
"author": "Thomas Patrick Welborn", | ||
"version": "1.8.0", | ||
"version": "1.8.1", | ||
"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
372
2470238
27091