@babel/plugin-transform-typescript
Advanced tools
Comparing version 7.23.5 to 7.23.6
@@ -115,3 +115,5 @@ "use strict"; | ||
function translateEnumValues(path, t) { | ||
const seen = new Map(); | ||
var _ENUMS$get; | ||
const bindingIdentifier = path.scope.getBindingIdentifier(path.node.id.name); | ||
const seen = (_ENUMS$get = ENUMS.get(bindingIdentifier)) != null ? _ENUMS$get : new Map(); | ||
let constValue = -1; | ||
@@ -239,9 +241,6 @@ let lastName; | ||
if (seen.has(path.node)) return; | ||
const bindingInitPath = path.resolve(); | ||
if (bindingInitPath) { | ||
seen.add(path.node); | ||
value = computeConstantValue(bindingInitPath, undefined, seen); | ||
prevMembers == null || prevMembers.set(name, value); | ||
return value; | ||
} | ||
seen.add(path.node); | ||
value = computeConstantValue(path.resolve(), prevMembers, seen); | ||
prevMembers == null || prevMembers.set(name, value); | ||
return value; | ||
} | ||
@@ -248,0 +247,0 @@ } |
{ | ||
"name": "@babel/plugin-transform-typescript", | ||
"version": "7.23.5", | ||
"version": "7.23.6", | ||
"description": "Transform TypeScript into ES.next", | ||
@@ -21,3 +21,3 @@ "repository": { | ||
"@babel/helper-annotate-as-pure": "^7.22.5", | ||
"@babel/helper-create-class-features-plugin": "^7.23.5", | ||
"@babel/helper-create-class-features-plugin": "^7.23.6", | ||
"@babel/helper-plugin-utils": "^7.22.5", | ||
@@ -30,6 +30,6 @@ "@babel/plugin-syntax-typescript": "^7.23.3" | ||
"devDependencies": { | ||
"@babel/core": "^7.23.5", | ||
"@babel/core": "^7.23.6", | ||
"@babel/helper-plugin-test-runner": "^7.22.5", | ||
"@babel/traverse": "^7.23.5", | ||
"@babel/types": "^7.23.5" | ||
"@babel/traverse": "^7.23.6", | ||
"@babel/types": "^7.23.6" | ||
}, | ||
@@ -36,0 +36,0 @@ "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-typescript", |
Sorry, the diff of this file is not supported yet
132370
1022