diff options
| author | Emīls Piņķis <emils@mullvad.net> | 2018-04-19 12:42:58 +0100 |
|---|---|---|
| committer | Emīls Piņķis <emils@mullvad.net> | 2018-04-19 12:42:58 +0100 |
| commit | 86ce745b422026d46f970f17279a3489c34e2f40 (patch) | |
| tree | f0c40f7ab3df337577531b76999026d846ace560 | |
| parent | 3c408fabd5caee565882a50fdd47ebdc497da061 (diff) | |
| parent | aecfdb6543b1b875c02c06b7a6598208f4ab0fe3 (diff) | |
| download | mullvadvpn-86ce745b422026d46f970f17279a3489c34e2f40.tar.xz mullvadvpn-86ce745b422026d46f970f17279a3489c34e2f40.zip | |
Merge branch 'display-window-on-startup'
| -rw-r--r-- | .babelrc | 6 | ||||
| -rw-r--r-- | app/lib/backend.js | 2 | ||||
| -rw-r--r-- | package.json | 1 | ||||
| -rw-r--r-- | yarn.lock | 11 |
4 files changed, 15 insertions, 5 deletions
@@ -2,10 +2,10 @@ "env": { "electron": { "presets": ["es2015", "stage-0", "react"], - "plugins": ["transform-runtime", "inline-react-svg"] + "plugins": ["transform-runtime", "inline-react-svg", ["babel-plugin-transform-builtin-extend", { "globals": ["Error"] }]] }, "development": { - "presets": ["react-native"] + "presets": ["react-native", ["babel-plugin-transform-builtin-extend", { "globals": ["Error"] }]] } } -}
\ No newline at end of file +} diff --git a/app/lib/backend.js b/app/lib/backend.js index 45a91a9a50..88e4277be6 100644 --- a/app/lib/backend.js +++ b/app/lib/backend.js @@ -40,6 +40,8 @@ export class BackendError extends Error { static localizedMessage(type: ErrorType, cause: ?Error): string { + // TODO: since instanceof now works, BackendError can be replaced by a set + // of specific error types switch(type) { case 'NO_CREDIT': return 'Buy more time, so you can continue using the internet securely'; diff --git a/package.json b/package.json index 12f9f41472..b7d77d582b 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "repository": "https://github.com/mullvad/mullvadvpn-app", "license": "GPL-3.0", "dependencies": { + "babel-plugin-transform-builtin-extend": "^1.1.2", "babel-runtime": "^6.22.0", "d3-geo-projection": "^2.3.2", "electron-log": "^2.2.8", @@ -749,6 +749,13 @@ babel-plugin-transform-async-to-generator@^6.24.1: babel-plugin-syntax-async-functions "^6.8.0" babel-runtime "^6.22.0" +babel-plugin-transform-builtin-extend@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-builtin-extend/-/babel-plugin-transform-builtin-extend-1.1.2.tgz#5e96fecf58b8fa1ed74efcad88475b2af3c9116e" + dependencies: + babel-runtime "^6.2.0" + babel-template "^6.3.0" + babel-plugin-transform-class-constructor-call@^6.24.1: version "6.24.1" resolved "https://registry.yarnpkg.com/babel-plugin-transform-class-constructor-call/-/babel-plugin-transform-class-constructor-call-6.24.1.tgz#80dc285505ac067dcb8d6c65e2f6f11ab7765ef9" @@ -1236,14 +1243,14 @@ babel-register@^6.24.1, babel-register@^6.26.0: mkdirp "^0.5.1" source-map-support "^0.4.15" -babel-runtime@^6.0.0, babel-runtime@^6.18.0, babel-runtime@^6.22.0, babel-runtime@^6.23.0, babel-runtime@^6.26.0: +babel-runtime@^6.0.0, babel-runtime@^6.18.0, babel-runtime@^6.2.0, babel-runtime@^6.22.0, babel-runtime@^6.23.0, babel-runtime@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" dependencies: core-js "^2.4.0" regenerator-runtime "^0.11.0" -babel-template@^6.15.0, babel-template@^6.24.1, babel-template@^6.26.0: +babel-template@^6.15.0, babel-template@^6.24.1, babel-template@^6.26.0, babel-template@^6.3.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.26.0.tgz#de03e2d16396b069f46dd9fff8521fb1a0e35e02" dependencies: |
