Skip to content

Commit

Permalink
chore: 更新依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
TBXark committed Nov 15, 2024
1 parent 191bf0f commit 9482323
Show file tree
Hide file tree
Showing 8 changed files with 1,210 additions and 851 deletions.
108 changes: 53 additions & 55 deletions build/index.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import './src/polyfill.js';
import { sendMailToTelegram } from './src/telegram.js';
import { loadMailStatus } from './src/dao.js';
import { createRouter } from './src/route.js';
import { isMessageBlock } from './src/helper.js';
import { parseEmail } from './src/parse.js';
import { createRouter } from './src/route.js';
import { sendMailToTelegram } from './src/telegram.js';
import './src/polyfill.js';

import './src/types.js';

Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@
},
"license": "MIT",
"dependencies": {
"@telegram-apps/init-data-node": "^1.0.4",
"@telegram-apps/init-data-node": "^1.1.1",
"html-to-text": "^9.0.5",
"itty-router": "^5.0.17",
"postal-mime": "^2.0.1"
"itty-router": "^5.0.18",
"postal-mime": "^2.3.2"
},
"devDependencies": {
"@antfu/eslint-config": "^2.25.1",
"esbuild": "^0.23.0",
"eslint": "^9.8.0",
"@antfu/eslint-config": "^3.9.1",
"esbuild": "^0.24.0",
"eslint": "^9.14.0",
"eslint-plugin-format": "^0.1.2",
"telegram-bot-api-jsdoc": "^7.11.0",
"typescript": "^5.5.4",
"wrangler": "^3.69.1"
"typescript": "^5.6.3",
"wrangler": "^3.87.0"
},
"files": [
"index.js"
Expand Down
2 changes: 1 addition & 1 deletion src/helper.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BLOCK_LIST_KEY, loadArrayFromDB, WHITE_LIST_KEY } from './dao.js';
import { loadArrayFromRaw } from './utils.js';
import { BLOCK_LIST_KEY, WHITE_LIST_KEY, loadArrayFromDB } from './dao.js';

/**
* @param {string} address - The address to be checked.
Expand Down
2 changes: 1 addition & 1 deletion src/parse.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import PostalMime from 'postal-mime';
import { convert } from 'html-to-text';
import PostalMime from 'postal-mime';

import './types.js';

Expand Down
6 changes: 3 additions & 3 deletions src/route.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Router, json } from 'itty-router';
import { validate } from '@telegram-apps/init-data-node/web';
import tmaHTML from './tma.html';
import { BLOCK_LIST_KEY, WHITE_LIST_KEY, addAddress, loadArrayFromDB, loadMailCache, removeAddress } from './dao.js';
import { json, Router } from 'itty-router';
import { addAddress, BLOCK_LIST_KEY, loadArrayFromDB, loadMailCache, removeAddress, WHITE_LIST_KEY } from './dao.js';
import { sendTelegramRequest, setMyCommands, telegramWebhookHandler } from './telegram.js';
import tmaHTML from './tma.html';

import './types.js';

Expand Down
2 changes: 1 addition & 1 deletion src/telegram.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { renderEmailDebugMode, renderEmailListMode, renderEmailPreviewMode, renderEmailSummaryMode } from './render.js';
import { loadMailCache } from './dao.js';
import { renderEmailDebugMode, renderEmailListMode, renderEmailPreviewMode, renderEmailSummaryMode } from './render.js';
import 'telegram-bot-api-jsdoc';
import './types.js';

Expand Down
1,919 changes: 1,140 additions & 779 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 9482323

Please sign in to comment.