bumped plugins, added serialport mocks

This commit is contained in:
Eugene Pankov 2022-02-07 16:36:20 +01:00
parent d7eeac6af7
commit 194342d6fa
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4
16 changed files with 19 additions and 14 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "tabby-community-color-schemes", "name": "tabby-community-color-schemes",
"version": "1.0.171-nightly.1", "version": "1.0.171-nightly.3",
"description": "Community color schemes for Tabby", "description": "Community color schemes for Tabby",
"keywords": [ "keywords": [
"tabby-builtin-plugin" "tabby-builtin-plugin"

View File

@ -1,6 +1,6 @@
{ {
"name": "tabby-core", "name": "tabby-core",
"version": "1.0.171-nightly.1", "version": "1.0.171-nightly.3",
"description": "Tabby core", "description": "Tabby core",
"keywords": [ "keywords": [
"tabby-builtin-plugin" "tabby-builtin-plugin"

View File

@ -1,6 +1,6 @@
{ {
"name": "tabby-electron", "name": "tabby-electron",
"version": "1.0.171-nightly.1", "version": "1.0.171-nightly.3",
"description": "Electron-specific bindings", "description": "Electron-specific bindings",
"keywords": [ "keywords": [
"tabby-builtin-plugin" "tabby-builtin-plugin"

View File

@ -1,6 +1,6 @@
{ {
"name": "tabby-linkifier", "name": "tabby-linkifier",
"version": "1.0.171-nightly.2", "version": "1.0.171-nightly.3",
"description": "Makes URLs, IPs and file paths clickable in Tabby", "description": "Makes URLs, IPs and file paths clickable in Tabby",
"keywords": [ "keywords": [
"tabby-builtin-plugin" "tabby-builtin-plugin"

View File

@ -1,6 +1,6 @@
{ {
"name": "tabby-local", "name": "tabby-local",
"version": "1.0.171-nightly.1", "version": "1.0.171-nightly.3",
"description": "Tabby's local shell plugin", "description": "Tabby's local shell plugin",
"keywords": [ "keywords": [
"tabby-builtin-plugin" "tabby-builtin-plugin"

View File

@ -1,6 +1,6 @@
{ {
"name": "tabby-plugin-manager", "name": "tabby-plugin-manager",
"version": "1.0.171-nightly.2", "version": "1.0.171-nightly.3",
"description": "Tabby's plugin manager", "description": "Tabby's plugin manager",
"keywords": [ "keywords": [
"tabby-builtin-plugin" "tabby-builtin-plugin"

View File

@ -1,6 +1,6 @@
{ {
"name": "tabby-serial", "name": "tabby-serial",
"version": "1.0.171-nightly.1", "version": "1.0.171-nightly.3",
"description": "Serial connections for Tabby", "description": "Serial connections for Tabby",
"keywords": [ "keywords": [
"tabby-builtin-plugin" "tabby-builtin-plugin"

View File

@ -1,6 +1,6 @@
{ {
"name": "tabby-settings", "name": "tabby-settings",
"version": "1.0.171-nightly.1", "version": "1.0.171-nightly.3",
"description": "Tabby terminal settings page", "description": "Tabby terminal settings page",
"keywords": [ "keywords": [
"tabby-builtin-plugin" "tabby-builtin-plugin"

View File

@ -1,6 +1,6 @@
{ {
"name": "tabby-ssh", "name": "tabby-ssh",
"version": "1.0.171-nightly.1", "version": "1.0.171-nightly.3",
"description": "SSH connections for Tabby", "description": "SSH connections for Tabby",
"keywords": [ "keywords": [
"tabby-builtin-plugin" "tabby-builtin-plugin"

View File

@ -1,6 +1,6 @@
{ {
"name": "tabby-telnet", "name": "tabby-telnet",
"version": "1.0.171-nightly.1", "version": "1.0.171-nightly.3",
"description": "Telnet/socket connections for Tabby", "description": "Telnet/socket connections for Tabby",
"keywords": [ "keywords": [
"tabby-builtin-plugin" "tabby-builtin-plugin"

View File

@ -1,6 +1,6 @@
{ {
"name": "tabby-terminal", "name": "tabby-terminal",
"version": "1.0.171-nightly.1", "version": "1.0.171-nightly.3",
"description": "Tabby's terminal emulation core", "description": "Tabby's terminal emulation core",
"keywords": [ "keywords": [
"tabby-builtin-plugin" "tabby-builtin-plugin"

View File

@ -1,6 +1,6 @@
{ {
"name": "tabby-web-demo", "name": "tabby-web-demo",
"version": "1.0.171-nightly.2", "version": "1.0.171-nightly.3",
"main": "dist/index.js", "main": "dist/index.js",
"typings": "dist/index.d.ts", "typings": "dist/index.d.ts",
"scripts": { "scripts": {

View File

@ -1,6 +1,6 @@
{ {
"name": "tabby-web", "name": "tabby-web",
"version": "1.0.171-nightly.1", "version": "1.0.171-nightly.3",
"description": "Web-specific bindings", "description": "Web-specific bindings",
"keywords": [ "keywords": [
"tabby-builtin-plugin" "tabby-builtin-plugin"

View File

@ -27,6 +27,9 @@ window['bootstrapTabby'] = async function bootstrap (options: BootstrapOptions):
const pluginModules = [] const pluginModules = []
for (const packageModule of options.packageModules) { for (const packageModule of options.packageModules) {
if (!packageModule.default) {
continue
}
const pluginModule = packageModule.default.forRoot ? packageModule.default.forRoot() : packageModule.default const pluginModule = packageModule.default.forRoot ? packageModule.default.forRoot() : packageModule.default
pluginModule.pluginName = packageModule.pluginName pluginModule.pluginName = packageModule.pluginName
pluginModule.bootstrap = packageModule.bootstrap pluginModule.bootstrap = packageModule.bootstrap

View File

@ -20,5 +20,5 @@
"scripts": { "scripts": {
"postinstall": "patch-package" "postinstall": "patch-package"
}, },
"version": "1.0.171-nightly.2" "version": "1.0.171-nightly.3"
} }

View File

@ -68,6 +68,7 @@ Tabby.registerMock('tty', { isatty: () => false })
Tabby.registerMock('child_process', {}) Tabby.registerMock('child_process', {})
Tabby.registerMock('readable-stream', {}) Tabby.registerMock('readable-stream', {})
Tabby.registerMock('os', { Tabby.registerMock('os', {
arch: () => 'web',
platform: () => 'web', platform: () => 'web',
homedir: () => '/home', homedir: () => '/home',
}) })
@ -90,6 +91,7 @@ Tabby.registerMock('keytar', {
getPassword: () => null, getPassword: () => null,
}) })
Tabby.registerMock('@serialport/bindings', {}) Tabby.registerMock('@serialport/bindings', {})
Tabby.registerMock('@serialport/bindings-cpp', {})
Tabby.registerModule('net', { Tabby.registerModule('net', {
Socket: SocketProxy, Socket: SocketProxy,