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

Update api endpoint

This commit is contained in:
sunnylqm
2020-08-25 11:41:01 +08:00
parent b3c8e1f8e3
commit 5e69793925

View File

@@ -3,7 +3,7 @@
*/ */
const fetch = require('node-fetch'); const fetch = require('node-fetch');
let host = process.env.PUSHY_REGISTRY || 'https://update.react-native.cn/api'; let host = process.env.PUSHY_REGISTRY || 'https://update.reactnative.cn/api';
const fs = require('fs'); const fs = require('fs');
import request from 'request'; import request from 'request';
import ProgressBar from 'progress'; import ProgressBar from 'progress';
@@ -59,7 +59,7 @@ exports.closeSession = function() {
savedSession = undefined; savedSession = undefined;
} }
session = undefined; session = undefined;
host = process.env.PUSHY_REGISTRY || 'https://update.reactnative.cn'; host = process.env.PUSHY_REGISTRY || 'https://update.reactnative.cn/api';
}; };
async function query(url, options) { async function query(url, options) {