Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@thi.ng/hiccup

Package Overview
Dependencies
Maintainers
0
Versions
260
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/hiccup - npm Package Compare versions

Comparing version 5.2.10 to 5.2.11

2

attribs.d.ts

@@ -39,3 +39,3 @@ /**

*/
export declare const mergeClasses: (existing: string, val: any) => string;
export declare const mergeClasses: (existing: string | SVGAnimatedString, val: any) => string;
/**

@@ -42,0 +42,0 @@ * Takes an attrib object and optional element ID and CSS class names from Emmet-style

@@ -6,6 +6,7 @@ import { deref } from "@thi.ng/api/deref";

val = deref(val);
if (val == null) return existing;
const $existing = existing.baseVal != void 0 ? existing.baseVal : existing;
if (val == null) return $existing;
if (isArray(val)) val = val.join(" ");
if (isString(val)) return existing ? existing + " " + val : val;
const classes = new Set(existing ? existing.split(" ") : void 0);
if (isString(val)) return $existing ? $existing + " " + val : val;
const classes = new Set($existing ? $existing.split(" ") : void 0);
for (let id in val) {

@@ -12,0 +13,0 @@ deref(val[id]) ? classes.add(id) : classes.delete(id);

# Change Log
- **Last updated**: 2024-08-18T14:11:34Z
- **Last updated**: 2024-08-23T16:18:16Z
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)

@@ -12,2 +12,11 @@

### [5.2.11](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@5.2.11) (2024-08-23)
#### 🩹 Bug fixes
- update mergeClasses() arg types ([eaca539](https://github.com/thi-ng/umbrella/commit/eaca539))
- add support for SVGAnimatedString as `existing` arg
to enable full support for SVG elements
- update SVGAnimatedString handling in `mergeClasses()` ([540cc70](https://github.com/thi-ng/umbrella/commit/540cc70))
### [5.2.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@5.2.2) (2024-06-21)

@@ -14,0 +23,0 @@

{
"name": "@thi.ng/hiccup",
"version": "5.2.10",
"version": "5.2.11",
"description": "HTML/SVG/XML serialization of nested data structures, iterables & closures",

@@ -131,3 +131,3 @@ "type": "module",

},
"gitHead": "f6e26ea1142525171de5d36b9c3119f2782bb437\n"
"gitHead": "0d01681c64f5459647ab06f197f70dc90fb64cc9\n"
}
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