internaldocs-fb-helpers
Advanced tools
Comparing version 1.0.0 to 1.1.0
11
index.js
@@ -34,5 +34,5 @@ /** | ||
if (isInternal()) { | ||
return 'internal' in args ? args.internal : []; | ||
return 'internal' in args ? callIfFunction(args.internal) : []; | ||
} else { | ||
return 'external' in args ? args.external : []; | ||
return 'external' in args ? callIfFunction(args.external) : []; | ||
} | ||
@@ -50,2 +50,9 @@ } | ||
function callIfFunction(arg) { | ||
if (typeof(arg) == 'function') { | ||
return arg(); | ||
} | ||
return arg; | ||
} | ||
function validateFbContentArgs(args) { | ||
@@ -52,0 +59,0 @@ if (typeof args !== 'object') { |
{ | ||
"name": "internaldocs-fb-helpers", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Helper library for including / excluding content from docusaurus websites", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2580
84