mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Replace javascript module otto with goja (#4631)
* Move plugin javascript to own package with goja * Use javascript package in scraper Remove otto
This commit is contained in:
@@ -77,6 +77,14 @@ func (m ArgsMap) Float(key string) float64 {
|
||||
return ret
|
||||
}
|
||||
|
||||
func (m ArgsMap) ToMap() map[string]interface{} {
|
||||
ret := make(map[string]interface{})
|
||||
for k, v := range m {
|
||||
ret[k] = v
|
||||
}
|
||||
return ret
|
||||
}
|
||||
|
||||
// PluginInput is the data structure that is sent to plugin instances when they
|
||||
// are spawned.
|
||||
type PluginInput struct {
|
||||
|
||||
Reference in New Issue
Block a user