We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 315086a commit 959e17aCopy full SHA for 959e17a
src/fast_transformer.coffee
@@ -35,13 +35,13 @@ export class FastTransformer
35
36
# Processes a PHP script.
37
transform: (file) ->
38
- await @listen()
39
- url = new URL "http://127.0.0.1:#{@_port}/index.php"
+ port = await @listen()
+ url = new URL "http://127.0.0.1:#{port}/index.php"
40
url.searchParams.set "file", resolve(file)
41
42
response = await fetch url
43
throw Error("An error occurred while processing the script: #{file}") unless response.ok
44
- response.text()
+ await response.text()
45
46
# Gets an ephemeral TCP port chosen by the system.
47
_getPort: -> new Promise (fulfill, reject) ->
0 commit comments