@aracna/telegram-bot 1.9.4 → 1.9.5
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,4 @@
|
|
|
1
1
|
import { UpdateType } from './enums';
|
|
2
2
|
import { Context } from './interfaces';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type HandlerMiddleware<T extends UpdateType> = (context: Context[T]) => any;
|
|
4
|
+
export type InputFile = File | string;
|
package/definitions/enums.js
CHANGED
|
@@ -4,7 +4,7 @@ exports.UpdateType = exports.LoggerName = void 0;
|
|
|
4
4
|
var LoggerName;
|
|
5
5
|
(function (LoggerName) {
|
|
6
6
|
LoggerName["MODULE"] = "TELEGRAM_MODULE";
|
|
7
|
-
})(LoggerName
|
|
7
|
+
})(LoggerName || (exports.LoggerName = LoggerName = {}));
|
|
8
8
|
var UpdateType;
|
|
9
9
|
(function (UpdateType) {
|
|
10
10
|
UpdateType["CALLBACK_QUERY"] = "CALLBACK_QUERY";
|
|
@@ -24,4 +24,4 @@ var UpdateType;
|
|
|
24
24
|
UpdateType["REPLY_TO_MESSAGE"] = "REPLY_TO_MESSAGE";
|
|
25
25
|
UpdateType["SHIPPING_QUERY"] = "SHIPPING_QUERY";
|
|
26
26
|
UpdateType["START"] = "START";
|
|
27
|
-
})(UpdateType
|
|
27
|
+
})(UpdateType || (exports.UpdateType = UpdateType = {}));
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "Dario Sechi",
|
|
3
3
|
"devDependencies": {
|
|
4
|
-
"@aracna/core": "^1.1.
|
|
5
|
-
"@aracna/telegram-bot-types": "^1.2.
|
|
6
|
-
"@microsoft/api-extractor": "^7.
|
|
7
|
-
"@vitest/coverage-c8": "^0.
|
|
8
|
-
"@vitest/ui": "^0.
|
|
9
|
-
"dotenv": "^16.
|
|
10
|
-
"fastify": "^4.
|
|
11
|
-
"typescript": "^
|
|
12
|
-
"vitest": "^0.
|
|
4
|
+
"@aracna/core": "^1.1.41",
|
|
5
|
+
"@aracna/telegram-bot-types": "^1.2.4",
|
|
6
|
+
"@microsoft/api-extractor": "^7.36.4",
|
|
7
|
+
"@vitest/coverage-c8": "^0.33.0",
|
|
8
|
+
"@vitest/ui": "^0.34.2",
|
|
9
|
+
"dotenv": "^16.3.1",
|
|
10
|
+
"fastify": "^4.21.0",
|
|
11
|
+
"typescript": "^5.1.6",
|
|
12
|
+
"vitest": "^0.34.2"
|
|
13
13
|
},
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"main": "index.js",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"tarball": "yarn version && cp LICENSE package.json README.md dist/. && cd dist && yarn pack",
|
|
25
25
|
"deploy": "yarn test && yarn build && yarn tarball && yarn publish dist/*.tgz && git push"
|
|
26
26
|
},
|
|
27
|
-
"version": "1.9.
|
|
27
|
+
"version": "1.9.5"
|
|
28
28
|
}
|