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

typed-dom

Package Overview
Dependencies
Maintainers
1
Versions
350
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typed-dom - npm Package Compare versions

Comparing version 0.0.331 to 0.0.332

2

dist/dom.js

@@ -1,2 +0,2 @@

/*! typed-dom v0.0.331 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.332 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
(function webpackUniversalModuleDefinition(root, factory) {

@@ -3,0 +3,0 @@ if(typeof exports === 'object' && typeof module === 'object')

@@ -1,2 +0,2 @@

/*! typed-dom v0.0.331 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.332 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
(function webpackUniversalModuleDefinition(root, factory) {

@@ -3,0 +3,0 @@ if(typeof exports === 'object' && typeof module === 'object')

@@ -1,2 +0,2 @@

/*! typed-dom v0.0.331 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.332 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
(function webpackUniversalModuleDefinition(root, factory) {

@@ -678,5 +678,11 @@ if(typeof exports === 'object' && typeof module === 'object')

function elem(tag, factory, attrs, children) {
const el = factory ? (0, dom_1.define)(factory(baseFactory, tag, attrs ?? {}, children), attrs) : baseFactory(tag, attrs);
if (tag.toLowerCase() !== el.tagName.toLowerCase()) throw new Error(`TypedDOM: Expected tag name is "${tag.toLowerCase()}" but actually "${el.tagName.toLowerCase()}"`);
return el;
if (!factory) return baseFactory(tag, attrs);
const el = (0, dom_1.define)(factory(baseFactory, tag, attrs ?? {}, children), attrs);
switch (el.tagName) {
case tag:
case tag.toUpperCase():
return el;
default:
throw new Error(`TypedDOM: Expected tag name is "${tag.toLowerCase()}" but actually "${el.tagName.toLowerCase()}"`);
}
}

@@ -866,3 +872,4 @@ }

format(child) {
switch (child.tag.toUpperCase()) {
switch (child.tag) {
case 'style':
case 'STYLE':

@@ -869,0 +876,0 @@ {

@@ -1,2 +0,2 @@

/*! typed-dom v0.0.331 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.332 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
(function webpackUniversalModuleDefinition(root, factory) {

@@ -3,0 +3,0 @@ if(typeof exports === 'object' && typeof module === 'object')

@@ -1,2 +0,2 @@

/*! typed-dom v0.0.331 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.332 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
(function webpackUniversalModuleDefinition(root, factory) {

@@ -678,5 +678,11 @@ if(typeof exports === 'object' && typeof module === 'object')

function elem(tag, factory, attrs, children) {
const el = factory ? (0, dom_1.define)(factory(baseFactory, tag, attrs ?? {}, children), attrs) : baseFactory(tag, attrs);
if (tag.toLowerCase() !== el.tagName.toLowerCase()) throw new Error(`TypedDOM: Expected tag name is "${tag.toLowerCase()}" but actually "${el.tagName.toLowerCase()}"`);
return el;
if (!factory) return baseFactory(tag, attrs);
const el = (0, dom_1.define)(factory(baseFactory, tag, attrs ?? {}, children), attrs);
switch (el.tagName) {
case tag:
case tag.toUpperCase():
return el;
default:
throw new Error(`TypedDOM: Expected tag name is "${tag.toLowerCase()}" but actually "${el.tagName.toLowerCase()}"`);
}
}

@@ -866,3 +872,4 @@ }

format(child) {
switch (child.tag.toUpperCase()) {
switch (child.tag) {
case 'style':
case 'STYLE':

@@ -869,0 +876,0 @@ {

@@ -1,2 +0,2 @@

/*! typed-dom v0.0.331 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.332 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
(function webpackUniversalModuleDefinition(root, factory) {

@@ -3,0 +3,0 @@ if(typeof exports === 'object' && typeof module === 'object')

@@ -1,2 +0,2 @@

/*! typed-dom v0.0.331 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.332 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
(function webpackUniversalModuleDefinition(root, factory) {

@@ -3,0 +3,0 @@ if(typeof exports === 'object' && typeof module === 'object')

@@ -1,2 +0,2 @@

/*! typed-dom v0.0.331 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.332 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
(function webpackUniversalModuleDefinition(root, factory) {

@@ -3,0 +3,0 @@ if(typeof exports === 'object' && typeof module === 'object')

@@ -1,2 +0,2 @@

/*! typed-dom v0.0.331 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.332 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
(function webpackUniversalModuleDefinition(root, factory) {

@@ -3,0 +3,0 @@ if(typeof exports === 'object' && typeof module === 'object')

@@ -1,2 +0,2 @@

/*! typed-dom v0.0.331 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.332 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
(function webpackUniversalModuleDefinition(root, factory) {

@@ -678,5 +678,11 @@ if(typeof exports === 'object' && typeof module === 'object')

function elem(tag, factory, attrs, children) {
const el = factory ? (0, dom_1.define)(factory(baseFactory, tag, attrs ?? {}, children), attrs) : baseFactory(tag, attrs);
if (tag.toLowerCase() !== el.tagName.toLowerCase()) throw new Error(`TypedDOM: Expected tag name is "${tag.toLowerCase()}" but actually "${el.tagName.toLowerCase()}"`);
return el;
if (!factory) return baseFactory(tag, attrs);
const el = (0, dom_1.define)(factory(baseFactory, tag, attrs ?? {}, children), attrs);
switch (el.tagName) {
case tag:
case tag.toUpperCase():
return el;
default:
throw new Error(`TypedDOM: Expected tag name is "${tag.toLowerCase()}" but actually "${el.tagName.toLowerCase()}"`);
}
}

@@ -866,3 +872,4 @@ }

format(child) {
switch (child.tag.toUpperCase()) {
switch (child.tag) {
case 'style':
case 'STYLE':

@@ -869,0 +876,0 @@ {

@@ -1,2 +0,2 @@

/*! typed-dom v0.0.331 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.332 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
(function webpackUniversalModuleDefinition(root, factory) {

@@ -3,0 +3,0 @@ if(typeof exports === 'object' && typeof module === 'object')

@@ -1,2 +0,2 @@

/*! typed-dom v0.0.331 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.332 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
(function webpackUniversalModuleDefinition(root, factory) {

@@ -678,5 +678,11 @@ if(typeof exports === 'object' && typeof module === 'object')

function elem(tag, factory, attrs, children) {
const el = factory ? (0, dom_1.define)(factory(baseFactory, tag, attrs ?? {}, children), attrs) : baseFactory(tag, attrs);
if (tag.toLowerCase() !== el.tagName.toLowerCase()) throw new Error(`TypedDOM: Expected tag name is "${tag.toLowerCase()}" but actually "${el.tagName.toLowerCase()}"`);
return el;
if (!factory) return baseFactory(tag, attrs);
const el = (0, dom_1.define)(factory(baseFactory, tag, attrs ?? {}, children), attrs);
switch (el.tagName) {
case tag:
case tag.toUpperCase():
return el;
default:
throw new Error(`TypedDOM: Expected tag name is "${tag.toLowerCase()}" but actually "${el.tagName.toLowerCase()}"`);
}
}

@@ -866,3 +872,4 @@ }

format(child) {
switch (child.tag.toUpperCase()) {
switch (child.tag) {
case 'style':
case 'STYLE':

@@ -869,0 +876,0 @@ {

{
"name": "typed-dom",
"version": "0.0.331",
"version": "0.0.332",
"description": "A value-level and type-level DOM builder.",

@@ -5,0 +5,0 @@ "private": false,

@@ -1,2 +0,2 @@

/*! typed-dom v0.0.331 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.332 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
(function webpackUniversalModuleDefinition(root, factory) {

@@ -3,0 +3,0 @@ if(typeof exports === 'object' && typeof module === 'object')

@@ -1,2 +0,2 @@

/*! typed-dom v0.0.331 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.332 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
(function webpackUniversalModuleDefinition(root, factory) {

@@ -3,0 +3,0 @@ if(typeof exports === 'object' && typeof module === 'object')

@@ -98,7 +98,11 @@ import { El, ElementProxy } from './proxy';

): Element {
const el = factory
? define(factory(baseFactory, tag, attrs ?? {}, children) as unknown as Element, attrs)
: baseFactory(tag, attrs) as unknown as Element;
if (tag.toLowerCase() !== el.tagName.toLowerCase()) throw new Error(`TypedDOM: Expected tag name is "${tag.toLowerCase()}" but actually "${el.tagName.toLowerCase()}"`);
return el;
if(!factory) return baseFactory(tag, attrs) as unknown as Element;
const el = define(factory(baseFactory, tag, attrs ?? {}, children) as unknown as Element, attrs);
switch (el.tagName) {
case tag:
case tag.toUpperCase():
return el;
default:
throw new Error(`TypedDOM: Expected tag name is "${tag.toLowerCase()}" but actually "${el.tagName.toLowerCase()}"`);
}
}

@@ -105,0 +109,0 @@ }

@@ -142,3 +142,4 @@ import { isArray } from 'spica/alias';

private format(child: El): void {
switch (child.tag.toUpperCase()) {
switch (child.tag) {
case 'style':
case 'STYLE': {

@@ -145,0 +146,0 @@ const source = child.element.innerHTML;

@@ -85,3 +85,3 @@ const path = require('path');

return merge(config, {
entry: glob.sync('./benchmark/**/*.ts', { absolute: true }),
entry: glob.sync('./benchmark/**/*.ts', { absolute: true }).sort(),
module: {

@@ -88,0 +88,0 @@ rules: [

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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