metro-babel7-plugin-react-transform
Advanced tools
Comparing version 0.43.6 to 0.44.0
{ | ||
"version": "0.43.6", | ||
"version": "0.44.0", | ||
"name": "metro-babel7-plugin-react-transform", | ||
@@ -4,0 +4,0 @@ "main": "src/index.js", |
@@ -296,8 +296,8 @@ /** | ||
/** | ||
* const Foo = _wrapComponent('Foo')(class Foo extends React.Component {}); | ||
* ... | ||
* const Bar = _wrapComponent('Bar')(React.createClass({ | ||
* displayName: 'Bar' | ||
* })); | ||
*/ | ||
* const Foo = _wrapComponent('Foo')(class Foo extends React.Component {}); | ||
* ... | ||
* const Bar = _wrapComponent('Bar')(React.createClass({ | ||
* displayName: 'Bar' | ||
* })); | ||
*/ | ||
collectAndWrapComponents(wrapperFunctionId) { | ||
@@ -318,8 +318,8 @@ const components = []; | ||
/** | ||
* const _components = { | ||
* Foo: { | ||
* displayName: "Foo" | ||
* } | ||
* }; | ||
*/ | ||
* const _components = { | ||
* Foo: { | ||
* displayName: "Foo" | ||
* } | ||
* }; | ||
*/ | ||
initComponentsDeclaration(componentsDeclarationId, components) { | ||
@@ -368,11 +368,11 @@ const props = components.map(component => { | ||
/** | ||
* import _transformLib from "transform-lib"; | ||
* ... | ||
* const _transformLib2 = _transformLib({ | ||
* filename: "filename", | ||
* components: _components, | ||
* locals: [], | ||
* imports: [] | ||
* }); | ||
*/ | ||
* import _transformLib from "transform-lib"; | ||
* ... | ||
* const _transformLib2 = _transformLib({ | ||
* filename: "filename", | ||
* components: _components, | ||
* locals: [], | ||
* imports: [] | ||
* }); | ||
*/ | ||
initTransformers(path, componentsDeclarationId) { | ||
@@ -417,8 +417,8 @@ return this.options.transforms.map(transform => { | ||
/** | ||
* function _wrapComponent(id) { | ||
* return function (Component) { | ||
* return _transformLib2(Component, id); | ||
* }; | ||
* } | ||
*/ | ||
* function _wrapComponent(id) { | ||
* return function (Component) { | ||
* return _transformLib2(Component, id); | ||
* }; | ||
* } | ||
*/ | ||
initWrapperFunction(wrapperFunctionId) { | ||
@@ -425,0 +425,0 @@ const idParam = t.identifier('id'); |
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
12527