New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

read-conf

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

read-conf - npm Package Compare versions

Comparing version 0.4.3 to 0.4.4

12

lib/validate.js

@@ -40,2 +40,5 @@ var __is, _is, allTrue, allTypes, getChecker, getKey, getRequired, getTypeError, getTypeNames, isValid, iterate, normalize, realKey, toStr;

v = schema[k];
if (k === "__strict") {
continue;
}
if (v.type) {

@@ -150,3 +153,3 @@ v.types = types = v.type;

return new Promise((resolve, reject) => {
var addProblem, keys, problems, required, walk;
var addProblem, keys, problems, required, strict, walk;
if (!isNormalized) {

@@ -195,5 +198,9 @@ normalize(schema);

};
strict = schema.__strict;
if (strict == null) {
strict = true;
}
walk(obj, "", {
_types: [_is.object],
strict: true
strict: strict
});

@@ -278,2 +285,3 @@ iterate(required, (k) => {

normalize(schema);
delete schema.__strict;
keys = Object.keys(schema);

@@ -280,0 +288,0 @@ if (keys.length < 5) {

6

package.json
{
"name": "read-conf",
"description": "reads a config file",
"version": "0.4.3",
"version": "0.4.4",
"homepage": "https://github.com/paulpflug/",

@@ -37,4 +37,4 @@ "author": {

"coffee-loader": "^0.9.0",
"coffeescript": "^2.3.0",
"snapy": "^0.1.1"
"coffeescript": "^2.3.1",
"snapy": "^0.1.3"
},

@@ -41,0 +41,0 @@ "keywords": [

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