chore: lint

This commit is contained in:
coderaiser
2023-10-11 17:33:25 +03:00
parent ab41033be8
commit 4befa9642c
4 changed files with 16 additions and 17 deletions

View File

@@ -30,9 +30,8 @@ jobs:
run: bun i --no-save
- name: Lint
run: npm run fix:lint
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install Rust
run: rustup update
- uses: actions/cache@v3
with:
path: |

View File

@@ -23,9 +23,8 @@ jobs:
run: bun i --no-save
- name: Lint
run: npm run lint
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install Rust
run: rustup update
- uses: actions/cache@v3
with:
path: |

View File

@@ -1,5 +1,5 @@
{
"imports": {
"try-to-catch": "https://esm.sh/try-to-catch"
}
"imports": {
"try-to-catch": "https://esm.sh/try-to-catch"
}
}

View File

@@ -1,6 +1,11 @@
import {promisify} from 'node:util';
import {
promisify,
TextDecoder,
} from 'node:util';
export const readStd = async (text) => {
import process from 'node:process';
export const readStd = async () => {
if (globalThis.Deno)
return await denoReadStd();
@@ -33,12 +38,8 @@ export const denoReadStd = async () => {
const decoder = new TextDecoder();
for await (const chunk of Deno.stdin.readable) {
console.log(chunk);
chunks += decoder.decode(chunk);
chunks += decoder.decode(chunk);
}
console.log('yyy');
return chunks;
}
};