浏览代码

bumped plugins, added serialport mocks

Eugene Pankov 3 年之前
父节点
当前提交
194342d6fa

+ 1 - 1
tabby-community-color-schemes/package.json

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

+ 1 - 1
tabby-core/package.json

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

+ 1 - 1
tabby-electron/package.json

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

+ 1 - 1
tabby-linkifier/package.json

@@ -1,6 +1,6 @@
 {
   "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",
   "keywords": [
     "tabby-builtin-plugin"

+ 1 - 1
tabby-local/package.json

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

+ 1 - 1
tabby-plugin-manager/package.json

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

+ 1 - 1
tabby-serial/package.json

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

+ 1 - 1
tabby-settings/package.json

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

+ 1 - 1
tabby-ssh/package.json

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

+ 1 - 1
tabby-telnet/package.json

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

+ 1 - 1
tabby-terminal/package.json

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

+ 1 - 1
tabby-web-demo/package.json

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

+ 1 - 1
tabby-web/package.json

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

+ 3 - 0
web/entry.ts

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

+ 1 - 1
web/package.json

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

+ 2 - 0
web/polyfills.ts

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