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

joi-password-complexity

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

joi-password-complexity - npm Package Compare versions

Comparing version 5.0.1 to 5.0.2

13

lib/index.js

@@ -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

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