@vkontakte/graph-cache-js
Advanced tools
Comparing version 2.2.0 to 2.3.0
@@ -175,3 +175,6 @@ const Graph = require('graphlib').Graph; | ||
ExportNamedDeclaration(node, state) { | ||
state.push(addEdge(filePath, node.source.value)); | ||
// process only exports from other files | ||
if (node.source) { | ||
state.push(addEdge(filePath, node.source.value)); | ||
} | ||
}, | ||
@@ -178,0 +181,0 @@ ExpressionStatement(node, state) { |
{ | ||
"name": "@vkontakte/graph-cache-js", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -245,3 +245,10 @@ /* eslint-env mocha */ | ||
}); | ||
it('supports export without import', () => { | ||
return createGraphFromFile(createPath('export_negative'), s, {}) | ||
.then((g) => verifyGraph(g, [ | ||
'export_negative' | ||
], [])); | ||
}); | ||
}); | ||
}); |
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
50731
36
534
0