chore: update codebase from private repository (#50)

This commit is contained in:
donbot 2020-03-31 18:45:47 +03:00 committed by GitHub
commit 5b93d236bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 1599 additions and 219 deletions

27
.eslintrc.js Normal file
View File

@ -0,0 +1,27 @@
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'prettier/@typescript-eslint',
],
root: true,
env: {
node: true,
jest: true,
},
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/ban-types': 'off',
},
};

View File

@ -2,6 +2,6 @@
lib
index.ts
package-lock.json
tslint.json
tsconfig.json
.prettierrc
.prettierrc
.eslintrc.js

View File

@ -1,15 +0,0 @@
language: node_js
node_js:
- '8'
- '10'
cache: yarn
script: yarn ci
deploy:
provider: npm
email: igor@kamyshev.me
skip_cleanup: true
api_key:
secure: rJmwaR1wtXZQCN0acIJy0vZ19idA7DHa72TOVUGNsYbvX6OhYyXOwU4eftRKXgjESg8IG5jF0jAN2PEHfSyLnl08qkFsv7+pzEnE+LnDcfsw4VAtNE2b2BvAlbUDYzR4l6QR1n/lvRxAitqBa05rLxtfrkXj0jTiZlRbT1TtMzN5MzHg4xFyGbENoTndRd9AiQwFU3Ham3yZT0OZDb5EtKO5CoZrdO4eNVrJTiT/KSi3JIRGkPvj6AbVr0ku93G+93+IcrNQw8qm3R9++SxvKAIh5aOyMXIOAlT/CIAhi/4CXtMa1IJW2EwStrHZymvw0hx2HXixmiHvRT0wMYgQqPJyHYEqO8ikQBPqskn7oFiZItoHvdg/W2Jb3QVOV4sywjXRlbbOQmAXQg9WK5+qvM8nmg5sfKSLqI/1NWrutlgsoyfo6bZ7xf8IWi5Os7MTp8p1B4YoLQOO1b3lbZ6tGL7TaJn3n0d0cPu2hSzmj39Pr9lMyVdA8iHeS9LyfIfNiRKZ546TsJO/UuojibBy696jjOWdradnW+bpHUNQ3a4lM6f4HjtcAgm3YeRwkPWGTcuMAObh15aHJuB3DGiqqplD6QhQZgz1/urW9f4u4I46QnVp24hKXun/ee58Rv7hLLB9rvvTGIEAbTZtMongWa7jdUH7QKD5/M/2iS1Hxcs=
on:
tags: true
repo: igorkamyshev/nest-telegram

View File

