Comparing version 4.1.21 to 4.1.22
@@ -6,3 +6,3 @@ 'use strict'; | ||
const { attr } = require('./handler.js'); | ||
const render = (require('./render-hole.js')); | ||
const render = (require('./render/hole.js')); | ||
@@ -9,0 +9,0 @@ /** @typedef {import("./literals.js").Value} Value */ |
@@ -42,3 +42,3 @@ 'use strict'; | ||
/** @typedef {Node | Element | PersistentFragment} Target */ | ||
/** @typedef {null | undefined | string | number | boolean | Hole} Value */ | ||
/** @typedef {null | undefined | string | number | boolean | Hole | ((...args: unknown[]) => unknown)} Value */ | ||
/** @typedef {null | undefined | string | number | boolean | Node | Element | PersistentFragment} DOMValue */ | ||
@@ -873,3 +873,3 @@ | ||
/** @type {WeakMap<Element | DocumentFragment, import("./literals.js").Cache>} */ | ||
/** @type {WeakMap<Element | DocumentFragment, import("../literals.js").Cache>} */ | ||
const known = new WeakMap; | ||
@@ -881,6 +881,6 @@ | ||
* @param {T} where the DOM node where to render content | ||
* @param {() => Hole | Hole} what the hole to render | ||
* @param {(() => Hole) | Hole} what the hole to render | ||
* @returns | ||
*/ | ||
var renderKeyed = (where, what) => { | ||
var keyed$1 = (where, what) => { | ||
const info = known.get(where) || set(known, where, cache$1(empty)); | ||
@@ -929,3 +929,3 @@ const hole = typeof what === 'function' ? what() : what; | ||
exports.htmlFor = htmlFor; | ||
exports.render = renderKeyed; | ||
exports.render = keyed$1; | ||
exports.svg = svg; | ||
@@ -932,0 +932,0 @@ exports.svgFor = svgFor; |
@@ -7,3 +7,3 @@ 'use strict'; | ||
const { attr } = require('./handler.js'); | ||
const render = (require('./render-keyed.js')); | ||
const render = (require('./render/keyed.js')); | ||
@@ -10,0 +10,0 @@ /** @typedef {import("./literals.js").Cache} Cache */ |
@@ -13,3 +13,3 @@ 'use strict'; | ||
/** @typedef {Node | Element | PersistentFragment} Target */ | ||
/** @typedef {null | undefined | string | number | boolean | Hole} Value */ | ||
/** @typedef {null | undefined | string | number | boolean | Hole | ((...args: unknown[]) => unknown)} Value */ | ||
/** @typedef {null | undefined | string | number | boolean | Node | Element | PersistentFragment} DOMValue */ | ||
@@ -16,0 +16,0 @@ |
@@ -6,3 +6,3 @@ 'use strict'; | ||
const parser = (require('./parser.js')); | ||
const render = (require('./render-node.js')); | ||
const render = (require('./render/node.js')); | ||
const { attr } = require('./handler.js'); | ||
@@ -9,0 +9,0 @@ |
@@ -5,3 +5,3 @@ /*! (c) Andrea Giammarchi - MIT */ | ||
import { attr } from './handler.js'; | ||
import render from './render-hole.js'; | ||
import render from './render/hole.js'; | ||
@@ -8,0 +8,0 @@ /** @typedef {import("./literals.js").Value} Value */ |
@@ -41,3 +41,3 @@ | ||
/** @typedef {Node | Element | PersistentFragment} Target */ | ||
/** @typedef {null | undefined | string | number | boolean | Hole} Value */ | ||
/** @typedef {null | undefined | string | number | boolean | Hole | ((...args: unknown[]) => unknown)} Value */ | ||
/** @typedef {null | undefined | string | number | boolean | Node | Element | PersistentFragment} DOMValue */ | ||
@@ -872,3 +872,3 @@ | ||
/** @type {WeakMap<Element | DocumentFragment, import("./literals.js").Cache>} */ | ||
/** @type {WeakMap<Element | DocumentFragment, import("../literals.js").Cache>} */ | ||
const known = new WeakMap; | ||
@@ -880,6 +880,6 @@ | ||
* @param {T} where the DOM node where to render content | ||
* @param {() => Hole | Hole} what the hole to render | ||
* @param {(() => Hole) | Hole} what the hole to render | ||
* @returns | ||
*/ | ||
var renderKeyed = (where, what) => { | ||
var keyed$1 = (where, what) => { | ||
const info = known.get(where) || set(known, where, cache$1(empty)); | ||
@@ -928,3 +928,3 @@ const hole = typeof what === 'function' ? what() : what; | ||
exports.htmlFor = htmlFor; | ||
exports.render = renderKeyed; | ||
exports.render = keyed$1; | ||
exports.svg = svg; | ||
@@ -931,0 +931,0 @@ exports.svgFor = svgFor; |
@@ -6,3 +6,3 @@ import { cache } from './literals.js'; | ||
import { attr } from './handler.js'; | ||
import render from './render-keyed.js'; | ||
import render from './render/keyed.js'; | ||
@@ -9,0 +9,0 @@ /** @typedef {import("./literals.js").Cache} Cache */ |
@@ -12,3 +12,3 @@ import { empty } from './utils.js'; | ||
/** @typedef {Node | Element | PersistentFragment} Target */ | ||
/** @typedef {null | undefined | string | number | boolean | Hole} Value */ | ||
/** @typedef {null | undefined | string | number | boolean | Hole | ((...args: unknown[]) => unknown)} Value */ | ||
/** @typedef {null | undefined | string | number | boolean | Node | Element | PersistentFragment} DOMValue */ | ||
@@ -15,0 +15,0 @@ |
@@ -5,3 +5,3 @@ /*! (c) Andrea Giammarchi - MIT */ | ||
import parser from './parser.js'; | ||
import render from './render-node.js'; | ||
import render from './render/node.js'; | ||
import { attr } from './handler.js'; | ||
@@ -8,0 +8,0 @@ |
{ | ||
"name": "uhtml", | ||
"version": "4.1.21", | ||
"version": "4.1.22", | ||
"description": "A micro HTML/SVG render", | ||
@@ -29,5 +29,5 @@ "main": "./cjs/index.js", | ||
"c8": "^8.0.1", | ||
"linkedom": "^0.16.4", | ||
"rollup": "^4.6.0", | ||
"typescript": "^5.3.2" | ||
"linkedom": "^0.16.5", | ||
"rollup": "^4.9.1", | ||
"typescript": "^5.3.3" | ||
}, | ||
@@ -65,3 +65,11 @@ "module": "./esm/index.js", | ||
"udomdiff": "^1.1.0" | ||
} | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/WebReflection/uhtml.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/WebReflection/uhtml/issues" | ||
}, | ||
"homepage": "https://github.com/WebReflection/uhtml#readme" | ||
} |
export type Value = import("./literals.js").Value; | ||
import { Hole } from './rabbit.js'; | ||
import render from './render-hole.js'; | ||
import render from './render/hole.js'; | ||
/** @type {(template: TemplateStringsArray, ...values:Value[]) => Hole} A tag to render HTML content. */ | ||
@@ -5,0 +5,0 @@ export const html: (template: TemplateStringsArray, ...values: Value[]) => Hole; |
@@ -7,3 +7,3 @@ export type Cache = import("./literals.js").Cache; | ||
import { Hole } from './rabbit.js'; | ||
import render from './render-keyed.js'; | ||
import render from './render/keyed.js'; | ||
import { html } from './index.js'; | ||
@@ -10,0 +10,0 @@ import { svg } from './index.js'; |
@@ -23,3 +23,3 @@ export function cel(c: PersistentFragment, e: Entry[], l: number): { | ||
export type Target = Node | Element | PersistentFragment; | ||
export type Value = null | undefined | string | number | boolean | Hole; | ||
export type Value = string | number | boolean | import("./rabbit.js").Hole | ((...args: unknown[]) => unknown); | ||
export type DOMValue = null | undefined | string | number | boolean | Node | Element | PersistentFragment; | ||
@@ -26,0 +26,0 @@ export type Entry = { |
export type DOMValue = import("./literals.js").DOMValue; | ||
export type Target = import("./literals.js").Target; | ||
import render from './render-node.js'; | ||
import render from './render/node.js'; | ||
/** @type {(template: TemplateStringsArray, ...values:DOMValue[]) => Target} A tag to render HTML content. */ | ||
@@ -5,0 +5,0 @@ export const html: (template: TemplateStringsArray, ...values: DOMValue[]) => Target; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
139843
0
0
0