deno support #52

Merged
teidesu merged 10 commits from deno into master 2024-04-30 15:58:04 +03:00
teidesu commented 2024-04-28 22:43:01 +03:00 (Migrated from github.com)
No description provided.
codecov[bot] commented 2024-04-28 22:44:25 +03:00 (Migrated from github.com)

Codecov Report

Attention: Patch coverage is 3.12057% with 683 lines in your changes are missing coverage. Please review.

Project coverage is 56.68%. Comparing base (2bc9f89) to head (ba0fec6).

Files Patch % Lines
packages/deno/src/client.ts 0.00% 145 Missing ⚠️
packages/deno/src/utils/tcp.ts 0.00% 138 Missing ⚠️
packages/deno/src/utils/crypto.ts 0.00% 97 Missing ⚠️
packages/deno/src/worker.ts 0.00% 70 Missing ⚠️
packages/deno/src/utils/normalize-file.ts 0.00% 50 Missing ⚠️
packages/deno/src/platform.ts 0.00% 48 Missing ⚠️
packages/deno/src/sqlite/driver.ts 0.00% 47 Missing ⚠️
packages/deno/src/methods/download-file.ts 0.00% 39 Missing ⚠️
packages/deno/src/utils/exit-hook.ts 0.00% 21 Missing ⚠️
packages/bun/src/utils/tcp.ts 0.00% 9 Missing ⚠️
... and 8 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #52      +/-   ##
==========================================
- Coverage   57.23%   56.68%   -0.56%     
==========================================
  Files         624      635      +11     
  Lines       68305    68983     +678     
  Branches     3088     3100      +12     
==========================================
+ Hits        39093    39101       +8     
- Misses      29212    29882     +670     

View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

