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.335 to 0.0.336

2

dist/dom.js

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

/*! typed-dom v0.0.335 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.336 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.335 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.336 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.335 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.336 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
(function webpackUniversalModuleDefinition(root, factory) {

@@ -191,5 +191,6 @@ if(typeof exports === 'object' && typeof module === 'object')

return function (...as) {
if (result) return result[0];
result = [f.call(this, ...as)];
return result[0];
if (f === noop) return result;
result = f.call(this, ...as);
f = noop;
return result;
};

@@ -720,3 +721,3 @@ }

symbols.listeners = Symbol.for('typed-dom::listeners');
})(symbols = exports.symbols || (exports.symbols = {}));
})(symbols || (exports.symbols = symbols = {}));
class Listeners {

@@ -723,0 +724,0 @@ static of(target) {

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

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

@@ -51,5 +51,6 @@ if(typeof exports === 'object' && typeof module === 'object')

return function (...as) {
if (result) return result[0];
result = [f.call(this, ...as)];
return result[0];
if (f === noop) return result;
result = f.call(this, ...as);
f = noop;
return result;
};

@@ -56,0 +57,0 @@ }

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

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

@@ -191,5 +191,6 @@ if(typeof exports === 'object' && typeof module === 'object')

return function (...as) {
if (result) return result[0];
result = [f.call(this, ...as)];
return result[0];
if (f === noop) return result;
result = f.call(this, ...as);
f = noop;
return result;
};

@@ -720,3 +721,3 @@ }

symbols.listeners = Symbol.for('typed-dom::listeners');
})(symbols = exports.symbols || (exports.symbols = {}));
})(symbols || (exports.symbols = symbols = {}));
class Listeners {

@@ -723,0 +724,0 @@ static of(target) {

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

/*! typed-dom v0.0.335 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.336 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.335 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.336 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')

@@ -18,4 +18,4 @@ import { El } from './proxy';

<T extends K<M>, C extends El.Children.Void>(tag: T, attrs: Attrs<E<M[T]>> | undefined, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, El.Children.Void>;
<T extends K<M>, C extends El.Children.Node>(tag: T, attrs: Attrs<E<M[T]>> | undefined, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, C>;
<T extends K<M>, C extends El.Children.Text>(tag: T, attrs: Attrs<E<M[T]>> | undefined, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, El.Children.Text>;
<T extends K<M>, C extends El.Children.Node>(tag: T, attrs: Attrs<E<M[T]>> | undefined, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, C>;
<T extends K<M>, C extends El_Children_Unit>(tag: T, attrs: Attrs<E<M[T]>> | undefined, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, El.Children.Array>;

@@ -25,4 +25,4 @@ <T extends K<M>, C extends El.Children.Array>(tag: T, attrs: Attrs<E<M[T]>> | undefined, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, Readonly<C>>;

<T extends K<M>, C extends El.Children.Void>(tag: T, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, El.Children.Void>;
<T extends K<M>, C extends El.Children.Node>(tag: T, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, C>;
<T extends K<M>, C extends El.Children.Text>(tag: T, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, El.Children.Text>;
<T extends K<M>, C extends El.Children.Node>(tag: T, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, C>;
<T extends K<M>, C extends El_Children_Unit>(tag: T, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, El.Children.Array>;

@@ -36,4 +36,4 @@ <T extends K<M>, C extends El.Children.Array>(tag: T, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, Readonly<C>>;

<C extends El.Children.Void>(attrs: Attrs<E<M[T]>> | undefined, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, El.Children.Void>;
<C extends El.Children.Node>(attrs: Attrs<E<M[T]>> | undefined, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, C>;
<C extends El.Children.Text>(attrs: Attrs<E<M[T]>> | undefined, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, El.Children.Text>;
<C extends El.Children.Node>(attrs: Attrs<E<M[T]>> | undefined, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, C>;
<C extends El_Children_Unit>(attrs: Attrs<E<M[T]>> | undefined, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, El.Children.Array>;

@@ -43,4 +43,4 @@ <C extends El.Children.Array>(attrs: Attrs<E<M[T]>> | undefined, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, Readonly<C>>;

<C extends El.Children.Void>(children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, El.Children.Void>;
<C extends El.Children.Node>(children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, C>;
<C extends El.Children.Text>(children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, El.Children.Text>;
<C extends El.Children.Node>(children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, C>;
<C extends El_Children_Unit>(children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, El.Children.Array>;

@@ -47,0 +47,0 @@ <C extends El.Children.Array>(children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, Readonly<C>>;

@@ -17,7 +17,7 @@ import { symbols, Listeners } from './internal';

export declare namespace El {
type Children = Children.Void | Children.Text | Children.Node | Children.Array | Children.Struct;
type Children = Children.Void | Children.Node | Children.Text | Children.Array | Children.Struct;
namespace Children {
type Void = void;
type Node = DocumentFragment;
type Text = string;
type Node = DocumentFragment;
type Array = readonly El[];

@@ -24,0 +24,0 @@ type Struct = {

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

/*! typed-dom v0.0.335 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.336 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.335 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.336 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.335 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.336 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
(function webpackUniversalModuleDefinition(root, factory) {

@@ -191,5 +191,6 @@ if(typeof exports === 'object' && typeof module === 'object')

return function (...as) {
if (result) return result[0];
result = [f.call(this, ...as)];
return result[0];
if (f === noop) return result;
result = f.call(this, ...as);
f = noop;
return result;
};

@@ -720,3 +721,3 @@ }

symbols.listeners = Symbol.for('typed-dom::listeners');
})(symbols = exports.symbols || (exports.symbols = {}));
})(symbols || (exports.symbols = symbols = {}));
class Listeners {

@@ -723,0 +724,0 @@ static of(target) {

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

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

@@ -51,5 +51,6 @@ if(typeof exports === 'object' && typeof module === 'object')

return function (...as) {
if (result) return result[0];
result = [f.call(this, ...as)];
return result[0];
if (f === noop) return result;
result = f.call(this, ...as);
f = noop;
return result;
};

@@ -56,0 +57,0 @@ }

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

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

@@ -191,5 +191,6 @@ if(typeof exports === 'object' && typeof module === 'object')

return function (...as) {
if (result) return result[0];
result = [f.call(this, ...as)];
return result[0];
if (f === noop) return result;
result = f.call(this, ...as);
f = noop;
return result;
};

@@ -720,3 +721,3 @@ }

symbols.listeners = Symbol.for('typed-dom::listeners');
})(symbols = exports.symbols || (exports.symbols = {}));
})(symbols || (exports.symbols = symbols = {}));
class Listeners {

@@ -723,0 +724,0 @@ static of(target) {

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

@@ -42,10 +42,10 @@ "private": false,

"@types/power-assert": "1.5.8",
"@typescript-eslint/parser": "^5.59.7",
"@typescript-eslint/parser": "^5.59.9",
"babel-loader": "^9.1.2",
"babel-plugin-unassert": "^3.2.0",
"concurrently": "^8.0.1",
"eslint": "^8.41.0",
"concurrently": "^8.1.0",
"eslint": "^8.42.0",
"eslint-plugin-redos": "^4.4.5",
"eslint-webpack-plugin": "^4.0.1",
"glob": "^10.2.6",
"glob": "^10.2.7",
"i18next": "~22.3.0",

@@ -60,7 +60,7 @@ "karma": "^6.4.2",

"npm-check-updates": "^16.10.12",
"spica": "0.0.727",
"spica": "0.0.732",
"ts-loader": "^9.4.3",
"typescript": "5.0.4",
"webpack": "^5.84.1",
"webpack-cli": "^5.1.1",
"typescript": "5.1.3",
"webpack": "^5.85.1",
"webpack-cli": "^5.1.3",
"webpack-merge": "^5.9.0"

@@ -67,0 +67,0 @@ },

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

/*! typed-dom v0.0.335 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.336 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.335 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.336 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')

@@ -74,4 +74,4 @@ # typed-dom

| Children.Void
| Children.Node
| Children.Text
| Children.Node
| Children.Array

@@ -81,4 +81,4 @@ | Children.Struct;

export type Void = void;
export type Node = DocumentFragment;
export type Text = string;
export type Node = DocumentFragment;
export type Array = readonly El[];

@@ -85,0 +85,0 @@ export type Struct = { [field: string]: El; };

@@ -34,4 +34,4 @@ import { El, ElementProxy } from './proxy';

<T extends K<M>, C extends El.Children.Void >(tag: T, attrs: Attrs<E<M[T]>> | undefined, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, El.Children.Void>;
<T extends K<M>, C extends El.Children.Node >(tag: T, attrs: Attrs<E<M[T]>> | undefined, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, C>;
<T extends K<M>, C extends El.Children.Text >(tag: T, attrs: Attrs<E<M[T]>> | undefined, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, El.Children.Text>;
<T extends K<M>, C extends El.Children.Node >(tag: T, attrs: Attrs<E<M[T]>> | undefined, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, C>;
<T extends K<M>, C extends El_Children_Unit >(tag: T, attrs: Attrs<E<M[T]>> | undefined, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, El.Children.Array>;

@@ -41,4 +41,4 @@ <T extends K<M>, C extends El.Children.Array >(tag: T, attrs: Attrs<E<M[T]>> | undefined, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, Readonly<C>>;

<T extends K<M>, C extends El.Children.Void >(tag: T, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, El.Children.Void>;
<T extends K<M>, C extends El.Children.Node >(tag: T, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, C>;
<T extends K<M>, C extends El.Children.Text >(tag: T, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, El.Children.Text>;
<T extends K<M>, C extends El.Children.Node >(tag: T, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, C>;
<T extends K<M>, C extends El_Children_Unit >(tag: T, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, El.Children.Array>;

@@ -53,4 +53,4 @@ <T extends K<M>, C extends El.Children.Array >(tag: T, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, Readonly<C>>;

<C extends El.Children.Void >( attrs: Attrs<E<M[T]>> | undefined, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, El.Children.Void>;
<C extends El.Children.Node >( attrs: Attrs<E<M[T]>> | undefined, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, C>;
<C extends El.Children.Text >( attrs: Attrs<E<M[T]>> | undefined, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, El.Children.Text>;
<C extends El.Children.Node >( attrs: Attrs<E<M[T]>> | undefined, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, C>;
<C extends El_Children_Unit >( attrs: Attrs<E<M[T]>> | undefined, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, El.Children.Array>;

@@ -60,4 +60,4 @@ <C extends El.Children.Array >( attrs: Attrs<E<M[T]>> | undefined, children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, Readonly<C>>;

<C extends El.Children.Void >( children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, El.Children.Void>;
<C extends El.Children.Node >( children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, C>;
<C extends El.Children.Text >( children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, El.Children.Text>;
<C extends El.Children.Node >( children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, C>;
<C extends El_Children_Unit >( children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, El.Children.Array>;

@@ -64,0 +64,0 @@ <C extends El.Children.Array >( children: C, factory?: ElFactory<M, T, C>): El<T, E<M[T]>, Readonly<C>>;

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

| Children.Void
| Children.Node
| Children.Text
| Children.Node
| Children.Array

@@ -35,4 +35,4 @@ | Children.Struct;

export type Void = void;
export type Node = DocumentFragment;
export type Text = string;
export type Node = DocumentFragment;
export type Array = readonly El[];

@@ -39,0 +39,0 @@ export type Struct = { [field: string]: El; };

@@ -60,2 +60,12 @@ import { Shadow, HTML, SVG, El, Attrs, shadow, frag, html, define } from '../../index';

it('node', function () {
const dom = Shadow.p(frag(['a', html('br'), 'b']));
assert(dom.element.shadowRoot?.innerHTML === 'a<br>b');
assert(dom.children instanceof DocumentFragment);
assert(dom.children.childNodes.length === 0);
dom.children = frag(['c']);
assert(dom.element.shadowRoot?.innerHTML === 'c');
assert(dom.children.childNodes.length === 0);
});
it('text', function () {

@@ -83,12 +93,2 @@ const dom = HTML.p('a');

it('node', function () {
const dom = Shadow.p(frag(['a', html('br'), 'b']));
assert(dom.element.shadowRoot?.innerHTML === 'a<br>b');
assert(dom.children instanceof DocumentFragment);
assert(dom.children.childNodes.length === 0);
dom.children = frag(['c']);
assert(dom.element.shadowRoot?.innerHTML === 'c');
assert(dom.children.childNodes.length === 0);
});
it('collection', function () {

@@ -95,0 +95,0 @@ const dom = HTML.ul([

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