Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update node ver to 20 #54

Merged
merged 5 commits into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
**/*.js
**/*.js
node_modules/**/*.*
2 changes: 1 addition & 1 deletion .github/workflows/merge_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -28,7 +28,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -45,7 +45,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
"jest-config": "^27.0.4",
"prettier": "^2.3.1",
"rimraf": "^3.0.2",
"ts-jest": "^27.0.3",
"ts-node": "^9.1.1",
"ts-node-dev": "^1.1.6",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"ts-node-dev": "^2.0.0",
"typescript": "^4.3.2"
},
"dependencies": {
Expand All @@ -60,7 +60,7 @@
"reflect-metadata": "^0.1.13"
},
"engines": {
"node": ">=14.x"
"node": ">=20.x"
},
"private": true
}
4 changes: 2 additions & 2 deletions src/controller/convertDateMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const promptMsgDateConvert: Middleware<SlackEventMiddlewareArgs<'message'
});
}
} catch (err) {
console.log(err.message);
console.log(err);
}
};

Expand Down Expand Up @@ -110,6 +110,6 @@ export const convertTimeInChannel: Middleware<SlackActionMiddlewareArgs<BlockAct
});
} catch (err) {
console.error(err);
await respond({ text: `*[Error]* ${err.message}`, replace_original: true });
await respond({ text: `*[Error]* ${err}`, replace_original: true });
}
};
2 changes: 1 addition & 1 deletion src/middleware/messageListener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const messageHasTimeRef: Middleware<SlackEventMiddlewareArgs<'message'>>
// Pass control to the next middleware function
next && (await next());
} catch (err) {
console.log(err.message);
console.log(err);
}
};

Expand Down
Loading