@thi.ng/hiccup
Advanced tools
Comparing version 5.1.17 to 5.1.18
# Change Log | ||
- **Last updated**: 2024-03-01T15:22:50Z | ||
- **Last updated**: 2024-03-02T14:05:52Z | ||
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub) | ||
@@ -5,0 +5,0 @@ |
{ | ||
"name": "@thi.ng/hiccup", | ||
"version": "5.1.17", | ||
"version": "5.1.18", | ||
"description": "HTML/SVG/XML serialization of nested data structures, iterables & closures", | ||
@@ -41,7 +41,7 @@ "type": "module", | ||
"@thi.ng/errors": "^2.4.19", | ||
"@thi.ng/strings": "^3.7.19" | ||
"@thi.ng/strings": "^3.7.20" | ||
}, | ||
"devDependencies": { | ||
"@microsoft/api-extractor": "^7.40.1", | ||
"@thi.ng/atom": "^5.2.34", | ||
"@thi.ng/atom": "^5.2.35", | ||
"esbuild": "^0.20.0", | ||
@@ -131,3 +131,3 @@ "rimraf": "^5.0.5", | ||
}, | ||
"gitHead": "d660ae8fd1bf64d919b4334f19509f1f539d70f6\n" | ||
"gitHead": "df9e312af741d87e6b450afcfea6a6e381662b1e\n" | ||
} |
@@ -219,2 +219,4 @@ <!-- This file is generated - DO NOT EDIT! --> | ||
```ts | ||
import { serialize } from "@thi.ng/hiccup"; | ||
serialize( | ||
@@ -240,2 +242,4 @@ ["div#yo.hello.world", "Look ma, ", ["strong", "no magic!"]] | ||
```ts | ||
import { serialize } from "@thi.ng/hiccup"; | ||
serialize( | ||
@@ -293,2 +297,4 @@ ["div.notice", | ||
```ts | ||
import { serialize } from "@thi.ng/hiccup"; | ||
const thumb = (src) => ["img.thumb", { src, alt: "thumbnail" }]; | ||
@@ -321,2 +327,4 @@ | ||
```ts | ||
import { serialize } from "@thi.ng/hiccup"; | ||
const header = (ctx, body) => | ||
@@ -351,2 +359,4 @@ ["h1", ctx.theme.title, body]; | ||
```ts | ||
import { serialize } from "@thi.ng/hiccup"; | ||
// skip the context arg and require direct invocation | ||
@@ -362,2 +372,4 @@ const div = (attribs, body) => ["div", attribs, body]; | ||
```ts | ||
import { serialize } from "@thi.ng/hiccup"; | ||
// ignore the first arg (context) and support both direct & indirect calls | ||
@@ -576,3 +588,6 @@ const div = (_, attribs, body) => ["div", attribs, body]; | ||
```ts | ||
import { COMMENT } from "@thi.ng/hiccup"; | ||
[COMMENT, "Hello world"] | ||
// serializes to: | ||
// <!-- Hello world --> | ||
@@ -673,2 +688,4 @@ | ||
```ts | ||
import { serialize } from "@thi.ng/hiccup"; | ||
const foo = (ctx, a, b) => ["div#" + a, ctx.foo, b]; | ||
@@ -675,0 +692,0 @@ |
@@ -103,2 +103,4 @@ import type { FnU } from "@thi.ng/api"; | ||
* ```js | ||
* import { serialize } from "@thi.ng/hiccup"; | ||
* | ||
* const foo = (ctx, a, b) => ["div#" + a, ctx.foo, b]; | ||
@@ -126,3 +128,6 @@ * | ||
* ```js | ||
* import { COMMENT } from "@thi.ng/hiccup"; | ||
* | ||
* [COMMENT, "Hello world"] | ||
* // serializes to: | ||
* // <!-- Hello world --> | ||
@@ -129,0 +134,0 @@ * |
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
76044
558
715
Updated@thi.ng/strings@^3.7.20