breaking change expose result (#32)
This commit is contained in:
Родитель
bce4854295
Коммит
20ec3d52f4
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@azure/rest-api-specs-scripts",
|
"name": "@azure/rest-api-specs-scripts",
|
||||||
"version": "0.6.2",
|
"version": "0.6.3",
|
||||||
"description": "Scripts for the Azure RestAPI specification repository 'azure-rest-api-specs'.",
|
"description": "Scripts for the Azure RestAPI specification repository 'azure-rest-api-specs'.",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
|
|
@ -75,7 +75,7 @@ async function runOad(oldSpec: string, newSpec: string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// fix up output from OAD, it does not output valid JSON
|
// fix up output from OAD, it does not output valid JSON
|
||||||
result = '[' + result.replace(/}\s+{/gi,"},{") + ']'
|
result = result.replace(/}\s+{/gi,"},{")
|
||||||
|
|
||||||
return JSON.parse(result);
|
return JSON.parse(result);
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче