New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

unityscript

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unityscript - npm Package Compare versions

Comparing version
0.0.3
to
0.0.4
+1
-1
package.json
{
"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);
}
});
})