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

react-docgen

Package Overview
Dependencies
Maintainers
1
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-docgen - npm Package Compare versions

Comparing version 3.0.0-beta2 to 3.0.0-beta3

dist/utils/isReactChildrenElementCall.js

2

dist/utils/isReactModuleName.js

@@ -19,3 +19,3 @@ 'use strict';

var reactModules = ['react', 'react/addons', 'react-native', 'proptypes'];
var reactModules = ['react', 'react/addons', 'react-native', 'proptypes', 'prop-types'];

@@ -22,0 +22,0 @@ /**

@@ -28,2 +28,6 @@ 'use strict';

var _isReactChildrenElementCall = require('./isReactChildrenElementCall');
var _isReactChildrenElementCall2 = _interopRequireDefault(_isReactChildrenElementCall);
var _recast = require('recast');

@@ -39,13 +43,16 @@

var types = _recast2.default.types.namedTypes; /*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*
*/
/*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*
*/
var types = _recast2.default.types.namedTypes;
var reNonLexicalBlocks = /^If|^Else|^Switch/;

@@ -56,3 +63,3 @@

function isJSXElementOrReactCreateElement(path) {
return path.node.type === 'JSXElement' || path.node.type === 'CallExpression' && (0, _isReactCreateElementCall2.default)(path) || path.node.type === 'CallExpression' && (0, _isReactCloneElementCall2.default)(path);
return path.node.type === 'JSXElement' || path.node.type === 'CallExpression' && (0, _isReactCreateElementCall2.default)(path) || path.node.type === 'CallExpression' && (0, _isReactCloneElementCall2.default)(path) || path.node.type === 'CallExpression' && (0, _isReactChildrenElementCall2.default)(path);
}

@@ -59,0 +66,0 @@

{
"name": "react-docgen",
"version": "3.0.0-beta2",
"version": "3.0.0-beta3",
"description": "A CLI and toolkit to extract information from React components for documentation generation.",

@@ -33,3 +33,3 @@ "repository": {

"babel-runtime": "^6.9.2",
"babylon": "7.0.0-beta.4",
"babylon": "v7.0.0-beta.8",
"commander": "^2.9.0",

@@ -36,0 +36,0 @@ "doctrine": "^2.0.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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