react-native-update-cli 2.7.0 → 2.7.1

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
@@ -218,6 +218,9 @@ async function uploadFile(fn, key) {
218
218
  form.append('key', key);
219
219
  }
220
220
  form.append('file', fileStream);
221
+ // form.append('file', fileStream, {
222
+ // contentType: 'application/octet-stream',
223
+ // });
221
224
  const res = await (0, _nodefetch.default)(realUrl, {
222
225
  method: 'POST',
223
226
  body: form
package/lib/package.js CHANGED
@@ -233,7 +233,7 @@ const packageCommands = {
233
233
  const { id } = await (0, _api.post)(`/app/${appId}/package/create`, {
234
234
  name: versionName,
235
235
  hash,
236
- buildTime,
236
+ buildTime: String(buildTime),
237
237
  deps: _depversions.depVersions,
238
238
  commit: await (0, _git.getCommitInfo)()
239
239
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-update-cli",
3
- "version": "2.7.0",
3
+ "version": "2.7.1",
4
4
  "description": "command line tool for react-native-update (remote updates for react native)",
5
5
  "main": "index.js",
6
6
  "bin": {
package/src/api.ts CHANGED
@@ -191,6 +191,9 @@ export async function uploadFile(fn: string, key?: string) {
191
191
  form.append('key', key);
192
192
  }
193
193
  form.append('file', fileStream);
194
+ // form.append('file', fileStream, {
195
+ // contentType: 'application/octet-stream',
196
+ // });
194
197
 
195
198
  const res = await fetch(realUrl, {
196
199
  method: 'POST',
package/src/package.ts CHANGED
@@ -229,7 +229,7 @@ export const packageCommands = {
229
229
  const { id } = await post(`/app/${appId}/package/create`, {
230
230
  name: versionName,
231
231
  hash,
232
- buildTime,
232
+ buildTime: String(buildTime),
233
233
  deps: depVersions,
234
234
  commit: await getCommitInfo(),
235
235
  });