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

babel-plugin-transform-react-qa-classes

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 1.1.0 to 1.3.1

lib/styled-components.js

5

lib/index.js

@@ -12,2 +12,3 @@ 'use strict';

visitor: {
TaggedTemplateExpression: _styledComponents2.default,
FunctionDeclaration: function FunctionDeclaration(path, state) {

@@ -62,2 +63,6 @@ if (!path.node.id || !path.node.id.name) return;

var _styledComponents = require('./styled-components');
var _styledComponents2 = _interopRequireDefault(_styledComponents);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -64,0 +69,0 @@

1

lib/options.js

@@ -34,3 +34,2 @@ 'use strict';

};
var validTranform = function validTranform(opt) {

@@ -37,0 +36,0 @@ return Object.keys(langTransforms).indexOf(opt) > -1;

{
"name": "babel-plugin-transform-react-qa-classes",
"version": "1.1.0",
"version": "1.3.1",
"license": "MIT",

@@ -11,3 +11,14 @@ "description": "Add component's name in `data-qa` attributes to React Components Edit",

"author": "davesnx <dsnxmoreno@gmail.com>",
"keywords": [
"babel",
"plugin",
"react",
"component",
"qa-classes"
],
"main": "lib/index.js",
"files": [
"lib",
"README.md"
],
"scripts": {

@@ -18,2 +29,3 @@ "clean": "rm -rf lib",

"test:watch": "yarn test -- --watch",
"lint": "eslint .",
"prepublishOnly": "yarn clean && yarn build",

@@ -30,2 +42,4 @@ "semantic-release": "semantic-release",

"devDependencies": {
"@semantic-release/github": "^5.5.5",
"@semantic-release/npm": "^5.3.4",
"babel-cli": "6.24.1",

@@ -36,2 +50,4 @@ "babel-helper-plugin-test-runner": "^6.24.1",

"babel-preset-stage-0": "^6.24.1",
"babel-types": "^6.26.0",
"eslint-config-davesnx-rules": "^1.0.0",
"husky": "^1.1.2",

@@ -42,9 +58,2 @@ "mocha": "^3.1.2",

},
"keywords": [
"babel",
"plugin",
"react",
"component",
"qa-classes"
],
"babel": {

@@ -56,11 +65,16 @@ "presets": [

},
"files": [
"lib",
"README.md"
],
"husky": {
"hooks": {
"pre-commit": "npm run lint",
"pre-push": "npm run test"
}
},
"release": {
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github",
"@semantic-release/npm"
]
}
}
## Babel plugin transform React qa classes
[![Build Status](https://travis-ci.org/davesnx/babel-plugin-transform-react-qa-classes.svg?branch=master)](https://travis-ci.org/davesnx/babel-plugin-transform-react-qa-classes) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/) [![npm](https://img.shields.io/npm/dm/localeval.svg)](https://www.npmjs.com/package/babel-plugin-transform-react-qa-classes)
[![Build Status](https://github.com/davesnx/babel-plugin-transform-react-qa-classes/workflows/publish/badge.svg)](https://travis-ci.org/davesnx/babel-plugin-transform-react-qa-classes) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/) [![npm](https://img.shields.io/npm/dm/localeval.svg)](https://www.npmjs.com/package/babel-plugin-transform-react-qa-classes)

@@ -4,0 +4,0 @@ This babel plugin adds the component name as a `data-qa` in each React Component.

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