ctx-core 5.35.1 → 5.36.0

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.
@@ -0,0 +1 @@
1
+ export * from './index.js'
@@ -0,0 +1 @@
1
+ export * from './index.js'
@@ -0,0 +1 @@
1
+ export declare function html_attr_val_(...raw_val_a:unknown[]):string
@@ -0,0 +1,14 @@
1
+ export function html_attr_val_(...raw_val_a) {
2
+ let html_attr_val = ''
3
+ for (let raw_val of raw_val_a.flat(Infinity)) {
4
+ html_attr_val +=
5
+ raw_val == null
6
+ ? ''
7
+ : (
8
+ html_attr_val
9
+ ? ' '
10
+ : ''
11
+ ) + raw_val
12
+ }
13
+ return html_attr_val
14
+ }
@@ -0,0 +1,15 @@
1
+ import { test } from 'uvu'
2
+ import { equal } from 'uvu/assert'
3
+ import { html_attr_val_ as browser_html_attr_val_ } from './index.browser.js'
4
+ import { html_attr_val_ } from './index.js'
5
+ test('html_attr_val_', ()=>{
6
+ equal(
7
+ html_attr_val_('foo', null, ['bar', undefined, 'baz']),
8
+ 'foo bar baz')
9
+ })
10
+ test('html_attr_val_|browser', ()=>{
11
+ equal(
12
+ browser_html_attr_val_('foo', null, ['bar', undefined, 'baz']),
13
+ 'foo bar baz')
14
+ })
15
+ test.run()
@@ -186,6 +186,7 @@ export * from './hour_seconds/index.browser.js'
186
186
  export * from './hour_seconds/index.browser.js'
187
187
  export * from './html/index.browser.js'
188
188
  export * from './html_attr/index.browser.js'
189
+ export * from './html_attr_val/index.browser.js'
189
190
  export * from './html_attrs/index.browser.js'
190
191
  export * from './html_class/index.browser.js'
191
192
  export * from './html_dataset__data_attrs/index.browser.js'
package/all/index.d.ts CHANGED
@@ -186,6 +186,7 @@ export * from './hour_seconds/index.js'
186
186
  export * from './hour_seconds/index.js'
187
187
  export * from './html/index.js'
188
188
  export * from './html_attr/index.js'
189
+ export * from './html_attr_val/index.js'
189
190
  export * from './html_attrs/index.js'
190
191
  export * from './html_class/index.js'
191
192
  export * from './html_dataset__data_attrs/index.js'
package/all/index.js CHANGED
@@ -186,6 +186,7 @@ export * from './hour_seconds/index.js'
186
186
  export * from './hour_seconds/index.js'
187
187
  export * from './html/index.js'
188
188
  export * from './html_attr/index.js'
189
+ export * from './html_attr_val/index.js'
189
190
  export * from './html_attrs/index.js'
190
191
  export * from './html_class/index.js'
191
192
  export * from './html_dataset__data_attrs/index.js'
@@ -1,5 +1,6 @@
1
1
  import { html_ } from './/index.browser.js'
2
2
  import { html_attr_, raw__html_attr_ } from '../all/html_attr/index.browser.js'
3
+ import { html_attr_val_ } from '../all/html_attr_val/index.browser.js'
3
4
  import { html_attrs_ } from '../all/html_attrs/index.browser.js'
4
5
  import { html_class_, html_class__ } from '../all/html_class/index.browser.js'
5
6
  import { html_dataset__data_attrs_ } from '../all/html_dataset__data_attrs/index.browser.js'
@@ -9,6 +10,7 @@ import { html_styles_o_ } from '../all/html_styles_o/index.browser.js'
9
10
  import { js_html_ } from '../all/js_html/index.browser.js'
10
11
  import { links_html_ } from '../all/links_html/index.browser.js'
11
12
  export * from '../all/html_attr/index.browser.js'
13
+ export * from '../all/html_attr_val/index.browser.js'
12
14
  export * from '../all/html_attrs/index.browser.js'
13
15
  export * from '../all/html_class/index.browser.js'
14
16
  export * from '../all/html_dataset__data_attrs/index.browser.js'
@@ -20,6 +22,7 @@ export * from '../all/html_style__assign/index.browser.js'
20
22
  export * from '../all/html_styles_o/index.browser.js'
