diff --git a/tabby-community-color-schemes/package.json b/tabby-community-color-schemes/package.json index 0609e553..edfdfcd8 100644 --- a/tabby-community-color-schemes/package.json +++ b/tabby-community-color-schemes/package.json @@ -1,6 +1,6 @@ { "name": "tabby-community-color-schemes", - "version": "1.0.150", + "version": "1.0.156-nightly.2", "description": "Community color schemes for Tabby", "keywords": [ "tabby-builtin-plugin" diff --git a/tabby-core/package.json b/tabby-core/package.json index ed52c070..9b4ad9d0 100644 --- a/tabby-core/package.json +++ b/tabby-core/package.json @@ -1,6 +1,6 @@ { "name": "tabby-core", - "version": "1.0.150", + "version": "1.0.156-nightly.2", "description": "Tabby core", "keywords": [ "tabby-builtin-plugin" diff --git a/tabby-electron/package.json b/tabby-electron/package.json index 1358f13a..ed769df6 100644 --- a/tabby-electron/package.json +++ b/tabby-electron/package.json @@ -1,6 +1,6 @@ { "name": "tabby-electron", - "version": "1.0.150", + "version": "1.0.156-nightly.2", "description": "Electron-specific bindings", "keywords": [ "tabby-builtin-plugin" diff --git a/tabby-local/package.json b/tabby-local/package.json index e984a81a..a19b49c2 100644 --- a/tabby-local/package.json +++ b/tabby-local/package.json @@ -1,6 +1,6 @@ { "name": "tabby-local", - "version": "1.0.150", + "version": "1.0.156-nightly.2", "description": "Tabby's local shell plugin", "keywords": [ "tabby-builtin-plugin" diff --git a/tabby-plugin-manager/package.json b/tabby-plugin-manager/package.json index e0fefebd..f5245f7c 100644 --- a/tabby-plugin-manager/package.json +++ b/tabby-plugin-manager/package.json @@ -1,6 +1,6 @@ { "name": "tabby-plugin-manager", - "version": "1.0.150", + "version": "1.0.156-nightly.2", "description": "Tabby's plugin manager", "keywords": [ "tabby-builtin-plugin" diff --git a/tabby-serial/package.json b/tabby-serial/package.json index 9c86e81b..a4f93586 100644 --- a/tabby-serial/package.json +++ b/tabby-serial/package.json @@ -1,6 +1,6 @@ { "name": "tabby-serial", - "version": "1.0.150", + "version": "1.0.156-nightly.2", "description": "Serial connections for Tabby", "keywords": [ "tabby-builtin-plugin" diff --git a/tabby-settings/package.json b/tabby-settings/package.json index 03556741..bf493bf6 100644 --- a/tabby-settings/package.json +++ b/tabby-settings/package.json @@ -1,6 +1,6 @@ { "name": "tabby-settings", - "version": "1.0.150", + "version": "1.0.156-nightly.2", "description": "Tabby terminal settings page", "keywords": [ "tabby-builtin-plugin" diff --git a/tabby-ssh/package.json b/tabby-ssh/package.json index 3d92996e..5a3c3bb1 100644 --- a/tabby-ssh/package.json +++ b/tabby-ssh/package.json @@ -1,6 +1,6 @@ { "name": "tabby-ssh", - "version": "1.0.150", + "version": "1.0.156-nightly.2", "description": "SSH connections for Tabby", "keywords": [ "tabby-builtin-plugin" diff --git a/tabby-telnet/package.json b/tabby-telnet/package.json index 0f057661..f00bcf53 100644 --- a/tabby-telnet/package.json +++ b/tabby-telnet/package.json @@ -1,6 +1,6 @@ { "name": "tabby-telnet", - "version": "1.0.150", + "version": "1.0.156-nightly.2", "description": "Telnet/socket connections for Tabby", "keywords": [ "tabby-builtin-plugin" diff --git a/tabby-terminal/package.json b/tabby-terminal/package.json index f7a84a48..2469c522 100644 --- a/tabby-terminal/package.json +++ b/tabby-terminal/package.json @@ -1,6 +1,6 @@ { "name": "tabby-terminal", - "version": "1.0.150", + "version": "1.0.156-nightly.2", "description": "Tabby's terminal emulation core", "keywords": [ "tabby-builtin-plugin" diff --git a/tabby-web-demo/package.json b/tabby-web-demo/package.json index b47b6978..b2bc2af0 100644 --- a/tabby-web-demo/package.json +++ b/tabby-web-demo/package.json @@ -1,6 +1,6 @@ { "name": "tabby-web-demo", - "version": "1.0.150", + "version": "1.0.156-nightly.2", "main": "dist/index.js", "typings": "dist/index.d.ts", "scripts": { diff --git a/tabby-web/package.json b/tabby-web/package.json index bc0df22b..32e508df 100644 --- a/tabby-web/package.json +++ b/tabby-web/package.json @@ -1,6 +1,6 @@ { "name": "tabby-web", - "version": "1.0.150", + "version": "1.0.156-nightly.2", "description": "Web-specific bindings", "keywords": [ "tabby-builtin-plugin" diff --git a/web/entry.preload.ts b/web/entry.preload.ts index 7047da12..ee0b9dd2 100644 --- a/web/entry.preload.ts +++ b/web/entry.preload.ts @@ -93,6 +93,8 @@ Object.assign(window, { paths: [], }, Tabby, + __filename: '', + __dirname: '', process: { env: { }, argv: ['tabby'], diff --git a/web/package.json b/web/package.json index 2b4d229a..3cb6db99 100644 --- a/web/package.json +++ b/web/package.json @@ -11,10 +11,11 @@ "patch-package": "^6.4.7", "path-browserify": "^1.0.1", "readline-browserify": "^0.0.4", - "stream-browserify": "^3.0.0" + "stream-browserify": "^3.0.0", + "url": "^0.11.0" }, "resolutions": { "**/util": "^0.12.0" }, - "version": "1.0.150" + "version": "1.0.156-nightly.2" } diff --git a/web/polyfills.ts b/web/polyfills.ts index f5d3d385..cc059900 100644 --- a/web/polyfills.ts +++ b/web/polyfills.ts @@ -55,9 +55,6 @@ Tabby.registerMock('module', { prototype: { require: window['require'] }, }) -Tabby.registerMock('url', { - parse: () => null, -}) Tabby.registerMock('http', { Agent: class {}, request: {}, @@ -99,6 +96,10 @@ Tabby.registerModule('net', { }) Tabby.registerModule('events', require('events')) Tabby.registerModule('path', require('path-browserify')) +Tabby.registerModule('url', { + ...require('url'), + pathToFileURL: x => `file://${x}`, +}) Tabby.registerModule('zlib', { ...require('browserify-zlib'), constants: require('browserify-zlib'), diff --git a/web/webpack.config.js b/web/webpack.config.js index 6227a68e..e8d9ab42 100644 --- a/web/webpack.config.js +++ b/web/webpack.config.js @@ -13,7 +13,6 @@ for (const key of [ 'querystring', 'tls', 'tty', - 'url', 'zlib', '../build/Release/cpufeatures.node', './crypto/build/Release/sshcrypto.node', diff --git a/web/yarn.lock b/web/yarn.lock index 3ee94cd1..ac9f1f78 100644 --- a/web/yarn.lock +++ b/web/yarn.lock @@ -776,6 +776,16 @@ public-encrypt@^4.0.0: randombytes "^2.0.1" safe-buffer "^5.1.2" +punycode@1.3.2: + version "1.3.2" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.3.2.tgz#9653a036fb7c1ee42342f2325cceefea3926c48d" + integrity sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0= + +querystring@0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620" + integrity sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA= + randombytes@^2.0.0, randombytes@^2.0.1, randombytes@^2.0.5: version "2.1.0" resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a" @@ -927,6 +937,14 @@ universalify@^0.1.0: resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== +url@^0.11.0: + version "0.11.0" + resolved "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1" + integrity sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE= + dependencies: + punycode "1.3.2" + querystring "0.2.0" + util-deprecate@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"