Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@zambezi/d3-utils

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zambezi/d3-utils - npm Package Compare versions

Comparing version 3.3.1 to 3.4.0-unsubscribe-on-destroy.1

3

dist/d3-utils.js

@@ -134,2 +134,5 @@ (function (global, factory) {

function resize(s) {
s.on('destroy.resize', function () {
return w.on(type, null);
});
w.on(type, underscore.debounce(onWindowResize, wait));

@@ -136,0 +139,0 @@

@@ -6,2 +6,5 @@ ## resize

The component works by attaching a `resize` event on `document.window`.
If a `destroy` event is dispatched on the selection this component is called on, the component will deactivate by unsubscribing from the `resize` event.
This can be used in conjunction with [redraw](./redraw.md)

@@ -8,0 +11,0 @@

2

package.json
{
"name": "@zambezi/d3-utils",
"version": "3.3.1",
"version": "3.4.0-unsubscribe-on-destroy.1",
"description": "Common utility functions to use with d3",

@@ -5,0 +5,0 @@ "keywords": [

@@ -12,2 +12,3 @@ import { rest } from 'underscore'

function resize(s) {
s.on('destroy.resize', () => w.on(type, null))
w.on(type, debounce(onWindowResize, wait))

@@ -14,0 +15,0 @@

Sorry, the diff of this file is not supported yet

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