-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1457 from aeternity/feature/ts-compiler-api-options
Update compiler to 7.0.1
- Loading branch information
Showing
9 changed files
with
38 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
NODE_TAG=v6.5.2 | ||
COMPILER_TAG=v6.1.0 | ||
COMPILER_TAG=v7.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,3 +28,4 @@ coverage.* | |
.site | ||
site | ||
/src/apis/ | ||
/tooling/autorest/compiler-swagger.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import https from 'https'; | ||
import fs from 'fs'; | ||
|
||
const swaggerUrl = 'https://raw.githubusercontent.com/aeternity/aesophia_http/v7.0.1/config/swagger.yaml'; | ||
|
||
let swagger = await new Promise((resolve) => { | ||
https.get(swaggerUrl, (res) => { | ||
let data = ''; | ||
res.on('data', (chunk) => { data += chunk; }); | ||
res.on('close', () => resolve(data)); | ||
}).end(); | ||
}); | ||
|
||
swagger = swagger.replace(/basePath: \//, ''); | ||
// TODO: Remove after fixing https://github.com/aeternity/aesophia_http/issues/87 | ||
swagger = swagger.replace(/'400':.{80,120}?Error'\s+'400':/gms, '\'400\':'); | ||
await fs.promises.writeFile('./tooling/autorest/compiler-swagger.yaml', swagger); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters