Socket
Socket
Sign inDemoInstall

@lion/validate

Package Overview
Dependencies
2
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.20 to 0.2.21

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [0.2.21](https://github.com/ing-bank/lion/compare/@lion/validate@0.2.20...@lion/validate@0.2.21) (2019-07-24)
**Note:** Version bump only for package @lion/validate
## [0.2.20](https://github.com/ing-bank/lion/compare/@lion/validate@0.2.19...@lion/validate@0.2.20) (2019-07-23)

@@ -8,0 +16,0 @@

12

docs/ValidationSystem.md

@@ -28,4 +28,4 @@ # Validation

<validatable-el
.errorValidators="${[[ myValidatorFunction, { myParam: 'foo' }, { extra: 'options' } ]]}">
</validatable-el>
.errorValidators="${[[ myValidatorFunction, { myParam: 'foo' }, { extra: 'options' } ]]}"
></validatable-el>
```

@@ -50,4 +50,4 @@

<validatable-el
.errorValidators="${[minLengthValidator({ min: 3 }), isZipCodeValidator()]}">
</validatable-el>
.errorValidators="${[minLengthValidator({ min: 3 }), isZipCodeValidator()]}"
></validatable-el>
```

@@ -117,4 +117,4 @@

.warningValidators="${[myWarningValidator()]}"
.infoValidators="${[myInfoValidator()]}">
</validatable-field>
.infoValidators="${[myInfoValidator()]}"
></validatable-field>
```

@@ -121,0 +121,0 @@

{
"name": "@lion/validate",
"version": "0.2.20",
"version": "0.2.21",
"description": "Validate your form elements",

@@ -35,4 +35,4 @@ "author": "ing-bank",

"dependencies": {
"@lion/core": "^0.1.11",
"@lion/localize": "^0.4.7"
"@lion/core": "^0.1.12",
"@lion/localize": "^0.4.8"
},

@@ -44,3 +44,3 @@ "devDependencies": {

},
"gitHead": "da99c690df7eca55fcb5f9d8a10979f71d184a2c"
"gitHead": "8d81f84ea9b2618d45774370666710c9c462532a"
}

@@ -41,3 +41,3 @@ # Validate

> Note that we import an lion-input here as an example of a form control implementing ValidateMixin.
We could equally well use lion-textarea, lion-select, lion-fieldset etc. to illustrate our example.
> We could equally well use lion-textarea, lion-select, lion-fieldset etc. to illustrate our example.

@@ -54,3 +54,4 @@ ### Example

const isInitialsRegex = /^([A-Z]\.)+$/;
export const isExampleInitials = value => isString(value) && isInitialsRegex.test(value.toUpperCase());
export const isExampleInitials = value =>
isString(value) && isInitialsRegex.test(value.toUpperCase());
export const isExampleInitialsValidator = () => [

@@ -76,3 +77,3 @@ (...params) => ({ isExampleInitials: isExampleInitials(...params) }),

```js
minMaxLengthValidator({ min: 5, max: 10 })
minMaxLengthValidator({ min: 5, max: 10 });
```

@@ -79,0 +80,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc