Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
260 lines (260 loc) · 11.3 KB
/
Copy pathpackage.json
File metadata and controls
260 lines (260 loc) · 11.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
{
"name": "timer-widget",
"version": "2.13.0",
"description": "Прозрачный таймер-виджет для рабочего стола",
"main": "electron-main.js",
"scripts": {
"start": "node scripts/run-electron.js",
"dev": "node scripts/run-electron.js --dev",
"screenshot": "node scripts/run-electron.js --screenshot",
"test": "node --disable-warning=MODULE_TYPELESS_PACKAGE_JSON --test",
"coverage": "npx --yes c8 --reporter=text --reporter=html node --disable-warning=MODULE_TYPELESS_PACKAGE_JSON --test",
"lint": "npx eslint .",
"typecheck": "node scripts/typecheck.js",
"ci": "npm run lint && npm run typecheck && npm test",
"test:e2e": "npx playwright test",
"visual:audit": "node scripts/visual-audit.js",
"visual:baseline": "node scripts/visual-baseline.js",
"visual:check": "node scripts/run-electron.js --screenshot --visual-check",
"sbom": "node scripts/sbom-fresh-lockfile.js && npx --yes @cyclonedx/cyclonedx-npm --output-file sbom.json --output-format json --spec-version 1.5 && node scripts/sbom-normalize.js",
"notice": "node --disable-warning=MODULE_TYPELESS_PACKAGE_JSON scripts/generate-notice.js",
"csp:check": "node scripts/csp-guard.js",
"preload:channels": "node scripts/preload-channels.js",
"build": "npx --yes electron-builder",
"build:win": "npx --yes electron-builder --win",
"build:mac": "npx --yes electron-builder --mac",
"build:all": "npx --yes electron-builder --win --mac",
"pack": "npx --yes electron-builder --dir",
"soak": "node scripts/soak.js"
},
"keywords": [
"timer",
"widget",
"overlay",
"transparent"
],
"author": {
"name": "Jkaotlic",
"email": "jkaotlic@users.noreply.github.com"
},
"license": "MIT",
"comment:overrides": "brace-expansion <=5.0.8 has a high-severity DoS advisory (GHSA-rgw5-rvv9-x895) that bypasses the earlier CVE-2026-14257 mitigation; it supersedes the two ReDoS/OOM advisories this override was originally written for (GHSA-3jxr-9vmj-r5cp, GHSA-mh99-v99m-4gvg). 5.0.9 is the patched release. The override is still load-bearing and must NOT be dropped as 'probably fixed upstream': the consumers in this tree ask for ^1.1.7 / ^2.0.1 / ^2.0.2 / ^5.0.5 (minimatch under glob, asar, universal, dir-compare, filelist), so without the pin npm resolves vulnerable 1.x and 2.x copies alongside the patched one. It reaches us purely through the electron-builder dev toolchain, never through app runtime code — 'npm audit --omit=dev' is clean either way. 5.0.9 ships dual CJS+ESM exports, so the CJS consumers keep working. @xmldom/xmldom ^0.8.15 (8 advisories incl. GHSA-6gmq-8vp8-gcm6, under plist), fast-uri ^3.1.8 (SSRF/host confusion GHSA-f65p-4m7j-42xc and 3 more, under ajv) and js-yaml ^4.3.2 (GHSA-2883-xcg3-v3hh) are pinned the same way: all three reach us only through the electron-builder toolchain, but an acceptance scanner reads package-lock/SBOM and flags them regardless. Each pin stays inside the major the consumer asks for — plist 3.x breaks on xmldom 0.9 (mimeType became mandatory).",
"comment:electronFuses": "build.electronFuses (SEC-03): in the packaged binary Electron cannot run as plain Node (runAsNode), ignores NODE_OPTIONS and --inspect, validates app.asar against the hash embedded at build time and loads the app only from it. grantFileProtocolExtraPrivileges stays TRUE, on purpose, while the migration lives — decided 2026-09-26: the migration is kept for at least two minor releases after the one that ships it and removed in the third (ships in 2.11 → kept in 2.12 and 2.13, removed in 2.14): since SEC-12 the windows are served from app://timer-widget (protocol.handle) and no longer need it, but the one-time settings migration (main-storage-migration.js) reads the OLD localStorage of the file:// origin, and with that fuse off the file:// origin is opaque — localStorage throws 'Access is denied for this document' (measured 2026-09-25). The fuse flips to false in the same commit that removes the migration; tests/release-gates.test.js holds that pair as a ratchet. resetAdHocDarwinSignature: the mac build is unsigned (identity: null), flipping fuses breaks Electron's stock ad-hoc signature, and arm64 macOS kills unsigned binaries. Tests: tests/release-gates.test.js (config) and scripts/verify-packed.js (reads the bits back from the packed binary in CI).",
"comment:debDepends": "build.deb.depends = electron-builder's default list (it is REPLACED, not extended, by this key) plus libc6, libgbm1 and libasound2. libc6: every ELF in /opt/TimerWidget links glibc, and lintian fails the package without it (E: missing-dependency-on-libc, CI 28.09.2026). Without them `apt install ./TimerWidget-*.deb` succeeds on a clean system and the app then dies at start: 'libasound.so.2: cannot open shared object file' (ubuntu:24.04) and 'libgbm.so.1' (ubuntu:22.04, debian:12) — found 25.09.2026 by the CI job deb-launch-container. Desktop images usually have both, which is why it went unnoticed. ALSA is 'libasound2t64 | libasound2', t64 FIRST: on Ubuntu 24.04 the bare name libasound2 is only virtual, and apt satisfied it with liboss4-salsa-asound2 — an OSS shim without real ALSA symbols ('undefined symbol: snd_device_name_get_hint'); 22.04 and Debian 12 have no t64 package and take the real libasound2.",
"overrides": {
"brace-expansion": "^5.0.12",
"@xmldom/xmldom": "^0.8.15",
"fast-uri": "^3.1.9",
"js-yaml": "^4.3.2"
},
"devDependencies": {
"@electron/fuses": "^1.8.0",
"@eslint/js": "^10.0.1",
"@playwright/test": "^1.64.1",
"@types/node": "24.13.3",
"electron": "^44.10.1",
"electron-builder": "^26.18.0",
"eslint": "^10.14.0",
"eslint-plugin-html": "^8.2.1",
"fast-check": "^4.10.2",
"globals": "^17.14.0",
"typescript": "6.0.3"
},
"build": {
"appId": "com.timer.widget",
"productName": "TimerWidget",
"afterPack": "build/after-pack.js",
"electronFuses": {
"runAsNode": false,
"enableCookieEncryption": true,
"enableNodeOptionsEnvironmentVariable": false,
"enableNodeCliInspectArguments": false,
"enableEmbeddedAsarIntegrityValidation": true,
"onlyLoadAppFromAsar": true,
"loadBrowserProcessSpecificV8Snapshot": false,
"grantFileProtocolExtraPrivileges": true,
"resetAdHocDarwinSignature": true
},
"directories": {
"output": "dist",
"buildResources": "build"
},
"win": {
"target": [
"nsis",
"portable"
],
"signAndEditExecutable": false,
"icon": "build/icon.png"
},
"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": true,
"artifactName": "${productName}-Setup-${version}.${ext}",
"include": "build/nsis-include.nsh",
"deleteAppDataOnUninstall": false
},
"portable": {
"artifactName": "${productName}-Portable.exe"
},
"mac": {
"target": [
"dmg",
"zip"
],
"category": "public.app-category.utilities",
"artifactName": "${productName}-${version}-${arch}.${ext}",
"icon": "build/icon.png",
"hardenedRuntime": false,
"gatekeeperAssess": false,
"identity": null
},
"dmg": {
"title": "${productName}"
},
"linux": {
"target": [
"deb"
],
"category": "Utility",
"synopsis": "Прозрачный таймер-виджет для рабочего стола",
"description": "Таймер для выступлений и мероприятий: мини-виджет поверх окон, часы и полноэкранный дисплей для зала. Работает автономно, без сети.",
"artifactName": "${productName}-${version}-${arch}.${ext}",
"icon": "build/icon.png"
},
"deb": {
"packageCategory": "utils",
"fpm": [
"--deb-no-default-config-files",
"--description=Прозрачный таймер-виджет для рабочего стола\nTimerWidget — таймер для выступлений и мероприятий:\nмини-виджет поверх окон, часы и полноэкранный дисплей\nдля зала. Работает автономно, без сети.",
"build/copyright=/usr/share/doc/timer-widget/copyright",
"build/lintian-overrides=/usr/share/lintian/overrides/timer-widget"
],
"depends": [
"libc6",
"libgtk-3-0",
"libnotify4",
"libnss3",
"libxss1",
"libxtst6",
"xdg-utils",
"libatspi2.0-0",
"libuuid1",
"libsecret-1-0",
"libgbm1",
"libasound2t64 | libasound2"
],
"recommends": [
"libayatana-appindicator3-1"
],
"afterInstall": "build/linux-after-install.sh",
"afterRemove": "build/linux-post-remove.sh"
},
"publish": null,
"extraResources": [
"build/icon.png"
],
"files": [
"electron-main.js",
"main-state.js",
"main-warnings.js",
"main-window-closing.js",
"main-geometry.js",
"main-window-hooks.js",
"main-windows.js",
"main-timer.js",
"main-recovery.js",
"main-event-overrun.js",
"main-tray.js",
"main-window-ipc.js",
"main-control-ipc.js",
"main-relay-ipc.js",
"main-lifecycle.js",
"timer-engine.js",
"timer-controller.js",
"recovery.js",
"event-overrun-store.js",
"atomic-write.js",
"preload.js",
"ipc-compat.js",
"security.js",
"renderer-storage.js",
"utils.js",
"constants.js",
"color-utils.js",
"renderer-shared.js",
"money-meter.js",
"event-report.js",
"navigation-guard.js",
"app-scheme.js",
"main-app-protocol.js",
"main-storage-migration.js",
"ipc-senders.js",
"relay-payload.js",
"relay-store.js",
"drop-guard.js",
"settings-schema.js",
"clock-settings-schema.js",
"ui-theme.js",
"ui-lock.js",
"panel-titlebar.js",
"presets.js",
"panel-presets.js",
"panel-compact.js",
"flip-card.js",
"window-geometry.js",
"digits-style.js",
"font-select.js",
"sound-bank.js",
"sound-presets.js",
"ui-feedback.js",
"scale-input.js",
"scale-report.js",
"color-picker.js",
"modal-manager.js",
"shortcuts-help.js",
"onboarding.js",
"mini-bar.js",
"panel-state.js",
"custom-sounds.js",
"local-background.js",
"theme-grid.js",
"panel-colors.js",
"panel-display.js",
"panel-drawer.js",
"display-layouts.js",
"hero-modes.js",
"panel-reset.js",
"panel-clock.js",
"theme-init.js",
"theme-init-tone.js",
"control-app.js",
"control-theme-sync.js",
"widget-app.js",
"widget-theme-sync.js",
"clock-widget-app.js",
"clock-widget-theme-sync.js",
"electron-widget.html",
"electron-control.html",
"electron-clock-widget.html",
"fonts.css",
"design-tokens.css",
"control.css",
"flip-card.css",
"surface-tones.css",
"display.css",
"widget.css",
"clock-widget.css",
"display.html",
"storage-migration.html",
"display-script.js",
"display-theme-sync.js",
"sounds/**/*",
"fonts/**/*",
"NOTICE"
]
},
"dependencies": {
"electron-log": "^5.4.4"
}
}