From 703def6199befc1ffaeb0db5ce1e7de8ec68f9df Mon Sep 17 00:00:00 2001 From: harshithad0703 Date: Mon, 12 Aug 2024 13:12:00 +0530 Subject: [PATCH 1/6] Fix file upload function in sanity report file --- CHANGELOG.md | 4 ++++ package-lock.json | 4 ++-- package.json | 2 +- sanity-report.mjs | 4 ++-- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d546869d..531bbf7c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [v1.17.1](https://github.com/contentstack/contentstack-management-javascript/tree/v1.17.1) (2024-08-15) + - Fix + - Fix file upload function in sanity report file + ## [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 diff --git a/package-lock.json b/package-lock.json index 92afbfb1..f8691ac5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@contentstack/management", - "version": "1.17.0", + "version": "1.17.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@contentstack/management", - "version": "1.17.0", + "version": "1.17.1", "license": "MIT", "dependencies": { "axios": "^1.7.2", diff --git a/package.json b/package.json index 3ce9d10f..fe5664a8 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/sanity-report.mjs b/sanity-report.mjs index 6a2fe583..68e6bb93 100644 --- a/sanity-report.mjs +++ b/sanity-report.mjs @@ -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', From f440eb28ef05575fb59c3a9e7ed5e91da1f57ec2 Mon Sep 17 00:00:00 2001 From: harshithad0703 Date: Mon, 12 Aug 2024 14:16:48 +0530 Subject: [PATCH 2/6] update changeLog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 531bbf7c..2183f13d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## [v1.17.1](https://github.com/contentstack/contentstack-management-javascript/tree/v1.17.1) (2024-08-15) +## [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 From a74c5df78010f37ff8a590c00f453893ee12cb14 Mon Sep 17 00:00:00 2001 From: Netraj Patel Date: Wed, 14 Aug 2024 15:24:58 +0530 Subject: [PATCH 3/6] Updated axios package version --- package-lock.json | 20 +++++++++----------- package.json | 4 ++-- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/package-lock.json b/package-lock.json index f8691ac5..4d54e11d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.17.1", "license": "MIT", "dependencies": { - "axios": "^1.7.2", + "axios": "^1.7.4", "form-data": "^3.0.1", "lodash": "^4.17.21", "qs": "^6.12.1" @@ -21,7 +21,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", @@ -3154,11 +3154,10 @@ "license": "(Unlicense OR Apache-2.0)" }, "node_modules/@slack/bolt": { - "version": "3.19.0", - "resolved": "https://registry.npmjs.org/@slack/bolt/-/bolt-3.19.0.tgz", - "integrity": "sha512-P5Yup/PbO8sE5xsuqkBkpSPkxEkfWZ6yo5ZlmBGxRhhoU1usUSU2w0bgZoiDX4WFm7ZX+3x2Dyf4VMa9kzfmVQ==", + "version": "3.20.0", + "resolved": "https://registry.npmjs.org/@slack/bolt/-/bolt-3.20.0.tgz", + "integrity": "sha512-JXQe4oGredj/RREIG8GM/DAZ+B89NuVpdmgejzo9yx4uSE2sUX/NisyMv0B6xJ8cnlLbGpB5gCgbksdQZT/2CQ==", "dev": true, - "license": "MIT", "dependencies": { "@slack/logger": "^4.0.0", "@slack/oauth": "^2.6.2", @@ -3168,7 +3167,7 @@ "@types/express": "^4.16.1", "@types/promise.allsettled": "^1.0.3", "@types/tsscmp": "^1.0.0", - "axios": "^1.6.0", + "axios": "^1.7.3", "express": "^4.16.4", "path-to-regexp": "^6.2.1", "please-upgrade-node": "^3.2.0", @@ -4340,10 +4339,9 @@ } }, "node_modules/axios": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.2.tgz", - "integrity": "sha512-2A8QhOMrbomlDuiLeK9XibIBzuHeRcqqNOHp0Cyp5EoJ1IFDh+XZH3A6BkXtv0K4gFGCI0Y4BM7B1wOEi0Rmgw==", - "license": "MIT", + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.4.tgz", + "integrity": "sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw==", "dependencies": { "follow-redirects": "^1.15.6", "form-data": "^4.0.0", diff --git a/package.json b/package.json index fe5664a8..abd183ac 100644 --- a/package.json +++ b/package.json @@ -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" @@ -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", From abf7a2658e88afb9385188c16cfe0f1f58484655 Mon Sep 17 00:00:00 2001 From: Netraj Patel Date: Wed, 14 Aug 2024 15:29:34 +0530 Subject: [PATCH 4/6] Package version bumped --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4d54e11d..dc8b1dad 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@contentstack/management", - "version": "1.17.1", + "version": "1.17.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@contentstack/management", - "version": "1.17.1", + "version": "1.17.2", "license": "MIT", "dependencies": { "axios": "^1.7.4", diff --git a/package.json b/package.json index abd183ac..4d2f4bc0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@contentstack/management", - "version": "1.17.1", + "version": "1.17.2", "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", From f73e1d48893ea762dd69af40cd1b910bbc066582 Mon Sep 17 00:00:00 2001 From: Netraj Patel Date: Fri, 16 Aug 2024 11:55:36 +0530 Subject: [PATCH 5/6] Package version bump - reverted --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index dc8b1dad..4d54e11d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@contentstack/management", - "version": "1.17.2", + "version": "1.17.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@contentstack/management", - "version": "1.17.2", + "version": "1.17.1", "license": "MIT", "dependencies": { "axios": "^1.7.4", diff --git a/package.json b/package.json index 4d2f4bc0..abd183ac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@contentstack/management", - "version": "1.17.2", + "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", From 4f0b4682462cacb6e61ee74cf97759b5deca9771 Mon Sep 17 00:00:00 2001 From: Netraj Patel Date: Fri, 16 Aug 2024 12:14:12 +0530 Subject: [PATCH 6/6] Updated Changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2183f13d..8dede912 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## [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