Skip to content

Commit

Permalink
🐛 Revert back to process main module
Browse files Browse the repository at this point in the history
  • Loading branch information
noook committed May 9, 2021
1 parent 160bc3a commit 25f04a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "igdm",
"version": "1.3.3",
"version": "1.3.4",
"description": "Send and receive Instagram direct message through CLI.",
"keywords": [
"instagram",
Expand Down
2 changes: 1 addition & 1 deletion src/domain/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import chalk from 'chalk';
const prefix = chalk.blue('?');

export default class Authenticator {
private sessionPath: string = resolve(require.main!.path, '..', 'session.json')
private sessionPath: string = resolve(process.mainModule!.path, '..', 'session.json')

private saveSession(data: object) {
writeFileSync(this.sessionPath, JSON.stringify(data));
Expand Down

0 comments on commit 25f04a4

Please sign in to comment.