@todesktop/shared 7.155.0 → 7.157.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.
@@ -246,7 +246,7 @@ export interface DesktopifyApp2 {
246
246
  /**
247
247
  * Regex patterns for internal app urls
248
248
  */
249
- internalUrls?: ISwitchableValue<string>;
249
+ internalUrls: ISwitchableValue<string>;
250
250
  /**
251
251
  * By default ToDesktop uses native `window.open` to support Firebase social login.
252
252
  * This makes the app use electron's `window.open`.
@@ -255,7 +255,7 @@ export interface DesktopifyApp2 {
255
255
  /**
256
256
  * Specifys the app's user agent
257
257
  */
258
- userAgent?: ISwitchableValue<string>;
258
+ userAgent: ISwitchableValue<string>;
259
259
  /**
260
260
  * Disable devTools on all app windows
261
261
  */
@@ -263,7 +263,7 @@ export interface DesktopifyApp2 {
263
263
  /**
264
264
  * Registers an app protocol. Format should be `{APP_PROTOCOL}://` e.g. `example://`
265
265
  */
266
- appProtocol?: ISwitchableValue<string>;
266
+ appProtocol: ISwitchableValue<string>;
267
267
  /**
268
268
  * Disables the same-origin policy
269
269
  */
@@ -378,6 +378,6 @@ export interface DesktopifyApp2 {
378
378
  fileAssetDetailsList?: FileAssetDetails[];
379
379
  }
380
380
  export interface IApp2 extends BaseApp {
381
- desktopApp: DesktopifyApp2;
381
+ desktopApp?: DesktopifyApp2;
382
382
  }
383
383
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.155.0",
3
+ "version": "7.157.0",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -371,7 +371,7 @@ export interface DesktopifyApp2 {
371
371
  /**
372
372
  * Regex patterns for internal app urls
373
373
  */
374
- internalUrls?: ISwitchableValue<string>;
374
+ internalUrls: ISwitchableValue<string>;
375
375
  /**
376
376
  * By default ToDesktop uses native `window.open` to support Firebase social login.
377
377
  * This makes the app use electron's `window.open`.
@@ -380,7 +380,7 @@ export interface DesktopifyApp2 {
380
380
  /**
381
381
  * Specifys the app's user agent
382
382
  */
383
- userAgent?: ISwitchableValue<string>;
383
+ userAgent: ISwitchableValue<string>;
384
384
  /**
385
385
  * Disable devTools on all app windows
386
386
  */
@@ -388,7 +388,7 @@ export interface DesktopifyApp2 {
388
388
  /**
389
389
  * Registers an app protocol. Format should be `{APP_PROTOCOL}://` e.g. `example://`
390
390
  */
391
- appProtocol?: ISwitchableValue<string>;
391
+ appProtocol: ISwitchableValue<string>;
392
392
  /**
393
393
  * Disables the same-origin policy
394
394
  */
@@ -504,5 +504,6 @@ export interface DesktopifyApp2 {
504
504
  }
505
505
 
506
506
  export interface IApp2 extends BaseApp {
507
- desktopApp: DesktopifyApp2;
507
+ // Old apps don't have the `desktopApp` property so let's not assume it exists
508
+ desktopApp?: DesktopifyApp2;
508
509
  }