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.1.0 to 1.2.0-commit.b0c42b3d

lib/index.esm.js

18

built/assertions.d.ts
/**
* Copyright 2015 The Incremental DOM Authors.
* Copyright 2017 trivago N.V.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS-IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Makes sure that there is a current patch context.

@@ -63,2 +79,2 @@ * @param {*} context

/** */
export { assertInPatch, assertNoUnclosedTags, assertNotInAttributes, assertInAttributes, assertCloseMatchesOpenTag, assertVirtualAttributesClosed, assertNoChildrenDeclaredYet, assertNotInSkip, assertPatchElementNoExtras, setInAttributes, setInSkip };
export { assertInPatch, assertNoUnclosedTags, assertNotInAttributes, assertInAttributes, assertCloseMatchesOpenTag, assertVirtualAttributesClosed, assertNoChildrenDeclaredYet, assertNotInSkip, assertPatchElementNoExtras, setInAttributes, setInSkip, };
/**
* Copyright 2015 The Incremental DOM Authors.
* Copyright 2017 trivago N.V.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS-IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Calls the appropriate attribute mutator for this attribute.

@@ -3,0 +19,0 @@ * @param {!Element} el

9

built/core.d.ts
import { enqueueComponent } from './renderQueue';
declare type Class<T> = {
new (): T;
};
export interface CallableComponent {

@@ -15,5 +18,5 @@ apply(props: any): void;

declare var updateComponent: (comp: RenderableComponent) => void;
declare var component: (Component: CallableComponent | (new () => CallableComponent), key: string, props: any) => any;
declare var component: (Component: CallableComponent | Class<CallableComponent>, key: string, props: any) => any;
declare var getCurrentComponent: () => RenderableComponent;
declare var mount: (element: Node, Component: CallableComponent | (new () => CallableComponent), props: any) => any;
declare var mount: (element: Node, Component: CallableComponent | Class<CallableComponent>, props: any) => any;
/**

@@ -58,2 +61,2 @@ * Makes sure that the current node is an Element with a matching tagName and

/** */
export { elementOpen, elementClose, text, patchInner, patchOuter, currentElement, skip, skipNode, inPatch, raw, mount, component, getCurrentComponent as currentComponent, updateComponent, enqueueComponent };
export { elementOpen, elementClose, text, patchInner, patchOuter, currentElement, skip, skipNode, inPatch, raw, mount, component, getCurrentComponent as currentComponent, updateComponent, enqueueComponent, };
/**
* Copyright 2015 The Incremental DOM Authors.
* Copyright 2017 trivago N.V.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS-IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Gets the path of nodes that contain the focused node in the same document as

@@ -3,0 +19,0 @@ * a reference node, up until the root.

@@ -21,5 +21,5 @@ /**

export { getParent, link } from './hierarchy';
export { patchInner as patch, patchInner, patchOuter, currentElement, skip, skipNode, mount, component, enqueueComponent, RenderableComponent, CallableComponent } from './core';
export { elementVoid, elementOpenStart, elementOpenEnd, elementOpen, elementClose, text, attr, raw, rawString, ref } from './virtual_elements';
export { patchInner as patch, patchInner, patchOuter, currentElement, skip, skipNode, mount, component, enqueueComponent, RenderableComponent, CallableComponent, } from './core';
export { elementVoid, elementOpenStart, elementOpenEnd, elementOpen, elementClose, text, attr, raw, rawString, ref, } from './virtual_elements';
export { getData as getNodeData } from './node_data';
export { unmountComponent } from './util';
/**
* Copyright 2015 The Incremental DOM Authors.
* Copyright 2017 trivago N.V.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS-IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Initializes a NodeData object for a Node.

@@ -3,0 +19,0 @@ *

/**
* Copyright 2015 The Incremental DOM Authors.
* Copyright 2017 trivago N.V.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS-IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Creates an Element.

@@ -3,0 +19,0 @@ * @param {Document} doc The document with which to create the Element.

@@ -23,7 +23,7 @@ /**

/** Hook invoked after a component is mounted. */
afterMount?: (component) => void;
afterMount?: (component: any) => void;
/** Hook invoked after the DOM is updated with a component's latest render. */
afterUpdate?: (component) => void;
afterUpdate?: (component: any) => void;
/** Hook invoked immediately before a component is unmounted. */
beforeUnmount?: (component) => void;
beforeUnmount?: (component: any) => void;
/** Test synchronous loading of child components */

@@ -30,0 +30,0 @@ experimentalSyncDeepRendering?: boolean;

/**
* Copyright 2015 The Incremental DOM Authors.
* Copyright 2017 trivago N.V.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS-IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @param {string} tag The element's tag.

@@ -86,2 +102,2 @@ * @param {?string=} key The key used to identify this element. This can be an

/** */
export { elementOpenStart, elementOpenEnd, elementOpen, elementVoid, elementClose, text, attr, ref, raw, rawString };
export { elementOpenStart, elementOpenEnd, elementOpen, elementVoid, elementClose, text, attr, ref, raw, rawString, };

@@ -1058,18 +1058,2 @@ 'use strict';

/**
* Copyright 2015 The Incremental DOM Authors.
* Copyright 2017 trivago N.V.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS-IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
var supportsPassiveListeners = false;

@@ -1369,3 +1353,7 @@ /* istanbul ignore next */

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
} : function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
};

@@ -1372,0 +1360,0 @@ /**

{
"name": "melody-idom",
"version": "1.1.0",
"version": "1.2.0-commit.b0c42b3d",
"description": "",
"main": "./lib/index.js",
"jsnext:main": "./built/index.js",
"jsnext:main": "./lib/index.esm.js",
"types": "./built/index.d.ts",
"scripts": {
"prebuild": "tsc",
"build": "mkdir lib; rollup -c ../../rollup.config.js -i built/index.js -o lib/index.js"
"build": "mkdir lib; rollup -c ../../rollup.config.js -i built/index.js"
},

@@ -12,0 +12,0 @@ "author": "",

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