Skip to content

Erohinaelena/update dependencies#128

Merged
erohinaelena merged 2 commits intomainfrom
erohinaelena/update-dependencies
Apr 1, 2026
Merged

Erohinaelena/update dependencies#128
erohinaelena merged 2 commits intomainfrom
erohinaelena/update-dependencies

Conversation

@erohinaelena
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates dependencies and migrates build tools to use ts-builder across the model and ui packages. Feedback highlights a security regression in the ui/index.html file where the addition of 'unsafe-eval' to the Content Security Policy increases vulnerability to XSS attacks. Furthermore, the removal of vite and its associated plugins from devDependencies in both the model and ui packages may lead to build failures or IDE resolution issues if the existing configuration files still depend on them.

<head>
<meta charset="UTF-8" />
<meta http-equiv="Content-Security-Policy" content="script-src 'self' blob: data:">
<meta http-equiv="Content-Security-Policy" content="script-src 'self' blob: data: 'unsafe-eval'">
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

security-high high

Adding 'unsafe-eval' to the Content-Security-Policy is a significant security regression. It allows the execution of arbitrary strings as code, which is a primary vector for Cross-Site Scripting (XSS) attacks. If this was added to resolve a build or runtime issue (e.g., with a Vue compiler or a specific dependency), please investigate if there is a more secure alternative, such as using a runtime-only build or adjusting the build tool configuration to avoid generating code that requires eval().

Comment on lines +18 to 22
"@milaboratories/ts-builder": "catalog:",
"@milaboratories/ts-configs": "catalog:",
"@platforma-sdk/block-tools": "catalog:",
"@milaboratories/graph-maker": "catalog:",
"typescript": "catalog:",
"vite": "catalog:",
"tsup": "catalog:"
},
"tsup": {
"entry": [
"src/index.ts"
],
"splitting": false,
"treeshake": true,
"clean": true,
"format": [
"cjs",
"esm"
],
"dts": true,
"minify": false,
"sourcemap": true
"typescript": "catalog:"
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The vite package was removed from devDependencies, but model/vite.config.mts still exists and imports from it. This can lead to broken IDE integration and potential build failures if the environment expects vite to be a direct dependency of the package. If the configuration file is still in use, vite should remain in devDependencies.

Comment on lines +21 to 25
"@milaboratories/ts-builder": "catalog:",
"@milaboratories/ts-configs": "catalog:",
"@vitejs/plugin-vue": "catalog:",
"sass": "catalog:",
"typescript": "catalog:",
"vite": "catalog:",
"vitest": "catalog:",
"vue-tsc": "catalog:"
"typescript": "catalog:"
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Several devDependencies such as vite, @milaboratories/build-configs, and @vitejs/plugin-vue were removed, yet ui/vite.config.ts still imports from them. This will likely cause issues with TypeScript resolution and IDE features (like autocompletion and error checking). It is recommended to keep these as explicit devDependencies if the configuration file depends on them.

@erohinaelena erohinaelena added this pull request to the merge queue Apr 1, 2026
Merged via the queue into main with commit 27b0f01 Apr 1, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant