Versions in this module Expand all Collapse all v0 v0.1.0 Feb 10, 2023 Changes in this version + var ErrExceptionInPluginCode = errors.New("plugin code error") + func NewRuntime() *goja.Runtime + type Babel struct + type Compiler struct + ModuleLoader *modules.ModuleLoader + func New(logger Logger) (*Compiler, error) + func (c *Compiler) Run(pgm *goja.Program, cfg *RunConfig, ruleOpt map[string]any) error + func (c *Compiler) Transform(rawCode string) (*goja.Program, error) + type KeyValuePairs struct + Key string + Value string + type Logger interface + Error func(str string) + Info func(str string) + Log func(str string) + Warn func(str string) + type RunConfig struct + ApiSchema map[string]interface{} + Report func(body *reportmanager.ReportDef) + SetScore func(category string, score float32) + Type string