@majikah/majik-signature-client 0.3.1 → 0.3.2
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.
|
@@ -189,7 +189,10 @@ export class ClientStateManager {
|
|
|
189
189
|
return DEFAULT_USER_APP_PREFERENCES;
|
|
190
190
|
}
|
|
191
191
|
try {
|
|
192
|
-
return
|
|
192
|
+
return {
|
|
193
|
+
...DEFAULT_USER_APP_PREFERENCES,
|
|
194
|
+
...JSON.parse(raw),
|
|
195
|
+
};
|
|
193
196
|
}
|
|
194
197
|
catch (e) {
|
|
195
198
|
console.warn("ClientStateManager: Problem retrieving user app preferences: ", e);
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from "./core/crypto/constants";
|
|
|
7
7
|
export * from "./core/crypto/keystore-manager";
|
|
8
8
|
export * from "./core/storage";
|
|
9
9
|
export * from "./core/stamp/majik-signature-stamp";
|
|
10
|
+
export { DEFAULT_USER_APP_PREFERENCES } from "./core/client-state-manager";
|
|
10
11
|
export * from "./core/utils/utilities";
|
|
11
12
|
export * from "./core/identity";
|
|
12
13
|
export { migrateMajikMessageJSON } from "./core/contacts/majik-contact-migration";
|
package/dist/index.js
CHANGED
|
@@ -6,6 +6,7 @@ export * from "./core/crypto/constants";
|
|
|
6
6
|
export * from "./core/crypto/keystore-manager";
|
|
7
7
|
export * from "./core/storage";
|
|
8
8
|
export * from "./core/stamp/majik-signature-stamp";
|
|
9
|
+
export { DEFAULT_USER_APP_PREFERENCES } from "./core/client-state-manager";
|
|
9
10
|
export * from "./core/utils/utilities";
|
|
10
11
|
export * from "./core/identity";
|
|
11
12
|
export { migrateMajikMessageJSON } from "./core/contacts/majik-contact-migration";
|
|
@@ -132,6 +132,8 @@ export declare class MajikSignatureClient {
|
|
|
132
132
|
resetUserAppPreferences(): Promise<void>;
|
|
133
133
|
isAnalyticsEnabled(): Promise<boolean>;
|
|
134
134
|
isAutoSealEnabled(): Promise<boolean>;
|
|
135
|
+
isAutoLockOnMinimizeEnabled(): Promise<boolean>;
|
|
136
|
+
autoLockInterval(): Promise<number | undefined>;
|
|
135
137
|
generateMnemonic(strength?: 128 | 256, language?: MnemonicLanguage): Promise<string>;
|
|
136
138
|
createAccount(mnemonic: string, passphrase: string, label?: string): Promise<{
|
|
137
139
|
id: string;
|
|
@@ -200,6 +200,14 @@ export class MajikSignatureClient {
|
|
|
200
200
|
const appPreferences = await this._state.getUserAppPreferences();
|
|
201
201
|
return appPreferences.signing.autoSeal ?? false;
|
|
202
202
|
}
|
|
203
|
+
async isAutoLockOnMinimizeEnabled() {
|
|
204
|
+
const appPreferences = await this._state.getUserAppPreferences();
|
|
205
|
+
return appPreferences.security?.key?.autoLockOnMinimize ?? false;
|
|
206
|
+
}
|
|
207
|
+
async autoLockInterval() {
|
|
208
|
+
const appPreferences = await this._state.getUserAppPreferences();
|
|
209
|
+
return appPreferences.security?.key?.autoLockInterval;
|
|
210
|
+
}
|
|
203
211
|
// ==========================================================================
|
|
204
212
|
// ── ACCOUNT MANAGEMENT ────────────────────────────────────────────────────
|
|
205
213
|
// ==========================================================================
|
|
@@ -1312,7 +1320,7 @@ export class MajikSignatureClient {
|
|
|
1312
1320
|
*/
|
|
1313
1321
|
async stripSignature(file, options) {
|
|
1314
1322
|
try {
|
|
1315
|
-
return MajikSignature.stripFrom(file, options);
|
|
1323
|
+
return await MajikSignature.stripFrom(file, options);
|
|
1316
1324
|
}
|
|
1317
1325
|
catch (err) {
|
|
1318
1326
|
this._emit("error", err, { context: "stripSignature" });
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@majikah/majik-signature-client",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "Majik Signature Client is a hybrid post-quantum content signing and verification library for the Majikah ecosystem. Built on top of Majik Key, it provides tamper-proof, forgery-resistant digital signatures for any content format — using a dual-algorithm architecture that combines classical Ed25519 with post-quantum ML-DSA-87 (FIPS-204).",
|
|
5
|
-
"version": "0.3.
|
|
5
|
+
"version": "0.3.2",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"author": "Zelijah",
|
|
8
8
|
"main": "./dist/index.js",
|