@bernierllc/email-test-orchestrator 0.7.10 → 0.7.11
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/package.json +5 -5
- package/dist/EmailTestOrchestrator.d.ts +0 -72
- package/dist/EmailTestOrchestrator.d.ts.map +0 -1
- package/dist/EmailTestOrchestrator.js +0 -390
- package/dist/EmailTestOrchestrator.js.map +0 -1
- package/dist/errors.d.ts +0 -12
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js +0 -21
- package/dist/errors.js.map +0 -1
- package/dist/index.d.ts +0 -4
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -10
- package/dist/index.js.map +0 -1
- package/dist/types.d.ts +0 -167
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -9
- package/dist/types.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bernierllc/email-test-orchestrator",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.11",
|
|
4
4
|
"description": "Service package that orchestrates comprehensive email testing workflows",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"@bernierllc/email-capture": "^1.3.0",
|
|
24
24
|
"@bernierllc/email-parser": "^0.7.0",
|
|
25
25
|
"@bernierllc/email-sender": "^5.13.0",
|
|
26
|
-
"@bernierllc/email-test-assertions": "^1.6.1",
|
|
27
26
|
"@bernierllc/email-validator": "^3.4.0",
|
|
28
|
-
"@bernierllc/logger": "^
|
|
29
|
-
"@bernierllc/mock-smtp-server": "^1.6.
|
|
27
|
+
"@bernierllc/logger": "^2.0.0",
|
|
28
|
+
"@bernierllc/mock-smtp-server": "^1.6.4",
|
|
30
29
|
"@bernierllc/retry-policy": "^0.7.0",
|
|
31
|
-
"@bernierllc/template-engine": "^0.7.0"
|
|
30
|
+
"@bernierllc/template-engine": "^0.7.0",
|
|
31
|
+
"@bernierllc/email-test-assertions": "^1.6.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/jest": "^29.5.12",
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import type { OrchestratorConfig, EmailTestSpec, EmailTestResult, EmailTestSuiteResult, TestSetupConfig, TestContext, CapturedEmail, SendEmailOptions, ValidationResult, TestReport, EmailExpectation } from './types.js';
|
|
2
|
-
export declare class EmailTestOrchestrator {
|
|
3
|
-
private config;
|
|
4
|
-
private logger;
|
|
5
|
-
private validators;
|
|
6
|
-
constructor(config?: OrchestratorConfig);
|
|
7
|
-
/**
|
|
8
|
-
* Send an email and capture it for testing
|
|
9
|
-
*/
|
|
10
|
-
sendAndCapture(options: SendEmailOptions): Promise<CapturedEmail>;
|
|
11
|
-
/**
|
|
12
|
-
* Execute a complete test suite
|
|
13
|
-
*/
|
|
14
|
-
executeTestSuite(tests: EmailTestSpec[]): Promise<EmailTestSuiteResult>;
|
|
15
|
-
/**
|
|
16
|
-
* Run a single email test
|
|
17
|
-
*/
|
|
18
|
-
runEmailTest(testSpec: EmailTestSpec): Promise<EmailTestResult>;
|
|
19
|
-
/**
|
|
20
|
-
* Validate a captured email against expectations
|
|
21
|
-
*/
|
|
22
|
-
validateEmail(email: CapturedEmail, expectations: EmailExpectation[]): Promise<ValidationResult[]>;
|
|
23
|
-
/**
|
|
24
|
-
* Generate a test report
|
|
25
|
-
*/
|
|
26
|
-
generateReport(results: EmailTestResult[]): Promise<TestReport>;
|
|
27
|
-
/**
|
|
28
|
-
* Set up test environment
|
|
29
|
-
*/
|
|
30
|
-
setupTestEnvironment(config: TestSetupConfig): Promise<TestContext>;
|
|
31
|
-
/**
|
|
32
|
-
* Clean up test environment
|
|
33
|
-
*/
|
|
34
|
-
cleanupTestEnvironment(sessionId: string): Promise<void>;
|
|
35
|
-
/**
|
|
36
|
-
* Wait for email delivery with timeout
|
|
37
|
-
*/
|
|
38
|
-
waitForDelivery(emailId: string, timeout?: number): Promise<CapturedEmail | null>;
|
|
39
|
-
/**
|
|
40
|
-
* Send an email
|
|
41
|
-
*/
|
|
42
|
-
private sendEmail;
|
|
43
|
-
/**
|
|
44
|
-
* Wait for emails to be captured
|
|
45
|
-
*/
|
|
46
|
-
private waitForEmails;
|
|
47
|
-
/**
|
|
48
|
-
* Get captured emails
|
|
49
|
-
*/
|
|
50
|
-
private getCapturedEmails;
|
|
51
|
-
/**
|
|
52
|
-
* Get validator for a specific type
|
|
53
|
-
*/
|
|
54
|
-
private getValidator;
|
|
55
|
-
/**
|
|
56
|
-
* Calculate overall score from validation results
|
|
57
|
-
*/
|
|
58
|
-
private calculateScore;
|
|
59
|
-
/**
|
|
60
|
-
* Generate report for a single test
|
|
61
|
-
*/
|
|
62
|
-
private generateSingleTestReport;
|
|
63
|
-
/**
|
|
64
|
-
* Create a failed test result
|
|
65
|
-
*/
|
|
66
|
-
private createFailedTestResult;
|
|
67
|
-
/**
|
|
68
|
-
* Sleep helper
|
|
69
|
-
*/
|
|
70
|
-
private sleep;
|
|
71
|
-
}
|
|
72
|
-
//# sourceMappingURL=EmailTestOrchestrator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EmailTestOrchestrator.d.ts","sourceRoot":"","sources":["../src/EmailTestOrchestrator.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,oBAAoB,EACpB,eAAe,EACf,WAAW,EACX,aAAa,EACb,gBAAgB,EAEhB,gBAAgB,EAEhB,UAAU,EACV,gBAAgB,EAEjB,MAAM,YAAY,CAAC;AAWpB,qBAAa,qBAAqB;IAChC,OAAO,CAAC,MAAM,CAAqB;IACnC,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,UAAU,CAAyB;gBAE/B,MAAM,GAAE,kBAAuB;IA+B3C;;OAEG;IACG,cAAc,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,aAAa,CAAC;IA0BvE;;OAEG;IACG,gBAAgB,CAAC,KAAK,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC,oBAAoB,CAAC;IA8C7E;;OAEG;IACG,YAAY,CAAC,QAAQ,EAAE,aAAa,GAAG,OAAO,CAAC,eAAe,CAAC;IAmErE;;OAEG;IACG,aAAa,CACjB,KAAK,EAAE,aAAa,EACpB,YAAY,EAAE,gBAAgB,EAAE,GAC/B,OAAO,CAAC,gBAAgB,EAAE,CAAC;IA4B9B;;OAEG;IACG,cAAc,CAAC,OAAO,EAAE,eAAe,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;IAwBrE;;OAEG;IACG,oBAAoB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC;IAkBzE;;OAEG;IACG,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAK9D;;OAEG;IACG,eAAe,CACnB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,MAAc,GACtB,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC;IAiBhC;;OAEG;YACW,SAAS;IAKvB;;OAEG;YACW,aAAa;IAkB3B;;OAEG;YACW,iBAAiB;IAK/B;;OAEG;IACH,OAAO,CAAC,YAAY;IAcpB;;OAEG;IACH,OAAO,CAAC,cAAc;IAetB;;OAEG;IACH,OAAO,CAAC,wBAAwB;IAyBhC;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAkC9B;;OAEG;IACH,OAAO,CAAC,KAAK;CAGd"}
|
|
@@ -1,390 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright (c) 2025 Bernier LLC
|
|
3
|
-
|
|
4
|
-
This file is licensed to the client under a limited-use license.
|
|
5
|
-
The client may use and modify this code *only within the scope of the project it was delivered for*.
|
|
6
|
-
Redistribution or use in other products or commercial offerings is not permitted without written consent from Bernier LLC.
|
|
7
|
-
*/
|
|
8
|
-
export class EmailTestOrchestrator {
|
|
9
|
-
config;
|
|
10
|
-
logger;
|
|
11
|
-
validators;
|
|
12
|
-
constructor(config = {}) {
|
|
13
|
-
this.config = {
|
|
14
|
-
smtp: {
|
|
15
|
-
host: 'localhost',
|
|
16
|
-
port: 2525,
|
|
17
|
-
secure: false,
|
|
18
|
-
...config.smtp,
|
|
19
|
-
},
|
|
20
|
-
capture: {
|
|
21
|
-
sessionTimeout: 300000, // 5 minutes
|
|
22
|
-
retentionPolicy: '1h',
|
|
23
|
-
...config.capture,
|
|
24
|
-
},
|
|
25
|
-
validation: {
|
|
26
|
-
enabledValidators: ['content', 'template', 'compliance', 'smtp', 'delivery'],
|
|
27
|
-
parallelValidation: true,
|
|
28
|
-
validationTimeout: 30000,
|
|
29
|
-
...config.validation,
|
|
30
|
-
},
|
|
31
|
-
reporting: {
|
|
32
|
-
formats: ['json'],
|
|
33
|
-
includeRawEmails: false,
|
|
34
|
-
includeScreenshots: false,
|
|
35
|
-
...config.reporting,
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
this.logger = config.logger || console;
|
|
39
|
-
this.validators = new Map();
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Send an email and capture it for testing
|
|
43
|
-
*/
|
|
44
|
-
async sendAndCapture(options) {
|
|
45
|
-
const startTime = Date.now();
|
|
46
|
-
try {
|
|
47
|
-
// Send email
|
|
48
|
-
await this.sendEmail(options);
|
|
49
|
-
// Wait for email to be captured
|
|
50
|
-
const emails = await this.waitForEmails({
|
|
51
|
-
count: 1,
|
|
52
|
-
timeout: 10000,
|
|
53
|
-
filter: (email) => email.subject === options.subject,
|
|
54
|
-
});
|
|
55
|
-
if (emails.length === 0) {
|
|
56
|
-
throw new Error('Email not captured within timeout period');
|
|
57
|
-
}
|
|
58
|
-
this.logger.info?.(`Email sent and captured in ${Date.now() - startTime}ms`);
|
|
59
|
-
return emails[0];
|
|
60
|
-
}
|
|
61
|
-
catch (error) {
|
|
62
|
-
this.logger.error?.('Failed to send and capture email:', error);
|
|
63
|
-
throw error;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Execute a complete test suite
|
|
68
|
-
*/
|
|
69
|
-
async executeTestSuite(tests) {
|
|
70
|
-
const startTime = Date.now();
|
|
71
|
-
const results = [];
|
|
72
|
-
this.logger.info?.(`Executing test suite with ${tests.length} tests`);
|
|
73
|
-
for (const test of tests) {
|
|
74
|
-
try {
|
|
75
|
-
const result = await this.runEmailTest(test);
|
|
76
|
-
results.push(result);
|
|
77
|
-
}
|
|
78
|
-
catch (error) {
|
|
79
|
-
this.logger.error?.(`Test "${test.name}" failed:`, error);
|
|
80
|
-
results.push(this.createFailedTestResult(test, error));
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
const duration = Date.now() - startTime;
|
|
84
|
-
const success = results.every((r) => r.success);
|
|
85
|
-
const score = results.reduce((sum, r) => sum + r.score, 0) / results.length;
|
|
86
|
-
const report = {
|
|
87
|
-
summary: {
|
|
88
|
-
totalTests: tests.length,
|
|
89
|
-
passed: results.filter((r) => r.success).length,
|
|
90
|
-
failed: results.filter((r) => !r.success).length,
|
|
91
|
-
score,
|
|
92
|
-
duration,
|
|
93
|
-
},
|
|
94
|
-
tests: results,
|
|
95
|
-
metadata: {
|
|
96
|
-
timestamp: new Date().toISOString(),
|
|
97
|
-
environment: 'test',
|
|
98
|
-
version: '1.0.0',
|
|
99
|
-
},
|
|
100
|
-
};
|
|
101
|
-
return {
|
|
102
|
-
suiteName: 'Email Test Suite',
|
|
103
|
-
success,
|
|
104
|
-
score,
|
|
105
|
-
duration,
|
|
106
|
-
tests: results,
|
|
107
|
-
report,
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Run a single email test
|
|
112
|
-
*/
|
|
113
|
-
async runEmailTest(testSpec) {
|
|
114
|
-
const startTime = Date.now();
|
|
115
|
-
const issues = [];
|
|
116
|
-
try {
|
|
117
|
-
this.logger.info?.(`Running test: ${testSpec.name}`);
|
|
118
|
-
// Send test email
|
|
119
|
-
const sendOptions = {
|
|
120
|
-
from: testSpec.sender,
|
|
121
|
-
to: testSpec.recipients,
|
|
122
|
-
subject: testSpec.template?.subject || 'Test Email',
|
|
123
|
-
template: testSpec.template,
|
|
124
|
-
data: testSpec.data,
|
|
125
|
-
};
|
|
126
|
-
await this.sendEmail(sendOptions);
|
|
127
|
-
// Wait for emails
|
|
128
|
-
const capturedEmails = await this.waitForEmails({
|
|
129
|
-
count: testSpec.recipients.length,
|
|
130
|
-
timeout: testSpec.timeout || 30000,
|
|
131
|
-
});
|
|
132
|
-
// Validate emails
|
|
133
|
-
const validationResults = [];
|
|
134
|
-
for (const email of capturedEmails) {
|
|
135
|
-
const results = await this.validateEmail(email, testSpec.expectations);
|
|
136
|
-
validationResults.push(...results);
|
|
137
|
-
}
|
|
138
|
-
// Calculate success and score
|
|
139
|
-
const success = validationResults.every((r) => r.success);
|
|
140
|
-
const score = this.calculateScore(validationResults, testSpec.expectations);
|
|
141
|
-
// Collect issues
|
|
142
|
-
for (const result of validationResults) {
|
|
143
|
-
if (!result.success && result.errors) {
|
|
144
|
-
for (const error of result.errors) {
|
|
145
|
-
issues.push({
|
|
146
|
-
severity: 'error',
|
|
147
|
-
type: result.type,
|
|
148
|
-
message: error,
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
const duration = Date.now() - startTime;
|
|
154
|
-
return {
|
|
155
|
-
testName: testSpec.name,
|
|
156
|
-
success,
|
|
157
|
-
score,
|
|
158
|
-
duration,
|
|
159
|
-
emailsSent: testSpec.recipients.length,
|
|
160
|
-
emailsCaptured: capturedEmails.length,
|
|
161
|
-
validationResults,
|
|
162
|
-
issues,
|
|
163
|
-
report: this.generateSingleTestReport(testSpec, validationResults, duration),
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
catch (error) {
|
|
167
|
-
this.logger.error?.(`Test "${testSpec.name}" failed:`, error);
|
|
168
|
-
return this.createFailedTestResult(testSpec, error);
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
/**
|
|
172
|
-
* Validate a captured email against expectations
|
|
173
|
-
*/
|
|
174
|
-
async validateEmail(email, expectations) {
|
|
175
|
-
const results = [];
|
|
176
|
-
for (const expectation of expectations) {
|
|
177
|
-
try {
|
|
178
|
-
const validator = this.getValidator(expectation.type);
|
|
179
|
-
const result = await validator.validate(email, expectation.criteria);
|
|
180
|
-
results.push({
|
|
181
|
-
type: expectation.type,
|
|
182
|
-
success: result.success,
|
|
183
|
-
score: result.score || (result.success ? 100 : 0),
|
|
184
|
-
details: result.details || {},
|
|
185
|
-
errors: result.errors,
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
catch (error) {
|
|
189
|
-
results.push({
|
|
190
|
-
type: expectation.type,
|
|
191
|
-
success: false,
|
|
192
|
-
score: 0,
|
|
193
|
-
details: {},
|
|
194
|
-
errors: [error.message],
|
|
195
|
-
});
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
return results;
|
|
199
|
-
}
|
|
200
|
-
/**
|
|
201
|
-
* Generate a test report
|
|
202
|
-
*/
|
|
203
|
-
async generateReport(results) {
|
|
204
|
-
const totalTests = results.length;
|
|
205
|
-
const passed = results.filter((r) => r.success).length;
|
|
206
|
-
const failed = totalTests - passed;
|
|
207
|
-
const score = results.reduce((sum, r) => sum + r.score, 0) / totalTests;
|
|
208
|
-
const duration = results.reduce((sum, r) => sum + r.duration, 0);
|
|
209
|
-
return {
|
|
210
|
-
summary: {
|
|
211
|
-
totalTests,
|
|
212
|
-
passed,
|
|
213
|
-
failed,
|
|
214
|
-
score,
|
|
215
|
-
duration,
|
|
216
|
-
},
|
|
217
|
-
tests: results,
|
|
218
|
-
metadata: {
|
|
219
|
-
timestamp: new Date().toISOString(),
|
|
220
|
-
environment: 'test',
|
|
221
|
-
version: '1.0.0',
|
|
222
|
-
},
|
|
223
|
-
};
|
|
224
|
-
}
|
|
225
|
-
/**
|
|
226
|
-
* Set up test environment
|
|
227
|
-
*/
|
|
228
|
-
async setupTestEnvironment(config) {
|
|
229
|
-
const sessionId = `test-${Date.now()}`;
|
|
230
|
-
this.logger.info?.('Setting up test environment:', sessionId);
|
|
231
|
-
// Mock server setup would happen here
|
|
232
|
-
// For now, return a basic context
|
|
233
|
-
return {
|
|
234
|
-
sessionId,
|
|
235
|
-
mockServerPort: config.mockServer?.port || 2525,
|
|
236
|
-
createdAt: new Date(),
|
|
237
|
-
cleanup: async () => {
|
|
238
|
-
await this.cleanupTestEnvironment(sessionId);
|
|
239
|
-
},
|
|
240
|
-
};
|
|
241
|
-
}
|
|
242
|
-
/**
|
|
243
|
-
* Clean up test environment
|
|
244
|
-
*/
|
|
245
|
-
async cleanupTestEnvironment(sessionId) {
|
|
246
|
-
this.logger.info?.('Cleaning up test environment:', sessionId);
|
|
247
|
-
// Cleanup logic would be implemented here
|
|
248
|
-
}
|
|
249
|
-
/**
|
|
250
|
-
* Wait for email delivery with timeout
|
|
251
|
-
*/
|
|
252
|
-
async waitForDelivery(emailId, timeout = 30000) {
|
|
253
|
-
const startTime = Date.now();
|
|
254
|
-
while (Date.now() - startTime < timeout) {
|
|
255
|
-
const emails = await this.getCapturedEmails();
|
|
256
|
-
const email = emails.find((e) => e.id === emailId);
|
|
257
|
-
if (email) {
|
|
258
|
-
return email;
|
|
259
|
-
}
|
|
260
|
-
await this.sleep(100);
|
|
261
|
-
}
|
|
262
|
-
return null;
|
|
263
|
-
}
|
|
264
|
-
/**
|
|
265
|
-
* Send an email
|
|
266
|
-
*/
|
|
267
|
-
async sendEmail(options) {
|
|
268
|
-
// Mock implementation - would use email-sender package
|
|
269
|
-
this.logger.info?.('Sending email:', options.subject);
|
|
270
|
-
}
|
|
271
|
-
/**
|
|
272
|
-
* Wait for emails to be captured
|
|
273
|
-
*/
|
|
274
|
-
async waitForEmails(options) {
|
|
275
|
-
const startTime = Date.now();
|
|
276
|
-
const timeout = options.timeout || 30000;
|
|
277
|
-
while (Date.now() - startTime < timeout) {
|
|
278
|
-
const emails = await this.getCapturedEmails();
|
|
279
|
-
const filtered = options.filter ? emails.filter(options.filter) : emails;
|
|
280
|
-
if (filtered.length >= options.count) {
|
|
281
|
-
return filtered.slice(0, options.count);
|
|
282
|
-
}
|
|
283
|
-
await this.sleep(100);
|
|
284
|
-
}
|
|
285
|
-
return [];
|
|
286
|
-
}
|
|
287
|
-
/**
|
|
288
|
-
* Get captured emails
|
|
289
|
-
*/
|
|
290
|
-
async getCapturedEmails() {
|
|
291
|
-
// Mock implementation - would use email-capture package
|
|
292
|
-
return [];
|
|
293
|
-
}
|
|
294
|
-
/**
|
|
295
|
-
* Get validator for a specific type
|
|
296
|
-
*/
|
|
297
|
-
getValidator(type) {
|
|
298
|
-
if (!this.validators.has(type)) {
|
|
299
|
-
// Create mock validator
|
|
300
|
-
this.validators.set(type, {
|
|
301
|
-
validate: async () => ({
|
|
302
|
-
success: true,
|
|
303
|
-
score: 100,
|
|
304
|
-
details: {},
|
|
305
|
-
}),
|
|
306
|
-
});
|
|
307
|
-
}
|
|
308
|
-
return this.validators.get(type);
|
|
309
|
-
}
|
|
310
|
-
/**
|
|
311
|
-
* Calculate overall score from validation results
|
|
312
|
-
*/
|
|
313
|
-
calculateScore(results, expectations) {
|
|
314
|
-
if (results.length === 0)
|
|
315
|
-
return 0;
|
|
316
|
-
let totalWeight = 0;
|
|
317
|
-
let weightedScore = 0;
|
|
318
|
-
for (let i = 0; i < results.length; i++) {
|
|
319
|
-
const weight = expectations[i]?.weight || 1;
|
|
320
|
-
totalWeight += weight;
|
|
321
|
-
weightedScore += results[i].score * weight;
|
|
322
|
-
}
|
|
323
|
-
return totalWeight > 0 ? weightedScore / totalWeight : 0;
|
|
324
|
-
}
|
|
325
|
-
/**
|
|
326
|
-
* Generate report for a single test
|
|
327
|
-
*/
|
|
328
|
-
generateSingleTestReport(testSpec, validationResults, duration) {
|
|
329
|
-
const success = validationResults.every((r) => r.success);
|
|
330
|
-
const score = this.calculateScore(validationResults, testSpec.expectations);
|
|
331
|
-
return {
|
|
332
|
-
summary: {
|
|
333
|
-
totalTests: 1,
|
|
334
|
-
passed: success ? 1 : 0,
|
|
335
|
-
failed: success ? 0 : 1,
|
|
336
|
-
score,
|
|
337
|
-
duration,
|
|
338
|
-
},
|
|
339
|
-
tests: [],
|
|
340
|
-
metadata: {
|
|
341
|
-
timestamp: new Date().toISOString(),
|
|
342
|
-
environment: 'test',
|
|
343
|
-
version: '1.0.0',
|
|
344
|
-
},
|
|
345
|
-
};
|
|
346
|
-
}
|
|
347
|
-
/**
|
|
348
|
-
* Create a failed test result
|
|
349
|
-
*/
|
|
350
|
-
createFailedTestResult(testSpec, error) {
|
|
351
|
-
return {
|
|
352
|
-
testName: testSpec.name,
|
|
353
|
-
success: false,
|
|
354
|
-
score: 0,
|
|
355
|
-
duration: 0,
|
|
356
|
-
emailsSent: 0,
|
|
357
|
-
emailsCaptured: 0,
|
|
358
|
-
validationResults: [],
|
|
359
|
-
issues: [
|
|
360
|
-
{
|
|
361
|
-
severity: 'error',
|
|
362
|
-
type: 'test_execution',
|
|
363
|
-
message: error.message,
|
|
364
|
-
},
|
|
365
|
-
],
|
|
366
|
-
report: {
|
|
367
|
-
summary: {
|
|
368
|
-
totalTests: 1,
|
|
369
|
-
passed: 0,
|
|
370
|
-
failed: 1,
|
|
371
|
-
score: 0,
|
|
372
|
-
duration: 0,
|
|
373
|
-
},
|
|
374
|
-
tests: [],
|
|
375
|
-
metadata: {
|
|
376
|
-
timestamp: new Date().toISOString(),
|
|
377
|
-
environment: 'test',
|
|
378
|
-
version: '1.0.0',
|
|
379
|
-
},
|
|
380
|
-
},
|
|
381
|
-
};
|
|
382
|
-
}
|
|
383
|
-
/**
|
|
384
|
-
* Sleep helper
|
|
385
|
-
*/
|
|
386
|
-
sleep(ms) {
|
|
387
|
-
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
//# sourceMappingURL=EmailTestOrchestrator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EmailTestOrchestrator.js","sourceRoot":"","sources":["../src/EmailTestOrchestrator.ts"],"names":[],"mappings":"AAAA;;;;;;EAME;AA4BF,MAAM,OAAO,qBAAqB;IACxB,MAAM,CAAqB;IAC3B,MAAM,CAAS;IACf,UAAU,CAAyB;IAE3C,YAAY,SAA6B,EAAE;QACzC,IAAI,CAAC,MAAM,GAAG;YACZ,IAAI,EAAE;gBACJ,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,IAAI;gBACV,MAAM,EAAE,KAAK;gBACb,GAAG,MAAM,CAAC,IAAI;aACf;YACD,OAAO,EAAE;gBACP,cAAc,EAAE,MAAM,EAAE,YAAY;gBACpC,eAAe,EAAE,IAAI;gBACrB,GAAG,MAAM,CAAC,OAAO;aAClB;YACD,UAAU,EAAE;gBACV,iBAAiB,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,UAAU,CAAC;gBAC5E,kBAAkB,EAAE,IAAI;gBACxB,iBAAiB,EAAE,KAAK;gBACxB,GAAG,MAAM,CAAC,UAAU;aACrB;YACD,SAAS,EAAE;gBACT,OAAO,EAAE,CAAC,MAAM,CAAC;gBACjB,gBAAgB,EAAE,KAAK;gBACvB,kBAAkB,EAAE,KAAK;gBACzB,GAAG,MAAM,CAAC,SAAS;aACpB;SACF,CAAC;QAEF,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,IAAI,OAAO,CAAC;QACvC,IAAI,CAAC,UAAU,GAAG,IAAI,GAAG,EAAE,CAAC;IAC9B,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,cAAc,CAAC,OAAyB;QAC5C,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QAE7B,IAAI,CAAC;YACH,aAAa;YACb,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YAE9B,g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;IAC3D,CAAC;CACF"}
|
package/dist/errors.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export type EmailTestOrchestratorErrorCode = 'EMAIL_TEST_ORCHESTRATOR_ERROR' | 'INVALID_INPUT' | 'OPERATION_FAILED';
|
|
2
|
-
export interface EmailTestOrchestratorErrorOptions {
|
|
3
|
-
cause?: Error;
|
|
4
|
-
code?: EmailTestOrchestratorErrorCode;
|
|
5
|
-
context?: Record<string, unknown>;
|
|
6
|
-
}
|
|
7
|
-
export declare class EmailTestOrchestratorError extends Error {
|
|
8
|
-
readonly code: EmailTestOrchestratorErrorCode;
|
|
9
|
-
readonly context?: Record<string, unknown>;
|
|
10
|
-
constructor(message: string, options?: EmailTestOrchestratorErrorOptions);
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=errors.d.ts.map
|
package/dist/errors.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,8BAA8B,GACtC,+BAA+B,GAC/B,eAAe,GACf,kBAAkB,CAAC;AAEvB,MAAM,WAAW,iCAAiC;IAChD,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,IAAI,CAAC,EAAE,8BAA8B,CAAC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAED,qBAAa,0BAA2B,SAAQ,KAAK;IACnD,QAAQ,CAAC,IAAI,EAAE,8BAA8B,CAAC;IAC9C,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;gBAE/B,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,iCAAiC;CASzE"}
|
package/dist/errors.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright (c) 2025 Bernier LLC
|
|
3
|
-
|
|
4
|
-
This file is licensed to the client under a limited-use license.
|
|
5
|
-
The client may use and modify this code *only within the scope of the project it was delivered for*.
|
|
6
|
-
Redistribution or use in other products or commercial offerings is not permitted without written consent from Bernier LLC.
|
|
7
|
-
*/
|
|
8
|
-
export class EmailTestOrchestratorError extends Error {
|
|
9
|
-
code;
|
|
10
|
-
context;
|
|
11
|
-
constructor(message, options) {
|
|
12
|
-
super(message, options?.cause ? { cause: options.cause } : undefined);
|
|
13
|
-
this.name = 'EmailTestOrchestratorError';
|
|
14
|
-
this.code = options?.code ?? 'EMAIL_TEST_ORCHESTRATOR_ERROR';
|
|
15
|
-
if (options?.context !== undefined) {
|
|
16
|
-
this.context = options.context;
|
|
17
|
-
}
|
|
18
|
-
Error.captureStackTrace?.(this, this.constructor);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=errors.js.map
|
package/dist/errors.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;EAME;AAaF,MAAM,OAAO,0BAA2B,SAAQ,KAAK;IAC1C,IAAI,CAAiC;IACrC,OAAO,CAA2B;IAE3C,YAAY,OAAe,EAAE,OAA2C;QACtE,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;QACtE,IAAI,CAAC,IAAI,GAAG,4BAA4B,CAAC;QACzC,IAAI,CAAC,IAAI,GAAG,OAAO,EAAE,IAAI,IAAI,+BAA+B,CAAC;QAC7D,IAAI,OAAO,EAAE,OAAO,KAAK,SAAS,EAAE,CAAC;YACnC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;QACjC,CAAC;QACD,KAAK,CAAC,iBAAiB,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IACpD,CAAC;CACF"}
|
package/dist/index.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { EmailTestOrchestrator } from './EmailTestOrchestrator.js';
|
|
2
|
-
export { EmailTestOrchestratorError, type EmailTestOrchestratorErrorCode, type EmailTestOrchestratorErrorOptions } from './errors.js';
|
|
3
|
-
export type { Logger, OrchestratorConfig, EmailTestSpec, EmailTestResult, EmailTestSuiteResult, TestSetupConfig, TestContext, CapturedEmail, SendEmailOptions, WaitForEmailsOptions, ValidateEmailsOptions, ValidationResult, TestIssue, TestReport, EmailSender, EmailRecipient, EmailTemplate, EmailExpectation, ExpectationCriteria, ValidatorType, ReportFormat, } from './types.js';
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAAE,KAAK,8BAA8B,EAAE,KAAK,iCAAiC,EAAE,MAAM,aAAa,CAAC;AACtI,YAAY,EACV,MAAM,EACN,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,oBAAoB,EACpB,eAAe,EACf,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,gBAAgB,EAChB,SAAS,EACT,UAAU,EACV,WAAW,EACX,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,EACb,YAAY,GACb,MAAM,YAAY,CAAC"}
|
package/dist/index.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright (c) 2025 Bernier LLC
|
|
3
|
-
|
|
4
|
-
This file is licensed to the client under a limited-use license.
|
|
5
|
-
The client may use and modify this code *only within the scope of the project it was delivered for*.
|
|
6
|
-
Redistribution or use in other products or commercial offerings is not permitted without written consent from Bernier LLC.
|
|
7
|
-
*/
|
|
8
|
-
export { EmailTestOrchestrator } from './EmailTestOrchestrator.js';
|
|
9
|
-
export { EmailTestOrchestratorError } from './errors.js';
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;EAME;AAEF,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAA+E,MAAM,aAAa,CAAC"}
|
package/dist/types.d.ts
DELETED
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
export interface Logger {
|
|
2
|
-
info?: (...args: unknown[]) => void;
|
|
3
|
-
error?: (...args: unknown[]) => void;
|
|
4
|
-
warn?: (...args: unknown[]) => void;
|
|
5
|
-
debug?: (...args: unknown[]) => void;
|
|
6
|
-
}
|
|
7
|
-
export interface OrchestratorConfig {
|
|
8
|
-
smtp?: {
|
|
9
|
-
host?: string;
|
|
10
|
-
port?: number;
|
|
11
|
-
secure?: boolean;
|
|
12
|
-
auth?: {
|
|
13
|
-
user: string;
|
|
14
|
-
pass: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
capture?: {
|
|
18
|
-
sessionTimeout?: number;
|
|
19
|
-
retentionPolicy?: string;
|
|
20
|
-
};
|
|
21
|
-
validation?: {
|
|
22
|
-
enabledValidators?: ValidatorType[];
|
|
23
|
-
parallelValidation?: boolean;
|
|
24
|
-
validationTimeout?: number;
|
|
25
|
-
};
|
|
26
|
-
reporting?: {
|
|
27
|
-
formats?: ReportFormat[];
|
|
28
|
-
includeRawEmails?: boolean;
|
|
29
|
-
includeScreenshots?: boolean;
|
|
30
|
-
};
|
|
31
|
-
logger?: Logger;
|
|
32
|
-
}
|
|
33
|
-
export type ValidatorType = 'content' | 'template' | 'compliance' | 'smtp' | 'delivery';
|
|
34
|
-
export type ReportFormat = 'json' | 'html' | 'pdf' | 'csv';
|
|
35
|
-
export interface EmailTestSpec {
|
|
36
|
-
name: string;
|
|
37
|
-
description: string;
|
|
38
|
-
sender: EmailSender;
|
|
39
|
-
recipients: EmailRecipient[];
|
|
40
|
-
template?: EmailTemplate;
|
|
41
|
-
data?: Record<string, unknown>;
|
|
42
|
-
expectations: EmailExpectation[];
|
|
43
|
-
timeout?: number;
|
|
44
|
-
retries?: number;
|
|
45
|
-
}
|
|
46
|
-
export interface EmailSender {
|
|
47
|
-
email: string;
|
|
48
|
-
name?: string;
|
|
49
|
-
}
|
|
50
|
-
export interface EmailRecipient {
|
|
51
|
-
email: string;
|
|
52
|
-
name?: string;
|
|
53
|
-
type?: 'to' | 'cc' | 'bcc';
|
|
54
|
-
}
|
|
55
|
-
export interface EmailTemplate {
|
|
56
|
-
name: string;
|
|
57
|
-
subject: string;
|
|
58
|
-
body: string;
|
|
59
|
-
type?: 'html' | 'text';
|
|
60
|
-
}
|
|
61
|
-
export interface EmailExpectation {
|
|
62
|
-
type: 'delivery' | 'content' | 'compliance' | 'template' | 'smtp';
|
|
63
|
-
criteria: ExpectationCriteria;
|
|
64
|
-
weight?: number;
|
|
65
|
-
}
|
|
66
|
-
export interface ExpectationCriteria {
|
|
67
|
-
[key: string]: unknown;
|
|
68
|
-
}
|
|
69
|
-
export interface EmailTestResult {
|
|
70
|
-
testName: string;
|
|
71
|
-
success: boolean;
|
|
72
|
-
score: number;
|
|
73
|
-
duration: number;
|
|
74
|
-
emailsSent: number;
|
|
75
|
-
emailsCaptured: number;
|
|
76
|
-
validationResults: ValidationResult[];
|
|
77
|
-
issues: TestIssue[];
|
|
78
|
-
report: TestReport;
|
|
79
|
-
}
|
|
80
|
-
export interface ValidationResult {
|
|
81
|
-
type: ValidatorType;
|
|
82
|
-
success: boolean;
|
|
83
|
-
score: number;
|
|
84
|
-
details: Record<string, unknown>;
|
|
85
|
-
errors?: string[];
|
|
86
|
-
}
|
|
87
|
-
export interface TestIssue {
|
|
88
|
-
severity: 'error' | 'warning' | 'info';
|
|
89
|
-
type: string;
|
|
90
|
-
message: string;
|
|
91
|
-
details?: Record<string, unknown>;
|
|
92
|
-
}
|
|
93
|
-
export interface TestReport {
|
|
94
|
-
summary: {
|
|
95
|
-
totalTests: number;
|
|
96
|
-
passed: number;
|
|
97
|
-
failed: number;
|
|
98
|
-
score: number;
|
|
99
|
-
duration: number;
|
|
100
|
-
};
|
|
101
|
-
tests: EmailTestResult[];
|
|
102
|
-
metadata: {
|
|
103
|
-
timestamp: string;
|
|
104
|
-
environment: string;
|
|
105
|
-
version: string;
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
export interface EmailTestSuiteResult {
|
|
109
|
-
suiteName: string;
|
|
110
|
-
success: boolean;
|
|
111
|
-
score: number;
|
|
112
|
-
duration: number;
|
|
113
|
-
tests: EmailTestResult[];
|
|
114
|
-
report: TestReport;
|
|
115
|
-
}
|
|
116
|
-
export interface TestSetupConfig {
|
|
117
|
-
mockServer?: {
|
|
118
|
-
port?: number;
|
|
119
|
-
host?: string;
|
|
120
|
-
};
|
|
121
|
-
session?: {
|
|
122
|
-
name: string;
|
|
123
|
-
timeout?: number;
|
|
124
|
-
};
|
|
125
|
-
cleanup?: {
|
|
126
|
-
retention?: string;
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
export interface TestContext {
|
|
130
|
-
sessionId: string;
|
|
131
|
-
mockServerPort?: number;
|
|
132
|
-
createdAt: Date;
|
|
133
|
-
cleanup: () => Promise<void>;
|
|
134
|
-
}
|
|
135
|
-
export interface CapturedEmail {
|
|
136
|
-
id: string;
|
|
137
|
-
from: string;
|
|
138
|
-
to: string[];
|
|
139
|
-
subject: string;
|
|
140
|
-
body: string;
|
|
141
|
-
html?: string;
|
|
142
|
-
headers: Record<string, string>;
|
|
143
|
-
receivedAt: Date;
|
|
144
|
-
raw?: string;
|
|
145
|
-
}
|
|
146
|
-
export interface SendEmailOptions {
|
|
147
|
-
from: EmailSender;
|
|
148
|
-
to: EmailRecipient[];
|
|
149
|
-
subject: string;
|
|
150
|
-
text?: string;
|
|
151
|
-
html?: string;
|
|
152
|
-
template?: EmailTemplate;
|
|
153
|
-
data?: Record<string, unknown>;
|
|
154
|
-
}
|
|
155
|
-
export interface WaitForEmailsOptions {
|
|
156
|
-
count: number;
|
|
157
|
-
timeout?: number;
|
|
158
|
-
filter?: (email: CapturedEmail) => boolean;
|
|
159
|
-
}
|
|
160
|
-
export interface ValidateEmailsOptions {
|
|
161
|
-
content?: boolean;
|
|
162
|
-
template?: boolean;
|
|
163
|
-
compliance?: boolean;
|
|
164
|
-
smtp?: boolean;
|
|
165
|
-
delivery?: boolean;
|
|
166
|
-
}
|
|
167
|
-
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,MAAM;IACrB,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;IACpC,KAAK,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;IACrC,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;IACpC,KAAK,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;CACtC;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE;QACL,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,IAAI,CAAC,EAAE;YACL,IAAI,EAAE,MAAM,CAAC;YACb,IAAI,EAAE,MAAM,CAAC;SACd,CAAC;KACH,CAA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AM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,UAAU,EAAE,IAAI,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,WAAW,CAAC;IAClB,EAAE,EAAE,cAAc,EAAE,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,OAAO,CAAC;CAC5C;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
package/dist/types.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright (c) 2025 Bernier LLC
|
|
3
|
-
|
|
4
|
-
This file is licensed to the client under a limited-use license.
|
|
5
|
-
The client may use and modify this code *only within the scope of the project it was delivered for*.
|
|
6
|
-
Redistribution or use in other products or commercial offerings is not permitted without written consent from Bernier LLC.
|
|
7
|
-
*/
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=types.js.map
|
package/dist/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;EAME"}
|