## [Codecov](https://app.codecov.io/gh/mtcute/mtcute/pull/52?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute) Report Attention: Patch coverage is `3.12057%` with `683 lines` in your changes are missing coverage. Please review. > Project coverage is 56.68%. Comparing base [(`2bc9f89`)](https://app.codecov.io/gh/mtcute/mtcute/commit/2bc9f898e5b273a4464312a96dd1aab48b418999?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute) to head [(`ba0fec6`)](https://app.codecov.io/gh/mtcute/mtcute/pull/52?dropdown=coverage&src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute). | [Files](https://app.codecov.io/gh/mtcute/mtcute/pull/52?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute) | Patch % | Lines | |---|---|---| | [packages/deno/src/client.ts](https://app.codecov.io/gh/mtcute/mtcute/pull/52?src=pr&el=tree&filepath=packages%2Fdeno%2Fsrc%2Fclient.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute#diff-cGFja2FnZXMvZGVuby9zcmMvY2xpZW50LnRz) | 0.00% | [145 Missing :warning: ](https://app.codecov.io/gh/mtcute/mtcute/pull/52?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute) | | [packages/deno/src/utils/tcp.ts](https://app.codecov.io/gh/mtcute/mtcute/pull/52?src=pr&el=tree&filepath=packages%2Fdeno%2Fsrc%2Futils%2Ftcp.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute#diff-cGFja2FnZXMvZGVuby9zcmMvdXRpbHMvdGNwLnRz) | 0.00% | [138 Missing :warning: ](https://app.codecov.io/gh/mtcute/mtcute/pull/52?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute) | | [packages/deno/src/utils/crypto.ts](https://app.codecov.io/gh/mtcute/mtcute/pull/52?src=pr&el=tree&filepath=packages%2Fdeno%2Fsrc%2Futils%2Fcrypto.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute#diff-cGFja2FnZXMvZGVuby9zcmMvdXRpbHMvY3J5cHRvLnRz) | 0.00% | [97 Missing :warning: ](https://app.codecov.io/gh/mtcute/mtcute/pull/52?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute) | | [packages/deno/src/worker.ts](https://app.codecov.io/gh/mtcute/mtcute/pull/52?src=pr&el=tree&filepath=packages%2Fdeno%2Fsrc%2Fworker.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute#diff-cGFja2FnZXMvZGVuby9zcmMvd29ya2VyLnRz) | 0.00% | [70 Missing :warning: ](https://app.codecov.io/gh/mtcute/mtcute/pull/52?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute) | | [packages/deno/src/utils/normalize-file.ts](https://app.codecov.io/gh/mtcute/mtcute/pull/52?src=pr&el=tree&filepath=packages%2Fdeno%2Fsrc%2Futils%2Fnormalize-file.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute#diff-cGFja2FnZXMvZGVuby9zcmMvdXRpbHMvbm9ybWFsaXplLWZpbGUudHM=) | 0.00% | [50 Missing :warning: ](https://app.codecov.io/gh/mtcute/mtcute/pull/52?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute) | | [packages/deno/src/platform.ts](https://app.codecov.io/gh/mtcute/mtcute/pull/52?src=pr&el=tree&filepath=packages%2Fdeno%2Fsrc%2Fplatform.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute#diff-cGFja2FnZXMvZGVuby9zcmMvcGxhdGZvcm0udHM=) | 0.00% | [48 Missing :warning: ](https://app.codecov.io/gh/mtcute/mtcute/pull/52?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute) | | [packages/deno/src/sqlite/driver.ts](https://app.codecov.io/gh/mtcute/mtcute/pull/52?src=pr&el=tree&filepath=packages%2Fdeno%2Fsrc%2Fsqlite%2Fdriver.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute#diff-cGFja2FnZXMvZGVuby9zcmMvc3FsaXRlL2RyaXZlci50cw==) | 0.00% | [47 Missing :warning: ](https://app.codecov.io/gh/mtcute/mtcute/pull/52?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute) | | [packages/deno/src/methods/download-file.ts](https://app.codecov.io/gh/mtcute/mtcute/pull/52?src=pr&el=tree&filepath=packages%2Fdeno%2Fsrc%2Fmethods%2Fdownload-file.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute#diff-cGFja2FnZXMvZGVuby9zcmMvbWV0aG9kcy9kb3dubG9hZC1maWxlLnRz) | 0.00% | [39 Missing :warning: ](https://app.codecov.io/gh/mtcute/mtcute/pull/52?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute) | | [packages/deno/src/utils/exit-hook.ts](https://app.codecov.io/gh/mtcute/mtcute/pull/52?src=pr&el=tree&filepath=packages%2Fdeno%2Fsrc%2Futils%2Fexit-hook.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute#diff-cGFja2FnZXMvZGVuby9zcmMvdXRpbHMvZXhpdC1ob29rLnRz) | 0.00% | [21 Missing :warning: ](https://app.codecov.io/gh/mtcute/mtcute/pull/52?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute) | | [packages/bun/src/utils/tcp.ts](https://app.codecov.io/gh/mtcute/mtcute/pull/52?src=pr&el=tree&filepath=packages%2Fbun%2Fsrc%2Futils%2Ftcp.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute#diff-cGFja2FnZXMvYnVuL3NyYy91dGlscy90Y3AudHM=) | 0.00% | [9 Missing :warning: ](https://app.codecov.io/gh/mtcute/mtcute/pull/52?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute) | | ... and [8 more](https://app.codecov.io/gh/mtcute/mtcute/pull/52?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute) | | <details><summary>Additional details and impacted files</summary> ```diff @@ Coverage Diff @@ ## master #52 +/- ## ========================================== - Coverage 57.23% 56.68% -0.56% ========================================== Files 624 635 +11 Lines 68305 68983 +678 Branches 3088 3100 +12 ========================================== + Hits 39093 39101 +8 - Misses 29212 29882 +670 ``` </details> [:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/mtcute/mtcute/pull/52?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute). :loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute).
github-advanced-security[bot] (Migrated from github.com) reviewed 2024-04-30 05:41:03 +03:00
@ -0,0 +24,4 @@
let username = tg1User!.username
if (!username) {
username = `mtcute_e2e_${Math.random().toString(36).slice(2)}`
github-advanced-security[bot] (Migrated from github.com) commented 2024-04-30 05:41:03 +03:00

Insecure randomness

This uses a cryptographically insecure random number generated at Math.random() in a security context.

Show more details

## Insecure randomness This uses a cryptographically insecure random number generated at [Math.random()](1) in a security context. [Show more details](https://github.com/mtcute/mtcute/security/code-scanning/33)
@ -0,0 +50,4 @@
let username = me.username
if (!username) {
username = `mtcute_e2e_${Math.random().toString(36).slice(2, 8)}`
github-advanced-security[bot] (Migrated from github.com) commented 2024-04-30 05:41:03 +03:00

Insecure randomness

This uses a cryptographically insecure random number generated at Math.random() in a security context.

Show more details

## Insecure randomness This uses a cryptographically insecure random number generated at [Math.random()](1) in a security context. [Show more details](https://github.com/mtcute/mtcute/security/code-scanning/34)
Sign in to join this conversation.
No description provided.