Skip to content

Commit

Permalink
Merge pull request #177 from contentstack/next
Browse files Browse the repository at this point in the history
DX | 21-08-2024 | Release
  • Loading branch information
cs-raj authored Aug 22, 2024
2 parents 440c70b + 82ce085 commit 3fb62c6
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 18 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## [v1.17.1](https://github.com/contentstack/contentstack-management-javascript/tree/v1.17.1) (2024-08-14)
- Fix
- Fix file upload function in sanity report file
- Vulnerability fix - Axios

## [v1.17.0](https://github.com/contentstack/contentstack-management-javascript/tree/v1.17.0) (2024-07-02)
- Enhancement
- Fixed package publish issue in github workflow
Expand Down
24 changes: 11 additions & 13 deletions package-lock.json

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

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@contentstack/management",
"version": "1.17.0",
"version": "1.17.1",
"description": "The Content Management API is used to manage the content of your Contentstack account",
"main": "./dist/node/contentstack-management.js",
"browser": "./dist/web/contentstack-management.js",
Expand Down Expand Up @@ -52,7 +52,7 @@
"author": "Contentstack",
"license": "MIT",
"dependencies": {
"axios": "^1.7.2",
"axios": "^1.7.4",
"form-data": "^3.0.1",
"lodash": "^4.17.21",
"qs": "^6.12.1"
Expand All @@ -69,7 +69,7 @@
"@babel/preset-env": "^7.18.2",
"@babel/register": "^7.17.7",
"@babel/runtime": "^7.18.3",
"@slack/bolt": "^3.19.0",
"@slack/bolt": "^3.20.0",
"@types/chai": "^4.3.11",
"@types/jest": "^28.1.0",
"@types/lodash": "^4.14.202",
Expand Down
4 changes: 2 additions & 2 deletions sanity-report.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ async function publishMessage (text, report) {
channel: process.env.SLACK_CHANNEL,
text: text
})
await app.client.files.upload({
await app.client.files.uploadV2({
token: process.env.SLACK_BOT_TOKEN,
channels: process.env.SLACK_CHANNEL,
channel_id: process.env.SLACK_CHANNEL_ID,
initial_comment: '*Here is the report generated*',
filetype: 'html',
filename: 'sanity-report.html',
Expand Down

0 comments on commit 3fb62c6

Please sign in to comment.