Skip to content

Commit fd54d62

Browse files
committed
fix failing test
1 parent b719396 commit fd54d62

File tree

12 files changed

+20
-20
lines changed

12 files changed

+20
-20
lines changed

extension/chrome/dev/export.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { Catch } from '../../js/common/platform/catch.js';
1313
import { Gmail } from '../../js/common/api/email-provider/gmail/gmail.js';
1414
import { Time } from '../../js/common/browser/time.js';
1515
import { Url } from '../../js/common/core/common.js';
16-
import { openpgp } from '../../js/common/core/crypto/pgp/openpgpjs-custom.js';
16+
import { opgp as openpgp } from '../../js/common/core/crypto/pgp/openpgpjs-custom.js';
1717

1818
Catch.try(async () => {
1919
const uncheckedUrlParams = Url.parse(['acctEmail']);

extension/chrome/elements/compose.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { Ui } from '../../js/common/browser/ui.js';
1010
import { PromiseCancellation, Url } from '../../js/common/core/common.js';
1111
import { View } from '../../js/common/view.js';
1212
import { XssSafeFactory } from '../../js/common/xss-safe-factory.js';
13-
import { openpgp } from '../../js/common/core/crypto/pgp/openpgpjs-custom.js';
13+
import { opgp as openpgp } from '../../js/common/core/crypto/pgp/openpgpjs-custom.js';
1414
import { ComposeAttachmentsModule } from './compose-modules/compose-attachments-module.js';
1515
import { ComposeDraftModule } from './compose-modules/compose-draft-module.js';
1616
import { ComposeErrModule } from './compose-modules/compose-err-module.js';

extension/chrome/settings/setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { Gmail } from '../../js/common/api/email-provider/gmail/gmail.js';
1212
import { Google } from '../../js/common/api/email-provider/gmail/google.js';
1313
import { KeyImportUi } from '../../js/common/ui/key-import-ui.js';
1414
import { Lang } from '../../js/common/lang.js';
15-
import { openpgp } from '../../js/common/core/crypto/pgp/openpgpjs-custom.js';
15+
import { opgp as openpgp } from '../../js/common/core/crypto/pgp/openpgpjs-custom.js';
1616
import { ClientConfiguration } from '../../js/common/client-configuration.js';
1717
import { Settings } from '../../js/common/settings.js';
1818
import { SetupCreateKeyModule } from './setup/setup-create-key.js';

extension/js/common/api/key-server/wkd.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { ApiErr } from '../shared/api-error.js';
77
import { Buf } from '../../core/buf.js';
88
import { PubkeysSearchResult } from './../pub-lookup.js';
99
import { WKD_API_HOST } from '../../core/const.js';
10-
import { openpgp } from '../../core/crypto/pgp/openpgpjs-custom.js';
10+
import { opgp as openpgp } from '../../core/crypto/pgp/openpgpjs-custom.js';
1111
import { ArmoredKeyIdentityWithEmails, KeyUtil } from '../../core/crypto/key.js';
1212

1313
export class Wkd extends Api {

extension/js/common/core/crypto/key.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Buf } from '../buf.js';
66
import { Catch } from '../../platform/catch.js';
77
import { MsgBlockParser } from '../msg-block-parser.js';
88
import { PgpArmor } from './pgp/pgp-armor.js';
9-
import { openpgp } from './pgp/openpgpjs-custom.js';
9+
import { opgp as openpgp } from './pgp/openpgpjs-custom.js';
1010
import { OpenPGPKey } from './pgp/openpgp-key.js';
1111
import type * as OpenPGP from 'openpgp';
1212
import { SmimeKey } from './smime/smime-key.js';
@@ -204,7 +204,7 @@ export class KeyUtil {
204204
allErr: Error[] = [];
205205
let uncheckedOpgpKeyCount = 0;
206206
try {
207-
const keys = await openpgp.readKeys({ binaryKeys: key }); // todo: opgp.readKey ?
207+
const keys = await openpgp.readKeys({ binaryKeys: key }); // todo: openpgp.readKey ?
208208
uncheckedOpgpKeyCount = keys.length;
209209
for (const key of keys) {
210210
try {

extension/js/common/core/crypto/pgp/msg-util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Key, KeyInfoWithIdentity, KeyInfoWithIdentityAndOptionalPp, KeyUtil } f
55
import { ReplaceableMsgBlockType } from '../../msg-block.js';
66
import { Buf } from '../../buf.js';
77
import { PgpArmor, PreparedForDecrypt } from './pgp-armor.js';
8-
import { openpgp } from './openpgpjs-custom.js';
8+
import { opgp as openpgp } from './openpgpjs-custom.js';
99
import type * as OpenPGP from 'openpgp';
1010
import { KeyCache } from '../../../platform/key-cache.js';
1111
import { SmimeKey, SmimeMsg } from '../smime/smime-key.js';

extension/js/common/core/crypto/pgp/openpgp-key.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* ©️ 2016 - present FlowCrypt a.s. Limitations apply. Contact [email protected] */
22
import { Key, PrvPacket, KeyAlgo, KeyUtil, UnexpectedKeyTypeError, PubkeyInfo } from '../key.js';
3-
import { openpgp } from './openpgpjs-custom.js';
3+
import { opgp as openpgp } from './openpgpjs-custom.js';
44
import { Catch } from '../../../platform/catch.js';
55
import { Str, Value } from '../../common.js';
66
import { Buf } from '../../buf.js';

extension/js/common/core/crypto/pgp/openpgpjs-custom.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
import { VERSION } from '../../const.js';
66
import { requireOpenpgp } from '../../../platform/require.js';
77

8-
export const openpgp = requireOpenpgp();
8+
export const opgp = requireOpenpgp();
99

10-
if (typeof openpgp !== 'undefined') {
10+
if (typeof opgp !== 'undefined') {
1111
// in certain environments, eg pgp_block.htm or web content script, openpgp is not included
12-
openpgp.config.versionString = `FlowCrypt Email Encryption ${VERSION}`;
13-
openpgp.config.showVersion = true;
14-
openpgp.config.commentString = 'Seamlessly send and receive encrypted email';
15-
openpgp.config.showComment = true;
16-
openpgp.config.allowUnauthenticatedMessages = true; // we manually check for missing MDC and show loud warning to user (no auto-decrypt)
17-
openpgp.config.allowInsecureDecryptionWithSigningKeys = false; // may get later over-written using ClientConfiguration for some clients
12+
opgp.config.versionString = `FlowCrypt Email Encryption ${VERSION}`;
13+
opgp.config.showVersion = true;
14+
opgp.config.commentString = 'Seamlessly send and receive encrypted email';
15+
opgp.config.showComment = true;
16+
opgp.config.allowUnauthenticatedMessages = true; // we manually check for missing MDC and show loud warning to user (no auto-decrypt)
17+
opgp.config.allowInsecureDecryptionWithSigningKeys = false; // may get later over-written using ClientConfiguration for some clients
1818
// openpgp.config.require_uid_self_cert = false;
1919
}

extension/js/common/core/crypto/pgp/pgp-armor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { Buf } from '../../buf.js';
88
import { ReplaceableMsgBlockType } from '../../msg-block.js';
99
import { Str } from '../../common.js';
1010
import type * as OpenPGP from 'openpgp';
11-
import { openpgp } from './openpgpjs-custom.js';
11+
import { opgp as openpgp } from './openpgpjs-custom.js';
1212
import * as Stream from '@openpgp/web-stream-tools';
1313
import { SmimeKey, ENVELOPED_DATA_OID } from '../smime/smime-key.js';
1414

extension/js/common/ui/key-import-ui.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { PgpPwd } from '../core/crypto/pgp/pgp-password.js';
1313
import { Settings } from '../settings.js';
1414
import { Ui } from '../browser/ui.js';
1515
import { Url, Str } from '../core/common.js';
16-
import { openpgp } from '../core/crypto/pgp/openpgpjs-custom.js';
16+
import { opgp as openpgp } from '../core/crypto/pgp/openpgpjs-custom.js';
1717
import { OpenPGPKey } from '../core/crypto/pgp/openpgp-key.js';
1818
import { KeyStore } from '../platform/store/key-store.js';
1919
import { isCustomerUrlFesUsed } from '../helpers.js';

0 commit comments

Comments
 (0)