Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Alphka committed Jul 31, 2023
1 parent 8d3c5e7 commit e1ec3ce
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
18.x,
19.2.x,
19.x,
20.5.x,
20.0.0,
20.x
]

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"author": "Alphka",
"author": "Kayo Souza",
"name": "insta-downloader",
"version": "2.0.2",
"description": "An application to download content of Instagram with the correct modified date",
"description": "An application to download content from Instagram",
"main": "src/index.js",
"scripts": {
"start": "node --no-warnings .",
Expand All @@ -14,6 +14,7 @@
"instagram",
"download",
"lastModified",
"images",
"photos",
"videos"
],
Expand Down Expand Up @@ -43,7 +44,7 @@
},
"engines": {
"npm": "^8.19.4 || >=9.8.1",
"node": "^16.19 || ^18.13 || ^19.2 || >=20.5"
"node": "^16.19 || ^18.13 || ^19.2 || >=20"
},
"license": "ISC",
"type": "module"
Expand Down
3 changes: 2 additions & 1 deletion src/Downloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ export default class Downloader {

return response
}catch(error){
// TODO: Handle axios errors in test mode to prevent token's leakage
if(error instanceof AxiosError){
if(error.response){
await handleCookies()
Expand All @@ -502,7 +503,7 @@ export default class Downloader {
Log(...args){
if(isTesting) return

const date = new Date().toLocaleString("pt-BR")
const date = new Date().toLocaleString("pt-BR").split(", ")[1]

if(args.length === 1 && args[0] instanceof Error) return console.error(chalk.redBright(`[${date}] ${args[0].message}`))

Expand Down

0 comments on commit e1ec3ce

Please sign in to comment.