You've already forked pocketbase
mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-11-27 00:20:27 +02:00
enabled Buffer goja_nodejs module
This commit is contained in:
@@ -22,6 +22,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/dop251/goja"
|
"github.com/dop251/goja"
|
||||||
|
"github.com/dop251/goja_nodejs/buffer"
|
||||||
"github.com/dop251/goja_nodejs/console"
|
"github.com/dop251/goja_nodejs/console"
|
||||||
"github.com/dop251/goja_nodejs/process"
|
"github.com/dop251/goja_nodejs/process"
|
||||||
"github.com/dop251/goja_nodejs/require"
|
"github.com/dop251/goja_nodejs/require"
|
||||||
@@ -169,9 +170,12 @@ func (p *plugin) registerMigrations() error {
|
|||||||
|
|
||||||
for file, content := range files {
|
for file, content := range files {
|
||||||
vm := goja.New()
|
vm := goja.New()
|
||||||
|
|
||||||
registry.Enable(vm)
|
registry.Enable(vm)
|
||||||
console.Enable(vm)
|
console.Enable(vm)
|
||||||
process.Enable(vm)
|
process.Enable(vm)
|
||||||
|
buffer.Enable(vm)
|
||||||
|
|
||||||
baseBinds(vm)
|
baseBinds(vm)
|
||||||
dbxBinds(vm)
|
dbxBinds(vm)
|
||||||
securityBinds(vm)
|
securityBinds(vm)
|
||||||
@@ -252,6 +256,7 @@ func (p *plugin) registerHooks() error {
|
|||||||
requireRegistry.Enable(vm)
|
requireRegistry.Enable(vm)
|
||||||
console.Enable(vm)
|
console.Enable(vm)
|
||||||
process.Enable(vm)
|
process.Enable(vm)
|
||||||
|
buffer.Enable(vm)
|
||||||
|
|
||||||
baseBinds(vm)
|
baseBinds(vm)
|
||||||
dbxBinds(vm)
|
dbxBinds(vm)
|
||||||
|
|||||||
Reference in New Issue
Block a user