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

pure-canvas

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pure-canvas - npm Package Compare versions

Comparing version 0.6.5 to 0.6.6

4

lib/Stage.d.ts

@@ -22,2 +22,6 @@ import { EventEmitter } from 'eventemitter3';

node: Node<T> | undefined;
on(event: 'mousedown', fn: (getNode: () => Node<T> | undefined, event: MouseEvent) => void, context?: any): this;
on(event: 'mousemove', fn: (getNode: () => Node<T> | undefined, event: MouseEvent) => void, context?: any): this;
on(event: 'mouseup', fn: (getNode: () => Node<T> | undefined, event: MouseEvent) => void, context?: any): this;
on(event: 'click', fn: (getNode: () => Node<T> | undefined, event: MouseEvent) => void, context?: any): this;
}

@@ -85,2 +85,6 @@ "use strict";

}
on(event, fn, context) {
return super.on(event, fn, context);
}
;
}

@@ -87,0 +91,0 @@ exports.default = Stage;

2

package.json
{
"name": "pure-canvas",
"version": "0.6.5",
"version": "0.6.6",
"description": "TODO",

@@ -5,0 +5,0 @@ "main": "lib/Stage.js",

@@ -1,2 +0,2 @@

import {EventEmitter} from 'eventemitter3';
import {EventEmitter, ListenerFn} from 'eventemitter3';
import Node from './Node';

@@ -108,2 +108,10 @@ import {getSafeContext} from './util';

}
on(event: 'mousedown', fn: (getNode: () => Node<T> | undefined, event: MouseEvent) => void, context?: any): this;
on(event: 'mousemove', fn: (getNode: () => Node<T> | undefined, event: MouseEvent) => void, context?: any): this;
on(event: 'mouseup', fn: (getNode: () => Node<T> | undefined, event: MouseEvent) => void, context?: any): this;
on(event: 'click', fn: (getNode: () => Node<T> | undefined, event: MouseEvent) => void, context?: any): this;
on(event: string | symbol, fn: ListenerFn, context?: any): this {
return super.on(event, fn, context);
};
};

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