Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

internaldocs-fb-helpers

Package Overview
Dependencies
Maintainers
3
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

internaldocs-fb-helpers - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0-alpha.1

33

index.js

@@ -50,3 +50,3 @@ /**

function callIfFunction(arg) {
if (typeof(arg) == 'function') {
if (typeof arg == 'function') {
return arg();

@@ -92,2 +92,31 @@ }

/*
* React component for wrapping content that should only be rendered on the internal (facebook empoyee-facing) website.
*
* Note: Anything inlined here will still be visible in the public source code, so to include confidential content,
* put it inside an .mdx file in a ./fb folder (this folder won't be synced out to GitHub), and then import it as a JSX component like so:
*
* import MySecretInfo from './fb/MySecretInfo.mdx'
*
* <FbInternalOnly>
* <MySecretInfo/>
* </FbInternalOnly>
*/
function FbInternalOnly(props) {
if (isInternal()) {
return props.children;
}
return null;
}
/*
* React component for wrapping content that should only be rendered on the external (public-facing) website.
*/
function OssOnly(props) {
if (!isInternal()) {
return props.children;
}
return null;
}
module.exports = {

@@ -97,2 +126,4 @@ fbContent: fbContent,

isInternal: isInternal,
FbInternalOnly: FbInternalOnly,
OssOnly: OssOnly,
};

2

package.json
{
"name": "internaldocs-fb-helpers",
"version": "1.1.0",
"version": "1.2.0-alpha.1",
"description": "Helper library for including / excluding content from docusaurus websites",

@@ -5,0 +5,0 @@ "main": "index.js",

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