@thi.ng/hiccup 4.2.4 → 4.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/README.md +1 -1
- package/attribs.d.ts +5 -5
- package/attribs.js +5 -5
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
package/attribs.d.ts
CHANGED
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
* // "baz"
|
|
21
21
|
* ```
|
|
22
22
|
*
|
|
23
|
-
* @param existing
|
|
24
|
-
* @param val
|
|
23
|
+
* @param existing -
|
|
24
|
+
* @param val -
|
|
25
25
|
*/
|
|
26
26
|
export declare const mergeClasses: (existing: string, val: any) => string;
|
|
27
27
|
/**
|
|
28
28
|
* Takes an attrib object and optional element ID and CSS class names from Emmet-style
|
|
29
29
|
* hiccup tag, then transforms and merges definitions, returns attribs.
|
|
30
30
|
*
|
|
31
|
-
* @param attribs
|
|
32
|
-
* @param id
|
|
33
|
-
* @param classes
|
|
31
|
+
* @param attribs -
|
|
32
|
+
* @param id -
|
|
33
|
+
* @param classes -
|
|
34
34
|
*/
|
|
35
35
|
export declare const mergeEmmetAttribs: (attribs: any, id?: string | undefined, classes?: string | undefined) => any;
|
|
36
36
|
//# sourceMappingURL=attribs.d.ts.map
|
package/attribs.js
CHANGED
|
@@ -22,8 +22,8 @@ import { isString } from "@thi.ng/checks/is-string";
|
|
|
22
22
|
* // "baz"
|
|
23
23
|
* ```
|
|
24
24
|
*
|
|
25
|
-
* @param existing
|
|
26
|
-
* @param val
|
|
25
|
+
* @param existing -
|
|
26
|
+
* @param val -
|
|
27
27
|
*/
|
|
28
28
|
export const mergeClasses = (existing, val) => {
|
|
29
29
|
val = deref(val);
|
|
@@ -41,9 +41,9 @@ export const mergeClasses = (existing, val) => {
|
|
|
41
41
|
* Takes an attrib object and optional element ID and CSS class names from Emmet-style
|
|
42
42
|
* hiccup tag, then transforms and merges definitions, returns attribs.
|
|
43
43
|
*
|
|
44
|
-
* @param attribs
|
|
45
|
-
* @param id
|
|
46
|
-
* @param classes
|
|
44
|
+
* @param attribs -
|
|
45
|
+
* @param id -
|
|
46
|
+
* @param classes -
|
|
47
47
|
*/
|
|
48
48
|
export const mergeEmmetAttribs = (attribs, id, classes) => {
|
|
49
49
|
id && (attribs.id = id);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/hiccup",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.5",
|
|
4
4
|
"description": "HTML/SVG/XML serialization of nested data structures, iterables & closures",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -34,19 +34,19 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.3.
|
|
38
|
-
"@thi.ng/checks": "^3.1.
|
|
39
|
-
"@thi.ng/errors": "^2.1.
|
|
40
|
-
"@thi.ng/strings": "^3.3.
|
|
37
|
+
"@thi.ng/api": "^8.3.4",
|
|
38
|
+
"@thi.ng/checks": "^3.1.4",
|
|
39
|
+
"@thi.ng/errors": "^2.1.4",
|
|
40
|
+
"@thi.ng/strings": "^3.3.2"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@microsoft/api-extractor": "^7.19.
|
|
44
|
-
"@thi.ng/atom": "^5.1.
|
|
45
|
-
"@thi.ng/testament": "^0.2.
|
|
43
|
+
"@microsoft/api-extractor": "^7.19.4",
|
|
44
|
+
"@thi.ng/atom": "^5.1.4",
|
|
45
|
+
"@thi.ng/testament": "^0.2.4",
|
|
46
46
|
"rimraf": "^3.0.2",
|
|
47
47
|
"tools": "^0.0.1",
|
|
48
|
-
"typedoc": "^0.22.
|
|
49
|
-
"typescript": "^4.
|
|
48
|
+
"typedoc": "^0.22.13",
|
|
49
|
+
"typescript": "^4.6.2"
|
|
50
50
|
},
|
|
51
51
|
"keywords": [
|
|
52
52
|
"array",
|
|
@@ -120,5 +120,5 @@
|
|
|
120
120
|
],
|
|
121
121
|
"year": 2016
|
|
122
122
|
},
|
|
123
|
-
"gitHead": "
|
|
123
|
+
"gitHead": "0fc692a3225c068aacafdc4cb6140cf603c67ad8\n"
|
|
124
124
|
}
|