Comparing version
{ | ||
"name": "hypertext", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Create HTML in JavaScript via virtual-dom VTrees or directly to the DOM: virtual-hyperscript alternative", | ||
@@ -5,0 +5,0 @@ "main": "dist/hypertext.js", |
@@ -38,15 +38,15 @@ /* | ||
// var helloWorld = | ||
// createNodes( | ||
// div({ class: 'hello', id: 'world' }, | ||
// h1('Hello World!'), | ||
// p('This is Hypertext'), | ||
// figure({ class: 'img-section' }, | ||
// figcaption('This is random Art'), | ||
// img({ alt: 'Banksy', src: 'https://upload.wikimedia.org/wikipedia/commons/thumb/5/55/Banksy-art.jpg/220px-Banksy-art.jpg' }), | ||
// img({ alt: 'The Scream', src: 'https://upload.wikimedia.org/wikipedia/commons/thumb/f/f4/The_Scream.jpg/220px-The_Scream.jpg' }) | ||
// ) | ||
// ) | ||
// ) | ||
// document.body.appendChild(helloWorld); | ||
var helloWorld = | ||
createNodes( | ||
div({ class: 'hello', id: 'world' }, | ||
h1('Hello World!'), | ||
p('This is Hypertext'), | ||
figure({ class: 'img-section' }, | ||
figcaption('This is random Art'), | ||
img({ alt: 'Banksy', src: 'https://upload.wikimedia.org/wikipedia/commons/thumb/5/55/Banksy-art.jpg/220px-Banksy-art.jpg' }), | ||
img({ alt: 'The Scream', src: 'https://upload.wikimedia.org/wikipedia/commons/thumb/f/f4/The_Scream.jpg/220px-The_Scream.jpg' }) | ||
) | ||
) | ||
) | ||
document.body.appendChild(helloWorld); | ||
@@ -53,0 +53,0 @@ |
@@ -108,3 +108,5 @@ import { assembly, loop, or } from './assembly'; | ||
window.createNodes = create; | ||
window.loop = loop; | ||
window.or = or; | ||
@@ -107,2 +107,3 @@ import { assembly, loop, or } from './assembly'; | ||
// Create API | ||
export const createNodes = create; | ||
const createNodes = create; | ||
export { assembly, loop, or, createNodes } |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
664070
020943
0.01%