Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

@altiore/form

Package Overview
Dependencies
6
Maintainers
1
Versions
180
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.3.4 to 4.3.5

10

dist/form/form.utils.js

@@ -39,3 +39,3 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {

fieldKeys.forEach(function (name) {
var _a;
var _a, _b;
var value = formDataMap.has(name) ? formDataMap.get(name) : undefined;

@@ -51,2 +51,10 @@ // Мы не можем проверить ошибки валидации внутри этого цикла, т.к. данные еще не

}
if (fieldType === FieldType.SELECT_MULTIPLE) {
if (!Array.isArray(value)) {
value = Array.from(((_b = document.querySelector("select[name='" + name + "']")) === null || _b === void 0 ? void 0 : _b.options) || [])
.filter(function (el) { return el.selected; })
.map(function (el) { return el.value; });
}
}
// TODO: возможно, этот код больше не актуален и полностью покрывается кодом выше про SELECT_MULTIPLE
var prevValue = get(values, name);

@@ -53,0 +61,0 @@ if (prevValue) {

2

package.json
{
"name": "@altiore/form",
"version": "4.3.4",
"version": "4.3.5",
"description": "Form helper for building powerful forms",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc