@protontech/openpgp 6.0.0-beta.3.patch.1 → 6.0.1
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/README.md +34 -37
- package/dist/lightweight/argon2id.min.mjs +1 -1
- package/dist/lightweight/argon2id.min.mjs.map +1 -1
- package/dist/lightweight/argon2id.mjs +1 -1
- package/dist/lightweight/legacy_ciphers.min.mjs +1 -1
- package/dist/lightweight/legacy_ciphers.min.mjs.map +1 -1
- package/dist/lightweight/legacy_ciphers.mjs +1 -1
- package/dist/lightweight/noble_curves.min.mjs +11 -11
- package/dist/lightweight/noble_curves.min.mjs.map +1 -1
- package/dist/lightweight/noble_curves.mjs +260 -158
- package/dist/lightweight/noble_hashes.min.mjs +2 -2
- package/dist/lightweight/noble_hashes.min.mjs.map +1 -1
- package/dist/lightweight/noble_hashes.mjs +3 -2
- package/dist/lightweight/noble_post_quantum.min.mjs +5 -0
- package/dist/lightweight/noble_post_quantum.min.mjs.map +1 -0
- package/dist/lightweight/noble_post_quantum.mjs +1002 -0
- package/dist/lightweight/openpgp.min.mjs +4 -4
- package/dist/lightweight/openpgp.min.mjs.map +1 -1
- package/dist/lightweight/openpgp.mjs +863 -1056
- package/dist/lightweight/seek-bzip.min.mjs +3 -0
- package/dist/lightweight/seek-bzip.min.mjs.map +1 -0
- package/dist/lightweight/seek-bzip.mjs +866 -0
- package/dist/lightweight/sha3.min.mjs +3 -3
- package/dist/lightweight/sha3.min.mjs.map +1 -1
- package/dist/lightweight/sha3.mjs +27 -456
- package/dist/lightweight/sha512.min.mjs +3 -0
- package/dist/lightweight/sha512.min.mjs.map +1 -0
- package/dist/lightweight/sha512.mjs +436 -0
- package/dist/node/openpgp.cjs +14499 -12719
- package/dist/node/openpgp.min.cjs +16 -14
- package/dist/node/openpgp.min.cjs.map +1 -1
- package/dist/node/openpgp.min.mjs +16 -14
- package/dist/node/openpgp.min.mjs.map +1 -1
- package/dist/node/openpgp.mjs +11878 -10098
- package/dist/openpgp.js +11909 -10129
- package/dist/openpgp.min.js +16 -14
- package/dist/openpgp.min.js.map +1 -1
- package/dist/openpgp.min.mjs +16 -14
- package/dist/openpgp.min.mjs.map +1 -1
- package/dist/openpgp.mjs +11909 -10129
- package/openpgp.d.ts +3 -9
- package/package.json +27 -26
package/openpgp.d.ts
CHANGED
|
@@ -94,7 +94,7 @@ export class PrivateKey extends PublicKey {
|
|
|
94
94
|
public revoke(reason?: ReasonForRevocation, date?: Date, config?: Config): Promise<PrivateKey>;
|
|
95
95
|
public isDecrypted(): boolean;
|
|
96
96
|
public addSubkey(options: SubkeyOptions): Promise<PrivateKey>;
|
|
97
|
-
public getDecryptionKeys(keyID?: KeyID, date?: Date | null, userID?: UserID, config?: Config): Promise<PrivateKey | Subkey>;
|
|
97
|
+
public getDecryptionKeys(keyID?: KeyID, date?: Date | null, userID?: UserID, config?: Config): Promise<(PrivateKey | Subkey)[]>;
|
|
98
98
|
public update(sourceKey: PublicKey, date?: Date, config?: Config): Promise<PrivateKey>;
|
|
99
99
|
}
|
|
100
100
|
|
|
@@ -704,7 +704,7 @@ export type EllipticCurveName = 'ed25519Legacy' | 'curve25519Legacy' | 'nistP256
|
|
|
704
704
|
interface GenerateKeyOptions {
|
|
705
705
|
userIDs: MaybeArray<UserID>;
|
|
706
706
|
passphrase?: string;
|
|
707
|
-
type?: 'ecc' | 'rsa';
|
|
707
|
+
type?: 'ecc' | 'rsa' | 'curve25519' | 'curve448' | 'pqc';
|
|
708
708
|
curve?: EllipticCurveName;
|
|
709
709
|
rsaBits?: number;
|
|
710
710
|
keyExpirationTime?: number;
|
|
@@ -715,15 +715,9 @@ interface GenerateKeyOptions {
|
|
|
715
715
|
}
|
|
716
716
|
export type KeyOptions = GenerateKeyOptions;
|
|
717
717
|
|
|
718
|
-
export interface SubkeyOptions {
|
|
719
|
-
type?: 'ecc' | 'rsa';
|
|
720
|
-
curve?: EllipticCurveName;
|
|
721
|
-
rsaBits?: number;
|
|
722
|
-
keyExpirationTime?: number;
|
|
723
|
-
date?: Date;
|
|
718
|
+
export interface SubkeyOptions extends Pick<GenerateKeyOptions, 'type' | 'curve' | 'rsaBits' | 'keyExpirationTime' | 'date' | 'config' > {
|
|
724
719
|
sign?: boolean;
|
|
725
720
|
forwarding?: boolean;
|
|
726
|
-
config?: PartialConfig;
|
|
727
721
|
}
|
|
728
722
|
|
|
729
723
|
export declare class KeyID {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protontech/openpgp",
|
|
3
3
|
"description": "OpenPGP.js is a Javascript implementation of the OpenPGP protocol. This is defined in RFC 4880.",
|
|
4
|
-
"version": "6.0.
|
|
4
|
+
"version": "6.0.1",
|
|
5
5
|
"license": "LGPL-3.0+",
|
|
6
6
|
"homepage": "https://openpgpjs.org/",
|
|
7
7
|
"engines": {
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
24
|
"types": "./openpgp.d.ts",
|
|
25
|
+
"browser": "./dist/openpgp.min.mjs",
|
|
25
26
|
"import": "./dist/node/openpgp.mjs",
|
|
26
|
-
"require": "./dist/node/openpgp.min.cjs"
|
|
27
|
-
"browser": "./dist/openpgp.min.mjs"
|
|
27
|
+
"require": "./dist/node/openpgp.min.cjs"
|
|
28
28
|
},
|
|
29
29
|
"./lightweight": {
|
|
30
30
|
"types": "./openpgp.d.ts",
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
"test-type-definitions": "tsx test/typescript/definitions.ts",
|
|
50
50
|
"benchmark-time": "node test/benchmarks/time.js",
|
|
51
51
|
"benchmark-memory-usage": "node test/benchmarks/memory_usage.js",
|
|
52
|
-
"start": "http-server",
|
|
53
52
|
"prebrowsertest": "npm run build-test",
|
|
54
|
-
"browsertest": "
|
|
55
|
-
"test-browser": "
|
|
56
|
-
"test-
|
|
53
|
+
"browsertest": "web-test-runner --config test/web-test-runner.config.js --group local --manual --open",
|
|
54
|
+
"test-browser": "web-test-runner --config test/web-test-runner.config.js --group local --playwright --browsers chromium firefox webkit",
|
|
55
|
+
"test-browser:ci": "web-test-runner --config test/web-test-runner.config.js --group headless:ci",
|
|
56
|
+
"test-browserstack": "web-test-runner --config test/web-test-runner.browserstack.config.js",
|
|
57
57
|
"coverage": "c8 npm test",
|
|
58
58
|
"lint": "eslint .",
|
|
59
59
|
"docs": "jsdoc --configure .jsdocrc.cjs --destination docs --recurse README.md src && printf '%s' 'docs.openpgpjs.org' > docs/CNAME",
|
|
@@ -62,23 +62,29 @@
|
|
|
62
62
|
"postversion": "git push && git push --tags && npm publish"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@noble/ciphers": "^0.
|
|
66
|
-
"@noble/curves": "^1.
|
|
65
|
+
"@noble/ciphers": "^1.0.0",
|
|
66
|
+
"@noble/curves": "^1.7.0",
|
|
67
67
|
"@noble/ed25519": "^1.7.3",
|
|
68
68
|
"@noble/hashes": "^1.5.0",
|
|
69
|
+
"@noble/post-quantum": "^0.2.1",
|
|
69
70
|
"@openpgp/jsdoc": "^3.6.11",
|
|
70
71
|
"@openpgp/seek-bzip": "^1.0.5-git",
|
|
71
72
|
"@openpgp/tweetnacl": "^1.0.4-1",
|
|
72
73
|
"@openpgp/web-stream-tools": "~0.1.3",
|
|
73
|
-
"@rollup/plugin-alias": "^5.1.
|
|
74
|
+
"@rollup/plugin-alias": "^5.1.1",
|
|
74
75
|
"@rollup/plugin-commonjs": "^25.0.8",
|
|
75
|
-
"@rollup/plugin-node-resolve": "^15.
|
|
76
|
+
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
76
77
|
"@rollup/plugin-replace": "^5.0.7",
|
|
77
78
|
"@rollup/plugin-terser": "^0.4.4",
|
|
78
79
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
79
80
|
"@rollup/plugin-wasm": "^6.2.2",
|
|
80
81
|
"@types/chai": "^4.3.19",
|
|
82
|
+
"@types/sinon": "^17.0.3",
|
|
81
83
|
"@typescript-eslint/parser": "^7.18.0",
|
|
84
|
+
"@web/test-runner": "^0.19.0",
|
|
85
|
+
"@web/test-runner-browserstack": "^0.7.2",
|
|
86
|
+
"@web/test-runner-mocha": "^0.9.0",
|
|
87
|
+
"@web/test-runner-playwright": "^0.11.0",
|
|
82
88
|
"argon2id": "^1.0.1",
|
|
83
89
|
"benchmark": "^2.1.4",
|
|
84
90
|
"bn.js": "^5.2.1",
|
|
@@ -86,33 +92,28 @@
|
|
|
86
92
|
"chai": "^4.4.1",
|
|
87
93
|
"chai-as-promised": "^7.1.2",
|
|
88
94
|
"eckey-utils": "^0.7.14",
|
|
89
|
-
"eslint": "^8.57.
|
|
95
|
+
"eslint": "^8.57.1",
|
|
90
96
|
"eslint-config-airbnb": "^19.0.4",
|
|
91
97
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
92
98
|
"eslint-config-airbnb-typescript": "^18.0.0",
|
|
93
99
|
"eslint-import-resolver-typescript": "^3.6.3",
|
|
94
100
|
"eslint-plugin-chai-friendly": "^0.7.4",
|
|
95
|
-
"eslint-plugin-import": "^2.
|
|
101
|
+
"eslint-plugin-import": "^2.31.0",
|
|
96
102
|
"eslint-plugin-unicorn": "^48.0.1",
|
|
97
103
|
"fflate": "^0.7.4",
|
|
98
|
-
"http-server": "^14.1.1",
|
|
99
|
-
"karma": "^6.4.4",
|
|
100
|
-
"karma-browserstack-launcher": "^1.6.0",
|
|
101
|
-
"karma-chrome-launcher": "^3.2.0",
|
|
102
|
-
"karma-firefox-launcher": "^2.1.3",
|
|
103
|
-
"karma-mocha": "^2.0.1",
|
|
104
|
-
"karma-mocha-reporter": "^2.2.5",
|
|
105
|
-
"karma-webkit-launcher": "^2.6.0",
|
|
106
104
|
"mocha": "^10.7.3",
|
|
107
|
-
"playwright": "^1.
|
|
108
|
-
"rollup": "^4.
|
|
105
|
+
"playwright": "^1.48.2",
|
|
106
|
+
"rollup": "^4.24.2",
|
|
109
107
|
"sinon": "^18.0.1",
|
|
110
108
|
"ts-node": "^10.9.2",
|
|
111
|
-
"tslib": "^2.
|
|
112
|
-
"tsx": "^4.19.
|
|
113
|
-
"typescript": "^5.
|
|
109
|
+
"tslib": "^2.8.0",
|
|
110
|
+
"tsx": "^4.19.2",
|
|
111
|
+
"typescript": "^5.6.3",
|
|
114
112
|
"web-streams-polyfill": "^4.0.0"
|
|
115
113
|
},
|
|
114
|
+
"overrides": {
|
|
115
|
+
"@web/dev-server-core": "npm:@openpgp/wtr-dev-server-core@0.7.3-patch.1"
|
|
116
|
+
},
|
|
116
117
|
"repository": {
|
|
117
118
|
"type": "git",
|
|
118
119
|
"url": "https://github.com/ProtonMail/openpgpjs"
|