blaze_compiler
Advanced tools
Comparing version 0.0.23 to 0.0.24
{ | ||
"name": "blaze_compiler", | ||
"version": "0.0.23", | ||
"version": "0.0.24", | ||
"description": "Transpiles extendable, schema orientated definitions into Firebase security rules", | ||
@@ -5,0 +5,0 @@ "author": "Tom Larkworthy", |
@@ -265,3 +265,3 @@ # Blaze Security Compiler for Firebase | ||
These inline tests are good for documenting intent and providing fast feedback when authoring a new schema. Note that | ||
inline tests cannot understand the constraint field, they can only test the schema. | ||
inline tests cannot understand the constraint field, they can only test the schema. | ||
@@ -388,2 +388,3 @@ ```YAML | ||
- bugfix: function with next or prev were not moved around when in constraints properly (similar to Nov 4th bug) | ||
- bugfix: minimum and maximum | ||
@@ -390,0 +391,0 @@ - 20th November 2014: |
{ | ||
"rules":{ | ||
".write":"((newData.val()>now*60))", | ||
".read":"false" | ||
".write":"false", | ||
".read":"false", | ||
"$workspace_id": { | ||
".write":"false", | ||
".read":"false", | ||
"$user_id": { | ||
".write":"((root.child('/rels/workspaces/users/').child($workspace_id).child(auth.id).child('role').val()=='administrator'))", | ||
".validate":"((root.child('/rels/workspaces/users/').child($workspace_id).child(auth.id).child('role').val()=='administrator'))", | ||
".read":"false" | ||
} | ||
} | ||
} | ||
} |
@@ -9,3 +9,3 @@ var fs = require("fs"); | ||
function run() { | ||
console.log("working?", checkScenario("./test/scenarios/function3.yaml")); | ||
console.log("working?", checkScenario("./test/scenarios/minimum1.yaml")); | ||
} | ||
@@ -12,0 +12,0 @@ |
@@ -15,3 +15,3 @@ /// <reference path="../types/nodeunit.d.ts" /> | ||
//called if this file is run, used to enable runtime debugging | ||
console.log("working?", checkScenario("./test/scenarios/function3.yaml")) | ||
console.log("working?", checkScenario("./test/scenarios/minimum1.yaml")) | ||
} | ||
@@ -18,0 +18,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
465501
120
5987
428