21
23
  export { html_ as _html, html_ as html__escape }
22
24
  export { html_attr_ as attr_ }
25
+ export { html_attr_val_ as attr_val_ }
23
26
  export { raw__html_attr_ as raw__attr_ }
24
27
  export { html_attrs_ as attrs_, html_attrs_ as _attrs }
25
28
  export { html_class_ as class_, html_class_ as _class, }
package/html/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { html_ } from './/index.js'
2
2
  import { html_attr_, raw__html_attr_ } from '../all/html_attr/index.js'
3
+ import { html_attr_val_ } from '../all/html_attr_val/index.js'
3
4
  import { html_attrs_ } from '../all/html_attrs/index.js'
4
5
  import { html_class_, html_class__ } from '../all/html_class/index.js'
5
6
  import { html_dataset__data_attrs_ } from '../all/html_dataset__data_attrs/index.js'
@@ -9,6 +10,7 @@ import { html_styles_o_ } from '../all/html_styles_o/index.js'
9
10
  import { js_html_ } from '../all/js_html/index.js'
10
11
  import { links_html_ } from '../all/links_html/index.js'
11
12
  export * from '../all/html_attr/index.js'
13
+ export * from '../all/html_attr_val/index.js'
12
14
  export * from '../all/html_attrs/index.js'
13
15
  export * from '../all/html_class/index.js'
14
16
  export * from '../all/html_dataset__data_attrs/index.js'
@@ -20,6 +22,7 @@ export * from '../all/html_style__assign/index.js'
20
22
  export * from '../all/html_styles_o/index.js'
21
23
  export { html_ as _html, html_ as html__escape }
22
24
  export { html_attr_ as attr_ }
25
+ export { html_attr_val_ as attr_val_ }
23
26
  export { raw__html_attr_ as raw__attr_ }
24
27
  export { html_attrs_ as attrs_, html_attrs_ as _attrs }
25
28
  export { html_class_ as class_, html_class_ as _class, }
package/html/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { html_ } from './/index.js'
2
2
  import { html_attr_, raw__html_attr_ } from '../all/html_attr/index.js'
3
+ import { html_attr_val_ } from '../all/html_attr_val/index.js'
3
4
  import { html_attrs_ } from '../all/html_attrs/index.js'
4
5
  import { html_class_, html_class__ } from '../all/html_class/index.js'
5
6
  import { html_dataset__data_attrs_ } from '../all/html_dataset__data_attrs/index.js'
@@ -9,6 +10,7 @@ import { html_styles_o_ } from '../all/html_styles_o/index.js'
9
10
  import { js_html_ } from '../all/js_html/index.js'
10
11
  import { links_html_ } from '../all/links_html/index.js'
11
12
  export * from '../all/html_attr/index.js'
13
+ export * from '../all/html_attr_val/index.js'
12
14
  export * from '../all/html_attrs/index.js'
13
15
  export * from '../all/html_class/index.js'
14
16
  export * from '../all/html_dataset__data_attrs/index.js'
@@ -20,6 +22,7 @@ export * from '../all/html_style__assign/index.js'
20
22
  export * from '../all/html_styles_o/index.js'
21
23
  export { html_ as _html, html_ as html__escape }
22
24
  export { html_attr_ as attr_ }
25
+ export { html_attr_val_ as attr_val_ }
23
26
  export { raw__html_attr_ as raw__attr_ }
24
27
  export { html_attrs_ as attrs_, html_attrs_ as _attrs }
25
28
  export { html_class_ as class_, html_class_ as _class, }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ctx-core",
3
- "version": "5.35.1",
3
+ "version": "5.36.0",
4
4
  "description": "ctx-core core library",
5
5
  "keywords": [
6
6
  "ctx-core",
@@ -296,7 +296,7 @@
296
296
  "@ctx-core/preprocess": "^0.1.1",
297
297
  "@size-limit/preset-small-lib": "^11.0.2",
298
298
  "@types/jsdom": "^21.1.6",
299
- "@types/node": "^20.11.10",
299
+ "@types/node": "^20.11.13",
300
300
  "@types/sinon": "^17.0.3",
301
301
  "c8": "^9.1.0",
302
302
  "check-dts": "^0.7.2",