Platform agnostic #19

Merged
teidesu merged 25 commits from platform-agnostic into master 2024-03-07 05:54:20 +03:00
teidesu commented 2024-03-01 04:33:51 +03:00 (Migrated from github.com)
No description provided.
codecov[bot] commented 2024-03-01 04:40:31 +03:00 (Migrated from github.com)

Codecov Report

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

Project coverage is 64.55%. Comparing base (be899af) to head (3bd3f32).
Report is 1 commits behind head on master.

Files Patch % Lines
packages/node/src/utils/stream-utils.ts 21.79% 61 Missing ⚠️
packages/core/src/highlevel/worker/worker.ts 14.75% 52 Missing ⚠️
packages/node/src/worker.ts 46.26% 36 Missing ⚠️
packages/node/src/methods/download-file.ts 32.50% 27 Missing ⚠️
packages/node/src/utils/normalize-file.ts 26.47% 25 Missing ⚠️
packages/node/src/client.ts 63.93% 22 Missing ⚠️
...es/core/src/highlevel/methods/files/upload-file.ts 26.31% 14 Missing ⚠️
packages/file-id/src/parse.ts 64.28% 10 Missing ⚠️
packages/wasm/src/index.ts 50.00% 10 Missing ⚠️
packages/core/src/platform.ts 85.18% 8 Missing ⚠️
... and 16 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #19      +/-   ##
==========================================
- Coverage   64.93%   64.55%   -0.38%     
==========================================
  Files         574      583       +9     
  Lines       63217    64255    +1038     
  Branches     3055     3041      -14     
==========================================
+ Hits        41051    41482     +431     
- Misses      22166    22773     +607     

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

## [Codecov](https://app.codecov.io/gh/mtcute/mtcute/pull/19?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 `66.00660%` with `309 lines` in your changes are missing coverage. Please review. > Project coverage is 64.55%. Comparing base [(`be899af`)](https://app.codecov.io/gh/mtcute/mtcute/commit/be899afca27c40b4b9a16d5c2a605208386c515d?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute) to head [(`3bd3f32`)](https://app.codecov.io/gh/mtcute/mtcute/pull/19?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute). > Report is 1 commits behind head on master. | [Files](https://app.codecov.io/gh/mtcute/mtcute/pull/19?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute) | Patch % | Lines | |---|---|---| | [packages/node/src/utils/stream-utils.ts](https://app.codecov.io/gh/mtcute/mtcute/pull/19?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute#diff-cGFja2FnZXMvbm9kZS9zcmMvdXRpbHMvc3RyZWFtLXV0aWxzLnRz) | 21.79% | [61 Missing :warning: ](https://app.codecov.io/gh/mtcute/mtcute/pull/19?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute) | | [packages/core/src/highlevel/worker/worker.ts](https://app.codecov.io/gh/mtcute/mtcute/pull/19?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute#diff-cGFja2FnZXMvY29yZS9zcmMvaGlnaGxldmVsL3dvcmtlci93b3JrZXIudHM=) | 14.75% | [52 Missing :warning: ](https://app.codecov.io/gh/mtcute/mtcute/pull/19?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute) | | [packages/node/src/worker.ts](https://app.codecov.io/gh/mtcute/mtcute/pull/19?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute#diff-cGFja2FnZXMvbm9kZS9zcmMvd29ya2VyLnRz) | 46.26% | [36 Missing :warning: ](https://app.codecov.io/gh/mtcute/mtcute/pull/19?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute) | | [packages/node/src/methods/download-file.ts](https://app.codecov.io/gh/mtcute/mtcute/pull/19?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute#diff-cGFja2FnZXMvbm9kZS9zcmMvbWV0aG9kcy9kb3dubG9hZC1maWxlLnRz) | 32.50% | [27 Missing :warning: ](https://app.codecov.io/gh/mtcute/mtcute/pull/19?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute) | | [packages/node/src/utils/normalize-file.ts](https://app.codecov.io/gh/mtcute/mtcute/pull/19?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute#diff-cGFja2FnZXMvbm9kZS9zcmMvdXRpbHMvbm9ybWFsaXplLWZpbGUudHM=) | 26.47% | [25 Missing :warning: ](https://app.codecov.io/gh/mtcute/mtcute/pull/19?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute) | | [packages/node/src/client.ts](https://app.codecov.io/gh/mtcute/mtcute/pull/19?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute#diff-cGFja2FnZXMvbm9kZS9zcmMvY2xpZW50LnRz) | 63.93% | [22 Missing :warning: ](https://app.codecov.io/gh/mtcute/mtcute/pull/19?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute) | | [...es/core/src/highlevel/methods/files/upload-file.ts](https://app.codecov.io/gh/mtcute/mtcute/pull/19?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute#diff-cGFja2FnZXMvY29yZS9zcmMvaGlnaGxldmVsL21ldGhvZHMvZmlsZXMvdXBsb2FkLWZpbGUudHM=) | 26.31% | [14 Missing :warning: ](https://app.codecov.io/gh/mtcute/mtcute/pull/19?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute) | | [packages/file-id/src/parse.ts](https://app.codecov.io/gh/mtcute/mtcute/pull/19?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute#diff-cGFja2FnZXMvZmlsZS1pZC9zcmMvcGFyc2UudHM=) | 64.28% | [10 Missing :warning: ](https://app.codecov.io/gh/mtcute/mtcute/pull/19?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute) | | [packages/wasm/src/index.ts](https://app.codecov.io/gh/mtcute/mtcute/pull/19?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute#diff-cGFja2FnZXMvd2FzbS9zcmMvaW5kZXgudHM=) | 50.00% | [10 Missing :warning: ](https://app.codecov.io/gh/mtcute/mtcute/pull/19?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute) | | [packages/core/src/platform.ts](https://app.codecov.io/gh/mtcute/mtcute/pull/19?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute#diff-cGFja2FnZXMvY29yZS9zcmMvcGxhdGZvcm0udHM=) | 85.18% | [8 Missing :warning: ](https://app.codecov.io/gh/mtcute/mtcute/pull/19?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mtcute) | | ... and [16 more](https://app.codecov.io/gh/mtcute/mtcute/pull/19?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 #19 +/- ## ========================================== - Coverage 64.93% 64.55% -0.38% ========================================== Files 574 583 +9 Lines 63217 64255 +1038 Branches 3055 3041 -14 ========================================== + Hits 41051 41482 +431 - Misses 22166 22773 +607 ``` </details> [:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/mtcute/mtcute/pull/19?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-03-04 01:42:34 +03:00
@ -0,0 +54,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-03-04 01:42:34 +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/30)
Sign in to join this conversation.
No description provided.