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

@altiore/form

Package Overview
Dependencies
Maintainers
1
Versions
187
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@altiore/form - npm Package Compare versions

Comparing version 4.2.3 to 4.2.4

dist/validators/@common/plural.d.ts

3

dist/validators/max-length/max-length.js
import { getErrorMessage } from '../@common/get-error-message';
import { pluralNoun } from '../@common/plural';
export var maxLength = function (getMessage, length) {

@@ -16,3 +17,3 @@ if (getMessage === void 0) { getMessage = null; }

if (value.length > length) {
var defError = "\u041C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0434\u043B\u0438\u043D\u0430 \u0432\u0432\u0435\u0434\u0435\u043D\u043D\u043E\u0433\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F - " + length;
var defError = "\u041C\u0430\u043A\u0441\u0438\u043C\u0443\u043C " + length + " \u0441\u0438\u043C\u0432\u043E\u043B" + pluralNoun(length, '', 'а', 'ов');
return getErrorMessage(value, length, defError, getMessage);

@@ -19,0 +20,0 @@ }

import { getErrorMessage } from '../@common/get-error-message';
import { pluralNoun } from '../@common/plural';
export var minLength = function (getMessage, length) {

@@ -16,3 +17,3 @@ if (getMessage === void 0) { getMessage = null; }

if (value.length < length) {
var defError = "\u041C\u0438\u043D\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0434\u043B\u0438\u043D\u0430 \u0432\u0432\u0435\u0434\u0435\u043D\u043D\u043E\u0433\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F - " + length;
var defError = "\u041C\u0438\u043D\u0438\u043C\u0443\u043C " + length + " \u0441\u0438\u043C\u0432\u043E\u043B" + pluralNoun(length, '', 'а', 'ов');
return getErrorMessage(value, length, defError, getMessage);

@@ -19,0 +20,0 @@ }

{
"name": "@altiore/form",
"version": "4.2.3",
"version": "4.2.4",
"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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc