@todesktop/shared 7.188.4 → 7.188.6

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.
@@ -106,6 +106,7 @@ export interface Build {
106
106
  linux?: PlatformBuild;
107
107
  mac?: PlatformBuild;
108
108
  onBuildFinishedWebhook?: string;
109
+ projectConfig?: string;
109
110
  releasedAt?: ISODate;
110
111
  shouldCodeSign: boolean;
111
112
  shouldRelease: boolean;
@@ -84,7 +84,7 @@ exports.appProtocolValidation = yup
84
84
  .label('App Protocol')
85
85
  .test('ends-with-protocol', 'Protocols must end with `://`', (value) => value.endsWith('://'))
86
86
  .test('is-lowercase', 'Protocols must be lowercase', (value) => value === value.toLowerCase())
87
- .matches(/^[a-zA-Z-]+:\/\/$/, 'Protocols contain letters and dashes (-) only')
87
+ .matches(/^[a-zA-Z-.]+:\/\/$/, 'Protocols contain letters, dots (.) and dashes (-) only')
88
88
  .min(5);
89
89
  exports.appConfigValidation = yup.object({
90
90
  id: yup.string().required(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.188.4",
3
+ "version": "7.188.6",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
package/src/desktopify.ts CHANGED
@@ -146,6 +146,7 @@ export interface Build {
146
146
  linux?: PlatformBuild;
147
147
  mac?: PlatformBuild;
148
148
  onBuildFinishedWebhook?: string;
149
+ projectConfig?: string; // Stringified version of todesktop.json
149
150
  releasedAt?: ISODate;
150
151
  shouldCodeSign: boolean;
151
152
  shouldRelease: boolean;
@@ -123,7 +123,10 @@ export const appProtocolValidation = yup
123
123
  'Protocols must be lowercase',
124
124
  (value) => value === value.toLowerCase()
125
125
  )
126
- .matches(/^[a-zA-Z-]+:\/\/$/, 'Protocols contain letters and dashes (-) only')
126
+ .matches(
127
+ /^[a-zA-Z-.]+:\/\/$/,
128
+ 'Protocols contain letters, dots (.) and dashes (-) only'
129
+ )
127
130
  .min(5);
128
131
 
129
132
  export const appConfigValidation = yup.object({