Skip to content

Commit

Permalink
hotfix(delay): adjust (#4)
Browse files Browse the repository at this point in the history
* chore(delay): remove unset file

* fix(github): delay

* chore(readme): change github url example

* chore(package): update version
  • Loading branch information
caioagiani authored Feb 4, 2022
1 parent c623523 commit 590db30
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ $ yarn start or npm run start

```js
(async () => {
const urlRepository = "Github Repository"; // https://github.com/CheetahTemplate3/cheetah3
const urlRepository = "YOUR_GITHUB_URL_REPOSITORY"; // https://github.com/CheetahTemplate3/cheetah3

await client.init();

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "search-typo",
"version": "0.1.0",
"version": "0.1.1",
"main": "src/index.js",
"description": "Typos github scan",
"license": "MIT",
Expand Down
3 changes: 1 addition & 2 deletions src/lib/github.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const client = require("./client");
const { fgGreen, fgRed } = require("../utils/color");
const { delay } = require("../utils/delay");

module.exports = async (repository, word) => {
const url = `${repository}/search?q=${word}&type=code`;
Expand All @@ -18,5 +17,5 @@ module.exports = async (repository, word) => {

console.log(color, `[${word.toUpperCase()}]: FOUND: ${countTypos} - ${url}`);

await delay(6500);
await client.page.waitForTimeout(6500);
};
5 changes: 0 additions & 5 deletions src/utils/delay.js

This file was deleted.

0 comments on commit 590db30

Please sign in to comment.