imapflow 2.4.3 → 2.5.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/CHANGELOG.md +15 -0
- package/README.md +59 -1
- package/dist/cjs/commands/authenticate.js +32 -1
- package/dist/cjs/commands/fetch.js +10 -3
- package/dist/cjs/commands/idle.js +31 -1
- package/dist/cjs/commands/list.js +14 -0
- package/dist/cjs/errors.d.ts +2 -0
- package/dist/cjs/errors.js +4 -0
- package/dist/cjs/handler/imap-parser.js +3 -0
- package/dist/cjs/handler/parser-instance.d.ts +2 -0
- package/dist/cjs/handler/parser-instance.js +3 -1
- package/dist/cjs/handler/token-parser.d.ts +21 -2
- package/dist/cjs/handler/token-parser.js +76 -6
- package/dist/cjs/handler/types.d.ts +5 -0
- package/dist/cjs/imap-flow.d.ts +9 -9
- package/dist/cjs/imap-flow.js +90 -14
- package/dist/cjs/package-info.d.ts +1 -1
- package/dist/cjs/package-info.js +1 -1
- package/dist/cjs/sockets-transport.d.ts +44 -0
- package/dist/cjs/sockets-transport.js +89 -0
- package/dist/cjs/streams-transport.d.ts +84 -0
- package/dist/cjs/streams-transport.js +281 -0
- package/dist/cjs/tools.d.ts +30 -0
- package/dist/cjs/tools.js +130 -52
- package/dist/cjs/types.d.ts +78 -2
- package/dist/esm/commands/authenticate.js +32 -1
- package/dist/esm/commands/fetch.js +11 -4
- package/dist/esm/commands/idle.js +31 -1
- package/dist/esm/commands/list.js +15 -1
- package/dist/esm/errors.d.ts +2 -0
- package/dist/esm/errors.js +4 -0
- package/dist/esm/handler/imap-parser.js +3 -0
- package/dist/esm/handler/parser-instance.d.ts +2 -0
- package/dist/esm/handler/parser-instance.js +3 -1
- package/dist/esm/handler/token-parser.d.ts +21 -2
- package/dist/esm/handler/token-parser.js +76 -6
- package/dist/esm/handler/types.d.ts +5 -0
- package/dist/esm/imap-flow.d.ts +9 -9
- package/dist/esm/imap-flow.js +88 -14
- package/dist/esm/package-info.d.ts +1 -1
- package/dist/esm/package-info.js +1 -1
- package/dist/esm/sockets-transport.d.ts +44 -0
- package/dist/esm/sockets-transport.js +86 -0
- package/dist/esm/streams-transport.d.ts +84 -0
- package/dist/esm/streams-transport.js +278 -0
- package/dist/esm/tools.d.ts +30 -0
- package/dist/esm/tools.js +126 -51
- package/dist/esm/types.d.ts +78 -2
- package/package.json +16 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "imapflow",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.1",
|
|
4
4
|
"description": "IMAP Client for Node",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cjs/imap-flow.js",
|
|
@@ -37,13 +37,17 @@
|
|
|
37
37
|
"build": "node scripts/build.js",
|
|
38
38
|
"typecheck": "node scripts/build.js --generate-only && tsc -p tsconfig.json",
|
|
39
39
|
"pretest": "npm run build",
|
|
40
|
-
"test": "node --import tsx --test --test-force-exit --test-concurrency=1 $(find test -name '*-test.ts' -not -path '*/integration/*' -not -path '*/cloudflare/*')",
|
|
40
|
+
"test": "node --import tsx --test --test-force-exit --test-concurrency=1 $(find test -name '*-test.ts' -not -path '*/integration/*' -not -path '*/cloudflare/*' -not -path '*/celld/*' -not -path '*/browser/*')",
|
|
41
41
|
"pretest:coverage": "npm run build",
|
|
42
|
-
"test:coverage": "c8 node --import tsx --test --test-force-exit --test-concurrency=1 $(find test -name '*-test.ts' -not -path '*/integration/*' -not -path '*/cloudflare/*')",
|
|
42
|
+
"test:coverage": "c8 node --import tsx --test --test-force-exit --test-concurrency=1 $(find test -name '*-test.ts' -not -path '*/integration/*' -not -path '*/cloudflare/*' -not -path '*/celld/*' -not -path '*/browser/*')",
|
|
43
43
|
"pretest:bun": "npm run build",
|
|
44
|
-
"test:bun": "bun test --timeout 60000 $(find ./test -name '*-test.ts' -not -path '*/integration/*' -not -path '*/cloudflare/*')",
|
|
44
|
+
"test:bun": "bun test --timeout 60000 $(find ./test -name '*-test.ts' -not -path '*/integration/*' -not -path '*/cloudflare/*' -not -path '*/celld/*' -not -path '*/browser/*')",
|
|
45
45
|
"pretest:workers": "npm run build",
|
|
46
46
|
"test:workers": "node --import tsx --test test/cloudflare/cloudflare-test.ts",
|
|
47
|
+
"pretest:celld": "npm run build",
|
|
48
|
+
"test:celld": "node --import tsx --test --test-force-exit test/celld/celld-test.ts",
|
|
49
|
+
"pretest:browser": "npm run build",
|
|
50
|
+
"test:browser": "node --import tsx --test --test-force-exit test/browser/browser-test.ts",
|
|
47
51
|
"test:rev2": "bash test/integration/run-rev2-tests.sh",
|
|
48
52
|
"test:mutation": "node scripts/mutation-test.js",
|
|
49
53
|
"format": "prettier --write \"**/*.{js,cjs,ts,json,md,yml,yaml}\"",
|
|
@@ -71,12 +75,19 @@
|
|
|
71
75
|
"homepage": "https://imapflow.com/",
|
|
72
76
|
"devDependencies": {
|
|
73
77
|
"@types/node": "20.19.43",
|
|
78
|
+
"buffer": "6.0.3",
|
|
74
79
|
"c8": "12.0.0",
|
|
80
|
+
"esbuild": "0.28.2",
|
|
75
81
|
"eslint": "10.12.0",
|
|
76
82
|
"eslint-config-prettier": "10.1.8",
|
|
83
|
+
"events": "3.3.0",
|
|
77
84
|
"globals": "17.13.0",
|
|
78
|
-
"imapkit": "5.0
|
|
85
|
+
"imapkit": "5.1.0",
|
|
86
|
+
"playwright-core": "1.64.1",
|
|
79
87
|
"prettier": "3.9.10",
|
|
88
|
+
"process": "0.11.10",
|
|
89
|
+
"readable-stream": "4.8.0",
|
|
90
|
+
"string_decoder": "1.3.0",
|
|
80
91
|
"tsx": "4.23.15",
|
|
81
92
|
"types-node-legacy": "npm:@types/node@20.0.0",
|
|
82
93
|
"typescript": "6.0.3",
|