joi-password-complexity
Advanced tools
Comparing version 5.0.1 to 5.0.2
@@ -1,2 +0,7 @@ | ||
import Joi from 'joi'; | ||
"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")); | ||
// pluralize | ||
@@ -21,3 +26,3 @@ var p = function (word, num) { | ||
}; | ||
export default (function (_a, label) { | ||
exports.default = (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; | ||
@@ -27,3 +32,3 @@ if (label === void 0) { label = '{{#label}}'; } | ||
type: 'passwordComplexity', | ||
base: Joi.string(), | ||
base: joi_1.default.string(), | ||
messages: { | ||
@@ -85,3 +90,3 @@ 'passwordComplexity.tooShort': label + " should be at least " + min + " " + p('character', min) + " long", | ||
}; | ||
return Joi.extend(joiPasswordComplexity).passwordComplexity(); | ||
return joi_1.default.extend(joiPasswordComplexity).passwordComplexity(); | ||
}); |
{ | ||
"name": "joi-password-complexity", | ||
"version": "5.0.1", | ||
"version": "5.0.2", | ||
"description": "Joi validation for password complexity requirements.", | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"scripts": { | ||
@@ -10,3 +11,4 @@ "test": "jest", | ||
"lint-fix": "yarn lint --fix", | ||
"build": "tsc -p tsconfig.json" | ||
"build": "tsc -p tsconfig.json", | ||
"prepublishOnly": "yarn build" | ||
}, | ||
@@ -17,2 +19,5 @@ "repository": { | ||
}, | ||
"peerDependencies": { | ||
"joi": ">= 17" | ||
}, | ||
"devDependencies": { | ||
@@ -39,5 +44,5 @@ "@babel/core": "^7.12.3", | ||
}, | ||
"engines": { | ||
"node": ">= 14.0.0" | ||
}, | ||
"files": [ | ||
"lib" | ||
], | ||
"keywords": [ | ||
@@ -44,0 +49,0 @@ "Joi", |
@@ -8,3 +8,2 @@ ## Joi Password Complexity | ||
- Joi v17 or higher | ||
- Nodejs 14 or higher | ||
@@ -11,0 +10,0 @@ ## Installation |
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
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
8634
1
4
105
79
1