You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-dev-utils

Package Overview
Dependencies
Maintainers
3
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-dev-utils - npm Package Compare versions

Comparing version

to
3.1.1

2

package.json
{
"name": "react-dev-utils",
"version": "3.1.0",
"version": "3.1.1",
"description": "Webpack utilities used by Create React App",

@@ -5,0 +5,0 @@ "repository": "facebookincubator/create-react-app",

@@ -12,8 +12,7 @@ /**

const get = require('lodash/get');
const chalk = require('chalk');
module.exports = function printBuildError(err) {
const message = get(err, 'message');
const stack = get(err, 'stack');
const message = err != null && err.message;
const stack = err != null && err.stack;

@@ -27,9 +26,5 @@ // Add more helpful message for UglifyJs error

try {
const matched = /Unexpected token:(.+)\[(.+):(.+),(.+)\]\[.+\]/.exec(
stack
);
const matched = /(.+)\[(.+):(.+),(.+)\]\[.+\]/.exec(stack);
if (!matched) {
throw new Error(
"The regex pattern is not matched. Maybe UglifyJs changed it's message?"
);
throw new Error('Using errors for control flow is bad.');
}

@@ -41,7 +36,9 @@ const problemPath = matched[2];

'Failed to minify the code from this file: \n\n',
chalk.yellow(`${problemPath} line ${line}:${column}`),
chalk.yellow(
`\t${problemPath}:${line}${column !== '0' ? ':' + column : ''}`
),
'\n'
);
} catch (ignored) {
console.log('Failed to minify the code.', err);
console.log('Failed to minify the bundle.', err);
}

@@ -48,0 +45,0 @@ console.log('Read more here: http://bit.ly/2tRViJ9');

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.