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.3.0-alpha.1 to 1.3.0-alpha.2

16

dist/index.d.ts

@@ -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"
}
}
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