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

melody-idom

Package Overview
Dependencies
Maintainers
3
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

melody-idom - npm Package Compare versions

Comparing version 1.2.0-commit.549dcb61 to 1.2.0-commit.60c4cb49

8

built/assertions.d.ts

@@ -48,6 +48,6 @@ /**

/**
* Makes sure that tags are correctly nested.
* @param {string} nodeName
* @param {string} tag
*/
* Makes sure that tags are correctly nested.
* @param {string} nodeName
* @param {string} tag
*/
declare var assertCloseMatchesOpenTag: (nodeName: any, tag: any) => void;

@@ -54,0 +54,0 @@ /**

@@ -18,12 +18,12 @@ /**

/**
* Keeps track whether or not we are in an attributes declaration (after
* elementOpenStart, but before elementOpenEnd).
* @type {boolean}
*/
* Keeps track whether or not we are in an attributes declaration (after
* elementOpenStart, but before elementOpenEnd).
* @type {boolean}
*/
var inAttributes = false;
/**
* Keeps track whether or not we are in an element that should not have its
* children cleared.
* @type {boolean}
*/
* Keeps track whether or not we are in an element that should not have its
* children cleared.
* @type {boolean}
*/
var inSkip = false;

@@ -99,6 +99,6 @@ /**

/**
* Makes sure that tags are correctly nested.
* @param {string} nodeName
* @param {string} tag
*/
* Makes sure that tags are correctly nested.
* @param {string} nodeName
* @param {string} tag
*/
var assertCloseMatchesOpenTag = function (nodeName, tag) {

@@ -105,0 +105,0 @@ if (nodeName !== tag) {

@@ -26,64 +26,64 @@ /**

/**
* The attributes and their values.
* @const {!Object<string, *>}
*/
* The attributes and their values.
* @const {!Object<string, *>}
*/
this.attrs = createMap();
/**
* An array of attribute name/value pairs, used for quickly diffing the
* incomming attributes to see if the DOM node's attributes need to be
* updated.
* @const {Array<*>}
*/
* An array of attribute name/value pairs, used for quickly diffing the
* incomming attributes to see if the DOM node's attributes need to be
* updated.
* @const {Array<*>}
*/
this.attrsArr = [];
/**
* The incoming attributes for this Node, before they are updated.
* @const {!Object<string, *>}
*/
* The incoming attributes for this Node, before they are updated.
* @const {!Object<string, *>}
*/
this.newAttrs = createMap();
/**
* The key used to identify this node, used to preserve DOM nodes when they
* move within their parent.
* @const
*/
* The key used to identify this node, used to preserve DOM nodes when they
* move within their parent.
* @const
*/
this.key = key;
/**
* Keeps track of children within this node by their key.
* {?Object<string, !Element>}
*/
* Keeps track of children within this node by their key.
* {?Object<string, !Element>}
*/
this.keyMap = createMap();
/**
* Whether or not the keyMap is currently valid.
* {boolean}
*/
* Whether or not the keyMap is currently valid.
* {boolean}
*/
this.keyMapValid = true;
/**
* Whether or not the statics for the given node have already been applied.
*
* @type {boolean}
*/
* Whether or not the statics for the given node have already been applied.
*
* @type {boolean}
*/
this.staticsApplied = false;
/**
* Whether or not the associated node is or contains a focused Element.
* @type {boolean}
*/
* Whether or not the associated node is or contains a focused Element.
* @type {boolean}
*/
this.focused = false;
/**
* The node name for this node.
* @const {string}
*/
* The node name for this node.
* @const {string}
*/
this.nodeName = nodeName;
/**
* @type {?string}
*/
* @type {?string}
*/
this.text = null;
/**
* The component instance associated with this element.
* @type {Object}
*/
* The component instance associated with this element.
* @type {Object}
*/
this.componentInstance = null;
/**
* The length of the children in this element.
* This value is only calculated for raw elements.
* @type {number}
*/
* The length of the children in this element.
* This value is only calculated for raw elements.
* @type {number}
*/
this.childLength = 0;

@@ -90,0 +90,0 @@ }

@@ -23,4 +23,3 @@ /**

/* istanbul ignore next */
document.createElement('div')
.addEventListener('test', function () { }, {
document.createElement('div').addEventListener('test', function () { }, {
get passive() {

@@ -27,0 +26,0 @@ supportsPassiveListeners = true;

@@ -99,4 +99,4 @@ /**

/**
* Actually perform the attribute update.
*/
* Actually perform the attribute update.
*/
for (i = 0; i < attrsArr.length; i += 2) {

@@ -103,0 +103,0 @@ newAttrs[attrsArr[i]] = attrsArr[i + 1];

@@ -124,64 +124,64 @@ import _debounce from 'lodash/debounce';

/**
* The attributes and their values.
* @const {!Object<string, *>}
*/
* The attributes and their values.
* @const {!Object<string, *>}
*/
this.attrs = createMap();
/**
* An array of attribute name/value pairs, used for quickly diffing the
* incomming attributes to see if the DOM node's attributes need to be
* updated.
* @const {Array<*>}
*/
* An array of attribute name/value pairs, used for quickly diffing the
* incomming attributes to see if the DOM node's attributes need to be
* updated.
* @const {Array<*>}
*/
this.attrsArr = [];
/**
* The incoming attributes for this Node, before they are updated.
* @const {!Object<string, *>}
*/
* The incoming attributes for this Node, before they are updated.
* @const {!Object<string, *>}
*/
this.newAttrs = createMap();
/**
* The key used to identify this node, used to preserve DOM nodes when they
* move within their parent.
* @const
*/
* The key used to identify this node, used to preserve DOM nodes when they
* move within their parent.
* @const
*/
this.key = key;
/**
* Keeps track of children within this node by their key.
* {?Object<string, !Element>}
*/
* Keeps track of children within this node by their key.
* {?Object<string, !Element>}
*/
this.keyMap = createMap();
/**
* Whether or not the keyMap is currently valid.
* {boolean}
*/
* Whether or not the keyMap is currently valid.
* {boolean}
*/
this.keyMapValid = true;
/**
* Whether or not the statics for the given node have already been applied.
*
* @type {boolean}
*/
* Whether or not the statics for the given node have already been applied.
*
* @type {boolean}
*/
this.staticsApplied = false;
/**
* Whether or not the associated node is or contains a focused Element.
* @type {boolean}
*/
* Whether or not the associated node is or contains a focused Element.
* @type {boolean}
*/
this.focused = false;
/**
* The node name for this node.
* @const {string}
*/
* The node name for this node.
* @const {string}
*/
this.nodeName = nodeName;
/**
* @type {?string}
*/
* @type {?string}
*/
this.text = null;
/**
* The component instance associated with this element.
* @type {Object}
*/
* The component instance associated with this element.
* @type {Object}
*/
this.componentInstance = null;
/**
* The length of the children in this element.
* This value is only calculated for raw elements.
* @type {number}
*/
* The length of the children in this element.
* This value is only calculated for raw elements.
* @type {number}
*/
this.childLength = 0;

@@ -349,12 +349,12 @@ }

/**
* Keeps track whether or not we are in an attributes declaration (after
* elementOpenStart, but before elementOpenEnd).
* @type {boolean}
*/
* Keeps track whether or not we are in an attributes declaration (after
* elementOpenStart, but before elementOpenEnd).
* @type {boolean}
*/
var inAttributes = false;
/**
* Keeps track whether or not we are in an element that should not have its
* children cleared.
* @type {boolean}
*/
* Keeps track whether or not we are in an element that should not have its
* children cleared.
* @type {boolean}
*/
var inSkip = false;

@@ -423,6 +423,6 @@ /**

/**
* Makes sure that tags are correctly nested.
* @param {string} nodeName
* @param {string} tag
*/
* Makes sure that tags are correctly nested.
* @param {string} nodeName
* @param {string} tag
*/
var assertCloseMatchesOpenTag = function assertCloseMatchesOpenTag(nodeName, tag) {

@@ -1618,4 +1618,4 @@ if (nodeName !== tag) {

/**
* Actually perform the attribute update.
*/
* Actually perform the attribute update.
*/
for (i = 0; i < attrsArr.length; i += 2) {

@@ -1622,0 +1622,0 @@ newAttrs[attrsArr[i]] = attrsArr[i + 1];

@@ -130,64 +130,64 @@ 'use strict';

/**
* The attributes and their values.
* @const {!Object<string, *>}
*/
* The attributes and their values.
* @const {!Object<string, *>}
*/
this.attrs = createMap();
/**
* An array of attribute name/value pairs, used for quickly diffing the
* incomming attributes to see if the DOM node's attributes need to be
* updated.
* @const {Array<*>}
*/
* An array of attribute name/value pairs, used for quickly diffing the
* incomming attributes to see if the DOM node's attributes need to be
* updated.
* @const {Array<*>}
*/
this.attrsArr = [];
/**
* The incoming attributes for this Node, before they are updated.
* @const {!Object<string, *>}
*/
* The incoming attributes for this Node, before they are updated.
* @const {!Object<string, *>}
*/
this.newAttrs = createMap();
/**
* The key used to identify this node, used to preserve DOM nodes when they
* move within their parent.
* @const
*/
* The key used to identify this node, used to preserve DOM nodes when they
* move within their parent.
* @const
*/
this.key = key;
/**
* Keeps track of children within this node by their key.
* {?Object<string, !Element>}
*/
* Keeps track of children within this node by their key.
* {?Object<string, !Element>}
*/
this.keyMap = createMap();
/**
* Whether or not the keyMap is currently valid.
* {boolean}
*/
* Whether or not the keyMap is currently valid.
* {boolean}
*/
this.keyMapValid = true;
/**
* Whether or not the statics for the given node have already been applied.
*
* @type {boolean}
*/
* Whether or not the statics for the given node have already been applied.
*
* @type {boolean}
*/
this.staticsApplied = false;
/**
* Whether or not the associated node is or contains a focused Element.
* @type {boolean}
*/
* Whether or not the associated node is or contains a focused Element.
* @type {boolean}
*/
this.focused = false;
/**
* The node name for this node.
* @const {string}
*/
* The node name for this node.
* @const {string}
*/
this.nodeName = nodeName;
/**
* @type {?string}
*/
* @type {?string}
*/
this.text = null;
/**
* The component instance associated with this element.
* @type {Object}
*/
* The component instance associated with this element.
* @type {Object}
*/
this.componentInstance = null;
/**
* The length of the children in this element.
* This value is only calculated for raw elements.
* @type {number}
*/
* The length of the children in this element.
* This value is only calculated for raw elements.
* @type {number}
*/
this.childLength = 0;

@@ -355,12 +355,12 @@ }

/**
* Keeps track whether or not we are in an attributes declaration (after
* elementOpenStart, but before elementOpenEnd).
* @type {boolean}
*/
* Keeps track whether or not we are in an attributes declaration (after
* elementOpenStart, but before elementOpenEnd).
* @type {boolean}
*/
var inAttributes = false;
/**
* Keeps track whether or not we are in an element that should not have its
* children cleared.
* @type {boolean}
*/
* Keeps track whether or not we are in an element that should not have its
* children cleared.
* @type {boolean}
*/
var inSkip = false;

@@ -429,6 +429,6 @@ /**

/**
* Makes sure that tags are correctly nested.
* @param {string} nodeName
* @param {string} tag
*/
* Makes sure that tags are correctly nested.
* @param {string} nodeName
* @param {string} tag
*/
var assertCloseMatchesOpenTag = function assertCloseMatchesOpenTag(nodeName, tag) {

@@ -1624,4 +1624,4 @@ if (nodeName !== tag) {

/**
* Actually perform the attribute update.
*/
* Actually perform the attribute update.
*/
for (i = 0; i < attrsArr.length; i += 2) {

@@ -1628,0 +1628,0 @@ newAttrs[attrsArr[i]] = attrsArr[i + 1];

{
"name": "melody-idom",
"version": "1.2.0-commit.549dcb61",
"version": "1.2.0-commit.60c4cb49",
"description": "",

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

@@ -19,13 +19,13 @@ /**

/**
* Keeps track whether or not we are in an attributes declaration (after
* elementOpenStart, but before elementOpenEnd).
* @type {boolean}
*/
* Keeps track whether or not we are in an attributes declaration (after
* elementOpenStart, but before elementOpenEnd).
* @type {boolean}
*/
var inAttributes = false;
/**
* Keeps track whether or not we are in an element that should not have its
* children cleared.
* @type {boolean}
*/
* Keeps track whether or not we are in an element that should not have its
* children cleared.
* @type {boolean}
*/
var inSkip = false;

@@ -120,6 +120,6 @@

/**
* Makes sure that tags are correctly nested.
* @param {string} nodeName
* @param {string} tag
*/
* Makes sure that tags are correctly nested.
* @param {string} nodeName
* @param {string} tag
*/
var assertCloseMatchesOpenTag = function(nodeName, tag) {

@@ -126,0 +126,0 @@ if (nodeName !== tag) {

@@ -28,75 +28,75 @@ /**

/**
* The attributes and their values.
* @const {!Object<string, *>}
*/
* The attributes and their values.
* @const {!Object<string, *>}
*/
this.attrs = createMap();
/**
* An array of attribute name/value pairs, used for quickly diffing the
* incomming attributes to see if the DOM node's attributes need to be
* updated.
* @const {Array<*>}
*/
* An array of attribute name/value pairs, used for quickly diffing the
* incomming attributes to see if the DOM node's attributes need to be
* updated.
* @const {Array<*>}
*/
this.attrsArr = [];
/**
* The incoming attributes for this Node, before they are updated.
* @const {!Object<string, *>}
*/
* The incoming attributes for this Node, before they are updated.
* @const {!Object<string, *>}
*/
this.newAttrs = createMap();
/**
* The key used to identify this node, used to preserve DOM nodes when they
* move within their parent.
* @const
*/
* The key used to identify this node, used to preserve DOM nodes when they
* move within their parent.
* @const
*/
this.key = key;
/**
* Keeps track of children within this node by their key.
* {?Object<string, !Element>}
*/
* Keeps track of children within this node by their key.
* {?Object<string, !Element>}
*/
this.keyMap = createMap();
/**
* Whether or not the keyMap is currently valid.
* {boolean}
*/
* Whether or not the keyMap is currently valid.
* {boolean}
*/
this.keyMapValid = true;
/**
* Whether or not the statics for the given node have already been applied.
*
* @type {boolean}
*/
* Whether or not the statics for the given node have already been applied.
*
* @type {boolean}
*/
this.staticsApplied = false;
/**
* Whether or not the associated node is or contains a focused Element.
* @type {boolean}
*/
* Whether or not the associated node is or contains a focused Element.
* @type {boolean}
*/
this.focused = false;
/**
* The node name for this node.
* @const {string}
*/
* The node name for this node.
* @const {string}
*/
this.nodeName = nodeName;
/**
* @type {?string}
*/
* @type {?string}
*/
this.text = null;
/**
* The component instance associated with this element.
* @type {Object}
*/
* The component instance associated with this element.
* @type {Object}
*/
this.componentInstance = null;
/**
* The length of the children in this element.
* This value is only calculated for raw elements.
* @type {number}
*/
* The length of the children in this element.
* This value is only calculated for raw elements.
* @type {number}
*/
this.childLength = 0;

@@ -103,0 +103,0 @@ }

@@ -48,9 +48,12 @@ /**

/* istanbul ignore next */
(document.createElement('div')
.addEventListener as WhatWGAddEventListener)('test', function() {}, {
get passive() {
supportsPassiveListeners = true;
return false;
},
});
(document.createElement('div').addEventListener as WhatWGAddEventListener)(
'test',
function() {},
{
get passive() {
supportsPassiveListeners = true;
return false;
},
}
);

@@ -57,0 +60,0 @@ const BUSY_FRAME_LENGTH = 3;

@@ -123,4 +123,4 @@ /**

/**
* Actually perform the attribute update.
*/
* Actually perform the attribute update.
*/
for (i = 0; i < attrsArr.length; i += 2) {

@@ -127,0 +127,0 @@ newAttrs[attrsArr[i]] = attrsArr[i + 1];

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