Skip to content

Commit 87936c9

Browse files
committed
Update version to 2.7.1 in package.json, convert buildTime to string in package commands, and comment out fileStream contentType in uploadFile function for future reference.
1 parent f18b3b3 commit 87936c9

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-update-cli",
3-
"version": "2.7.0",
3+
"version": "2.7.1",
44
"description": "command line tool for react-native-update (remote updates for react native)",
55
"main": "index.js",
66
"bin": {

src/api.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ export async function uploadFile(fn: string, key?: string) {
191191
form.append('key', key);
192192
}
193193
form.append('file', fileStream);
194+
// form.append('file', fileStream, {
195+
// contentType: 'application/octet-stream',
196+
// });
194197

195198
const res = await fetch(realUrl, {
196199
method: 'POST',

src/package.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ export const packageCommands = {
229229
const { id } = await post(`/app/${appId}/package/create`, {
230230
name: versionName,
231231
hash,
232-
buildTime,
232+
buildTime: String(buildTime),
233233
deps: depVersions,
234234
commit: await getCommitInfo(),
235235
});

0 commit comments

Comments
 (0)