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

babel-preset-react-hot

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-preset-react-hot - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

9

ErrorBox.js

@@ -0,8 +1,7 @@

const deepmerge = require('deepmerge');
const Redbox = require('redbox-react').default;
const defaultStyle = require('redbox-react/lib/style');
const style = {
...defaultStyle,
const style = deepmerge({}, defaultStyle, {
redbox: {
...defaultStyle.redbox,
background: 'white',

@@ -12,10 +11,8 @@ color: 'hsl(240, 5%, 15%)',

file: {
...defaultStyle.file,
color: 'hsla(240, 5%, 15%, 0.5)'
},
linkToFile: {
...defaultStyle.linkToFile,
color: 'hsla(240, 5%, 15%, 0.5)'
}
};
});

@@ -22,0 +19,0 @@ const ErrorBox = props => React.createElement(Redbox, {style});

{
"name": "babel-preset-react-hot",
"version": "0.0.3",
"version": "0.0.4",
"description": "Babel preset for React hot module replacement and error catching",

@@ -11,2 +11,3 @@ "main": "index.js",

"babel-plugin-react-transform": "^2.0.2",
"deepmerge": "1.5.0",
"react-transform-catch-errors": "^1.0.2",

@@ -13,0 +14,0 @@ "react-transform-hmr": "^1.0.4",

Sorry, the diff of this file is not supported yet

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