@speedkit/cli 2.53.1 → 2.53.2
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [2.53.2](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v2.53.1...v2.53.2) (2024-08-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **onboarding:** fix unsupported encoding error ([6242b03](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/6242b038a061f309bec70bdc4b7fab02e73b0d64))
|
|
7
|
+
|
|
1
8
|
## [2.53.1](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v2.53.0...v2.53.1) (2024-08-22)
|
|
2
9
|
|
|
3
10
|
|
package/README.md
CHANGED
|
@@ -96,13 +96,15 @@ class CustomerDomainDocumentResponse {
|
|
|
96
96
|
const contentType = event.responseHeaders.find((headerRecord) => {
|
|
97
97
|
return headerRecord.name.toLowerCase() === "content-type";
|
|
98
98
|
})?.["value"] || "";
|
|
99
|
-
|
|
99
|
+
let charset = contentType.split("charset=")?.[1] || "utf-8";
|
|
100
100
|
const { body, base64Encoded } = await client.send("Fetch.getResponseBody", {
|
|
101
101
|
requestId: event.requestId,
|
|
102
102
|
});
|
|
103
103
|
if (base64Encoded) {
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
if (charset.includes("ISO-8859")) {
|
|
105
|
+
charset = "latin1";
|
|
106
|
+
}
|
|
107
|
+
return Buffer.from(body, "base64").toString(charset);
|
|
106
108
|
}
|
|
107
109
|
return body;
|
|
108
110
|
}
|
package/oclif.manifest.json
CHANGED