Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

js-mvc-framework

Package Overview
Dependencies
Maintainers
0
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-mvc-framework - npm Package Compare versions

Comparing version 1.2.22 to 1.2.23

demonstrament/documents/static-cms/Coutil/Body/index.scss

14

demonstrament/application/pilers/sass.piler.js

@@ -16,6 +16,12 @@ import path from 'node:path'

)
var sassPile = sass.compile($settings.input, {
sourceMap: true,
sourceMapIncludeSources: true,
})
var sassPile
try {
sassPile = sass.compile($settings.input, {
sourceMap: true,
sourceMapIncludeSources: true,
stopOnError: false,
errorCSS: false,
})
}
catch($err) { return }
const sassPileCSS = sassPile.css.concat(sassPileSourceMapPend)

@@ -22,0 +28,0 @@ const sassPileSourceMap =JSON.stringify(sassPile.sourceMap)

@@ -8,38 +8,60 @@ import { IPHostValidator } from '../Coutil/Validators/index.js'

// Device Model
device: [{
schema: {
legend: { type: String },
resource: { type: {
textContent: { type: String },
href: { type: String },
} },
port: { type: {
label: { type: String },
detail: { type: String },
} },
host: { type: {
label: { type: String },
detail: { type: String },
} },
},
content: {
legend: 'Node Inspector',
resource: {
textContent: 'Node Inspector | Open',
href: 'https://nodejs.org/api/inspector.html#inspectoropenport-host-wait'
device: [
{
schema: {
legend: { type: String },
resources: { type: {
name: { type: String },
active: { type: Boolean },
items: { type: [{ type: {
textContent: { type: String },
href: { type: String },
}
}]
} }
},
port: { type: {
label: { type: String },
detail: { type: String },
} },
host: { type: {
label: { type: String },
detail: { type: String },
} },
},
port: {
label: 'Port',
detail: 'Example: 9000',
},
host: {
label: 'Host',
detail: 'Example: 127.0.0.1',
},
content: {
legend: 'Node Inspector',
resources: {
name: "Resources",
active: false,
items: [{
textContent: 'Node Inspector Documentation',
href: 'https://nodejs.org/api/inspector.html#inspectoropenport-host-wait'
}]
},
port: {
label: 'Port',
detail: 'Example: 9000',
},
host: {
label: 'Host',
detail: 'Example: 127.0.0.1',
},
}
}, {
assign: {
toggleResourcesActive: function() {
this.content.set("resources.active", !this.content.get("resources.active"))
}
}
}
}],
],
// Database Model
database: {
schema: {
port: { type: Number },
port: {
type: Number,
min: 0,
max: 65535,
},
host: {

@@ -63,2 +85,6 @@ type: String,

inputHost: '[data-id="inspector"] [data-id="host"] > input',
resources: 'fieldset > resources',
resourcesButton: 'fieldset > resources > header > button',
resourcesMain: 'fieldset > resources > main',
resourceAnchor: 'fieldset > resources > main > resource > a',
},

@@ -72,8 +98,18 @@ }

},
'views.default.querySelectors.inputPort change': function ($event) {
'models.device.content.resources setProperty:active': function ($event) {
const { resources } = this.views.default.qs
resources.setAttribute('data-active', $event.detail.value)
},
"views.default.qs.resourceAnchor click": function ($event) {
this.models.device.content.set("resources.active", false)
},
"views.default.qs.resourcesButton click": function ($event) {
this.models.device.toggleResourcesActive()
},
'views.default.qs.inputPort change': function ($event) {
$event.preventDefault()
const { value } = $event.currentTarget
// this.models.database.content.port = Number(value)
this.models.database.content.port = Number(value)
},
'views.default.querySelectors.inputHost change': function ($event) {
'views.default.qs.inputHost change': function ($event) {
$event.preventDefault()

@@ -80,0 +116,0 @@ const { value } = $event.currentTarget

@@ -32,11 +32,7 @@ export default function anonymous($content, escapeFn, include, rethrow) {

__append(escapeFn(device.legend));
__append("</legend>\n <resource>\n <a\n href=\"");
__append(escapeFn(device.resource.href));
__append("\"\n target=\"_blank\"\n >");
__append(escapeFn(device.resource.textContent));
__append("</a>\n </resource>\n <field data-id=\"host\">\n <label>");
__append("</legend>\n <field data-id=\"host\">\n <label>");
__append(escapeFn(device.host.label));
__append("</label>\n <input\n type=\"text\"\n value=\"");
__append(escapeFn(database.host));
__append("\"\n pattern=\"^(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$\"\n required\n >\n <detail>");
__append("\"\n required\n >\n <detail>");
__append(escapeFn(device.host.detail));

@@ -49,5 +45,18 @@ __append("</detail>\n </field>\n <field data-id=\"port\">\n <label>");

__append(escapeFn(device.port.detail));
__append("</detail>\n </field>\n</fieldset>")
__append("</detail>\n </field>\n <resources data-active=\"");
__append(escapeFn(device.resources.active));
__append("\">\n <header>\n <name>");
__append(escapeFn(device.resources.name));
__append("</name>\n <button></button>\n </header>\n <main>\n ");
for (const $resource of device.resources.items) {
;
__append("\n <resource>\n <a\n href=\"");
__append(escapeFn($resource.href));
__append("\"\n target=\"_blank\"\n >");
__append(escapeFn($resource.textContent));
__append("</a>\n </resource>\n ");
};
__append("\n </main>\n </resources>\n</fieldset>")
return __output;
}

@@ -64,6 +64,15 @@ import { regularExpressions, recursiveAssign } from '../../../../../../../Coutil/index.js'

const validSourceProp = schema.validateProperty(propertyKey, $value)
console.log(validSourceProp)
if(validationEvents) {
let type
const _path = [path, '.', propertyKey].join('')
if(validSourceProp.valid) {
type = ['validProperty', ':', propertyKey].join('')
}
else {
type = ['nonvalidProperty', ':', propertyKey].join('')
}
$content.dispatchEvent(
new ValidatorEvent('validateProperty', {
path,
new ValidatorEvent(type, {
path: _path,
detail: validSourceProp,

@@ -70,0 +79,0 @@ }, $content)

@@ -25,5 +25,13 @@ import Content from '../../../../index.js'

if(schema &&validationEvents) {
let type
const _path = [path, '.', valueIndex].join('')
if(validSourceProp.valid) {
type = ['validProperty', ':', valueIndex].join('')
}
else {
type = ['nonvalidProperty', ':', valueIndex].join('')
}
$content.dispatchEvent(
new ValidatorEvent('validateProperty', {
path,
new ValidatorEvent(type, {
path: _path,
detail: validValue,

@@ -30,0 +38,0 @@ }, $content)

@@ -33,5 +33,13 @@ import Content from '../../../../index.js'

if(validationEvents) {
let type
const _path = [path, '.', fillIndex].join('')
if(validSourceProp.valid) {
type = ['validProperty', ':', fillIndex].join('')
}
else {
type = ['nonvalidProperty', ':', fillIndex].join('')
}
$content.dispatchEvent(
new ValidatorEvent('validateProperty', {
path,
new ValidatorEvent(type, {
path: _path,
detail: validValue,

@@ -38,0 +46,0 @@ }, $content)

@@ -18,5 +18,13 @@ import Content from '../../../../index.js'

if(validationEvents) {
let type
const _path = [path, '.', elementsIndex].join('')
if(validSourceProp.valid) {
type = ['validProperty', ':', elementsIndex].join('')
}
else {
type = ['nonvalidProperty', ':', elementsIndex].join('')
}
$content.dispatchEvent(
new ValidatorEvent('validateProperty', {
path,
new ValidatorEvent(type, {
path: _path,
detail: validElement,

@@ -23,0 +31,0 @@ }, $content)

@@ -67,5 +67,13 @@ import Content from '../../../../index.js'

if(validationEvents) {
let type
const _path = [path, '.', addItemsIndex].join('')
if(validSourceProp.valid) {
type = ['validProperty', ':', addItemsIndex].join('')
}
else {
type = ['nonvalidProperty', ':', addItemsIndex].join('')
}
$content.dispatchEvent(
new ValidatorEvent('validateProperty', {
path,
new ValidatorEvent(type, {
path: _path,
detail: validAddItem,

@@ -72,0 +80,0 @@ }, $content)

@@ -21,5 +21,13 @@ import Content from '../../../../index.js'

if(validationEvents) {
let type
const _path = [path, '.', elementIndex].join('')
if(validSourceProp.valid) {
type = ['validProperty', ':', elementIndex].join('')
}
else {
type = ['nonvalidProperty', ':', elementIndex].join('')
}
$content.dispatchEvent(
new ValidatorEvent('validateProperty', {
path,
new ValidatorEvent(type, {
path: _path,
detail: validElement,

@@ -26,0 +34,0 @@ }, $content)

@@ -25,2 +25,10 @@ import { recursiveAssign } from '../../../../../../Coutil/index.js'

if(validationEvents) {
let type
const _path = [path, '.', $sourcePropKey].join('')
if(validSourceProp.valid) {
type = ['validProperty', ':', $sourcePropKey].join('')
}
else {
type = ['nonvalidProperty', ':', $sourcePropKey].join('')
}
// Validator Event: Validate Property

@@ -27,0 +35,0 @@ $content.dispatchEvent(

@@ -16,2 +16,10 @@ import { typeOf } from '../../../../../../Coutil/index.js'

if(validationEvents) {
let type
const _path = [path, '.', propertyKey].join('')
if(validSourceProp.valid) {
type = ['validProperty', ':', propertyKey].join('')
}
else {
type = ['nonvalidProperty', ':', propertyKey].join('')
}
$content.dispatchEvent(

@@ -18,0 +26,0 @@ new ValidatorEvent('validateProperty', {

@@ -22,3 +22,2 @@ import { typeOf } from '../../Coutil/index.js'

this.options = Object.assign({}, Options, $options)
// this.context
}

@@ -25,0 +24,0 @@ get validationType() { return this.options.validationType }

{
"name": "js-mvc-framework",
"author": "Thomas Patrick Welborn",
"version": "1.2.22",
"version": "1.2.23",
"type": "module",

@@ -6,0 +6,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc