mip-sandbox
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -86,3 +86,5 @@ /** | ||
if (is(node, /^Import\w*Specifier$/)) { | ||
node.local.isVar = true | ||
if (node.local) { | ||
node.local.isVar = true | ||
} | ||
if (node.imported && is(node.imported, 'Identifier')) { | ||
@@ -147,3 +149,6 @@ node.imported.isIgnore = true | ||
} else if (is(node, 'ClassDeclaration')) { | ||
node.id.isVar = true | ||
// 可能会存在匿名类的情况 export default class {} 此时 id 为 null | ||
if (node.id) { | ||
node.id.isVar = true | ||
} | ||
} else if (is(node, 'CatchClause')) { | ||
@@ -150,0 +155,0 @@ if (is(node.param, 'Identifier')) { |
{ | ||
"name": "mip-sandbox", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "sandbox tools for MIP project", | ||
@@ -5,0 +5,0 @@ "main": "lib/sandbox.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
232317
5557