@babel/traverse 8.0.0-rc.4 → 8.0.0-rc.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -423,7 +423,7 @@ function verify$1(visitor) {
423
423
  }
424
424
  if (shouldIgnoreKey(nodeType)) continue;
425
425
  if (!TYPES.includes(nodeType)) {
426
- throw new Error(`You gave us a visitor for the node type ${nodeType} but it's not a valid type in @babel/traverse ${"8.0.0-rc.4"}`);
426
+ throw new Error(`You gave us a visitor for the node type ${nodeType} but it's not a valid type in @babel/traverse ${"8.0.0-rc.5"}`);
427
427
  }
428
428
  const visitors = visitor[nodeType];
429
429
  if (typeof visitors === "object") {
@@ -2683,7 +2683,7 @@ function replaceWithSourceString(replacement) {
2683
2683
  err.message += " - make sure this is an expression.\n" + codeFrameColumns(replacement, {
2684
2684
  start: {
2685
2685
  line: loc.line,
2686
- column: loc.column + 1
2686
+ column: loc.column
2687
2687
  }
2688
2688
  });
2689
2689
  err.code = "BABEL_REPLACE_SOURCE_ERROR";