@todesktop/shared 7.188.51 → 7.188.52
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/hsm.d.ts +2 -1
- package/lib/hsm.js +1 -0
- package/package.json +1 -1
- package/src/hsm.ts +2 -4
package/lib/hsm.d.ts
CHANGED
|
@@ -21,9 +21,10 @@ export declare const getCertificateNameFromHSM: (appId: string, target: MacTarge
|
|
|
21
21
|
/**
|
|
22
22
|
* Files that are uploaded to HSM have a unique secretName that depends on the appId and target.
|
|
23
23
|
* This function returns the key name that is used for key files that have a `.p8` postfix.
|
|
24
|
+
* Currently only used for mac notarization.
|
|
24
25
|
*
|
|
25
26
|
* @param appId the application id
|
|
26
27
|
* @param target the target type
|
|
27
28
|
* @returns the name of the secret that is required for downloading the cert from HSM.
|
|
28
29
|
*/
|
|
29
|
-
export declare const getAPIKeyNameFromHSM: (appId: string, target: MacTarget
|
|
30
|
+
export declare const getAPIKeyNameFromHSM: (appId: string, target: MacTarget) => string;
|
package/lib/hsm.js
CHANGED
|
@@ -23,6 +23,7 @@ exports.getCertificateNameFromHSM = (appId, target) => {
|
|
|
23
23
|
/**
|
|
24
24
|
* Files that are uploaded to HSM have a unique secretName that depends on the appId and target.
|
|
25
25
|
* This function returns the key name that is used for key files that have a `.p8` postfix.
|
|
26
|
+
* Currently only used for mac notarization.
|
|
26
27
|
*
|
|
27
28
|
* @param appId the application id
|
|
28
29
|
* @param target the target type
|
package/package.json
CHANGED
package/src/hsm.ts
CHANGED
|
@@ -42,14 +42,12 @@ export const getCertificateNameFromHSM = (
|
|
|
42
42
|
/**
|
|
43
43
|
* Files that are uploaded to HSM have a unique secretName that depends on the appId and target.
|
|
44
44
|
* This function returns the key name that is used for key files that have a `.p8` postfix.
|
|
45
|
+
* Currently only used for mac notarization.
|
|
45
46
|
*
|
|
46
47
|
* @param appId the application id
|
|
47
48
|
* @param target the target type
|
|
48
49
|
* @returns the name of the secret that is required for downloading the cert from HSM.
|
|
49
50
|
*/
|
|
50
|
-
export const getAPIKeyNameFromHSM = (
|
|
51
|
-
appId: string,
|
|
52
|
-
target: MacTarget | WindowsTarget
|
|
53
|
-
) => {
|
|
51
|
+
export const getAPIKeyNameFromHSM = (appId: string, target: MacTarget) => {
|
|
54
52
|
return `todesktop-${appId}-${target}-api-key`;
|
|
55
53
|
};
|