@ -1,153 +0,0 @@
# Change Log
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
## [0.5.1](https://github.com/igorkamyshev/nest-telegram/compare/v0.5.0...v0.5.1) (2019-07-26)
### Bug Fixes
* add removing webhook before start pooling ([b9d659e](https://github.com/igorkamyshev/nest-telegram/commit/b9d659e))
# Change Log
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
# [0.5.0](https://github.com/igorkamyshev/nest-telegram/compare/v0.4.0...v0.5.0) (2019-07-18)
### Features
* add method for sending markdown ([9be7bdc](https://github.com/igorkamyshev/nest-telegram/commit/9be7bdc))
# Change Log
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
# [0.4.0](https://github.com/igorkamyshev/nest-telegram/compare/v0.3.2...v0.4.0) (2019-05-20)
### Features
* add on message decorator handler ([c47c055](https://github.com/igorkamyshev/nest-telegram/commit/c47c055))
# Change Log
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
## [0.3.2](https://github.com/igorkamyshev/nest-telegram/compare/v0.3.1...v0.3.2) (2019-05-11)
### Bug Fixes
* **client:** fix import and export ([303caea](https://github.com/igorkamyshev/nest-telegram/commit/303caea))
# Change Log
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
## [0.3.1](https://github.com/igorkamyshev/nest-telegram/compare/v0.3.0...v0.3.1) (2019-05-11)
### Bug Fixes
* **client:** add miss export ([a5a9c07](https://github.com/igorkamyshev/nest-telegram/commit/a5a9c07))
# Change Log
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
# [0.3.0](https://github.com/igorkamyshev/nest-telegram/compare/v0.2.3...v0.3.0) (2019-05-11)
### Features
* **client:** add simple telegram client ([d2aa6eb](https://github.com/igorkamyshev/nest-telegram/commit/d2aa6eb))
# Change Log
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
## [0.2.3](https://github.com/igorkamyshev/nest-telegram/compare/v0.2.2...v0.2.3) (2019-03-03)
### Bug Fixes
* fix path for webhook ([8bfcc76](https://github.com/igorkamyshev/nest-telegram/commit/8bfcc76))
# Change Log
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
## [0.2.2](https://github.com/igorkamyshev/nest-telegram/compare/v0.2.1...v0.2.2) (2019-03-03)
### Bug Fixes
* initiate bot in costructor ([bbc1d1d](https://github.com/igorkamyshev/nest-telegram/commit/bbc1d1d))
# Change Log
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
## [0.2.1](https://github.com/igorkamyshev/nest-telegram/compare/v0.2.0...v0.2.1) (2019-03-03)
### Bug Fixes
* fix auto-import ([27ca6c2](https://github.com/igorkamyshev/nest-telegram/commit/27ca6c2))
# Change Log
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
# [0.2.0](https://github.com/igorkamyshev/nest-telegram/compare/v0.1.1...v0.2.0) (2019-03-03)
### Features
* add ability to use webhook ([c546b17](https://github.com/igorkamyshev/nest-telegram/commit/c546b17))
# Change Log
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
## [0.1.1](https://github.com/igorkamyshev/nest-telegram/compare/v0.1.0...v0.1.1) (2019-02-28)
### Bug Fixes
* fix typo in import ([45c0e89](https://github.com/igorkamyshev/nest-telegram/commit/45c0e89))
# Change Log
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
# 0.1.0 (2019-02-28)
### Features
* add initial code ([4324f0f](https://github.com/igorkamyshev/nest-telegram/commit/4324f0f))

View File

@ -1,6 +1,6 @@
MIT License
Copyright (c) 2019 Bukhalo Aleksandr Aleksandrovich & Igor Kamyshev
Copyright (c) 2019 - present robotmafia Inc. & Bukhalo Aleksandr Aleksandrovich & Igor Kamyshev
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@ -22,7 +22,7 @@
## Description
[Telegraf](https://github.com/telegraf/telegraf) module for [Nest](https://github.com/nestjs/nest).
[Telegraf](https://github.com/telegraf/telegraf) module for [NestJS](https://github.com/nestjs/nest).
## Installation
@ -111,7 +111,7 @@ Like other [factory providers](https://docs.nestjs.com/fundamentals/custom-provi
TelegrafModule.forRootAsync({
imports: [ConfigModule],
useFactory: async (configService: ConfigService) => ({
token: configService.getString('TELEGRAM_BOT_TOKEN'),
token: configService.get<string>('TELEGRAM_BOT_TOKEN'),
}),
inject: [ConfigService],
});
@ -153,8 +153,8 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
## People
- Authors - [Aleksandr Bukhalo](https://bukhalo.com/) & [Igor Kamyshev](https://kamyshev.me/)
- Maintainers - [Aleksandr Bukhalo](https://bukhalo.com/)
- Authors - [robotmafia Inc.](https://robotmafia.io) & [Aleksandr Bukhalo](https://bukhalo.com/) & [Igor Kamyshev](https://kamyshev.me/)
- Maintainers - [robotmafia Inc.](https://robotmafia.io/)
- Website - [https://nestjs.com](https://nestjs.com/)
## License

1556
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,12 +1,11 @@
{
"name": "nestjs-telegraf",
"version": "1.0.0-alpha.1",
"description": "Telegraf module for Nest framework",
"name": "@robotmafia-inc/nestjs-telegraf",
"version": "1.0.1",
"description": "Telegraf module for NestJS",
"keywords": [
"nest",
"nestjs",
"nodejs",
"typescript",
"nestjs-module",
"telegraf",
"telegram",
"telegram bot",
@ -15,18 +14,18 @@
"bot api",
"bot framework"
],
"homepage": "https://github.com/bukhalo/nestjs-telegraf#readme",
"homepage": "https://github.com/robotmafia-inc/nestjs-telegraf#readme",
"bugs": {
"url": "https://github.com/bukhalo/nestjs-telegraf/issues",
"email": "aleksandr@bukhalo.com"
"url": "https://github.com/robotmafia-inc/nestjs-telegraf/issues"
},
"license": "MIT",
"author": "Aleksandr Bukhalo <aleksandr@bukhalo.com>",
"author": "robotmafia Inc. <hello@robotmafia.io>",
"contributors": [
"donbot <donbot@robotmafia.io>",
"Aleksandr Bukhalo <aleksandr@bukhalo.com> (https://bukhalo.com/)",
"Igor Kamyshev <igor@kamyshev.me> (https://kamyshev.me/)"
],
"repository": "git@github.com:bukhalo/nestjs-telegraf.git",
"repository": "git@github.com:robotmafia-inc/nestjs-telegraf.git",
"scripts": {
"build": "rm -rf dist && tsc -p tsconfig.json",
"precommit": "lint-staged",
@ -40,6 +39,11 @@
"devDependencies": {
"@nestjs/common": "7.0.7",
"@nestjs/core": "7.0.7",
"@typescript-eslint/eslint-plugin": "2.25.0",
"@typescript-eslint/parser": "2.25.0",
"eslint": "6.8.0",
"eslint-config-prettier": "6.10.1",
"eslint-plugin-import": "2.20.1",
"husky": "4.2.3",
"lint-staged": "10.1.1",
"prettier": "2.0.2",

View File

@ -1,29 +0,0 @@
{
"defaultSeverity": "error",
"extends": ["tslint:recommended"],
"jsRules": {},
"rules": {
"quotemark": [true, "single", "avoid-escape"],
"object-literal-sort-keys": false,
"ordered-imports": [
true,
{
"import-sources-order": "any",
"named-imports-order": "any"
}
],
"no-console": [false],
"interface-name": [true, "never-prefix"],
"eofline": false,
"linebreak-style": [false],
"indent": false,
"member-access": false,
"ban-types": false,
"max-classes-per-file": [false],
"member-ordering": [false],
"no-var-requires": false,
"one-line": [false],
"array-type": [false]
},
"rulesDirectory": []
}