imapkit 4.1.1 → 4.3.0

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.
@@ -1,4 +1,5 @@
1
1
  import type { IMAPServer, IMAPConnection } from './server.js';
2
+ import type { ScriptRule } from './script.js';
2
3
  export type { IMAPServer, IMAPConnection };
3
4
  /**
4
5
  * A value of the parsed command or of a response, as imap-handler parses and compiles it: an
@@ -229,6 +230,8 @@ export interface IMAPServerOptions {
229
230
  systemFlags?: string[] | undefined;
230
231
  /** largest literal accepted after login, in octets */
231
232
  maxLiteralSize?: number | undefined;
233
+ /** script rules that make the server misbehave on purpose, see src/script.ts and README "Scripted faults" */
234
+ script?: ScriptRule | ScriptRule[] | undefined;
232
235
  [key: string]: any;
233
236
  }
234
237
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imapkit",
3
- "version": "4.1.1",
3
+ "version": "4.3.0",
4
4
  "description": "Scriptable, strictly RFC compliant in-memory IMAP server for testing IMAP clients",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/index.js",
@@ -93,7 +93,7 @@
93
93
  "eslint": "10.12.0",
94
94
  "eslint-config-prettier": "10.1.8",
95
95
  "globals": "17.13.0",
96
- "imapflow": "2.2.8",
96
+ "imapflow": "2.2.9",
97
97
  "prettier": "3.9.9",
98
98
  "tsx": "4.23.15",
99
99
  "typescript": "6.0.3",