@todesktop/shared 7.188.40 → 7.188.42
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 +2 -0
- package/lib/hsm.d.ts +1 -0
- package/lib/hsm.js +5 -1
- package/package.json +1 -1
- package/src/desktopify.ts +2 -0
- package/src/hsm.ts +4 -0
package/lib/desktopify.d.ts
CHANGED
|
@@ -105,6 +105,7 @@ export interface Build {
|
|
|
105
105
|
hash?: string;
|
|
106
106
|
icon?: string;
|
|
107
107
|
id: string;
|
|
108
|
+
isArtifactsPruned?: boolean;
|
|
108
109
|
isBeingCancelled?: boolean;
|
|
109
110
|
linux?: PlatformBuild;
|
|
110
111
|
mac?: PlatformBuild;
|
|
@@ -114,6 +115,7 @@ export interface Build {
|
|
|
114
115
|
releasedAt?: ISODate;
|
|
115
116
|
shouldCodeSign: boolean;
|
|
116
117
|
shouldRelease: boolean;
|
|
118
|
+
shouldRetainForever?: boolean;
|
|
117
119
|
smokeTest?: {
|
|
118
120
|
buildServerExecutionId?: string;
|
|
119
121
|
isCanceled?: boolean;
|
package/lib/hsm.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare type MacTarget = 'mac' | 'mas' | 'mas-installer' | 'mas-dev';
|
|
2
|
+
export declare function isMacTarget(type: string): type is MacTarget;
|
|
2
3
|
/**
|
|
3
4
|
* Files that are uploaded to HSM have a unique secretName that depends on the appId and target.
|
|
4
5
|
* This function returns the key name that is used for certificate files that have a `.p12` postfix.
|
package/lib/hsm.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getMacAPIKeyNameFromHSM = exports.getMacCertificateNameFromHSM = void 0;
|
|
3
|
+
exports.getMacAPIKeyNameFromHSM = exports.getMacCertificateNameFromHSM = exports.isMacTarget = void 0;
|
|
4
|
+
function isMacTarget(type) {
|
|
5
|
+
return ['mac', 'mas', 'mas-installer', 'mas-dev'].includes(type);
|
|
6
|
+
}
|
|
7
|
+
exports.isMacTarget = isMacTarget;
|
|
4
8
|
/**
|
|
5
9
|
* Files that are uploaded to HSM have a unique secretName that depends on the appId and target.
|
|
6
10
|
* This function returns the key name that is used for certificate files that have a `.p12` postfix.
|
package/package.json
CHANGED
package/src/desktopify.ts
CHANGED
|
@@ -145,6 +145,7 @@ export interface Build {
|
|
|
145
145
|
hash?: string;
|
|
146
146
|
icon?: string;
|
|
147
147
|
id: string;
|
|
148
|
+
isArtifactsPruned?: boolean;
|
|
148
149
|
isBeingCancelled?: boolean;
|
|
149
150
|
linux?: PlatformBuild;
|
|
150
151
|
mac?: PlatformBuild;
|
|
@@ -154,6 +155,7 @@ export interface Build {
|
|
|
154
155
|
releasedAt?: ISODate;
|
|
155
156
|
shouldCodeSign: boolean;
|
|
156
157
|
shouldRelease: boolean;
|
|
158
|
+
shouldRetainForever?: boolean; // Artifacts can't be pruned
|
|
157
159
|
smokeTest?: {
|
|
158
160
|
buildServerExecutionId?: string;
|
|
159
161
|
isCanceled?: boolean;
|
package/src/hsm.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export type MacTarget = 'mac' | 'mas' | 'mas-installer' | 'mas-dev';
|
|
2
|
+
export function isMacTarget(type: string): type is MacTarget {
|
|
3
|
+
return ['mac', 'mas', 'mas-installer', 'mas-dev'].includes(type);
|
|
4
|
+
}
|
|
5
|
+
|
|
2
6
|
/**
|
|
3
7
|
* Files that are uploaded to HSM have a unique secretName that depends on the appId and target.
|
|
4
8
|
* This function returns the key name that is used for certificate files that have a `.p12` postfix.
|