Comparing version 0.4.3 to 0.4.4
{ | ||
"name": "handcuffs", | ||
"description": "Async validation library for node and browser", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"author": "Vlad Shcherbin <vlad.shcherbin@gmail.com>", | ||
"repository": "VladShcherbin/handcuffs", | ||
"main": "dist/node/cjs/index.js", | ||
"module": "dist/node/es/index.js", | ||
"browser": { | ||
"dist/node/cjs/index.js": "./dist/browser/cjs/index.js", | ||
"dist/node/es/index.js": "./dist/browser/es/index.js" | ||
}, | ||
"repository": "vladshcherbin/handcuffs", | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/es/index.js", | ||
"scripts": { | ||
@@ -24,3 +20,3 @@ "build": "rollup -c", | ||
"dependencies": { | ||
"dot-prop-wild": "^0.1.1", | ||
"dot-prop-wild": "^0.3.0", | ||
"is-number": "^5.0.0" | ||
@@ -35,10 +31,10 @@ }, | ||
"codecov": "^3.0.0", | ||
"eslint": "^4.17.0", | ||
"eslint": "^4.18.0", | ||
"eslint-config-airbnb-base": "^12.1.0", | ||
"eslint-plugin-import": "^2.8.0", | ||
"jest": "^22.3.0", | ||
"nodemon": "^1.14.12", | ||
"nodemon": "^1.15.0", | ||
"rimraf": "^2.6.2", | ||
"rollup": "^0.55.5", | ||
"rollup-plugin-babel": "^4.0.0-beta.1", | ||
"rollup": "^0.56.2", | ||
"rollup-plugin-babel": "^4.0.0-beta.2", | ||
"rollup-plugin-cleanup": "^2.0.0", | ||
@@ -45,0 +41,0 @@ "rollup-plugin-filesize": "^1.5.0", |
@@ -51,2 +51,4 @@ # Handcuffs | ||
> **Note**: This library is written using ES6, in order to use it in your project it is advised to transpile it to your environment. The easiest way to do this is by using [Babel](https://babeljs.io) with [@babel/preset-env](https://github.com/babel/babel/tree/master/packages/babel-preset-env). | ||
### Rules | ||
@@ -110,2 +112,10 @@ | ||
**email** | ||
```js | ||
{ email: 'email' } | ||
``` | ||
The field under validation must be formatted as an e-mail address. | ||
**max** | ||
@@ -143,2 +153,10 @@ | ||
**slug** | ||
```js | ||
{ slug: 'slug' } | ||
``` | ||
The field under validation may have lowercase alpha-numeric characters and dashes. | ||
**string** | ||
@@ -145,0 +163,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
170
21138
4
542
1
+ Addeddot-prop-wild@0.3.0(transitive)
- Removeddot-prop-wild@0.1.1(transitive)
Updateddot-prop-wild@^0.3.0