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.325 to 0.0.326

4

dist/dom.js

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

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

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

function isChildren(value) {
return !!value?.[Symbol.iterator];
return value?.[Symbol.iterator] !== undefined;
}

@@ -250,0 +250,0 @@ exports.isChildren = isChildren;

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

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

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

const val = value[name];
return !!val && typeof val === 'object';
return val !== null && typeof val === 'object';
}

@@ -1160,3 +1160,3 @@ return false;

function isChildren(value) {
return !!value?.[Symbol.iterator];
return value?.[Symbol.iterator] !== undefined;
}

@@ -1163,0 +1163,0 @@ exports.isChildren = isChildren;

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

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

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

function isChildren(value) {
return !!value?.[Symbol.iterator];
return value?.[Symbol.iterator] !== undefined;
}

@@ -250,0 +250,0 @@ exports.isChildren = isChildren;

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

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

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

const val = value[name];
return !!val && typeof val === 'object';
return val !== null && typeof val === 'object';
}

@@ -1160,3 +1160,3 @@ return false;

function isChildren(value) {
return !!value?.[Symbol.iterator];
return value?.[Symbol.iterator] !== undefined;
}

@@ -1163,0 +1163,0 @@ exports.isChildren = isChildren;

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

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

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

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

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

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

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

|-|-|-|-|-|
|Typed-DOM|Type|Interface|Fork|Slow construction|
|jQuery|Query|Implementation|Plugin|Breakable / Implicit dependency|
|Typed-DOM|Type|Interface|Fork|Slow construction|
|React|Create all and search difference|Implementation|Component|Breakable / Waste / Complex / Severely dependent / Incomplete vain reinvention of the browser|

@@ -33,0 +33,0 @@

@@ -107,14 +107,14 @@ import { hasOwnProperty } from 'spica/alias';

function isElChildren
(value: Attrs | El.Children)
: value is El.Children {
function isElChildren(value: Attrs | El.Children): value is El.Children {
if (value === undefined) return false;
if (value[Symbol.iterator]) return true;
assert([value = value as Exclude<typeof value, El.Children.Text | El.Children.Array>]);
if (typeof value['nodeType'] === 'number') return true;
for (const name in value as Attrs | El.Children.Struct) {
assert([value = value as Exclude<typeof value, El.Children.Node>]);
for (const name in value) {
if (!hasOwnProperty(value, name)) continue;
const val = value[name];
return !!val && typeof val === 'object';
return val !== null && typeof val === 'object';
}
return false;
}

@@ -215,3 +215,3 @@ import { isArray, hasOwnProperty } from 'spica/alias';

export function isChildren(value: Attrs | Children | ShadowRootInit): value is NonNullable<Children> {
return !!value?.[Symbol.iterator];
return value?.[Symbol.iterator] !== undefined;
}

@@ -218,0 +218,0 @@

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