Skip to content

Commit afb34b2

Browse files
authored
Merge pull request #177 from contentstack/next
DX | 21-08-2024 | Release
2 parents 32f6b37 + f3d3719 commit afb34b2

File tree

4 files changed

+21
-18
lines changed

4 files changed

+21
-18
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## [v1.17.1](https://github.com/contentstack/contentstack-management-javascript/tree/v1.17.1) (2024-08-14)
4+
- Fix
5+
- Fix file upload function in sanity report file
6+
- Vulnerability fix - Axios
7+
38
## [v1.17.0](https://github.com/contentstack/contentstack-management-javascript/tree/v1.17.0) (2024-07-02)
49
- Enhancement
510
- Fixed package publish issue in github workflow

package-lock.json

Lines changed: 11 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@contentstack/management",
3-
"version": "1.17.0",
3+
"version": "1.17.1",
44
"description": "The Content Management API is used to manage the content of your Contentstack account",
55
"main": "./dist/node/contentstack-management.js",
66
"browser": "./dist/web/contentstack-management.js",
@@ -52,7 +52,7 @@
5252
"author": "Contentstack",
5353
"license": "MIT",
5454
"dependencies": {
55-
"axios": "^1.7.2",
55+
"axios": "^1.7.4",
5656
"form-data": "^3.0.1",
5757
"lodash": "^4.17.21",
5858
"qs": "^6.12.1"
@@ -69,7 +69,7 @@
6969
"@babel/preset-env": "^7.18.2",
7070
"@babel/register": "^7.17.7",
7171
"@babel/runtime": "^7.18.3",
72-
"@slack/bolt": "^3.19.0",
72+
"@slack/bolt": "^3.20.0",
7373
"@types/chai": "^4.3.11",
7474
"@types/jest": "^28.1.0",
7575
"@types/lodash": "^4.14.202",

sanity-report.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ async function publishMessage (text, report) {
4545
channel: process.env.SLACK_CHANNEL,
4646
text: text
4747
})
48-
await app.client.files.upload({
48+
await app.client.files.uploadV2({
4949
token: process.env.SLACK_BOT_TOKEN,
50-
channels: process.env.SLACK_CHANNEL,
50+
channel_id: process.env.SLACK_CHANNEL_ID,
5151
initial_comment: '*Here is the report generated*',
5252
filetype: 'html',
5353
filename: 'sanity-report.html',

0 commit comments

Comments
 (0)