mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 19:33:55 +00:00
Add node and corejs to ambient typings since they represent native types. Update client to not use finally since this doesn't exist on a node js Promise.
This commit is contained in:
parent
b3d5271582
commit
abf28797a4
@ -50,7 +50,7 @@ petApi.addPet(pet)
|
||||
console.error(err);
|
||||
exitCode = 1;
|
||||
})
|
||||
.finally(() => {
|
||||
.then(() => {
|
||||
return petApi.deletePet(petId);
|
||||
})
|
||||
.then((res) => {
|
||||
|
@ -5,9 +5,10 @@
|
||||
"repository": "GIT_USER_ID/GIT_REPO_ID",
|
||||
"main": "api.js",
|
||||
"scripts": {
|
||||
"postinstall": "typings install",
|
||||
"clean": "rm -Rf node_modules/ typings/ *.js",
|
||||
"build": "typings install && tsc",
|
||||
"test": "tsc && node client.js"
|
||||
"build": "tsc",
|
||||
"test": "npm run build && node client.js"
|
||||
},
|
||||
"author": "Swagger Codegen Contributors",
|
||||
"license": "Apache-2.0",
|
||||
|
@ -1,7 +1,9 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"ambientDependencies": {
|
||||
"core-js": "registry:dt/core-js#0.0.0+20160317120654",
|
||||
"node": "registry:dt/node#4.0.0+20160423143914",
|
||||
"node": "registry:dt/node#4.0.0+20160423143914"
|
||||
},
|
||||
"dependencies": {
|
||||
"bluebird": "registry:npm/bluebird#3.3.4+20160515010139",
|
||||
"request": "registry:npm/request#2.69.0+20160304121250"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user