* added new function inside parse js actions for view moe * fixing test cases * added evaluateSync with isTriggered false * Add types Add switch case for diff.event Add function get back app mode * Change foreach loops to for of * Dont return jsUpdates from view mode save resolved since no operation is happening Change viewModeSaveResolvedFunctionsAndJSUpdates -> viewModeSaveResolvedFunctions to reflect what it's functionality is * Refactor JSObject code * Refactor code for JSobject * remove any * export parsed object's type from ast * create function for deleteResolvedFunctionsAndCurrentJSCollectionState * Code review changes * Fix tests * Change returns in for of loops to continue Remove try for evaluate sync Js updates return * Fix bug * Fix bug Co-authored-by: Rimil Dey <rimil@appsmith.com> Co-authored-by: Aishwarya UR <aishwarya@appsmith.com>
53 lines
1.2 KiB
TypeScript
53 lines
1.2 KiB
TypeScript
import {
|
|
ObjectExpression,
|
|
PropertyNode,
|
|
isIdentifierNode,
|
|
isVariableDeclarator,
|
|
isObjectExpression,
|
|
isLiteralNode,
|
|
isPropertyNode,
|
|
isPropertyAFunctionNode,
|
|
getAST,
|
|
extractIdentifierInfoFromCode,
|
|
entityRefactorFromCode,
|
|
extractInvalidTopLevelMemberExpressionsFromCode,
|
|
getFunctionalParamsFromNode,
|
|
isTypeOfFunction,
|
|
MemberExpressionData,
|
|
IdentifierInfo,
|
|
} from "./src";
|
|
|
|
// constants
|
|
import { ECMA_VERSION, SourceType, NodeTypes } from "./src/constants";
|
|
|
|
// JSObjects
|
|
import { parseJSObjectWithAST, JsObjectProperty } from "./src/jsObject";
|
|
|
|
// types or interfaces should be exported with type keyword, while enums can be exported like normal functions
|
|
export type {
|
|
ObjectExpression,
|
|
PropertyNode,
|
|
MemberExpressionData,
|
|
IdentifierInfo,
|
|
JsObjectProperty,
|
|
};
|
|
|
|
export {
|
|
isIdentifierNode,
|
|
isVariableDeclarator,
|
|
isObjectExpression,
|
|
isLiteralNode,
|
|
isPropertyNode,
|
|
isPropertyAFunctionNode,
|
|
getAST,
|
|
extractIdentifierInfoFromCode,
|
|
entityRefactorFromCode,
|
|
extractInvalidTopLevelMemberExpressionsFromCode,
|
|
getFunctionalParamsFromNode,
|
|
isTypeOfFunction,
|
|
parseJSObjectWithAST,
|
|
ECMA_VERSION,
|
|
SourceType,
|
|
NodeTypes,
|
|
};
|