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:
Alexander Fisher 2016-05-24 16:35:44 -04:00 committed by wing328
parent b3d5271582
commit abf28797a4
3 changed files with 8 additions and 5 deletions

View File

@ -50,7 +50,7 @@ petApi.addPet(pet)
console.error(err);
exitCode = 1;
})
.finally(() => {
.then(() => {
return petApi.deletePet(petId);
})
.then((res) => {

View File

@ -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",

View File

@ -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"
}