@todesktop/shared 7.70.0 → 7.73.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.
@@ -182,5 +182,6 @@ export interface DesktopifyApp {
182
182
  crashReporter?: string;
183
183
  companyName?: string;
184
184
  pollForAppUpdatesEveryXMinutes?: number;
185
+ useSafeInternalUrlMatcher?: boolean;
185
186
  }
186
187
  export {};
@@ -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;
@@ -233,6 +233,7 @@ export interface IApp extends BaseApp {
233
233
  appPkgName?: string;
234
234
  appProtocol?: ISwitchableValue<string>;
235
235
  appType?: string;
236
+ appxConfig?: Partial<IAppBuilderLib["config"]["appx"]>;
236
237
  cssToInject?: string;
237
238
  customMacCodeSign?: CustomMacCodeSign;
238
239
  customDomain?: string;
@@ -271,6 +272,7 @@ export interface IApp extends BaseApp {
271
272
  runtimeEnvs?: string;
272
273
  secret?: string;
273
274
  shouldCreate32BitWindowsArtifacts?: boolean;
275
+ shouldCreateArm64WindowsArtifacts?: boolean;
274
276
  shouldCreateAppXFiles?: boolean;
275
277
  shouldCreateAppImages?: boolean;
276
278
  shouldCreateDebianPackages?: boolean;
@@ -296,6 +298,7 @@ export interface IApp extends BaseApp {
296
298
  url: string;
297
299
  windowOptions: IWindowOptions;
298
300
  pollForAppUpdatesEveryXMinutes?: number;
301
+ useSafeInternalUrlMatcher?: boolean;
299
302
  }
300
303
  export interface IUser extends Schemable {
301
304
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.70.0",
3
+ "version": "7.73.0",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
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
  }
@@ -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
@@ -266,6 +266,7 @@ export interface IApp extends BaseApp {
266
266
  appPkgName?: string;
267
267
  appProtocol?: ISwitchableValue<string>;
268
268
  appType?: string;
269
+ appxConfig?: Partial<IAppBuilderLib["config"]["appx"]>;
269
270
  cssToInject?: string;
270
271
  customMacCodeSign?: CustomMacCodeSign;
271
272
  customDomain?: string;
@@ -302,6 +303,7 @@ export interface IApp extends BaseApp {
302
303
  runtimeEnvs?: string;
303
304
  secret?: string; // support old schema versions
304
305
  shouldCreate32BitWindowsArtifacts?: boolean;
306
+ shouldCreateArm64WindowsArtifacts?: boolean;
305
307
  shouldCreateAppXFiles?: boolean;
306
308
  shouldCreateAppImages?: boolean;
307
309
  shouldCreateDebianPackages?: boolean;
@@ -324,6 +326,7 @@ export interface IApp extends BaseApp {
324
326
  url: string;
325
327
  windowOptions: IWindowOptions;
326
328
  pollForAppUpdatesEveryXMinutes?: number;
329
+ useSafeInternalUrlMatcher?: boolean;
327
330
  }
328
331
 
329
332
  export interface IUser extends Schemable {