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

babel-plugin-transform-react-remove-prop-types

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-react-remove-prop-types - npm Package Compare versions

Comparing version 0.4.11 to 0.4.12

7

lib/index.js

@@ -78,6 +78,6 @@ "use strict";

unsafeWrapTemplate: template("\n if (process.env.NODE_ENV !== \"production\") {\n NODE;\n }\n ", {
placeholderWhitelist: new Set(['NODE'])
placeholderPattern: /^NODE$/
}),
wrapTemplate: template("\n LEFT = process.env.NODE_ENV !== \"production\" ? RIGHT : {}\n ", {
placeholderWhitelist: new Set(['LEFT', 'RIGHT'])
placeholderPattern: /^(LEFT|RIGHT)$/
}),

@@ -100,5 +100,4 @@ mode: state.opts.mode || 'remove',

var plugin = require(pluginName); // Required for `babel-plugin-transform-flow-strip-types`
var plugin = require(pluginName);
if (typeof plugin !== 'function') {

@@ -105,0 +104,0 @@ plugin = plugin.default;

{
"name": "babel-plugin-transform-react-remove-prop-types",
"version": "0.4.11",
"version": "0.4.12",
"description": "Remove unnecessary React propTypes from the production build",

@@ -34,12 +34,15 @@ "main": "lib/index.js",

"devDependencies": {
"babel-cli": "7.0.0-beta.2",
"babel-core": "7.0.0-beta.2",
"@babel/cli": "^7.0.0-beta.35",
"@babel/core": "^7.0.0-beta.35",
"@babel/generator": "^7.0.0-beta.35",
"@babel/plugin-external-helpers": "^7.0.0-beta.35",
"@babel/plugin-proposal-class-properties": "^7.0.0-beta.35",
"@babel/plugin-transform-flow-strip-types": "^7.0.0-beta.35",
"@babel/preset-env": "^7.0.0-beta.35",
"@babel/preset-flow": "^7.0.0-beta.35",
"@babel/preset-react": "^7.0.0-beta.35",
"@babel/preset-stage-1": "^7.0.0-beta.35",
"@babel/register": "^7.0.0-beta.35",
"babel-eslint": "^8.0.2",
"babel-generator": "7.0.0-beta.2",
"babel-plugin-flow-react-proptypes": "^6.1.0",
"babel-plugin-transform-flow-strip-types": "7.0.0-beta.2",
"babel-preset-env": "^2.0.0-beta.2",
"babel-preset-flow": "7.0.0-beta.2",
"babel-preset-react": "7.0.0-beta.2",
"babel-preset-stage-1": "7.0.0-beta.2",
"chai": "^4.1.2",

@@ -46,0 +49,0 @@ "eslint": "^4.11.0",

@@ -71,3 +71,3 @@ // @flow weak

`,
{ placeholderWhitelist: new Set(['NODE']) }
{ placeholderPattern: /^NODE$/ }
),

@@ -78,3 +78,3 @@ wrapTemplate: template(

`,
{ placeholderWhitelist: new Set(['LEFT', 'RIGHT']) }
{ placeholderPattern: /^(LEFT|RIGHT)$/ }
),

@@ -101,4 +101,2 @@ mode: state.opts.mode || 'remove',

let plugin = require(pluginName)
// Required for `babel-plugin-transform-flow-strip-types`
if (typeof plugin !== 'function') {

@@ -105,0 +103,0 @@ plugin = plugin.default

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