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 +3 -0
- package/lib/package.js +1 -1
- package/package.json +1 -1
- package/src/api.ts +3 -0
- package/src/package.ts +1 -1
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
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