unityscript
Advanced tools
+1
-1
| { | ||
| "name": "unityscript", | ||
| "version": "0.0.3", | ||
| "version": "0.0.4", | ||
| "author": "paishee", | ||
@@ -5,0 +5,0 @@ "description": "A JavaScript-to-C# Compiler for Unity", |
@@ -47,2 +47,8 @@ const { Scene } = require('../index.js'); | ||
| // removes more whitespace :skull: | ||
| stuff = stuff.map( s => s.filter( miniStuff => { | ||
| return miniStuff.replace(/(\r\n|\n|\r)/gm, "").replace(/\s/, "").length > 1 | ||
| })); | ||
| // nvm more messy | ||
@@ -53,15 +59,13 @@ stuff.forEach( (s, i) => { | ||
| if (this.parent[name]) { | ||
| try { | ||
| let obj = this.__createChild(name, stuff); // creates a new child obj | ||
| // this part is mostly just for like making sure that objects get put in Scene.objects and UnityscriptWorkspace.objects | ||
| if (obj instanceof this.parent.GameObject) { this.objects.push(fileID, obj); this.parent.objects.push(fileID, obj); } | ||
| if (obj instanceof this.parent.Light) { this.lights.push(fileID, obj); } | ||
| if (obj instanceof this.parent.Camera) { this.cameras.push(fileID, obj); } | ||
| let obj = this.__createChild(name, stuff); // creates a new child obj | ||
| // this part is mostly just for like making sure that objects get put in Scene.objects and UnityscriptWorkspace.objects | ||
| if (obj instanceof this.parent.GameObject) { this.objects.push(fileID, obj); this.parent.objects.push(fileID, obj); } | ||
| if (obj instanceof this.parent.Light) { this.lights.push(fileID, obj); } | ||
| if (obj instanceof this.parent.Camera) { this.cameras.push(fileID, obj); } | ||
| // finally adds it to the children | ||
| this.children.push(fileID, obj); | ||
| } catch(e) {} | ||
| // finally adds it to the children | ||
| this.children.push(fileID, obj); | ||
| } | ||
| }); | ||
| }) |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
35316
0.32%769
0.26%8
60%