From 4b520ce2816b3795a3154a6a6ec83932523fa71f Mon Sep 17 00:00:00 2001 From: Colby Fayock Date: Tue, 18 Jul 2023 11:28:09 -0400 Subject: [PATCH] feat: Fixes encoding and missing signature characters (#232) # Description - Fixes issue with double encoding https://github.com/colbyfayock/cloudinary-util/pull/60 - Fixes issue where signature was not allowing special characters `-_` https://github.com/colbyfayock/cloudinary-util/pull/61 ## Issue Ticket Number Fixes #219 ## Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] Fix or improve the documentation - [ ] This change requires a documentation update # Checklist - [ ] I have followed the contributing guidelines of this project as mentioned in [CONTRIBUTING.md](/CONTRIBUTING.md) - [ ] I have created an [issue](https://github.com/colbyfayock/next-cloudinary/issues) ticket for this PR - [ ] I have checked to ensure there aren't other open [Pull Requests](https://github.com/colbyfayock/next-cloudinary/pulls) for the same update/change? - [ ] I have performed a self-review of my own code - [ ] I have run tests locally to ensure they all pass - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes needed to the documentation --- next-cloudinary/package.json | 4 ++-- yarn.lock | 23 ++++++++++++++--------- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/next-cloudinary/package.json b/next-cloudinary/package.json index f77a0f76..c93420b9 100644 --- a/next-cloudinary/package.json +++ b/next-cloudinary/package.json @@ -14,8 +14,8 @@ "test:app": "NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME=\"test\" yarn build && cd tests/nextjs-app && yarn build" }, "dependencies": { - "@cloudinary-util/url-loader": "^3.9.0", - "@cloudinary-util/util": "^2.1.0", + "@cloudinary-util/url-loader": "^3.9.1", + "@cloudinary-util/util": "^2.2.1", "@cloudinary/url-gen": "^1.10.1" }, "devDependencies": { diff --git a/yarn.lock b/yarn.lock index 90d97e39..ba5c908c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -943,18 +943,23 @@ resolved "https://registry.yarnpkg.com/@braintree/sanitize-url/-/sanitize-url-6.0.2.tgz#6110f918d273fe2af8ea1c4398a88774bb9fc12f" integrity sha512-Tbsj02wXCbqGmzdnXNk0SOF19ChhRU70BsroIi4Pm6Ehp56in6vch94mfbdQ17DozxkL3BAVjbZ4Qc1a0HFRAg== -"@cloudinary-util/url-loader@^3.9.0": - version "3.9.0" - resolved "https://registry.yarnpkg.com/@cloudinary-util/url-loader/-/url-loader-3.9.0.tgz#c3b7c40f525aba8c58edbdf784addc3c51e3e642" - integrity sha512-DJiu+a3Mr2GEyjAo4Gy2KWX0YoXoP0CFp2jvw8+3gJj7wvmIb7mcjRk1yHSGIyJcolb0uR+tWGO6KVhStpreMg== +"@cloudinary-util/url-loader@^3.9.1": + version "3.9.1" + resolved "https://registry.yarnpkg.com/@cloudinary-util/url-loader/-/url-loader-3.9.1.tgz#71456ceb289de08c27bb8688b3733066a1ec5654" + integrity sha512-5j91AbiNIIyWz24hzrpKKEZut08j9px5xGTSwqFS1c2aadBOirOAOY8C23SzJSQNmuBDDZnHgH83EWfrZj3leA== dependencies: - "@cloudinary-util/util" "2.1.0" + "@cloudinary-util/util" "2.2.0" "@cloudinary/url-gen" "^1.10.1" -"@cloudinary-util/util@2.1.0", "@cloudinary-util/util@^2.1.0": - version "2.1.0" - resolved "https://registry.yarnpkg.com/@cloudinary-util/util/-/util-2.1.0.tgz#1f8152b228cdd92e8ccc1fa0200d4eeeb6ef73ae" - integrity sha512-PGjVxyhhOP8IaD6uawXzfDnI8ArPqpiLfIXc8TEjhv3CGhDFBAM3dCT3xeAgg+92sQsx/AN74j+qckdWPfoO6w== +"@cloudinary-util/util@2.2.0": + version "2.2.0" + resolved "https://registry.yarnpkg.com/@cloudinary-util/util/-/util-2.2.0.tgz#754f474d69f878249478fb98e1217a219063f482" + integrity sha512-FCEwoswGO9z5BmSY0iJLos8U4bmNGIy7Ap8KoJRJ3Vn2STqx+ilDzYMPJTQ8FVcYD1iDajMs52xg00oWO99pNg== + +"@cloudinary-util/util@^2.2.1": + version "2.2.1" + resolved "https://registry.yarnpkg.com/@cloudinary-util/util/-/util-2.2.1.tgz#c482d9321d37d921b347858a121c161b68782bd3" + integrity sha512-MEIqn5WtPP3mxSMTNNfpqlGS1UquAXcjmVdY/t/edD/ZWVjI85viBiOMIuF0W6n6UF5gTstLymfQNYx0YO/GZg== "@cloudinary/transformation-builder-sdk@^1.2.7": version "1.2.8"