@todesktop/shared 7.184.5 → 7.184.7

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.
@@ -196,6 +196,10 @@ export interface DesktopifyAppWindow {
196
196
  file?: string;
197
197
  }
198
198
  export interface DesktopifyApp2 {
199
+ /**
200
+ * Used as appUserModelId on windows
201
+ */
202
+ appModelId?: string;
199
203
  id: string;
200
204
  /**
201
205
  * Last desktopify version that was used to update the app
@@ -83,6 +83,7 @@ exports.appProtocolValidation = yup
83
83
  .required()
84
84
  .label("App Protocol")
85
85
  .test("ends-with-protocol", "Protocols must end with `://`", (value) => value.endsWith("://"))
86
+ .test("is-lowercase", "Protocols must be lowercase", (value) => value === value.toLowerCase())
86
87
  .matches(/^[a-zA-Z\-]+\:\/\/$/, "Protocols contain letters and dashes (-) only")
87
88
  .min(5);
88
89
  exports.appConfigValidation = yup.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.184.5",
3
+ "version": "7.184.7",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -320,6 +320,10 @@ export interface DesktopifyAppWindow {
320
320
  // TODO: Look into hasMinHeight, etc
321
321
 
322
322
  export interface DesktopifyApp2 {
323
+ /**
324
+ * Used as appUserModelId on windows
325
+ */
326
+ appModelId?: string;
323
327
  id: string;
324
328
  /**
325
329
  * Last desktopify version that was used to update the app
@@ -117,6 +117,11 @@ export const appProtocolValidation = yup
117
117
  "Protocols must end with `://`",
118
118
  (value: string) => value.endsWith("://")
119
119
  )
120
+ .test(
121
+ "is-lowercase",
122
+ "Protocols must be lowercase",
123
+ (value) => value === value.toLowerCase()
124
+ )
120
125
  .matches(
121
126
  /^[a-zA-Z\-]+\:\/\/$/,
122
127
  "Protocols contain letters and dashes (-) only"