From 0c81bf788b1933228bd6883d36e8b6055f299619 Mon Sep 17 00:00:00 2001 From: develar Date: Tue, 3 Jan 2017 12:31:40 +0100 Subject: [PATCH] fix: Unhandled rejection SyntaxError: Unexpected token ... Closes #1076 --- .idea/electron-builder.iml | 10 +++------- .idea/libraries/electron_builder_for_tests.xml | 13 ------------- .idea/libraries/ts.xml | 15 --------------- .../electron-builder/src/util/nodeHttpExecutor.ts | 2 +- yarn.lock | 12 ++++++------ 5 files changed, 10 insertions(+), 42 deletions(-) delete mode 100644 .idea/libraries/electron_builder_for_tests.xml delete mode 100644 .idea/libraries/ts.xml diff --git a/.idea/electron-builder.iml b/.idea/electron-builder.iml index bac7a39926f..d0cba33cd80 100644 --- a/.idea/electron-builder.iml +++ b/.idea/electron-builder.iml @@ -1,12 +1,10 @@ - + - - - - + + @@ -17,7 +15,5 @@ - - \ No newline at end of file diff --git a/.idea/libraries/electron_builder_for_tests.xml b/.idea/libraries/electron_builder_for_tests.xml deleted file mode 100644 index 2cd2ca154b5..00000000000 --- a/.idea/libraries/electron_builder_for_tests.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/ts.xml b/.idea/libraries/ts.xml deleted file mode 100644 index 636b2435b14..00000000000 --- a/.idea/libraries/ts.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/packages/electron-builder/src/util/nodeHttpExecutor.ts b/packages/electron-builder/src/util/nodeHttpExecutor.ts index 0e6e20b1b3b..d4570d5de52 100644 --- a/packages/electron-builder/src/util/nodeHttpExecutor.ts +++ b/packages/electron-builder/src/util/nodeHttpExecutor.ts @@ -13,7 +13,7 @@ import { parse as parseUrl } from "url" import { debug } from "./util" export class NodeHttpExecutor extends HttpExecutor { - private httpsAgent: Promise | null = null + private httpsAgent: Promise | null download(url: string, destination: string, options?: DownloadOptions | null): Promise { return >(this.httpsAgent || (this.httpsAgent = createAgent())) diff --git a/yarn.lock b/yarn.lock index dba3aeab86d..3471893e1ed 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3106,10 +3106,10 @@ speedometer@~0.1.2: resolved "https://registry.yarnpkg.com/speedometer/-/speedometer-0.1.4.tgz#9876dbd2a169d3115402d48e6ea6329c8816a50d" split2@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/split2/-/split2-2.1.0.tgz#7382c148cb622c4b28af7c727f9673730b73f474" + version "2.1.1" + resolved "https://registry.yarnpkg.com/split2/-/split2-2.1.1.tgz#7a1f551e176a90ecd3345f7246a0cfe175ef4fd0" dependencies: - through2 "~2.0.0" + through2 "^2.0.2" split@0.3: version "0.3.3" @@ -3245,7 +3245,7 @@ throttleit@0.0.2: version "0.0.2" resolved "https://registry.yarnpkg.com/throttleit/-/throttleit-0.0.2.tgz#cfedf88e60c00dd9697b61fdd2a8343a9b680eaf" -through2@^2.0.0, through2@^2.0.3, through2@~2.0.0: +through2@^2.0.0, through2@^2.0.2, through2@^2.0.3: version "2.0.3" resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.3.tgz#0004569b37c7c74ba39c43f3ced78d1ad94140be" dependencies: @@ -3560,8 +3560,8 @@ yallist@^2.0.0: resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.0.0.tgz#306c543835f09ee1a4cb23b7bce9ab341c91cdd4" yargs-parser@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-4.2.0.tgz#6ced869cd05a3dca6a1eaee38b68aeed4b0b4101" + version "4.2.1" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-4.2.1.tgz#29cceac0dc4f03c6c87b4a9f217dd18c9f74871c" dependencies: camelcase "^3.0.0"