0.5.1
This commit is contained in:
parent
91b928f144
commit
46423dc8c6
3
dist/formulario.esm.js
vendored
3
dist/formulario.esm.js
vendored
@ -193,6 +193,9 @@ function setNested(obj, field, value) {
|
|||||||
for (let i = 0; i < fieldParts.length; i++) {
|
for (let i = 0; i < fieldParts.length; i++) {
|
||||||
const fieldPart = fieldParts[i];
|
const fieldPart = fieldParts[i];
|
||||||
const matches = fieldPart.match(/(.+)\[(\d+)\]$/);
|
const matches = fieldPart.match(/(.+)\[(\d+)\]$/);
|
||||||
|
if (subProxy === undefined) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
if (matches) {
|
if (matches) {
|
||||||
if (subProxy[matches[1]] === undefined) {
|
if (subProxy[matches[1]] === undefined) {
|
||||||
subProxy[matches[1]] = [];
|
subProxy[matches[1]] = [];
|
||||||
|
2
dist/formulario.min.js
vendored
2
dist/formulario.min.js
vendored
File diff suppressed because one or more lines are too long
6
dist/formulario.umd.js
vendored
6
dist/formulario.umd.js
vendored
@ -198,6 +198,9 @@
|
|||||||
for (let i = 0; i < fieldParts.length; i++) {
|
for (let i = 0; i < fieldParts.length; i++) {
|
||||||
const fieldPart = fieldParts[i];
|
const fieldPart = fieldParts[i];
|
||||||
const matches = fieldPart.match(/(.+)\[(\d+)\]$/);
|
const matches = fieldPart.match(/(.+)\[(\d+)\]$/);
|
||||||
|
if (subProxy === undefined) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
if (matches) {
|
if (matches) {
|
||||||
if (subProxy[matches[1]] === undefined) {
|
if (subProxy[matches[1]] === undefined) {
|
||||||
subProxy[matches[1]] = [];
|
subProxy[matches[1]] = [];
|
||||||
@ -212,9 +215,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (subProxy === undefined) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if (i === fieldParts.length - 1) {
|
if (i === fieldParts.length - 1) {
|
||||||
subProxy[fieldPart] = value;
|
subProxy[fieldPart] = value;
|
||||||
break;
|
break;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@retailcrm/vue-formulario",
|
"name": "@retailcrm/vue-formulario",
|
||||||
"version": "0.5.0",
|
"version": "0.5.1",
|
||||||
"author": "RetailDriverLLC <integration@retailcrm.ru>",
|
"author": "RetailDriverLLC <integration@retailcrm.ru>",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npm run build:esm & npm run build:umd & npm run build:iife & wait && echo \"Build complete:\nesm: $(gzip -c dist/formulario.esm.js | wc -c)b gzip\numd: $(gzip -c dist/formulario.umd.js | wc -c)b gzip\nmin: $(gzip -c dist/formulario.min.js | wc -c)b gzip\"",
|
"build": "npm run build:esm & npm run build:umd & npm run build:iife & wait && echo \"Build complete:\nesm: $(gzip -c dist/formulario.esm.js | wc -c)b gzip\numd: $(gzip -c dist/formulario.umd.js | wc -c)b gzip\nmin: $(gzip -c dist/formulario.min.js | wc -c)b gzip\"",
|
||||||
|
Loading…
Reference in New Issue
Block a user