react-docgen
Advanced tools
Comparing version 3.0.0-beta2 to 3.0.0-beta3
@@ -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
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
297856
76
4088
- Removedbabylon@7.0.0-beta.4(transitive)
Updatedbabylon@v7.0.0-beta.8