babel-messages
Advanced tools
Comparing version 6.23.0 to 7.0.0-alpha.1
@@ -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); |
{ | ||
"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" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
0
4502
62
1
- Removedbabel-runtime@^6.22.0
- Removedbabel-runtime@6.26.0(transitive)
- Removedcore-js@2.6.12(transitive)
- Removedregenerator-runtime@0.11.1(transitive)