New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@vkontakte/graph-cache-js

Package Overview
Dependencies
Maintainers
8
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vkontakte/graph-cache-js - npm Package Compare versions

Comparing version 2.2.0 to 2.3.0

tests/fixtures/export_negative.js

5

lib/parser.js

@@ -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) {

2

package.json
{
"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'
], []));
});
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc