email-prop-type
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -1,2 +0,2 @@ | ||
'use strict'; | ||
"use strict"; | ||
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", { | ||
}); | ||
exports.default = void 0; | ||
var _emailValidator = require('email-validator'); | ||
var _emailValidator = _interopRequireDefault(require("email-validator")); | ||
var _emailValidator2 = _interopRequireDefault(_emailValidator); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -17,4 +16,4 @@ | ||
if (value == null || typeof value !== 'string' || !_emailValidator2.default.validate(value)) { | ||
return new TypeError('Invalid Email Prop Value: ' + value + ' for ' + propName + ' in ' + componentName); | ||
if (value == null || typeof value !== 'string' || !_emailValidator.default.validate(value)) { | ||
return new TypeError("Invalid Email Prop Value: ".concat(value, " for ").concat(propName, " in ").concat(componentName)); | ||
} | ||
@@ -34,3 +33,3 @@ | ||
emailPropType.isRequired = requiredEmailPropType; | ||
exports.default = emailPropType; | ||
var _default = emailPropType; | ||
exports.default = _default; |
{ | ||
"name": "email-prop-type", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "React Prop Types Email Validator", | ||
@@ -9,8 +9,9 @@ "main": "./build/index.js", | ||
"commitmsg": "commitlint -e $GIT_PARAMS", | ||
"compile": "babel -d build/ src/ --ignore node_modules,*.test.js", | ||
"compile": "babel -d build/ src/ --delete-dir-on-start", | ||
"lint": "eslint --ext .js .", | ||
"test": "jest --coverage", | ||
"test": "jest src/ --coverage --no-cache", | ||
"prepublishOnly": "npm run compile", | ||
"semantic-commit": "commit", | ||
"semantic-release": "semantic-release" | ||
"semantic-release": "semantic-release", | ||
"travis-deploy-once": "travis-deploy-once" | ||
}, | ||
@@ -35,2 +36,5 @@ "repository": { | ||
"devDependencies": { | ||
"@babel/cli": "^7.0.0-beta.47", | ||
"@babel/core": "^7.0.0-beta.47", | ||
"@babel/preset-env": "^7.0.0-beta.47", | ||
"@commitlint/cli": "^6.0.0", | ||
@@ -40,9 +44,5 @@ "@commitlint/config-angular": "^6.0.2", | ||
"@commitlint/prompt-cli": "^6.0.1", | ||
"babel-cli": "^6.26.0", | ||
"babel-core": "^7.0.0-bridge.0", | ||
"babel-jest": "^22.0.3", | ||
"babel-preset-es2015": "^6.24.1", | ||
"babel-preset-es2016": "^6.24.1", | ||
"babel-preset-es2017": "^6.24.1", | ||
"babel-preset-stage-0": "^6.24.1", | ||
"codecov": "^3.0.0", | ||
"codecov": "^3.0.2", | ||
"eslint": "^4.12.0", | ||
@@ -53,3 +53,4 @@ "eslint-config-airbnb-base": "^12.1.0", | ||
"jest": "^22.0.3", | ||
"semantic-release": "^15.0.0" | ||
"semantic-release": "^15.0.0", | ||
"travis-deploy-once": "^5.0.0" | ||
}, | ||
@@ -56,0 +57,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
6317
29