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

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 1.1.11 to 1.2.0

6

lib/index.js

@@ -19,3 +19,5 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

}
}, Joi);
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJKb2kiLCJyZXF1aXJlIiwiZGVmYXVsdHMiLCJzY2hlbWEiLCJvcHRpb25zIiwicHJlc2VuY2UiLCJtb2R1bGUiLCJleHBvcnRzIiwidGVzdCIsIm9iamVjdCIsImlzU2NoZW1hIiwiRXJyb3IiLCJKU09OIiwic3RyaW5naWZ5IiwidmFsaWRhdGUiLCJlcnJvciIsInVuZGVmaW5lZCJdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEsTUFBTUEsR0FBRyxHQUFHQyxPQUFPLENBQUMsV0FBRCxDQUFQLENBQXFCQyxRQUFyQixDQUErQkMsTUFBRCxJQUFZQSxNQUFNLENBQUNDLE9BQVAsQ0FBZTtBQUNuRUMsRUFBQUEsUUFBUSxFQUFFO0FBRHlELENBQWYsQ0FBMUMsQ0FBWjs7QUFJQUMsTUFBTSxDQUFDQyxPQUFQO0FBQ0VDLEVBQUFBLElBQUksRUFBRSxDQUFDQyxNQUFELEVBQVNOLE1BQVQsS0FBb0I7QUFDeEIsUUFBSSxDQUFDSCxHQUFHLENBQUNVLFFBQUosQ0FBYVAsTUFBYixDQUFMLEVBQTJCO0FBQ3pCLFlBQU0sSUFBSVEsS0FBSixDQUFXLHFCQUFvQixPQUFPUixNQUFQLEtBQWtCLFFBQWxCLEdBQTZCQSxNQUE3QixHQUFzQ1MsSUFBSSxDQUFDQyxTQUFMLENBQWVWLE1BQWYsQ0FBdUIsRUFBNUYsQ0FBTjtBQUNEOztBQUNELFdBQU9BLE1BQU0sQ0FBQ1csUUFBUCxDQUFnQkwsTUFBaEIsRUFBd0JNLEtBQXhCLEtBQWtDQyxTQUF6QztBQUNEO0FBTkgsR0FPS2hCLEdBUEwiLCJzb3VyY2VzQ29udGVudCI6WyJjb25zdCBKb2kgPSByZXF1aXJlKCdAaGFwaS9qb2knKS5kZWZhdWx0cygoc2NoZW1hKSA9PiBzY2hlbWEub3B0aW9ucyh7XG4gIHByZXNlbmNlOiAncmVxdWlyZWQnXG59KSk7XG5cbm1vZHVsZS5leHBvcnRzID0ge1xuICB0ZXN0OiAob2JqZWN0LCBzY2hlbWEpID0+IHtcbiAgICBpZiAoIUpvaS5pc1NjaGVtYShzY2hlbWEpKSB7XG4gICAgICB0aHJvdyBuZXcgRXJyb3IoYE5vdCBhIEpvaSBzY2hlbWE6ICR7dHlwZW9mIHNjaGVtYSA9PT0gJ3N0cmluZycgPyBzY2hlbWEgOiBKU09OLnN0cmluZ2lmeShzY2hlbWEpfWApO1xuICAgIH1cbiAgICByZXR1cm4gc2NoZW1hLnZhbGlkYXRlKG9iamVjdCkuZXJyb3IgPT09IHVuZGVmaW5lZDtcbiAgfSxcbiAgLi4uSm9pXG59O1xuIl19
}, Joi, {
boolean: (...args) => Joi.boolean(...args).strict()
});
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJKb2kiLCJyZXF1aXJlIiwiZGVmYXVsdHMiLCJzY2hlbWEiLCJvcHRpb25zIiwicHJlc2VuY2UiLCJtb2R1bGUiLCJleHBv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ZW1hLm9wdGlvbnMoe1xuICBwcmVzZW5jZTogJ3JlcXVpcmVkJ1xufSkpO1xuXG5tb2R1bGUuZXhwb3J0cyA9IHtcbiAgdGVzdDogKG9iamVjdCwgc2NoZW1hKSA9PiB7XG4gICAgaWYgKCFKb2kuaXNTY2hlbWEoc2NoZW1hKSkge1xuICAgICAgdGhyb3cgbmV3IEVycm9yKGBOb3QgYSBKb2kgc2NoZW1hOiAke3R5cGVvZiBzY2hlbWEgPT09ICdzdHJpbmcnID8gc2NoZW1hIDogSlNPTi5zdHJpbmdpZnkoc2NoZW1hKX1gKTtcbiAgICB9XG4gICAgcmV0dXJuIHNjaGVtYS52YWxpZGF0ZShvYmplY3QpLmVycm9yID09PSB1bmRlZmluZWQ7XG4gIH0sXG4gIC4uLkpvaSxcbiAgYm9vbGVhbjogKC4uLmFyZ3MpID0+IEpvaS5ib29sZWFuKC4uLmFyZ3MpLnN0cmljdCgpXG59O1xuIl19
{
"name": "joi-strict",
"version": "1.1.11",
"version": "1.2.0",
"description": "Thin wrapper around joi that defaults to stricter validation.",

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

"devDependencies": {
"@babel/cli": "7.7.7",
"@babel/core": "7.7.7",
"@babel/plugin-proposal-object-rest-spread": "7.7.7",
"@babel/register": "7.7.7",
"@blackflux/eslint-plugin-rules": "1.3.21",
"@blackflux/robo-config-plugin": "3.0.4",
"@babel/cli": "7.8.4",
"@babel/core": "7.8.4",
"@babel/plugin-proposal-object-rest-spread": "7.8.3",
"@babel/register": "7.8.3",
"@blackflux/eslint-plugin-rules": "1.3.24",
"@blackflux/robo-config-plugin": "3.0.8",
"babel-eslint": "10.0.3",

@@ -52,9 +52,9 @@ "chai": "4.2.0",

"eslint-config-airbnb-base": "14.0.0",
"eslint-plugin-import": "2.19.1",
"eslint-plugin-json": "2.0.1",
"eslint-plugin-markdown": "1.0.1",
"eslint-plugin-mocha": "6.2.2",
"js-gardener": "2.0.123",
"eslint-plugin-import": "2.20.1",
"eslint-plugin-json": "2.1.0",
"eslint-plugin-markdown": "1.0.2",
"eslint-plugin-mocha": "6.3.0",
"js-gardener": "2.0.133",
"nyc": "15.0.0",
"semantic-release": "15.14.0"
"semantic-release": "17.0.4"
},

@@ -61,0 +61,0 @@ "licenses": [

@@ -24,5 +24,6 @@ # joi-strict

- Every entry is required unless explicitly marked as [optional()](https://github.com/hapijs/joi/blob/v15.0.3/API.md#anyoptional).
- Unknown object keys are not allowed unless explicitly market [unknown(true)](https://github.com/hapijs/joi/blob/v15.0.3/API.md#objectunknownallow).
- Every entry is required unless explicitly marked as [optional()](https://hapi.dev/family/joi/api/#anyoptional).
- Unknown object keys are not allowed unless explicitly market [unknown(true)](https://hapi.dev/family/joi/api/#objectunknownallow).
- Additional function `Joi.test(object, schema)` to check if a schema matches an object
- [boolean()](https://hapi.dev/family/joi/api/#boolean) automatically runs in [strict()](https://hapi.dev/family/joi/api/#anystrictisstrict) mode.

@@ -29,0 +30,0 @@ ## Usage

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