dependecy fix

This commit is contained in:
GotPPay
2017-12-14 14:21:23 +01:00
parent b4a54e84e7
commit 9e21328b7f
3 changed files with 8 additions and 21 deletions

6
backend/package.json Normal file
View File

@@ -0,0 +1,6 @@
{
"dependencies": {
"express": "^4.16.2",
"mongodb": "^2.2.33"
}
}

View File

@@ -40,26 +40,6 @@ module.exports = {
}
};
var isDomainFree = function (db, url, domain){
return new Promise((resolve,reject)=>{
http.get(url, res => {
res.setEncoding("utf8");
let body = "";
res.on("data", data => {
body += data;
});
res.on("end", () => {
let status = body.split(' ')[0];
if (status === 'free'){
resolve(true);
}else{
resolve(false);
}
});
});
});
}
var removeOccupiedDomain = function (db, url,domain){
return new Promise((resolve,reject)=>{
http.get(url, res => {

View File

@@ -6,7 +6,8 @@
"isomorphic-fetch": "^2.2.1",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react-scripts": "1.0.17"
"react-scripts": "1.0.17",
"react-table": "^6.7.5"
},
"scripts": {
"start": "react-scripts start",