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

razzle-dev-utils

Package Overview
Dependencies
Maintainers
1
Versions
171
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

razzle-dev-utils - npm Package Compare versions

Comparing version 0.8.1 to 0.8.4

4

package.json
{
"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;

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