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

react-error-overlay

Package Overview
Dependencies
Maintainers
3
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-error-overlay - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

lib/components/ErrorOverlay.js

4

lib/containers/CompileErrorContainer.js

@@ -19,3 +19,3 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

import React, { PureComponent } from 'react';
import Overlay from '../components/Overlay';
import ErrorOverlay from '../components/ErrorOverlay';
import Footer from '../components/Footer';

@@ -41,3 +41,3 @@ import Header from '../components/Header';

return React.createElement(
Overlay,
ErrorOverlay,
null,

@@ -44,0 +44,0 @@ React.createElement(Header, { headerText: 'Failed to compile' }),

@@ -19,3 +19,3 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

import React, { PureComponent } from 'react';
import Overlay from '../components/Overlay';
import ErrorOverlay from '../components/ErrorOverlay';
import CloseButton from '../components/CloseButton';

@@ -74,3 +74,3 @@ import NavigationBar from '../components/NavigationBar';

return React.createElement(
Overlay,
ErrorOverlay,
{ shortcutHandler: this.shortcutHandler },

@@ -77,0 +77,0 @@ React.createElement(CloseButton, { close: close }),

@@ -50,3 +50,3 @@ /**

}
});
}, options.filename);
}

@@ -53,0 +53,0 @@

@@ -20,2 +20,4 @@ /**

export function listenToRuntimeErrors(crash) {
var filename = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '/static/js/bundle.js';
function crashWithFrames(error) {

@@ -53,3 +55,3 @@ var unhandledRejection = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;

stack: data.stack,
__unmap_source: '/static/js/bundle.js'
__unmap_source: filename
}, false);

@@ -56,0 +58,0 @@ });

{
"name": "react-error-overlay",
"version": "2.0.0",
"version": "2.0.1",
"description": "An overlay for displaying stack frames.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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