dara-core 1.18.4__py3-none-any.whl → 1.19.0__py3-none-any.whl
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.
- dara/core/internal/websocket.py +2 -0
- dara/core/js_tooling/js_utils.py +3 -2
- dara/core/js_tooling/templates/vite.config.template.ts +12 -3
- dara/core/umd/dara.core.umd.js +72606 -68590
- {dara_core-1.18.4.dist-info → dara_core-1.19.0.dist-info}/METADATA +10 -10
- {dara_core-1.18.4.dist-info → dara_core-1.19.0.dist-info}/RECORD +9 -9
- {dara_core-1.18.4.dist-info → dara_core-1.19.0.dist-info}/LICENSE +0 -0
- {dara_core-1.18.4.dist-info → dara_core-1.19.0.dist-info}/WHEEL +0 -0
- {dara_core-1.18.4.dist-info → dara_core-1.19.0.dist-info}/entry_points.txt +0 -0
dara/core/internal/websocket.py
CHANGED
|
@@ -496,6 +496,8 @@ async def ws_handler(websocket: WebSocket, token: Optional[str] = Query(default=
|
|
|
496
496
|
SESSION_ID.set(token_data.session_id)
|
|
497
497
|
ID_TOKEN.set(token_data.id_token)
|
|
498
498
|
|
|
499
|
+
WS_CHANNEL.set(channel)
|
|
500
|
+
|
|
499
501
|
# Set initial Auth context vars for the WS connection
|
|
500
502
|
update_context(token_content)
|
|
501
503
|
|
dara/core/js_tooling/js_utils.py
CHANGED
|
@@ -313,8 +313,9 @@ class BuildCache(BaseModel):
|
|
|
313
313
|
# Append core deps required for building/dev mode
|
|
314
314
|
pkg_json['dependencies'] = {
|
|
315
315
|
**deps,
|
|
316
|
-
'@vitejs/plugin-react': '
|
|
317
|
-
'vite': '
|
|
316
|
+
'@vitejs/plugin-react': '4.6.0',
|
|
317
|
+
'vite': '7.0.4',
|
|
318
|
+
'vite-plugin-node-polyfills': '0.24.0',
|
|
318
319
|
}
|
|
319
320
|
|
|
320
321
|
return pkg_json
|
|
@@ -1,18 +1,27 @@
|
|
|
1
1
|
import react from '@vitejs/plugin-react';
|
|
2
2
|
import { defineConfig } from 'vite';
|
|
3
|
+
import { nodePolyfills } from 'vite-plugin-node-polyfills';
|
|
3
4
|
|
|
4
5
|
export default defineConfig({
|
|
5
6
|
base: '',
|
|
6
7
|
plugins: [
|
|
7
8
|
react({
|
|
8
9
|
jsxRuntime: 'classic',
|
|
9
|
-
})
|
|
10
|
+
}),
|
|
11
|
+
// Some package we're pulling requires node polyfills for stream
|
|
12
|
+
nodePolyfills({
|
|
13
|
+
globals: {
|
|
14
|
+
process: true,
|
|
15
|
+
Buffer: true,
|
|
16
|
+
global: true,
|
|
17
|
+
},
|
|
18
|
+
}),
|
|
10
19
|
],
|
|
11
20
|
publicDir: false,
|
|
12
21
|
build: {
|
|
13
22
|
outDir: '$$output$$',
|
|
14
23
|
assetsDir: '',
|
|
15
|
-
manifest:
|
|
24
|
+
manifest: 'manifest.json',
|
|
16
25
|
rollupOptions: {
|
|
17
26
|
input: './_entry.tsx',
|
|
18
27
|
},
|
|
@@ -35,5 +44,5 @@ export default defineConfig({
|
|
|
35
44
|
},
|
|
36
45
|
worker: {
|
|
37
46
|
format: 'es',
|
|
38
|
-
}
|
|
47
|
+
},
|
|
39
48
|
});
|