@aws-sdk/cloudfront-signer 3.1069.0 → 3.1076.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -105,7 +105,7 @@ function encodeUrlPath(url) {
105
105
  let encodedQuery = "";
106
106
  if (rawQuery) {
107
107
  for (const [key, value] of new URLSearchParams(rawQuery.slice(1)).entries()) {
108
- encodedQuery += `${encodedQuery ? "&" : "?"}${encodeURIComponent(key)}=${encodeURIComponent(value)}`;
108
+ encodedQuery += `${encodedQuery ? "&" : "?"}${encodeURIComponent(key).replace(/'/g, "%27")}=${encodeURIComponent(value).replace(/'/g, "%27")}`;
109
109
  }
110
110
  }
111
111
  return origin + encodedPath + encodedQuery;
package/dist-es/sign.js CHANGED
@@ -104,7 +104,7 @@ function encodeUrlPath(url) {
104
104
  let encodedQuery = "";
105
105
  if (rawQuery) {
106
106
  for (const [key, value] of new URLSearchParams(rawQuery.slice(1)).entries()) {
107
- encodedQuery += `${encodedQuery ? "&" : "?"}${encodeURIComponent(key)}=${encodeURIComponent(value)}`;
107
+ encodedQuery += `${encodedQuery ? "&" : "?"}${encodeURIComponent(key).replace(/'/g, "%27")}=${encodeURIComponent(value).replace(/'/g, "%27")}`;
108
108
  }
109
109
  }
110
110
  return origin + encodedPath + encodedQuery;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/cloudfront-signer",
3
- "version": "3.1069.0",
3
+ "version": "3.1076.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:cjs": "node ../../scripts/compilation/inline",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@smithy/core": "^3.24.6",
30
+ "@smithy/core": "^3.27.0",
31
31
  "tslib": "^2.6.2"
32
32
  },
33
33
  "files": [