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

@neo4j-nvl/react

Package Overview
Dependencies
Maintainers
0
Versions
165
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neo4j-nvl/react - npm Package Compare versions

Comparing version 0.3.6-ade05d13 to 0.3.6-d168b648

6

lib/__tests__/BasicNvlWrapper.test.js

@@ -29,8 +29,12 @@ import { jsx as _jsx } from "react/jsx-runtime";

unmount();
expect(destroy).toHaveBeenCalled();
expect(NVL).toHaveBeenCalledTimes(1);
expect(destroy).toHaveBeenCalledTimes(1);
});
test('successfully re-initialises NVL when using React StrictMode', () => {
const destroy = jest.fn();
jest.spyOn(NVL.prototype, 'destroy').mockImplementation(destroy);
render(_jsx(React.StrictMode, { children: _jsx("div", { children: _jsx(BasicNvlWrapper, { nodes: [], rels: [] }) }) }));
expect(NVL).toHaveBeenCalledTimes(2);
expect(destroy).toHaveBeenCalledTimes(1);
});
});

2

lib/basic-wrapper/BasicNvlWrapper.js

@@ -66,3 +66,3 @@ import { jsx as _jsx } from "react/jsx-runtime";

// eslint-disable-next-line react-hooks/exhaustive-deps
}, [containerRef.current]);
}, []);
useEffect(() => {

@@ -69,0 +69,0 @@ if (nvlRef.current === null) {

{
"name": "@neo4j-nvl/react",
"version": "0.3.6-ade05d13",
"version": "0.3.6-d168b648",
"main": "lib/index.js",

@@ -37,4 +37,4 @@ "homepage": "https://neo4j.com/docs/nvl/current/",

"dependencies": {
"@neo4j-nvl/base": "0.3.6-ade05d13",
"@neo4j-nvl/interaction-handlers": "0.3.6-ade05d13",
"@neo4j-nvl/base": "0.3.6-d168b648",
"@neo4j-nvl/interaction-handlers": "0.3.6-d168b648",
"lodash": "4.17.21",

@@ -41,0 +41,0 @@ "react": "^18.2.0",

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