New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jenesius-vue-form

Package Overview
Dependencies
Maintainers
1
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jenesius-vue-form - npm Package Compare versions

Comparing version 2.0.12 to 2.0.13

37

dist/jenesius-vue-form.cjs.js
/*!
* jenesius-vue-form v2.0.12
* jenesius-vue-form v2.0.13
* (c) 2022 Jenesius

@@ -495,8 +495,15 @@ * @license MIT

const value = attributes.value;
Object.keys(target).forEach(disabledName => {
if (disabledName.startsWith(name.toString())) {
delete target[disabledName];
}
// Находим всех дочерних элементов и удаляем их
Object.keys(target).forEach(childrenName => {
if (checkCompositeName(name, childrenName))
delete target[childrenName];
});
target[name] = attributes.value;
const nearestName = findNearestNameFromArray(name, Object.keys(target));
// @ts-ignore
// Если родитель находится в таком же состоянии
if ((nearestName && value === target[nearestName]) ||
(!nearestName && value === !this.disabled)) ;
else {
target[name] = attributes.value;
}
if (value)

@@ -524,15 +531,11 @@ this.recursiveEnableItem(name.toString());

markElementForAbility(name, mark) {
const nearestName = findNearestNameFromArray(name, Object.keys(this.abilities));
if (!nearestName) {
this.abilities[name] = mark;
return;
}
// Был найден родительский элемент, сейчас всё зависит от него
return this.abilities[name] = mark;
/*
if (this.abilities[nearestName] === mark) return this.abilities[name] = mark;
// Ближайший элемент заблокирован и нужно заблокировать
if (!this.abilities[nearestName] && !mark)
return;
if (!this.abilities[nearestName] && !mark) return;
// Ближайший элемент разблокирован и нужно разблокировать
if (this.abilities[nearestName] && mark)
return;
return this.abilities[name] = mark;
if (this.abilities[nearestName] && mark) return;
*/
}

@@ -539,0 +542,0 @@ disableByName(name) {

{
"name": "jenesius-vue-form",
"version": "2.0.12",
"version": "2.0.13",
"description": "Heavy form system for Vue.js",

@@ -5,0 +5,0 @@ "author": "Jenesius",

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