@todesktop/shared 7.71.0 → 7.74.0
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/lib/desktopify.d.ts +1 -0
- package/lib/desktopify2.d.ts +7 -2
- package/lib/toDesktop.d.ts +2 -0
- package/package.json +1 -1
- package/src/desktopify.ts +2 -0
- package/src/desktopify2.ts +7 -2
- package/src/toDesktop.ts +2 -0
package/lib/desktopify.d.ts
CHANGED
package/lib/desktopify2.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { BaseApp } from "./base";
|
|
|
7
7
|
*/
|
|
8
8
|
declare type todesktopRoles = "todesktop:launch-at-startup" | "todesktop:check-for-updates" | "todesktop:quit" | "todesktop:new-window" | "todesktop:new-tab" | "todesktop:check-for-updates" | "todesktop:history-home" | "todesktop:history-back" | "todesktop:history-forward" | "todesktop:show-window" | "todesktop:hide-window";
|
|
9
9
|
export interface DesktopifyMenuItemConstructorOptions extends Omit<MenuItemConstructorOptions, "role" | "submenu"> {
|
|
10
|
-
platforms?: NodeJS.Platform;
|
|
10
|
+
platforms?: NodeJS.Platform[];
|
|
11
11
|
submenu?: DesktopifyMenuItemConstructorOptions[];
|
|
12
12
|
role?: MenuItemConstructorOptions["role"] | todesktopRoles;
|
|
13
13
|
}
|
|
@@ -39,7 +39,7 @@ export declare type DesktopifyAppTrayAction = DesktopifyAppTrayToggleMenuAction
|
|
|
39
39
|
export interface DesktopifyAppTray {
|
|
40
40
|
id: string;
|
|
41
41
|
icon: string;
|
|
42
|
-
bundledIcon
|
|
42
|
+
bundledIcon?: string;
|
|
43
43
|
rightClick: DesktopifyAppTrayAction;
|
|
44
44
|
leftClick: DesktopifyAppTrayAction;
|
|
45
45
|
}
|
|
@@ -257,6 +257,11 @@ export interface DesktopifyApp2 {
|
|
|
257
257
|
* The app's menus
|
|
258
258
|
*/
|
|
259
259
|
menus: DesktopifyAppMenu[];
|
|
260
|
+
/**
|
|
261
|
+
* Prevents a potential vulnerability in URL matching in Electron
|
|
262
|
+
* https://linear.app/todesktop/issue/TD-1428/html-injection-due-to-regular-expression-bypass
|
|
263
|
+
*/
|
|
264
|
+
useSafeInternalUrlMatcher?: boolean;
|
|
260
265
|
}
|
|
261
266
|
export interface IApp2 extends BaseApp {
|
|
262
267
|
desktopApp: DesktopifyApp2;
|
package/lib/toDesktop.d.ts
CHANGED
|
@@ -272,6 +272,7 @@ export interface IApp extends BaseApp {
|
|
|
272
272
|
runtimeEnvs?: string;
|
|
273
273
|
secret?: string;
|
|
274
274
|
shouldCreate32BitWindowsArtifacts?: boolean;
|
|
275
|
+
shouldCreateArm64WindowsArtifacts?: boolean;
|
|
275
276
|
shouldCreateAppXFiles?: boolean;
|
|
276
277
|
shouldCreateAppImages?: boolean;
|
|
277
278
|
shouldCreateDebianPackages?: boolean;
|
|
@@ -297,6 +298,7 @@ export interface IApp extends BaseApp {
|
|
|
297
298
|
url: string;
|
|
298
299
|
windowOptions: IWindowOptions;
|
|
299
300
|
pollForAppUpdatesEveryXMinutes?: number;
|
|
301
|
+
useSafeInternalUrlMatcher?: boolean;
|
|
300
302
|
}
|
|
301
303
|
export interface IUser extends Schemable {
|
|
302
304
|
id: string;
|
package/package.json
CHANGED
package/src/desktopify.ts
CHANGED
|
@@ -299,4 +299,6 @@ export interface DesktopifyApp {
|
|
|
299
299
|
crashReporter?: string;
|
|
300
300
|
companyName?: string;
|
|
301
301
|
pollForAppUpdatesEveryXMinutes?: number;
|
|
302
|
+
// https://linear.app/todesktop/issue/TD-1428/html-injection-due-to-regular-expression-bypass
|
|
303
|
+
useSafeInternalUrlMatcher?: boolean;
|
|
302
304
|
}
|
package/src/desktopify2.ts
CHANGED
|
@@ -24,7 +24,7 @@ type todesktopRoles =
|
|
|
24
24
|
|
|
25
25
|
export interface DesktopifyMenuItemConstructorOptions
|
|
26
26
|
extends Omit<MenuItemConstructorOptions, "role" | "submenu"> {
|
|
27
|
-
platforms?: NodeJS.Platform;
|
|
27
|
+
platforms?: NodeJS.Platform[];
|
|
28
28
|
submenu?: DesktopifyMenuItemConstructorOptions[];
|
|
29
29
|
role?: MenuItemConstructorOptions["role"] | todesktopRoles;
|
|
30
30
|
}
|
|
@@ -64,7 +64,7 @@ export type DesktopifyAppTrayAction =
|
|
|
64
64
|
export interface DesktopifyAppTray {
|
|
65
65
|
id: string;
|
|
66
66
|
icon: string;
|
|
67
|
-
bundledIcon
|
|
67
|
+
bundledIcon?: string;
|
|
68
68
|
rightClick: DesktopifyAppTrayAction;
|
|
69
69
|
leftClick: DesktopifyAppTrayAction;
|
|
70
70
|
}
|
|
@@ -364,6 +364,11 @@ export interface DesktopifyApp2 {
|
|
|
364
364
|
* The app's menus
|
|
365
365
|
*/
|
|
366
366
|
menus: DesktopifyAppMenu[];
|
|
367
|
+
/**
|
|
368
|
+
* Prevents a potential vulnerability in URL matching in Electron
|
|
369
|
+
* https://linear.app/todesktop/issue/TD-1428/html-injection-due-to-regular-expression-bypass
|
|
370
|
+
*/
|
|
371
|
+
useSafeInternalUrlMatcher?: boolean;
|
|
367
372
|
}
|
|
368
373
|
|
|
369
374
|
export interface IApp2 extends BaseApp {
|
package/src/toDesktop.ts
CHANGED
|
@@ -303,6 +303,7 @@ export interface IApp extends BaseApp {
|
|
|
303
303
|
runtimeEnvs?: string;
|
|
304
304
|
secret?: string; // support old schema versions
|
|
305
305
|
shouldCreate32BitWindowsArtifacts?: boolean;
|
|
306
|
+
shouldCreateArm64WindowsArtifacts?: boolean;
|
|
306
307
|
shouldCreateAppXFiles?: boolean;
|
|
307
308
|
shouldCreateAppImages?: boolean;
|
|
308
309
|
shouldCreateDebianPackages?: boolean;
|
|
@@ -325,6 +326,7 @@ export interface IApp extends BaseApp {
|
|
|
325
326
|
url: string;
|
|
326
327
|
windowOptions: IWindowOptions;
|
|
327
328
|
pollForAppUpdatesEveryXMinutes?: number;
|
|
329
|
+
useSafeInternalUrlMatcher?: boolean;
|
|
328
330
|
}
|
|
329
331
|
|
|
330
332
|
export interface IUser extends Schemable {
|