@meteorjs/reify
Advanced tools
Comparing version 0.25.1 to 0.25.2
@@ -9,2 +9,3 @@ "use strict"; | ||
const Visitor = require("./visitor.js"); | ||
const { isTopLevelAwait } = require('./is-top-level-await'); | ||
@@ -392,3 +393,4 @@ const codeOfCR = "\r".charCodeAt(0); | ||
if (!this.hasTopLevelAwait) { | ||
let parent = path.getParentNode(1); | ||
const parent = path.getParentNode(1); | ||
if ( | ||
@@ -399,2 +401,4 @@ parent.type === 'ExpressionStatement' && | ||
this.hasTopLevelAwait = true; | ||
} else { | ||
this.hasTopLevelAwait = isTopLevelAwait(path.stack); | ||
} | ||
@@ -401,0 +405,0 @@ } |
@@ -8,4 +8,4 @@ "use strict"; | ||
module.exports = new SemVer( | ||
module.exports = SemVer.parse( | ||
process.env.REIFY_VERSION || fs.readJSON(pkgPath).version | ||
); |
{ | ||
"name": "@meteorjs/reify", | ||
"version": "0.25.1", | ||
"version": "0.25.2", | ||
"main": "node/index.js", | ||
@@ -47,3 +47,6 @@ "browser": "lib/empty.js", | ||
"recast": "0.20.5" | ||
}, | ||
"volta": { | ||
"node": "14.21.3" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
190284
49
3491
1