babel-messages
Advanced tools
Comparing version 7.0.0-alpha.15 to 7.0.0-alpha.16
@@ -31,10 +31,7 @@ "use strict"; | ||
lostTrackNodePath: "We lost track of this node's position, likely because the AST was directly manipulated", | ||
modulesIllegalExportName: "Illegal export $1", | ||
modulesDuplicateDeclarations: "Duplicate module declarations with the same source but in different scopes", | ||
undeclaredVariable: "Reference to undeclared variable $1", | ||
undeclaredVariableType: "Referencing a type alias outside of a type annotation", | ||
undeclaredVariableSuggestion: "Reference to undeclared variable $1 - did you mean $2?", | ||
traverseNeedsParent: "You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a $1 node without passing scope and parentPath.", | ||
@@ -44,3 +41,2 @@ traverseVerifyRootFunction: "You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?", | ||
traverseVerifyNodeType: "You gave us a visitor for the node type $1 but it's not a valid type", | ||
pluginNotObject: "Plugin $2 specified in $1 was expected to return an object when invoked but returned $3", | ||
@@ -59,5 +55,3 @@ pluginNotFunction: "Plugin $2 specified in $1 was expected to return a function but returned $3", | ||
if (!msg) throw new ReferenceError("Unknown message " + JSON.stringify(key)); | ||
args = parseArgs(args); | ||
return msg.replace(/\$(\d+)/g, function (str, i) { | ||
@@ -64,0 +58,0 @@ return args[i - 1]; |
{ | ||
"name": "babel-messages", | ||
"version": "7.0.0-alpha.15", | ||
"version": "7.0.0-alpha.16", | ||
"description": "Collection of debug messages used by Babel.", | ||
@@ -5,0 +5,0 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>", |
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
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
4474