razzle-dev-utils
Advanced tools
Comparing version 0.8.1 to 0.8.4
{ | ||
"name": "razzle-dev-utils", | ||
"version": "0.8.1", | ||
"version": "0.8.4", | ||
"description": "Utilities and helpers for Razzle", | ||
@@ -16,3 +16,3 @@ "author": "Jared Palmer <jared@palmer.net>", | ||
"chalk": "1.1.3", | ||
"react-dev-utils": "^4.0.0", | ||
"react-dev-utils": "4.1.0", | ||
"sockjs-client": "1.1.4", | ||
@@ -19,0 +19,0 @@ "strip-ansi": "4.0.0" |
@@ -1,10 +0,1 @@ | ||
/** | ||
* Copyright (c) 2015-present, Facebook, Inc. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
*/ | ||
'use strict'; | ||
@@ -28,2 +19,9 @@ | ||
// We need to keep track of if there has been a runtime error. | ||
// Essentially, we cannot guarantee application state was not corrupted by the | ||
// runtime error. To prevent confusing behavior, we forcibly reload the entire | ||
// application. This is handled below when we are notified of a compile (code | ||
// change). | ||
// See https://github.com/facebookincubator/create-react-app/issues/3096 | ||
var hadRuntimeError = false; | ||
ErrorOverlay.startReportingRuntimeErrors({ | ||
@@ -37,7 +35,5 @@ launchEditorEndpoint: url.format({ | ||
onError: function() { | ||
// TODO: why do we need this? | ||
if (module.hot && typeof module.hot.decline === 'function') { | ||
module.hot.decline(); | ||
} | ||
hadRuntimeError = true; | ||
}, | ||
filename: process.env.REACT_DEV_BUNDLE_PATH || '/static/js/bundle.js', | ||
}); | ||
@@ -236,3 +232,3 @@ | ||
function handleApplyUpdates(err, updatedModules) { | ||
if (err || !updatedModules) { | ||
if (err || !updatedModules || hadRuntimeError) { | ||
window.location.reload(); | ||
@@ -239,0 +235,0 @@ return; |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
15057
407
4
+ Addedaddress@1.0.2(transitive)
+ Addedanser@1.4.1(transitive)
+ Addedansi-escapes@2.0.0(transitive)
+ Addedbabel-code-frame@6.22.0(transitive)
+ Addedbabel-runtime@6.26.0(transitive)
+ Addedcore-js@2.6.12(transitive)
+ Addedfilesize@3.5.10(transitive)
+ Addedhtml-entities@1.2.1(transitive)
+ Addedinquirer@3.2.1(transitive)
+ Addedloose-envify@1.4.0(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedprop-types@15.8.1(transitive)
+ Addedreact@16.14.0(transitive)
+ Addedreact-dev-utils@4.1.0(transitive)
+ Addedreact-dom@16.14.0(transitive)
+ Addedreact-error-overlay@2.0.2(transitive)
+ Addedreact-is@16.13.1(transitive)
+ Addedregenerator-runtime@0.11.1(transitive)
+ Addedscheduler@0.19.1(transitive)
+ Addedsettle-promise@1.0.0(transitive)
+ Addedsource-map@0.5.6(transitive)
- Removedaddress@1.0.3(transitive)
- Removedansi-escapes@3.2.0(transitive)
- Removedbabel-code-frame@6.26.0(transitive)
- Removedfilesize@3.5.11(transitive)
- Removedinquirer@3.3.0(transitive)
- Removedreact-dev-utils@4.2.3(transitive)
- Removedreact-error-overlay@3.0.0(transitive)
Updatedreact-dev-utils@4.1.0