From 10b07f7c4c7a1479854b5b568a11b1943fff0b8d Mon Sep 17 00:00:00 2001 From: harshithad0703 Date: Fri, 2 Aug 2024 17:19:51 +0530 Subject: [PATCH] fix: :bug: Removed encode for query params --- CHANGELOG.md | 14 ++++++++++---- package-lock.json | 32 ++++++++++++++++---------------- package.json | 4 ++-- src/core/lib/request.js | 2 +- 4 files changed, 29 insertions(+), 23 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e386484..6f9a476a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,15 +1,21 @@ ## Change log -### Version: 3.20.0 -#### Date: May-31-2024 -##### Enhanncement: - - Adds Timeline Preview changes + +### Version: 3.20.3 +#### Date: August-02-2024 +##### HotFix: + - Removed encode for query params ### Version: 3.20.1 #### Date: July-09-2024 ##### Fix: - Type support for LivePreviewQuery method params +### Version: 3.20.0 +#### Date: May-31-2024 +##### Enhanncement: + - Adds Timeline Preview changes + ### Version: 3.19.3 #### Date: May-17-2024 ##### Enhanncement: diff --git a/package-lock.json b/package-lock.json index 52b69bb2..ae9debb3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,15 @@ { "name": "contentstack", - "version": "3.20.2", + "version": "3.20.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "contentstack", - "version": "3.20.2", + "version": "3.20.3", "license": "MIT", "dependencies": { - "@contentstack/utils": "^1.3.8", + "@contentstack/utils": "^1.3.10", "cheerio": "^1.0.0-rc.12", "es6-promise": "^4.1.1", "isomorphic-fetch": "^3.0.0", @@ -1770,9 +1770,9 @@ "dev": true }, "node_modules/@contentstack/utils": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/@contentstack/utils/-/utils-1.3.8.tgz", - "integrity": "sha512-BKZcZs2/odh9nmugLmiNVBEbz34gjfgibZOsRlYV9ux7t+GkfjbELDjWJpKenL6G5Mb270VXVuDbNqkDLK96Zw==" + "version": "1.3.10", + "resolved": "https://registry.npmjs.org/@contentstack/utils/-/utils-1.3.10.tgz", + "integrity": "sha512-5RVb8alArFhKgBJfKc7ptKw1mUnOKvVUTEYTe9ztgQ5/F892nOxI8Xl9S6KqxxRJ8cLTVViF4H1BjQrd27ZNsw==" }, "node_modules/@discoveryjs/json-ext": { "version": "0.5.7", @@ -4040,12 +4040,12 @@ } }, "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" @@ -5798,9 +5798,9 @@ } }, "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, "dependencies": { "to-regex-range": "^5.0.1" @@ -12584,9 +12584,9 @@ } }, "node_modules/ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "version": "7.5.10", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", "dev": true, "engines": { "node": ">=8.3.0" diff --git a/package.json b/package.json index 1e8c59f3..997508a3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "contentstack", - "version": "3.20.2", + "version": "3.20.3", "description": "Contentstack Javascript SDK", "homepage": "https://www.contentstack.com/", "author": { @@ -99,7 +99,7 @@ "webpack-node-externals": "^3.0.0" }, "dependencies": { - "@contentstack/utils": "^1.3.8", + "@contentstack/utils": "^1.3.10", "cheerio": "^1.0.0-rc.12", "es6-promise": "^4.1.1", "isomorphic-fetch": "^3.0.0", diff --git a/src/core/lib/request.js b/src/core/lib/request.js index 367ad78b..ac77555d 100755 --- a/src/core/lib/request.js +++ b/src/core/lib/request.js @@ -109,7 +109,7 @@ function fetchRetry(stack, queryParams, fetchOptions, resolve, reject, retryDela } - fetch(encodeURI(request.url), request.option) + fetch(request.url, request.option) .then( function(response) { if (fetchOptions.debug) fetchOptions.logHandler('info', response);