-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add filters for user/chat requests and callback data
- Loading branch information
Showing
16 changed files
with
1,070 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../src/README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: v1.x | ||
|
||
- name: Format | ||
run: deno fmt --check | ||
|
||
- name: Lint | ||
run: deno lint | ||
|
||
- name: Check | ||
run: deno check src/mod.ts | ||
|
||
- name: Backport | ||
run: deno task build-npm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"deno.enable": true, | ||
"deno.lint": true, | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { "source.fixAll": true }, | ||
"[typescript]": { | ||
"editor.defaultFormatter": "denoland.vscode-deno" | ||
}, | ||
"deno.config": "./deno.jsonc", | ||
"deno.suggest.imports.hosts": { | ||
"https://deno.land": true, | ||
"https://x.nest.land": true, | ||
"https://crux.land": true, | ||
"https://lib.deno.dev": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"tasks": { | ||
"dev": "deno fmt && deno lint && deno run --watch src/mod.ts", | ||
"build-npm": "deno run --allow-run --allow-net --allow-read --allow-write --allow-env ./scripts/build_npm.ts" | ||
}, | ||
"fmt": { | ||
"files": { | ||
"exclude": [ | ||
"./npm/" | ||
] | ||
} | ||
}, | ||
"lint": { | ||
"files": { | ||
"exclude": [ | ||
"./npm/" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { build, emptyDir } from "https://deno.land/x/dnt/mod.ts"; | ||
|
||
import package_ from "./package.json" assert { type: "json" }; | ||
|
||
await emptyDir("./npm"); | ||
|
||
await build({ | ||
entryPoints: ["./src/mod.ts"], | ||
outDir: "./npm", | ||
shims: { | ||
deno: true, | ||
}, | ||
esModule: true, | ||
scriptModule: "cjs", | ||
test: false, | ||
package: { | ||
...package_, | ||
version: Deno.args[0], | ||
}, | ||
mappings: { | ||
"https://lib.deno.dev/x/[email protected]/mod.ts": { | ||
name: "grammy", | ||
version: "^1.10.0", | ||
peerDependency: true, | ||
}, | ||
"https://lib.deno.dev/x/[email protected]/types.ts": { | ||
name: "grammy", | ||
version: "^1.10.0", | ||
subPath: "out/types", | ||
peerDependency: true, | ||
}, | ||
"https://lib.deno.dev/x/[email protected]/mod.ts": { | ||
name: "callback-data", | ||
version: "^1.0.0", | ||
}, | ||
}, | ||
}); | ||
|
||
// post build steps | ||
Deno.copyFileSync("src/LICENSE", "npm/LICENSE"); | ||
Deno.copyFileSync("src/README.md", "npm/README.md"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "grammy-guard", | ||
"description": "Guard middlewares for grammY", | ||
"homepage": "https://github.com/deptyped/grammy-guard#readme", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/deptyped/grammy-guard.git" | ||
}, | ||
"author": "deptyped <[email protected]>", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/deptyped/grammy-guard/issues" | ||
}, | ||
"keywords": [ | ||
"grammy", | ||
"bot", | ||
"telegram", | ||
"telegram-bot", | ||
"telegram-bot-api" | ||
] | ||
} |
Oops, something went wrong.