ctx-core 5.35.0 → 5.35.1
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/dom/index.browser.d.ts +1 -0
- package/dom/index.browser.js +1 -0
- package/dom/index.d.ts +1 -0
- package/dom/index.js +1 -0
- package/dom/index.test.ts +27 -0
- package/package.json +2 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './index.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../all/window__ctx__set/index.browser.js'
|
package/dom/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../all/window__ctx__set/index.js'
|
package/dom/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../all/window__ctx__set/index.js'
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { build } from 'esbuild'
|
|
2
|
+
import { readFile } from 'node:fs/promises'
|
|
3
|
+
import { dirname, join } from 'node:path'
|
|
4
|
+
import { test } from 'uvu'
|
|
5
|
+
import { equal } from 'uvu/assert'
|
|
6
|
+
test('browser|loads matching index.browser.js files', async ()=>{
|
|
7
|
+
const index_js_source = await readFile(
|
|
8
|
+
join(dirname(new URL(import.meta.url).pathname), 'index.js')
|
|
9
|
+
).then(buf=>'' + buf)
|
|
10
|
+
const index_browser_js_source = await readFile(
|
|
11
|
+
join(dirname(new URL(import.meta.url).pathname), 'index.browser.js')
|
|
12
|
+
).then(buf=>'' + buf)
|
|
13
|
+
equal(
|
|
14
|
+
index_browser_js_source,
|
|
15
|
+
index_js_source.replaceAll('index.js', 'index.browser.js'))
|
|
16
|
+
})
|
|
17
|
+
test('browser|build', async ()=>{
|
|
18
|
+
await build({
|
|
19
|
+
entryPoints: [join(dirname(new URL(import.meta.url).pathname), 'index.browser.js')],
|
|
20
|
+
platform: 'browser',
|
|
21
|
+
bundle: true,
|
|
22
|
+
format: 'esm',
|
|
23
|
+
write: false,
|
|
24
|
+
})
|
|
25
|
+
})
|
|
26
|
+
test.run()
|
|
27
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ctx-core",
|
|
3
|
-
"version": "5.35.
|
|
3
|
+
"version": "5.35.1",
|
|
4
4
|
"description": "ctx-core core library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ctx-core",
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"date",
|
|
44
44
|
"debounce",
|
|
45
45
|
"deep_equal",
|
|
46
|
+
"dom",
|
|
46
47
|
"env",
|
|
47
48
|
"error",
|
|
48
49
|
"event_log",
|