Skip to content

Commit

Permalink
Merge pull request #6 from Samyca/darienmh/optional-data-server
Browse files Browse the repository at this point in the history
fix(dependencies): set version fixed
  • Loading branch information
darienmh committed Mar 11, 2024
2 parents ada69d9 + bb1637f commit f59a8e7
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 25 deletions.
19 changes: 9 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@samyca/mailflow",
"version": "1.0.3",
"version": "1.0.4",
"author": "Samyca <contact@samyca.com>",
"description": "A comprehensive tool for handling email flows in Node.js applications.",
"homepage": "https://github.com/Samyca/mailflow#readme",
Expand Down Expand Up @@ -29,13 +29,14 @@
"prepare": "husky",
"size": "size-limit",
"analyze": "size-limit --why",
"format": "npx prettier . --write"
"format": "npx prettier . --write",
"publish": "npm ci && npm run format && npm run build && npm run test && npm publish --access public"
},
"dependencies": {
"cheerio": "^1.0.0-rc.12",
"imapflow": "^1.0.152",
"mailparser": "^3.6.7",
"nodemailer": "^6.9.10"
"imapflow": "1.0.152",
"mailparser": "3.6.7",
"nodemailer": "6.9.10"
},
"devDependencies": {
"@size-limit/preset-small-lib": "^11.0.2",
Expand All @@ -51,7 +52,7 @@
"size-limit": "^11.0.2",
"tsdx": "^0.14.1",
"tslib": "^2.6.2",
"typescript": "^5.3.3"
"typescript": "5.3.3"
},
"engines": {
"node": ">=18"
Expand Down
6 changes: 3 additions & 3 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ export async function lastMail(params: AccountParams, filters: FilterParams): Pr
imapSecure: params.imapSecure,
username: params.username,
password: params.password,
smtpHost: '',
smtpPort: 0,
smtpSecure: false,
smtpHost: params.smtpHost,
smtpPort: params.smtpPort,
smtpSecure: params.smtpSecure,
});

return await account.getLastMail(filters);
Expand Down
6 changes: 0 additions & 6 deletions test/mail.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ describe('Mail', () => {

it('last email and data by css query', async () => {
const accountParams = {
imapHost: 'imap.ethereal.email',
imapPort: 993,
imapSecure: true,
username: testUser,
password: testPass,
};
Expand All @@ -30,9 +27,6 @@ describe('Mail', () => {

it('all emails by user', async () => {
const account = await createAccount({
imapHost: 'imap.ethereal.email',
imapPort: 993,
imapSecure: true,
username: testUser,
password: testPass,
});
Expand Down

0 comments on commit f59a8e7

Please sign in to comment.