New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-react-transform

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-react-transform - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

.travis.yml

22

lib/index.js

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

var _pathParse = require('path-parse');
var _pathParse2 = _interopRequireDefault(_pathParse);
exports['default'] = function (_ref) {

@@ -37,5 +41,5 @@ var Plugin = _ref.Plugin;

var depthKey = Symbol('depth');
var recordsKey = Symbol('records');
var wrapComponentIdKey = Symbol('wrapComponentId');
var depthKey = '__reactTransformDepth';
var recordsKey = '__reactTransformRecords';
var wrapComponentIdKey = '__reactTransformWrapComponentId';

@@ -178,10 +182,10 @@ function isRenderMethod(member) {

function isSameAsFileBeingProcessed(importPath) {
var _path$parse = _path2['default'].parse(resolvePath(importPath, filename));
var _parsePath = (0, _pathParse2['default'])(resolvePath(importPath, filename));
var dir = _path$parse.dir;
var base = _path$parse.base;
var ext = _path$parse.ext;
var name = _path$parse.name;
var dir = _parsePath.dir;
var base = _parsePath.base;
var ext = _parsePath.ext;
var name = _parsePath.name;
return dir === '.' && name === _path2['default'].parse(filename).name;
return dir === '.' && name === (0, _pathParse2['default'])(filename).name;
}

@@ -188,0 +192,0 @@

{
"name": "babel-plugin-react-transform",
"version": "1.0.2",
"version": "1.0.3",
"description": "Babel plugin to instrument React components with custom transforms",

@@ -34,3 +34,6 @@ "main": "lib/index.js",

"components"
]
],
"dependencies": {
"path-parse": "^1.0.5"
}
}

@@ -17,2 +17,4 @@ # babel-plugin-react-transform

[![react-transform channel on slack](https://img.shields.io/badge/slack-react--transform%40reactiflux-61DAFB.svg?style=flat-square)](http://www.reactiflux.com)
## Demo

@@ -194,2 +196,6 @@

## Discussion
You can discuss React Transform and related projects in **#react-transform** channel on [Reactiflux Slack](http://reactiflux.com).
## Patrons

@@ -196,0 +202,0 @@

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