ajgenesisnode-entity
Advanced tools
+8
-8
@@ -26,12 +26,12 @@ var path = require('path'), | ||
| var model = require(path.resolve(filename)); | ||
| // quick hack | ||
| model.entities = [ model.entities[0] ]; | ||
| model.entities.forEach(function (entity) { | ||
| if (entity.name != entityname) | ||
| return; | ||
| var entity = model.entities[0]; | ||
| if (!entity.properties) | ||
| entity.properties = []; | ||
| if (!entity.properties) | ||
| entity.properties = []; | ||
| entity.properties.push(property); | ||
| }); | ||
| entity.properties.push(property); | ||
@@ -38,0 +38,0 @@ var text = JSON.stringify(model, null, 4); |
+1
-1
| { "name": "ajgenesisnode-entity" | ||
| , "description": "AjGenesis for Node, Entity tasks and templates" | ||
| , "keywords": [ "codegeneration", "nodejs", "ajgenesis" ] | ||
| , "version": "0.0.3" | ||
| , "version": "0.0.4" | ||
| , "author": "Angel 'Java' Lopez <webmaster@ajlopez.com> (http://www.ajlopez.com)" | ||
@@ -6,0 +6,0 @@ , "repository": { "type": "git", "url": "git://github.com/ajlopez/AjGenesisNode-Entity.git" } |
+1
-0
@@ -40,2 +40,3 @@ # AjGenesisNode Entity | ||
| - 0.0.3: Published. add and addproperty process parameters. | ||
| - 0.0.4: Published. Fixing add property bug, using a hack. | ||
@@ -42,0 +43,0 @@ ## Contribution |
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
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
16711
0.15%50
2.04%345
-0.29%