Socket
Socket
Sign inDemoInstall

babel-messages

Package Overview
Dependencies
Maintainers
4
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 7.0.0-alpha.15 to 7.0.0-alpha.16

6

lib/index.js

@@ -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];

2

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

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