internaldocs-fb-helpers
Advanced tools
Comparing version 1.3.0-alpha.1 to 1.3.0-alpha.2
@@ -6,3 +6,2 @@ /** | ||
*/ | ||
declare const FB_CONTENT_ARG_KEYS: string[]; | ||
declare type FbContent = { | ||
@@ -12,13 +11,12 @@ internal?: any; | ||
}; | ||
declare let usePluginData: ((plugin: string) => any) | null; | ||
declare function fbContent(args: FbContent): any; | ||
declare function fbInternalOnly(internalContent: any): any; | ||
declare function callIfFunction(arg: any): any; | ||
declare function validateFbContentArgs(args: FbContent): void; | ||
declare function isInternal(): any; | ||
declare function FbInternalOnly(props: { | ||
export declare function fbContent(args: FbContent): any; | ||
export declare function fbInternalOnly(internalContent: any): any; | ||
export declare function validateFbContentArgs(args: FbContent): void; | ||
export declare function isInternal(): any; | ||
export declare function FbInternalOnly(props: { | ||
children: any; | ||
}): any; | ||
declare function OssOnly(props: { | ||
export declare function OssOnly(props: { | ||
children: any; | ||
}): any; | ||
export {}; |
@@ -7,2 +7,4 @@ "use strict"; | ||
*/ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.OssOnly = exports.FbInternalOnly = exports.isInternal = exports.validateFbContentArgs = exports.fbInternalOnly = exports.fbContent = void 0; | ||
const FB_CONTENT_ARG_KEYS = ['internal', 'external']; | ||
@@ -38,2 +40,3 @@ let usePluginData; | ||
} | ||
exports.fbContent = fbContent; | ||
/* | ||
@@ -47,2 +50,3 @@ * Shortcut for using fbContent when you don't need to specify any external content. | ||
} | ||
exports.fbInternalOnly = fbInternalOnly; | ||
function callIfFunction(arg) { | ||
@@ -67,2 +71,3 @@ if (typeof arg == 'function') { | ||
} | ||
exports.validateFbContentArgs = validateFbContentArgs; | ||
function isInternal() { | ||
@@ -72,2 +77,3 @@ return (process.env.FB_INTERNAL || | ||
} | ||
exports.isInternal = isInternal; | ||
/* | ||
@@ -91,2 +97,3 @@ * React component for wrapping content that should only be rendered on the internal (facebook empoyee-facing) website. | ||
} | ||
exports.FbInternalOnly = FbInternalOnly; | ||
/* | ||
@@ -101,8 +108,2 @@ * React component for wrapping content that should only be rendered on the external (public-facing) website. | ||
} | ||
module.exports = { | ||
fbContent: fbContent, | ||
fbInternalOnly: fbInternalOnly, | ||
isInternal: isInternal, | ||
FbInternalOnly: FbInternalOnly, | ||
OssOnly: OssOnly, | ||
}; | ||
exports.OssOnly = OssOnly; |
{ | ||
"name": "internaldocs-fb-helpers", | ||
"version": "1.3.0-alpha.1", | ||
"version": "1.3.0-alpha.2", | ||
"description": "Helper library for including / excluding content from docusaurus websites", | ||
"main": "dist/index.js", | ||
"main": "index", | ||
"types": "index", | ||
"files": ["/dist"], | ||
@@ -16,4 +17,5 @@ "license": "MIT", | ||
"build": "tsc", | ||
"prepare": "yarn test && yarn build", | ||
"test": "jest" | ||
} | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
4578
0
122