mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-20 02:18:01 +00:00
bumped plugins, added serialport mocks
This commit is contained in:
@@ -27,6 +27,9 @@ window['bootstrapTabby'] = async function bootstrap (options: BootstrapOptions):
|
||||
|
||||
const pluginModules = []
|
||||
for (const packageModule of options.packageModules) {
|
||||
if (!packageModule.default) {
|
||||
continue
|
||||
}
|
||||
const pluginModule = packageModule.default.forRoot ? packageModule.default.forRoot() : packageModule.default
|
||||
pluginModule.pluginName = packageModule.pluginName
|
||||
pluginModule.bootstrap = packageModule.bootstrap
|
||||
|
@@ -20,5 +20,5 @@
|
||||
"scripts": {
|
||||
"postinstall": "patch-package"
|
||||
},
|
||||
"version": "1.0.171-nightly.2"
|
||||
"version": "1.0.171-nightly.3"
|
||||
}
|
||||
|
@@ -68,6 +68,7 @@ Tabby.registerMock('tty', { isatty: () => false })
|
||||
Tabby.registerMock('child_process', {})
|
||||
Tabby.registerMock('readable-stream', {})
|
||||
Tabby.registerMock('os', {
|
||||
arch: () => 'web',
|
||||
platform: () => 'web',
|
||||
homedir: () => '/home',
|
||||
})
|
||||
@@ -90,6 +91,7 @@ Tabby.registerMock('keytar', {
|
||||
getPassword: () => null,
|
||||
})
|
||||
Tabby.registerMock('@serialport/bindings', {})
|
||||
Tabby.registerMock('@serialport/bindings-cpp', {})
|
||||
|
||||
Tabby.registerModule('net', {
|
||||
Socket: SocketProxy,
|
||||
|
Reference in New Issue
Block a user