@babel/traverse 8.0.0-rc.1 → 8.0.0-rc.3
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.d.ts +27 -10
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +9 -9
- package/tsconfig.overrides.json +0 -6
package/lib/index.js
CHANGED
|
@@ -417,7 +417,7 @@ function verify$1(visitor) {
|
|
|
417
417
|
}
|
|
418
418
|
if (shouldIgnoreKey(nodeType)) continue;
|
|
419
419
|
if (!TYPES.includes(nodeType)) {
|
|
420
|
-
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.
|
|
420
|
+
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.3"}`);
|
|
421
421
|
}
|
|
422
422
|
const visitors = visitor[nodeType];
|
|
423
423
|
if (typeof visitors === "object") {
|