internaldocs-fb-helpers
Advanced tools
Comparing version 1.6.4-rc.1 to 1.6.4-rc.2
@@ -21,3 +21,3 @@ /** | ||
export declare function validateFbContentArgs<X, Y>(args: FbContent<X, Y>): void; | ||
export declare function isInternal(): Boolean; | ||
export declare function isInternal(): string | undefined; | ||
export declare function FbInternalOnly<T>(props: { | ||
@@ -24,0 +24,0 @@ children: ReactElement<T>; |
@@ -84,9 +84,3 @@ "use strict"; | ||
// To use this in front-end code, we're relying on docusaurus-plugin-internaldocs-fb to add this value to the webpack env plugins. | ||
try { | ||
return Boolean(process.env.FB_INTERNAL); | ||
} | ||
catch (e) { | ||
console.log("process.env.FB_INTERNAL couldn't be read, maybe you forgot to add the required webpack EnvironmentPlugin config?", e); | ||
return false; | ||
} | ||
return process && process.env && process.env.FB_INTERNAL; | ||
} | ||
@@ -93,0 +87,0 @@ exports.isInternal = isInternal; |
{ | ||
"name": "internaldocs-fb-helpers", | ||
"version": "1.6.4-rc.1", | ||
"version": "1.6.4-rc.2", | ||
"description": "Helper library for including / excluding content from docusaurus websites", | ||
@@ -13,5 +13,2 @@ "main": "dist/index.js", | ||
"@types/jest": "^26.0.20", | ||
"@types/minimatch": "^3.0.4", | ||
"@types/minimist": "^1.2.1", | ||
"@types/parse-json": "^4.0.0", | ||
"@types/react": "^17.0.1", | ||
@@ -18,0 +15,0 @@ "jest": "^26.6.3", |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
5
15730
433
3