🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

hypertext

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hypertext - npm Package Compare versions

Comparing version

to
1.0.3

2

package.json
{
"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 }