@babel/traverse 7.0.0-rc.2 → 7.1.0

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.

Potentially problematic release.


This version of @babel/traverse might be problematic. Click here for more details.

package/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2014-2018 Sebastian McKenzie and other contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -110,7 +110,7 @@ class Renamer {
110
110
  const parentDeclar = path.find(path => path.isDeclaration() || path.isFunctionExpression() || path.isClassExpression());
111
111
 
112
112
  if (parentDeclar) {
113
- const bindingIds = parentDeclar.getBindingIdentifiers();
113
+ const bindingIds = parentDeclar.getOuterBindingIdentifiers();
114
114
 
115
115
  if (bindingIds[oldName] === binding.identifier) {
116
116
  this.maybeConvertFromExportDeclaration(parentDeclar);
package/package.json CHANGED
@@ -1,24 +1,27 @@
1
1
  {
2
2
  "name": "@babel/traverse",
3
- "version": "7.0.0-rc.2",
3
+ "version": "7.1.0",
4
4
  "description": "The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes",
5
5
  "author": "Sebastian McKenzie <sebmck@gmail.com>",
6
6
  "homepage": "https://babeljs.io/",
7
7
  "license": "MIT",
8
+ "publishConfig": {
9
+ "access": "public"
10
+ },
8
11
  "repository": "https://github.com/babel/babel/tree/master/packages/babel-traverse",
9
12
  "main": "lib/index.js",
10
13
  "dependencies": {
11
- "@babel/code-frame": "7.0.0-rc.2",
12
- "@babel/generator": "7.0.0-rc.2",
13
- "@babel/helper-function-name": "7.0.0-rc.2",
14
- "@babel/helper-split-export-declaration": "7.0.0-rc.2",
15
- "@babel/parser": "7.0.0-rc.2",
16
- "@babel/types": "7.0.0-rc.2",
14
+ "@babel/code-frame": "^7.0.0",
15
+ "@babel/generator": "^7.0.0",
16
+ "@babel/helper-function-name": "^7.1.0",
17
+ "@babel/helper-split-export-declaration": "^7.0.0",
18
+ "@babel/parser": "^7.1.0",
19
+ "@babel/types": "^7.0.0",
17
20
  "debug": "^3.1.0",
18
21
  "globals": "^11.1.0",
19
22
  "lodash": "^4.17.10"
20
23
  },
21
24
  "devDependencies": {
22
- "@babel/helper-plugin-test-runner": "7.0.0-rc.2"
25
+ "@babel/helper-plugin-test-runner": "^7.0.0"
23
26
  }
24
27
  }