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.339 to 0.0.340

2

dist/dom.js

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

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

@@ -27,3 +27,3 @@ import { symbols, Listeners } from './internal';

}
type Getter<C extends El.Children> = C extends Children.Struct ? C : C;
type Getter<C extends El.Children> = C;
type Setter<C extends El.Children> = C extends Children.Struct ? Partial<C> : C;

@@ -30,0 +30,0 @@ type Factory<M extends TagNameMap, C extends El.Children = El.Children> = <T extends keyof M & string>(baseFactory: BaseFactory<M>, tag: T, attrs: Attrs<Extract<M[T], Element>>, children: C) => M[T];

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

/*! typed-dom v0.0.339 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.340 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.339 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.340 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.339 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.340 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.339 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.340 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.339 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.340 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.339",
"version": "0.0.340",
"description": "A value-level and type-level DOM builder.",

@@ -36,3 +36,3 @@ "private": false,

"dependencies": {
"typed-query-selector": "^2.10.1"
"typed-query-selector": "^2.11.0"
},

@@ -43,11 +43,11 @@ "devDependencies": {

"@types/power-assert": "1.5.8",
"@typescript-eslint/parser": "^5.59.11",
"@typescript-eslint/parser": "^5.60.0",
"babel-loader": "^9.1.2",
"babel-plugin-unassert": "^3.2.0",
"concurrently": "^8.2.0",
"eslint": "^8.42.0",
"eslint": "^8.43.0",
"eslint-plugin-redos": "^4.4.5",
"eslint-webpack-plugin": "^4.0.1",
"glob": "^10.2.7",
"i18next": "~22.3.0",
"glob": "^10.3.0",
"i18next": "22.4.4",
"karma": "^6.4.2",

@@ -64,3 +64,3 @@ "karma-chrome-launcher": "^3.2.0",

"typescript": "5.1.3",
"webpack": "^5.86.0",
"webpack": "^5.88.0",
"webpack-cli": "^5.1.4",

@@ -67,0 +67,0 @@ "webpack-merge": "^5.9.0"

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

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

@@ -85,5 +85,3 @@ # typed-dom

}
export type Getter<C extends El.Children> =
C extends Children.Struct ? C :
C;
export type Getter<C extends El.Children> = C;
export type Setter<C extends El.Children> =

@@ -233,2 +231,6 @@ C extends Children.Struct ? Partial<C> :

interface TransDataMap {
'Greeting': { name: string; };
}
const translator = i18next.createInstance({

@@ -242,7 +244,5 @@ lng: 'en',

},
},
} satisfies Record<string, { translation: { [P in keyof TransDataMap]: string; }; }>,
});
interface TransDataMap {
'Greeting': { name: string; };
}
translator.init();

@@ -255,6 +255,4 @@ function intl

const el = factory?.(html, tag, {}) ?? html(tag);
translator.init((err, t) =>
el.textContent = err
? '{% Failed to initialize the translator. %}'
: t(children, data) ?? `{% Failed to translate "${children}". %}`);
el.textContent = translator.t(children, data)
?? `{% Failed to translate "${children}". %}`;
return el;

@@ -278,7 +276,6 @@ };

define(factory?.(html, tag, {}, children) ?? html(tag), {
onmutate: ev =>
void translator.init((err, t) =>
ev.currentTarget.textContent = err
? '{% Failed to initialize the translator. %}'
: t(children, data) ?? `{% Failed to translate "${children}". %}`),
onmutate: ev => {
ev.currentTarget.textContent = translator.t(children, data)
?? `{% Failed to translate "${children}". %}`;
},
});

@@ -285,0 +282,0 @@ }

@@ -39,5 +39,3 @@ import { isArray } from 'spica/alias';

}
export type Getter<C extends El.Children> =
C extends Children.Struct ? C :
C;
export type Getter<C extends El.Children> = C;
export type Setter<C extends El.Children> =

@@ -44,0 +42,0 @@ C extends Children.Struct ? Partial<C> :

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

it('translate', function () {
interface TransDataMap {
'Greeting': { name: string; };
}
const translator = i18next.createInstance({

@@ -713,7 +717,5 @@ lng: 'en',

},
},
} satisfies Record<string, { translation: { [P in keyof TransDataMap]: string; }; }>,
});
interface TransDataMap {
'Greeting': { name: string; };
}
translator.init();

@@ -726,6 +728,4 @@ function intl

const el = factory?.(html, tag, {}) ?? html(tag);
translator.init((err, t) =>
el.textContent = err
? '{% Failed to initialize the translator. %}'
: t(children, data) ?? `{% Failed to translate "${children}". %}`);
el.textContent = translator.t(children, data)
?? `{% Failed to translate "${children}". %}`;
return el;

@@ -752,7 +752,6 @@ };

define(factory?.(html, tag, {}, children) ?? html(tag), {
onmutate: ev =>
void translator.init((err, t) =>
ev.currentTarget.textContent = err
? '{% Failed to initialize the translator. %}'
: t(children, data) ?? `{% Failed to translate "${children}". %}`),
onmutate: ev => {
ev.currentTarget.textContent = translator.t(children, data)
?? `{% Failed to translate "${children}". %}`;
},
});

@@ -759,0 +758,0 @@ }

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