Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yarn Dev/Make Fixes, Local ComfyCLI Fix, Todesktop security adjustments #139

Merged
merged 15 commits into from
Oct 31, 2024

Conversation

KenCorma
Copy link
Collaborator

No description provided.

@KenCorma KenCorma marked this pull request as ready for review October 31, 2024 21:36
Copy link

socket-security bot commented Oct 31, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@cspotcode/[email protected] filesystem +1 194 kB cspotcode
npm/@eslint/[email protected] filesystem, unsafe 0 659 kB eslintbot
npm/@eslint/[email protected] None 0 13.9 kB eslintbot
npm/@humanwhocodes/[email protected] None 0 58.4 kB nzakas
npm/@humanwhocodes/[email protected] unsafe 0 21.2 kB nzakas
npm/@humanwhocodes/[email protected] None 0 23.3 kB nzakas
npm/@tsconfig/[email protected] None 0 2.31 kB typescript-deploys
npm/@tsconfig/[email protected] None 0 2.5 kB typescript-deploys
npm/@tsconfig/[email protected] None 0 2.39 kB typescript-deploys
npm/@tsconfig/[email protected] None 0 2.45 kB typescript-deploys
npm/@types/[email protected] None 0 3 kB types
npm/@ungap/[email protected] None 0 26.2 kB webreflection
npm/[email protected] None 0 24.4 kB rreverser
npm/[email protected] None 0 52.3 kB marijn
npm/[email protected] None 0 12.9 kB qix
npm/[email protected] None 0 13.5 kB ljharb
npm/[email protected] None 0 26.3 kB ljharb
npm/[email protected] None 0 20.2 kB ljharb
npm/[email protected] None 0 20.4 kB ljharb
npm/[email protected] None 0 11.1 kB pvorb
npm/[email protected] filesystem, unsafe 0 6.25 kB pi0
npm/[email protected] None 0 12.3 kB ljharb
npm/[email protected] None 0 9.99 kB ljharb
npm/[email protected] None 0 12.2 kB ljharb
npm/[email protected] None 0 8.11 kB thlorenz
npm/[email protected] None 0 335 kB kpdecker
npm/[email protected] None 0 106 kB eslint
npm/[email protected] None 0 9.17 kB ljharb
npm/[email protected] None 0 13.9 kB ljharb
npm/[email protected] None 0 40.4 kB ljharb
npm/[email protected] None 0 54.6 kB benmosher, jfmengels, ljharb
npm/[email protected] None 0 1.04 MB michaelficarra
npm/[email protected] None 0 50.6 kB michaelficarra
npm/[email protected] None 0 9.44 kB hiddentao
npm/[email protected] filesystem 0 25.6 kB royriojas
npm/[email protected] None 0 40.3 kB webreflection
npm/[email protected] None 0 13 kB ljharb
npm/[email protected] None 0 25.5 kB ljharb
npm/[email protected] None 0 16.7 kB ljharb
npm/[email protected] None 0 14.3 kB ljharb
npm/[email protected] None 0 12.8 kB ljharb
npm/[email protected] Transitive: filesystem, unsafe +1 9.51 kB sindresorhus
npm/[email protected] None 0 20.5 kB ljharb
npm/[email protected] None 0 17.6 kB ljharb
npm/[email protected] None 0 14.8 kB ljharb
npm/[email protected] None 0 22.1 kB ljharb
npm/[email protected] None 0 15.6 kB ljharb
npm/[email protected] None 0 20.8 kB ljharb
npm/[email protected] None 0 27.1 kB ljharb
npm/[email protected] None 0 22.2 kB ljharb
npm/[email protected] None 0 30.1 kB ljharb
npm/[email protected] None 0 19.1 kB ljharb
npm/[email protected] None 0 22 kB ljharb
npm/[email protected] None 0 23.3 kB ljharb
npm/[email protected] None 0 12.1 kB ljharb
npm/[email protected] None 0 14.2 kB samn
npm/[email protected] None 0 24.9 kB gkz
npm/[email protected] None 0 12.4 kB julien-f
npm/[email protected] None 0 24.4 kB ai
npm/[email protected] None 0 72.7 kB ljharb
npm/[email protected] None 0 31.5 kB ljharb
npm/[email protected] None 0 50.2 kB gkz
npm/[email protected] None 0 3.92 kB sindresorhus
npm/[email protected] None 0 10.9 kB ljharb
npm/[email protected] None 0 36.7 kB gkz
npm/[email protected] None 0 43.7 kB ljharb
npm/[email protected] None 0 10.2 kB ljharb
npm/[email protected] None 0 16.7 kB ljharb
npm/[email protected] None 0 140 kB 7rulnik
npm/[email protected] None 0 33.5 kB ljharb
npm/[email protected] None 0 22.1 kB ljharb
npm/[email protected] None 0 22.9 kB ljharb
npm/[email protected] None 0 11 kB substack
npm/[email protected] None 0 13.1 kB ljharb
npm/[email protected] None 0 20 kB ljharb
npm/[email protected] None 0 20.3 kB ljharb
npm/[email protected] None 0 23.3 kB ljharb
npm/[email protected] None 0 14.9 kB ljharb
npm/[email protected] environment, filesystem, unsafe 0 18.2 kB cspotcode
npm/[email protected] None 0 15 kB ljharb
npm/[email protected] None 0 11.8 kB jonschlinkert
npm/[email protected] None 0 6.31 kB sindresorhus

