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

uniforms-bootstrap4

Package Overview
Dependencies
Maintainers
2
Versions
191
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uniforms-bootstrap4 - npm Package Compare versions

Comparing version 1.0.0-rc.18 to 1.0.0-rc.19

2

lib/components/fields/AutoField.js

@@ -70,3 +70,3 @@ 'use strict';

default:
throw new Error('Unsupported field type: ' + props.type.toString());
throw new Error('Unsupported field type: ' + props.fieldType.toString());
}

@@ -73,0 +73,0 @@ }

@@ -30,2 +30,3 @@ 'use strict';

disabled: props.disabled,
id: props.id,
name: props.name,

@@ -36,3 +37,2 @@ onChange: function onChange(event) {

placeholder: props.placeholder,
type: 'text',
value: props.value

@@ -39,0 +39,0 @@ })

@@ -29,6 +29,8 @@ 'use strict';

var className = _ref.className;
var _ref$inputClassName = _ref.inputClassName;
var inputClassName = _ref$inputClassName === undefined ? 'btn btn-primary' : _ref$inputClassName;
var value = _ref.value;
var wrapClassName = _ref.wrapClassName;
var value = _ref.value;
var props = _objectWithoutProperties(_ref, ['className', 'wrapClassName', 'value']);
var props = _objectWithoutProperties(_ref, ['className', 'inputClassName', 'value', 'wrapClassName']);

@@ -38,3 +40,2 @@ var _ref2$uniforms = _ref2.uniforms;

var _ref2$uniforms$state = _ref2$uniforms.state;
_ref2$uniforms$state = _ref2$uniforms$state === undefined ? {} : _ref2$uniforms$state;
var disabled = _ref2$uniforms$state.disabled;

@@ -53,4 +54,4 @@ var grid = _ref2$uniforms$state.grid;

{ className: (0, _classnames2.default)(wrapClassName, (0, _gridClassName2.default)(grid, 'input')) },
_react2.default.createElement('input', { className: 'btn btn-primary', disabled: !!(error || disabled), value: value, type: 'submit' })
) : _react2.default.createElement('input', { className: 'btn btn-primary', disabled: !!(error || disabled), value: value, type: 'submit' })
_react2.default.createElement('input', { className: inputClassName, disabled: !!(error || disabled), value: value, type: 'submit' })
) : _react2.default.createElement('input', { className: inputClassName, disabled: !!(error || disabled), value: value, type: 'submit' })
);

@@ -57,0 +58,0 @@ };

{
"name": "uniforms-bootstrap4",
"version": "1.0.0-rc.18",
"version": "1.0.0-rc.19",
"main": "lib/index.js",

@@ -27,8 +27,9 @@ "jsnext:main": "src/index.js",

"scripts": {
"build": "babel --out-dir lib src",
"clean": "rimraf coverage lib .nyc_output",
"cover": "nyc npm test",
"lint": "eslint src",
"test": "true",
"cover": "true",
"build": "babel --out-dir lib src",
"clean": "rimraf lib node_modules",
"prepublish": "npm run lint && npm run test && npm run build"
"prepublish": "npm run lint && npm run test && npm run build",
"reset": "rimraf node_modules",
"test": "cross-env NODE_ENV=test babel-node node_modules/.bin/_mocha --require test/index.js --recursive test --reporter list"
},

@@ -38,5 +39,10 @@ "devDependencies": {

"babel-eslint": "^6.0.4",
"babel-plugin-__coverage__": "^11.0.0",
"babel-preset-es2015": "^6.9.0",
"babel-preset-react": "^6.5.0",
"babel-preset-stage-0": "^6.5.0",
"chai": "^3.5.0",
"chai-enzyme": "^0.5.0",
"cross-env": "^1.0.8",
"enzyme": "^2.3.0",
"eslint": "^2.11.0",

@@ -46,7 +52,16 @@ "eslint-config-vazco": "^1.0.0",

"eslint-plugin-react": "^5.1.1",
"rimraf": "^2.5.2"
"jsdom": "^9.2.1",
"mocha": "^2.5.3",
"mock-require": "^1.3.0",
"nyc": "^6.6.1",
"react": "^15.1.0",
"react-addons-test-utils": "^15.1.0",
"react-dom": "^15.1.0",
"rimraf": "^2.5.2",
"sinon": "^1.17.4",
"sinon-chai": "^2.8.0"
},
"peerDependencies": {
"react": "^15.1.0",
"uniforms": "^1.0.0-rc.18"
"uniforms": "^1.0.0-rc.19"
},

@@ -58,3 +73,10 @@ "babel": {

"stage-0"
]
],
"env": {
"test": {
"plugins": [
"__coverage__"
]
}
}
},

@@ -65,4 +87,17 @@ "eslintConfig": {

"vazco"
]
],
"env": {
"mocha": true
}
},
"nyc": {
"reporter": [
"html"
],
"require": [
"babel-register"
],
"sourceMap": false,
"instrument": false
},
"dependencies": {

@@ -69,0 +104,0 @@ "classnames": "^2.2.5"

@@ -31,3 +31,3 @@ import {connectField} from 'uniforms';

default: throw new Error(`Unsupported field type: ${props.type.toString()}`);
default: throw new Error(`Unsupported field type: ${props.fieldType.toString()}`);
}

@@ -34,0 +34,0 @@ }

@@ -12,6 +12,6 @@ import React from 'react';

disabled={props.disabled}
id={props.id}
name={props.name}
onChange={event => props.onChange(event.target.value)}
placeholder={props.placeholder}
type="text"
value={props.value}

@@ -18,0 +18,0 @@ />

@@ -7,3 +7,9 @@ import React from 'react';

const SubmitField = ({className, wrapClassName, value, ...props}, {uniforms: {error, state: {disabled, grid} = {}}}) =>
const SubmitField = ({
className,
inputClassName = 'btn btn-primary',
value,
wrapClassName,
...props
}, {uniforms: {error, state: {disabled, grid}}}) =>
<section className={classnames(className, {'has-danger': error, row: grid})} {...props}>

@@ -18,6 +24,6 @@ {(grid || wrapClassName) && (

<section className={classnames(wrapClassName, gridClassName(grid, 'input'))}>
<input className="btn btn-primary" disabled={!!(error || disabled)} value={value} type="submit" />
<input className={inputClassName} disabled={!!(error || disabled)} value={value} type="submit" />
</section>
) : (
<input className="btn btn-primary" disabled={!!(error || disabled)} value={value} type="submit" />
<input className={inputClassName} disabled={!!(error || disabled)} value={value} type="submit" />
)}

@@ -24,0 +30,0 @@ </section>

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