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

babel-messages

Package Overview
Dependencies
Maintainers
6
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-messages - npm Package Compare versions

Comparing version 6.23.0 to 7.0.0-alpha.1

11

lib/index.js

@@ -5,7 +5,2 @@ "use strict";

exports.MESSAGES = undefined;
var _stringify = require("babel-runtime/core-js/json/stringify");
var _stringify2 = _interopRequireDefault(_stringify);
exports.get = get;

@@ -20,4 +15,2 @@ exports.parseArgs = parseArgs;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var MESSAGES = exports.MESSAGES = {

@@ -65,3 +58,3 @@ tailCallReassignmentDeopt: "Function reference has been reassigned, so it will probably be dereferenced, therefore we can't optimise this with confidence",

var msg = MESSAGES[key];
if (!msg) throw new ReferenceError("Unknown message " + (0, _stringify2.default)(key));
if (!msg) throw new ReferenceError("Unknown message " + JSON.stringify(key));

@@ -81,3 +74,3 @@ args = parseArgs(args);

try {
return (0, _stringify2.default)(val) || val + "";
return JSON.stringify(val) || val + "";
} catch (e) {

@@ -84,0 +77,0 @@ return util.inspect(val);

7

package.json
{
"name": "babel-messages",
"version": "6.23.0",
"version": "7.0.0-alpha.1",
"description": "Collection of debug messages used by Babel.",

@@ -9,6 +9,3 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>",

"repository": "https://github.com/babel/babel/tree/master/packages/babel-messages",
"main": "lib/index.js",
"dependencies": {
"babel-runtime": "^6.22.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