🚮 Removed packages: npm/[email protected], npm/@develar/[email protected], npm/@electron/[email protected], npm/@electron/[email protected], npm/@electron/[email protected], npm/@electron/[email protected], npm/@electron/[email protected], npm/@js-sdsl/[email protected], npm/@malept/[email protected], npm/@malept/[email protected], npm/@npmcli/[email protected], npm/@protobufjs/[email protected], npm/@protobufjs/[email protected], npm/@protobufjs/[email protected], npm/@protobufjs/[email protected], npm/@protobufjs/[email protected], npm/@protobufjs/[email protected], npm/@protobufjs/[email protected], npm/@protobufjs/[email protected], npm/@protobufjs/[email protected], npm/@protobufjs/[email protected], npm/@sindresorhus/[email protected], npm/@szmarczak/[email protected], npm/@tootallnate/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@typescript-eslint/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

index.html Outdated
@@ -2,6 +2,7 @@
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="Content-Security-Policy" content="script-src 'self'" />
Copy link
Member

Choose a reason for hiding this comment

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

What's this for?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

scripts/todesktop/afterPack.js Outdated Show resolved Hide resolved
src/main.ts Outdated
process.env.PUBLISH == true &&
todesktop.init({
customLogger: log,
updateReadyAction: { showInstallAndRestartPrompt: 'always', showNotification: 'always' },
Copy link
Member

Choose a reason for hiding this comment

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

autoUpdater was removed from the previous diff.

Copy link
Member

Choose a reason for hiding this comment

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

It needs to inherit from comfySettings.autoUpdate

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

OK I see, fyi if your on Mac if your not code signed it won't auto-update, this is at least on the default app not sure if Mac for Todesktop uses a diff process
https://www.electron.build/auto-update.html

src/main.ts Outdated
log.info('Opened Vite Dev Server');
mainWindow.webContents.openDevTools();
} else {
mainWindow.loadFile(path.join(__dirname, `../renderer/index.html`));
}

session.defaultSession.setPermissionRequestHandler((webContents, permission, callback) => {
Copy link
Member

Choose a reason for hiding this comment

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

Why are we doing this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

src/main.ts Outdated
Comment on lines 392 to 395
mainWindow.webContents.on('will-navigate', (event, newURL) => {
const approvedHosts: Array<string> = [
`http://${host}:${port}`,
process.env.VITE_DEV_SERVER_URL as string,
Copy link
Member

Choose a reason for hiding this comment

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

What do we need this for?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@KenCorma KenCorma merged commit 821f894 into main Oct 31, 2024
6 checks passed
@KenCorma KenCorma deleted the dev-kendal-fixes branch October 31, 2024 22:58
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.

2 participants