bdy 1.23.4-dev → 1.23.6-dev
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/distTs/package.json
CHANGED
|
@@ -159,10 +159,14 @@ const request = async (method, url, options) => {
|
|
|
159
159
|
output_1.default.exitNormal('');
|
|
160
160
|
}
|
|
161
161
|
else {
|
|
162
|
+
// setEncoding keeps multibyte characters intact across chunk boundaries,
|
|
163
|
+
// and newLine=false keeps chunk boundaries out of the payload
|
|
164
|
+
body.setEncoding('utf8');
|
|
162
165
|
body.on('data', (data) => {
|
|
163
|
-
output_1.default.normal(data
|
|
166
|
+
output_1.default.normal(data, false);
|
|
164
167
|
});
|
|
165
168
|
body.on('close', () => {
|
|
169
|
+
output_1.default.normal('');
|
|
166
170
|
output_1.default.exitNormal('');
|
|
167
171
|
});
|
|
168
172
|
}
|