@todesktop/shared 7.188.40 → 7.188.41
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 +1 -0
- package/lib/hsm.js +5 -1
- package/package.json +1 -1
- package/src/hsm.ts +4 -0
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/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.
|