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

domv

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

domv - npm Package Compare versions

Comparing version 0.0.4 to 0.1.0

82

lib/domv.js

@@ -130,63 +130,2 @@ 'use strict';

/** Do we handle the given event type as a DOM event (true) or as a local event (false)?.
* @param {!string} type
* @returns {!boolean}
*/
/* istanbul ignore next : no point in testing all of these */
module.exports.isDOMEvent = function(type)
{
// Event types that are only valid on the document/window are excluded
// As are deprecated types such as DOMNodeInserted
// Some specialized events, such as the ones for media elements are also excluded
// use the more specific .addEventListener instead of .addListener for those
switch(type)
{
case 'animationend':
case 'animationiteration':
case 'animationstart':
case 'blur':
case 'change':
case 'click':
case 'contextmenu':
case 'dblclick':
case 'drag':
case 'dragstart':
case 'dragend':
case 'dragover':
case 'dragenter':
case 'dragleave':
case 'drop':
case 'focus':
case 'focusin':
case 'focusout':
case 'input':
case 'invalid':
case 'keydown':
case 'keypress':
case 'keyup':
case 'mousedown':
case 'mouseenter':
case 'mouseleave':
case 'mousemove':
case 'mouseout':
case 'mouseover':
case 'mouseup':
case 'reset':
case 'select':
case 'show':
case 'submit':
case 'timeupdate':
case 'touchcancel':
case 'touchend':
case 'touchenter':
case 'touchleave':
case 'touchmove':
case 'touchstart':
case 'transitionend':
return true;
}
return false;
};
/** Wraps a plain DOM Node so that you can use the same API as you would on a Component.

@@ -877,23 +816,2 @@ * If you pass a NodeList, an array (that is not live) with Component's will be returned.

/** <p>Many objects in Node emit events: a <code>net.Server</code> emits an event each time a peer connects to it, a
* <code>fs.readStream</code> emits an event when the file is opened. All objects which emit events are instances of
* <code>events.EventEmitter</code>. You can access this module by doing: <code>require("events");</code></p>
* <p>Typically, event names are represented by a camel-cased string, however, there aren't any strict restrictions
* on that, as any string will be accepted. </p>
* <p>Functions can then be attached to objects, to be executed when an event is emitted. These functions are called
* <em>listeners</em>. Inside a listener function, <code>this</code> refers to the <code>EventEmitter</code> that the
* listener was attached to.</p>
*
* <p>To access the EventEmitter class, require('events').EventEmitter.</p>
* <p>When an EventEmitter instance experiences an error, the typical action is to emit an 'error' event.
* Error events are treated as a special case in node. If there is no listener for it, then the default action
* is to print a stack trace and exit the program.</p>
* <p>All EventEmitters emit the event 'newListener' when new listeners are added and 'removeListener' when a listener
* is removed.</p>
*
* @see {@link http://nodejs.org/api/events.html#events_class_events_eventemitter}
* @class
* @external EventEmitter
*/
/**

@@ -900,0 +818,0 @@ * The Event interface is used to provide contextual information about an event to the handler processing the event.

3

package.json
{
"name": "domv",
"version": "0.0.4",
"version": "0.1.0",
"author": "Joris van der Wel <joris@jorisvanderwel.com>",

@@ -36,3 +36,2 @@ "description": "Create views as components using DOM. Run the same code on the browser and on the server.",

"dependencies": {
"eventemitter3": "^0.1.5",
"inherits": "^2.0.1",

@@ -39,0 +38,0 @@ "jsdom": "^1.1.0"

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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