1
0
mirror of https://gitcode.com/github-mirrors/react-native-update-cli.git synced 2025-09-17 18:06:10 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

Compare commits

..

2 Commits

Author SHA1 Message Date
sunnylqm
85db61704c v1.1.18 2020-10-18 12:16:35 +08:00
sunnylqm
57ddfc5d7d Add token when upload 2020-10-18 12:16:15 +08:00
2 changed files with 5 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "react-native-update-cli", "name": "react-native-update-cli",
"version": "1.1.17", "version": "1.1.18",
"description": "Command tools for javaScript updater with `pushy` service for react native apps.", "description": "Command tools for javaScript updater with `pushy` service for react native apps.",
"main": "index.js", "main": "index.js",
"bin": { "bin": {

View File

@@ -147,6 +147,10 @@ async function uploadFile(fn, key) {
realUrl, realUrl,
{ {
formData, formData,
headers: {
'User-Agent': userAgent,
'X-AccessToken': session ? session.token : '',
},
}, },
(err, resp, body) => { (err, resp, body) => {
if (err) { if (err) {