Skip to content

Commit

Permalink
Group detection was made useless by obfuscation
Browse files Browse the repository at this point in the history
  • Loading branch information
velis74 committed Dec 6, 2024
1 parent 7912820 commit 016f009
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ import { reactive } from 'vue';

import type { APIConsumer } from '../../api_consumer/namespace';
import DisplayMode from '../../classes/display-mode';
import { FormLayoutTypeGuards } from '../namespace';
import type { FormLayoutNS } from '../namespace';
import { FormLayoutTypeGuards } from '../namespace';

import type FormField from './field';
import type { Group } from './layout';
import type FormLayout from './layout';
import { Group } from './layout';

type FormLayoutInterface = FormLayoutNS.LayoutInterface;
type FormLayoutOrInterface = FormLayout | FormLayoutInterface;

function colIsGroup(col: any): col is Group {
return col.constructor.name === 'Group';
return col instanceof Group;
}

function collectAllFields(layout: FormLayoutOrInterface): FormField[] {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Operator from '../definitions/field-operator';
import FormPayload from '../definitions/form-payload';
import type FormPayload from '../definitions/form-payload';

export type Statement = [ string | Statement, Operator, any | Statement ] | null;

Expand Down

0 comments on commit 016f009

Please sign in to comment.