Socket
Socket
Sign inDemoInstall

joi-strict

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

joi-strict - npm Package Compare versions

Comparing version 2.0.1 to 3.0.0

9

lib/index.js

@@ -1,4 +0,4 @@

"use strict";
import Joi_ from 'joi';
const Joi = require('joi').defaults(schema => schema.options({
const Joi = Joi_.defaults((schema) => schema.options({
presence: 'required',

@@ -8,3 +8,3 @@ convert: true

module.exports = {
export default {
test: (object, schema) => {

@@ -14,3 +14,2 @@ if (!Joi.isSchema(schema)) {

}
return schema.validate(object).error === undefined;

@@ -22,2 +21,2 @@ },

string: (...args) => Joi.string(...args).strict()
};
};
{
"name": "joi-strict",
"version": "2.0.1",
"type": "module",
"version": "3.0.0",
"description": "Thin wrapper around joi that defaults to stricter validation.",

@@ -8,9 +9,8 @@ "main": "lib/index.js",

"clean": "rm -rf lib",
"build": "npx babel src --out-dir lib --copy-files --include-dotfiles --config-file ./.babelrc",
"build": "cp -rf ./src ./lib",
"build-clean": "yarn run clean && yarn run build",
"test-simple": "nyc mocha \"./test/**/*.spec.js\"",
"test-simple": "c8 mocha --experimental-loader=./test/hot.js \"./test/**/*.spec.js\"",
"test": "yarn run clean && yarn run gardener && yarn run test-simple",
"coveralls": "node ./node_modules/coveralls/bin/coveralls.js < ./coverage/lcov.info",
"semantic-release": "yarn run build-clean && npx semantic-release",
"gardener": "node gardener",
"gardener": "node gardener.js",
"docker": "docker run --net host -u`id -u`:`id -g` -v $(pwd):/user/project -v ~/.aws:/user/.aws -v ~/.npmrc:/user/.npmrc -w /user/project -it --entrypoint /bin/bash",

@@ -42,20 +42,16 @@ "t": "yarn test",

"devDependencies": {
"@babel/cli": "7.14.8",
"@babel/core": "7.15.0",
"@babel/register": "7.15.3",
"@blackflux/eslint-plugin-rules": "2.0.3",
"@blackflux/robo-config-plugin": "5.3.0",
"babel-eslint": "10.1.0",
"babel-preset-latest-node": "5.5.1",
"chai": "4.3.4",
"coveralls": "3.1.1",
"eslint": "7.32.0",
"eslint-config-airbnb-base": "14.2.1",
"eslint-plugin-import": "2.24.2",
"@babel/core": "7.18.10",
"@babel/eslint-parser": "7.18.9",
"@babel/register": "7.18.9",
"@blackflux/eslint-plugin-rules": "3.0.0",
"@blackflux/robo-config-plugin": "9.1.9",
"c8": "7.11.0",
"chai": "4.3.7",
"eslint": "8.46.0",
"eslint-config-airbnb-base": "15.0.0",
"eslint-plugin-import": "2.28.0",
"eslint-plugin-json": "3.1.0",
"eslint-plugin-markdown": "2.2.0",
"eslint-plugin-mocha": "9.0.0",
"js-gardener": "3.0.3",
"nyc": "15.1.0",
"semantic-release": "17.4.7"
"eslint-plugin-markdown": "3.0.1",
"eslint-plugin-mocha": "10.1.0",
"js-gardener": "5.0.1"
},

@@ -69,3 +65,3 @@ "licenses": [

"engines": {
"node": ">= 12"
"node": ">= 16"
},

@@ -75,35 +71,10 @@ "files": [

],
"nyc": {
"exclude": [
"gardener.js",
"node_modules/*",
"coverage/*",
"lib/*"
],
"all": true,
"babel": true,
"branches": 100,
"cache": true,
"check-coverage": true,
"extension": [],
"functions": 100,
"include": [
"**/*.js"
],
"lines": 100,
"per-file": false,
"report-dir": "./coverage",
"reporter": [
"lcov",
"text-summary"
],
"require": [
"@babel/register"
],
"statements": 100,
"tempDir": "./coverage/.nyc_output"
"dependencies": {
"joi": "17.9.2"
},
"dependencies": {
"joi": "17.4.2"
"resolutions": {
"strip-ansi": "^6.0.0",
"string-width": "^4.0.0",
"wrap-ansi": "^v7.0.0"
}
}

Sorry, the diff of this file is not supported yet

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