1
0
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:
Gani Georgiev
2024-11-21 16:29:42 +02:00
parent a18df14f4f
commit ab26941d3f

View File

@@ -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)