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

@domql/render

Package Overview
Dependencies
Maintainers
2
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@domql/render - npm Package Compare versions

Comparing version 2.4.0 to 2.4.7

append.js

27

dist/cjs/index.js

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

var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {

@@ -19,23 +15,8 @@ if (from && typeof from === "object" || typeof from === "function") {

};
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var render_exports = {};
__export(render_exports, {
appendNode: () => appendNode,
assignNode: () => assignNode,
insertNodeAfter: () => insertNodeAfter
});
module.exports = __toCommonJS(render_exports);
const appendNode = (node, parentNode) => {
parentNode.appendChild(node);
return node;
};
const insertNodeAfter = (node, siblingNode) => {
siblingNode.parentNode.insertBefore(node, siblingNode.nextSibling);
};
const assignNode = (element, parent, key, insertAfter) => {
parent[key || element.key] = element;
if (element.tag !== "shadow") {
(insertAfter ? insertNodeAfter : appendNode)(element.node, parent.node);
}
return element;
};
__reExport(render_exports, require("./create"), module.exports);
__reExport(render_exports, require("./cache"), module.exports);
__reExport(render_exports, require("./append"), module.exports);
'use strict'
/**
* Receives child and parent nodes as parametes
* and assigns them into real DOM tree
*/
export const appendNode = (node, parentNode) => {
parentNode.appendChild(node)
return node
}
export const insertNodeAfter = (node, siblingNode) => {
siblingNode.parentNode.insertBefore(node, siblingNode.nextSibling)
}
/**
* Receives elements and assigns the first
* parameter as a child of the second one
*/
export const assignNode = (element, parent, key, insertAfter) => {
parent[key || element.key] = element
if (element.tag !== 'shadow') {
(insertAfter ? insertNodeAfter : appendNode)(element.node, parent.node)
}
return element
}
export * from './create'
export * from './cache'
export * from './append'
{
"name": "@domql/render",
"version": "2.4.0",
"version": "2.4.7",
"license": "MIT",

@@ -19,2 +19,7 @@ "type": "module",

],
"dependencies": {
"@domql/event": "latest",
"@domql/report": "latest",
"@domql/utils": "latest"
},
"scripts": {

@@ -27,3 +32,3 @@ "copy:package:cjs": "cp ../../build/package-cjs.json dist/cjs/package.json",

},
"gitHead": "d01a7237a0065a5a439a03062064076c5fdc91b7"
"gitHead": "fd9683a7d42893983463967fa512ac095a6a36e9"
}
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