New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

handcuffs

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

handcuffs - npm Package Compare versions

Comparing version 0.4.3 to 0.4.4

dist/cjs/index.js

22

package.json
{
"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 @@

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