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

ampersand-input-view

Package Overview
Dependencies
Maintainers
6
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ampersand-input-view - npm Package Compare versions

Comparing version 4.0.5 to 5.0.0

6

ampersand-input-view.js

@@ -52,2 +52,7 @@ /*$AMPERSAND_VERSION*/

name: 'placeholder'
},
'readonly': {
type: 'booleanAttribute',
name: 'readonly',
selector: 'input, textarea'
}

@@ -90,2 +95,3 @@ },

directlyEdited: ['boolean', true, false],
readonly: ['boolean', true, false],
shouldValidate: ['boolean', true, false],

@@ -92,0 +98,0 @@ message: ['string', true, ''],

32

package.json
{
"name": "ampersand-input-view",
"description": "A view module for intelligently rendering and validating input. Works well with ampersand-form-view.",
"version": "4.0.5",
"version": "5.0.0",
"author": "Henrik Joreteg <henrik@andyet.net>",

@@ -11,2 +11,5 @@ "browserify": {

},
"files": [
"ampersand-input-view.js"
],
"bugs": {

@@ -18,3 +21,3 @@ "url": "https://github.com/ampersandjs/ampersand-input-view/issues"

"ampersand-version": "^1.0.1",
"ampersand-view": "^7.2.1",
"ampersand-view": "^8.0.0",
"matches-selector": "^1.0.0"

@@ -24,11 +27,11 @@ },

"ampersand-view-conventions": "^1.1.5",
"browserify": "^5.10.1",
"browserify": "^10.2.4",
"function-bind": "^1.0.0",
"jshint": "^2.5.6",
"phantomjs": "^1.9.7-15",
"precommit-hook": "^1.0.7",
"run-browser": "^1.3.1",
"tap-spec": "^0.2.1",
"precommit-hook": "^3.0.0",
"run-browser": "^2.0.2",
"tap-spec": "^4.0.2",
"tape": "^2.14.0",
"tape-run": "^0.3.0",
"tape-run": "^1.0.0",
"tape-suite": "^0.2.1"

@@ -50,4 +53,15 @@ },

"start": "run-browser test/index.js",
"test": "browserify test/index.js | tape-run | tap-spec"
}
"test": "browserify test/index.js | tape-run | tap-spec",
"preversion": "git checkout master && git pull && npm ls",
"publish-patch": "npm run preversion && npm version patch && git push origin master --tags && npm publish",
"publish-minor": "npm run preversion && npm version minor && git push origin master --tags && npm publish",
"publish-major": "npm run preversion && npm version major && git push origin master --tags && npm publish",
"lint": "jshint .",
"validate": "npm ls"
},
"pre-commit": [
"lint",
"validate",
"test"
]
}

@@ -88,2 +88,3 @@ # ampersand-input-view

- `required` (default: `true`): whether this field is required or not.
- `readonly` (default: `false`): whether this field is read only or not.
- `requiredMessage` (default: `'This field is required'`): message to use if required and empty.

@@ -305,2 +306,6 @@ - `validClass` (default: `'input-valid'`): class to apply to input if valid (see below for customizing where this is applied).

## changelog
- 5.0.0
- Upgrade to &-view 8.x
- Add `readonly` option
- dependency and test maintenance
- 4.0.5

@@ -307,0 +312,0 @@ - Handle uncaught input value changes beforeSubmit

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