joi-password-complexity
Advanced tools
Comparing version 5.0.2 to 5.1.0
@@ -0,0 +0,0 @@ import Joi from 'joi'; |
@@ -1,7 +0,9 @@ | ||
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var joi_1 = __importDefault(require("joi")); | ||
'use strict'; | ||
var Joi = require('joi'); | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var Joi__default = /*#__PURE__*/_interopDefaultLegacy(Joi); | ||
// pluralize | ||
@@ -26,3 +28,3 @@ var p = function (word, num) { | ||
}; | ||
exports.default = (function (_a, label) { | ||
var index = (function (_a, label) { | ||
var _b = _a === void 0 ? defaultOptions : _a, _c = _b.min, min = _c === void 0 ? 0 : _c, _d = _b.max, max = _d === void 0 ? 0 : _d, _e = _b.lowerCase, lowerCase = _e === void 0 ? 0 : _e, _f = _b.upperCase, upperCase = _f === void 0 ? 0 : _f, _g = _b.numeric, numeric = _g === void 0 ? 0 : _g, _h = _b.symbol, symbol = _h === void 0 ? 0 : _h, _j = _b.requirementCount, requirementCount = _j === void 0 ? 0 : _j; | ||
@@ -32,3 +34,3 @@ if (label === void 0) { label = '{{#label}}'; } | ||
type: 'passwordComplexity', | ||
base: joi_1.default.string(), | ||
base: Joi__default['default'].string(), | ||
messages: { | ||
@@ -90,3 +92,6 @@ 'passwordComplexity.tooShort': label + " should be at least " + min + " " + p('character', min) + " long", | ||
}; | ||
return joi_1.default.extend(joiPasswordComplexity).passwordComplexity(); | ||
return Joi__default['default'].extend(joiPasswordComplexity).passwordComplexity(); | ||
}); | ||
module.exports = index; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "joi-password-complexity", | ||
"version": "5.0.2", | ||
"version": "5.1.0", | ||
"description": "Joi validation for password complexity requirements.", | ||
"main": "lib/index.js", | ||
"module": "lib/index.es.js", | ||
"types": "lib/index.d.ts", | ||
"jsnext:main": "lib/index.es.js", | ||
"scripts": { | ||
@@ -11,3 +13,3 @@ "test": "jest", | ||
"lint-fix": "yarn lint --fix", | ||
"build": "tsc -p tsconfig.json", | ||
"build": "rimraf ./lib && rollup -c", | ||
"prepublishOnly": "yarn build" | ||
@@ -23,24 +25,30 @@ }, | ||
"devDependencies": { | ||
"@babel/core": "^7.12.3", | ||
"@babel/preset-env": "^7.12.1", | ||
"@babel/preset-typescript": "^7.12.1", | ||
"@types/jest": "^26.0.15", | ||
"@types/joi": "^14.3.4", | ||
"@typescript-eslint/eslint-plugin": "^4.6.1", | ||
"@typescript-eslint/parser": "^4.6.1", | ||
"@babel/core": "^7.12.16", | ||
"@babel/preset-env": "^7.12.16", | ||
"@babel/preset-typescript": "^7.12.16", | ||
"@rollup/plugin-commonjs": "^17.1.0", | ||
"@rollup/plugin-node-resolve": "^11.1.1", | ||
"@types/jest": "^26.0.20", | ||
"@types/joi": "^17.2.2", | ||
"@typescript-eslint/eslint-plugin": "^4.15.0", | ||
"@typescript-eslint/parser": "^4.15.0", | ||
"babel-jest": "^26.6.3", | ||
"eslint": "^7.12.1", | ||
"eslint-config-airbnb-base": "^14.2.0", | ||
"eslint-config-airbnb-typescript": "^12.0.0", | ||
"eslint": "^7.19.0", | ||
"eslint-config-airbnb-base": "^14.2.1", | ||
"eslint-config-airbnb-typescript": "^12.3.1", | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-jest": "^24.1.0", | ||
"eslint-plugin-jest": "^24.1.3", | ||
"eslint-plugin-jsx-a11y": "^6.4.1", | ||
"eslint-plugin-react": "^7.21.5", | ||
"eslint-plugin-react": "^7.22.0", | ||
"eslint-plugin-react-hooks": "^4.2.0", | ||
"jest": "^26.6.3", | ||
"joi": "^17.3.0", | ||
"typescript": "^4.0.5" | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.38.5", | ||
"rollup-plugin-peer-deps-external": "^2.2.4", | ||
"rollup-plugin-typescript2": "^0.29.0", | ||
"typescript": "^4.1.5" | ||
}, | ||
"files": [ | ||
"lib" | ||
"lib/" | ||
], | ||
@@ -47,0 +55,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
15668
8
192
0
25