Remove debugging output
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
cb67258ef3
commit
ff468410ad
@ -191,7 +191,6 @@ class Match {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (const rule of this.#rules) {
|
for (const rule of this.#rules) {
|
||||||
console.log(rule.operation, operation);
|
|
||||||
if (rule.operation === operation) {
|
if (rule.operation === operation) {
|
||||||
if (rule.test(localVars)) return true;
|
if (rule.test(localVars)) return true;
|
||||||
}
|
}
|
||||||
@ -283,8 +282,6 @@ export function getRuleRunner(service: ServiceStatement) {
|
|||||||
const submatches = s_match.matches.map((sub) => createMatch(sub));
|
const submatches = s_match.matches.map((sub) => createMatch(sub));
|
||||||
const match = new Match(segments, rules, wildcard, submatches);
|
const match = new Match(segments, rules, wildcard, submatches);
|
||||||
|
|
||||||
console.log("Adding match", segments, rules, wildcard, submatches);
|
|
||||||
|
|
||||||
return match;
|
return match;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -9,7 +9,6 @@ export default function compileRule(rule: string) {
|
|||||||
let error: RuleError | undefined;
|
let error: RuleError | undefined;
|
||||||
try {
|
try {
|
||||||
const tokenised = tokenize(rule);
|
const tokenised = tokenize(rule);
|
||||||
// console.log(tokenised);
|
|
||||||
const parsed = parse(tokenised);
|
const parsed = parse(tokenised);
|
||||||
const dbservice = parsed.find((e) => e.name === "realtimedb");
|
const dbservice = parsed.find((e) => e.name === "realtimedb");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user