Skip to content

Commit

Permalink
fix: Unhandled rejection SyntaxError: Unexpected token ...
Browse files Browse the repository at this point in the history
Closes #1076
  • Loading branch information
develar committed Jan 3, 2017
1 parent 82f16d1 commit 0c81bf7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 42 deletions.
10 changes: 3 additions & 7 deletions .idea/electron-builder.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 0 additions & 13 deletions .idea/libraries/electron_builder_for_tests.xml

This file was deleted.

15 changes: 0 additions & 15 deletions .idea/libraries/ts.xml

This file was deleted.

2 changes: 1 addition & 1 deletion packages/electron-builder/src/util/nodeHttpExecutor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { parse as parseUrl } from "url"
import { debug } from "./util"

export class NodeHttpExecutor extends HttpExecutor<RequestOptions, ClientRequest> {
private httpsAgent: Promise<Agent> | null = null
private httpsAgent: Promise<Agent> | null

download(url: string, destination: string, options?: DownloadOptions | null): Promise<string> {
return <BluebirdPromise<string>>(this.httpsAgent || (this.httpsAgent = createAgent()))
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"

[email protected]:
version "0.3.3"
Expand Down Expand Up @@ -3245,7 +3245,7 @@ [email protected]:
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:
Expand Down Expand Up @@ -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"

Expand Down

0 comments on commit 0c81bf7

Please sign in to comment.