node-sec-patterns
Advanced tools
Comparing version 2.0.6 to 2.0.7
@@ -47,3 +47,3 @@ 'use strict' | ||
*/ | ||
const configRoot = module.parent && module.parent && | ||
let configRoot = module.parent && module.parent && | ||
module.parent.filename | ||
@@ -68,3 +68,3 @@ ? dirname(module.parent.filename) | ||
*/ | ||
function authorize (options) { | ||
function authorize (options, root) { | ||
if (whitelist) { | ||
@@ -74,2 +74,6 @@ throw new Error('Cannot re-initialize mintable') | ||
if (root) { | ||
configRoot = root | ||
} | ||
const { | ||
@@ -76,0 +80,0 @@ mintable: { |
{ | ||
"name": "node-sec-patterns", | ||
"description": "Allow projects control over which dependencies can create objects that encapsulate security guarantees.", | ||
"version": "2.0.6", | ||
"version": "2.0.7", | ||
"keywords": [ | ||
@@ -58,2 +58,8 @@ "design-patterns", | ||
"rules": { | ||
"complexity": [ | ||
"error", | ||
{ | ||
"max": 11 | ||
} | ||
], | ||
"strict": "off", | ||
@@ -60,0 +66,0 @@ "no-void": "off" |
40977
477