bdy 1.23.5-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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.23.5-dev",
4
+ "version": "1.23.6-dev",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "homepage": "https://buddy.works/docs/cli",
@@ -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.toString('utf8'));
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
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.23.5-dev",
4
+ "version": "1.23.6-dev",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "homepage": "https://buddy.works/docs/cli",