react-error-overlay
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
117981
50
2702