Comparing version 0.1.0 to 0.1.1
@@ -219,3 +219,6 @@ //----------------------------------------------------- | ||
req.model = { | ||
"name": mdlName, | ||
"data": mdlData, | ||
"scenario": mdlScenario || "", | ||
"validate": function() { return validate(model, mdlData, options); } | ||
@@ -222,0 +225,0 @@ }; |
{ | ||
"name": "aigis", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Simple and Powerful module for strict data control", | ||
@@ -44,4 +44,4 @@ | ||
"_id": "aigis@0.1.0", | ||
"_id": "aigis@0.1.1", | ||
"_from": "aigis@" | ||
} |
@@ -245,2 +245,4 @@ `npm install aigis -g` | ||
JSON.stringify(req.model.data) + | ||
" | name: " + req.model.name + | ||
" | scenario: " + req.model.scenario + | ||
" | validate: " + req.model.validate() | ||
@@ -255,3 +257,3 @@ ); | ||
//_ GET: http://127.0.0.1:3000/?model=user&scenario=update&data=%7B%22id%22%3A%226d%22%2C%22name%22%3A%22DT%22%7D | ||
//_ POST: {"model":"user", "data": {id: "6d", name: "DT"}} | ||
//_ POST: {"model":"user", "data": {id: "6d", name: "DT", pswd: "potato"}} | ||
``` | ||
@@ -258,0 +260,0 @@ |
@@ -53,2 +53,4 @@ //----------------------------------------------------- | ||
JSON.stringify(req.model.data) + | ||
" | name: " + req.model.name + | ||
" | scenario: " + req.model.scenario + | ||
" | validate: " + req.model.validate() | ||
@@ -55,0 +57,0 @@ ); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
86109
1635
380