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.10 to 0.4.11

8

lib/index.js

@@ -77,4 +77,8 @@ "use strict";

visitedKey: "transform-react-remove-prop-types".concat(Date.now()),
unsafeWrapTemplate: template("\n if (process.env.NODE_ENV !== \"production\") {\n NODE;\n }\n "),
wrapTemplate: template("\n LEFT = process.env.NODE_ENV !== \"production\" ? RIGHT : {}\n "),
unsafeWrapTemplate: template("\n if (process.env.NODE_ENV !== \"production\") {\n NODE;\n }\n ", {
placeholderWhitelist: new Set(['NODE'])
}),
wrapTemplate: template("\n LEFT = process.env.NODE_ENV !== \"production\" ? RIGHT : {}\n ", {
placeholderWhitelist: new Set(['LEFT', 'RIGHT'])
}),
mode: state.opts.mode || 'remove',

@@ -81,0 +85,0 @@ ignoreFilenames: ignoreFilenames,

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

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

"devDependencies": {
"babel-cli": "^7.0.0-beta.2",
"babel-core": "^7.0.0-beta.2",
"babel-eslint": "^8.0.1",
"babel-generator": "^7.0.0-beta.2",
"babel-cli": "7.0.0-beta.2",
"babel-core": "7.0.0-beta.2",
"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-es2015": "^7.0.0-beta.2",
"babel-preset-flow": "^7.0.0-beta.2",
"babel-preset-react": "^7.0.0-beta.2",
"babel-preset-stage-0": "^7.0.0-beta.2",
"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",
"eslint": "^4.8.0",
"eslint-config-airbnb": "^16.0.0",
"eslint": "^4.11.0",
"eslint-config-airbnb": "^16.1.0",
"eslint-plugin-babel": "^4.1.2",
"eslint-plugin-flowtype": "^2.39.1",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-jsx-a11y": "^6.0.2",

@@ -55,8 +55,8 @@ "eslint-plugin-mocha": "^4.11.0",

"eslint-plugin-react": "^7.4.0",
"flow-bin": "^0.56.0",
"flow-bin": "^0.59.0",
"mocha": "^4.0.1",
"path-exists": "^3.0.0",
"pkgfiles": "^2.3.2",
"prettier": "^1.7.4"
"prettier": "^1.8.2"
}
}

@@ -65,10 +65,16 @@ // @flow weak

visitedKey: `transform-react-remove-prop-types${Date.now()}`,
unsafeWrapTemplate: template(`
if (process.env.NODE_ENV !== "production") {
NODE;
}
`),
wrapTemplate: template(`
LEFT = process.env.NODE_ENV !== "production" ? RIGHT : {}
`),
unsafeWrapTemplate: template(
`
if (process.env.NODE_ENV !== "production") {
NODE;
}
`,
{ placeholderWhitelist: new Set(['NODE']) }
),
wrapTemplate: template(
`
LEFT = process.env.NODE_ENV !== "production" ? RIGHT : {}
`,
{ placeholderWhitelist: new Set(['LEFT', 'RIGHT']) }
),
mode: state.opts.mode || 'remove',

@@ -75,0 +81,0 @@ ignoreFilenames,

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