@domql/render
Advanced tools
Comparing version 2.4.0 to 2.4.7
@@ -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); |
27
index.js
'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" | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
10270
12
228
3
1
+ Added@domql/event@latest
+ Added@domql/report@latest
+ Added@domql/utils@latest
+ Added@domql/event@2.5.190(transitive)
+ Added@domql/report@2.5.186(transitive)
+ Added@domql/utils@2.5.187(transitive)