react-native-update-cli 1.30.1 → 1.30.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/lib/api.js CHANGED
@@ -195,7 +195,9 @@ async function uploadFile(fn, key) {
195
195
  return reject(err);
196
196
  }
197
197
  if (resp.statusCode > 299) {
198
- return reject(Object.assign(new Error(body), { status: resp.statusCode }));
198
+ return reject(Object.assign(new Error(JSON.stringify(body)), {
199
+ status: resp.statusCode
200
+ }));
199
201
  }
200
202
  resolve({ hash: formData.key });
201
203
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-update-cli",
3
- "version": "1.30.1",
3
+ "version": "1.30.2",
4
4
  "description": "Command tools for javaScript updater with `pushy` service for react native apps.",
5
5
  "main": "index.js",
6
6
  "bin": {
package/src/.DS_Store ADDED
Binary file
package/src/api.js CHANGED
@@ -166,7 +166,9 @@ export async function uploadFile(fn, key) {
166
166
  }
167
167
  if (resp.statusCode > 299) {
168
168
  return reject(
169
- Object.assign(new Error(body), { status: resp.statusCode }),
169
+ Object.assign(new Error(JSON.stringify(body)), {
170
+ status: resp.statusCode,
171
+ }),
170
172
  );
171
173
  }
172
174
  resolve({ hash: formData.key });
Binary file