[typescript-angular2] build to dist folder

This commit is contained in:
Frederick Cai
2016-12-11 23:38:12 +13:00
parent c83c813865
commit 8e200970d4
6 changed files with 17 additions and 17 deletions

View File

@@ -9,7 +9,7 @@
"moduleResolution": "node",
"removeComments": true,
"sourceMap": true,
"outDir": "./lib",
"outDir": "./dist",
"noLib": false,
"declaration": true
},
@@ -17,7 +17,7 @@
"node_modules",
"typings/main.d.ts",
"typings/main",
"lib"
"dist"
],
"filesGlob": [
"./model/*.ts",

View File

@@ -415,17 +415,17 @@ export class PetApi {
'application/xml'
];
// authentication (api_key) required
if (this.configuration.apiKey)
{
headers.set('api_key', this.configuration.apiKey);
}
// authentication (petstore_auth) required
// oauth required
if (this.configuration.accessToken)
{
headers.set('Authorization', 'Bearer ' + this.configuration.accessToken);
}
// authentication (api_key) required
if (this.configuration.apiKey)
{
headers.set('api_key', this.configuration.apiKey);
}

View File

@@ -1,4 +1,4 @@
## @swagger/angular2-typescript-petstore@0.0.1-SNAPSHOT.201612061134
## @swagger/angular2-typescript-petstore@0.0.1-SNAPSHOT.201612112338
### Building
@@ -19,7 +19,7 @@ navigate to the folder of your consuming project and run one of next commando's.
_published:_
```
npm install @swagger/angular2-typescript-petstore@0.0.1-SNAPSHOT.201612061134 --save
npm install @swagger/angular2-typescript-petstore@0.0.1-SNAPSHOT.201612112338 --save
```
_unPublished (not recommended):_

View File

@@ -415,17 +415,17 @@ export class PetApi {
'application/xml'
];
// authentication (api_key) required
if (this.configuration.apiKey)
{
headers.set('api_key', this.configuration.apiKey);
}
// authentication (petstore_auth) required
// oauth required
if (this.configuration.accessToken)
{
headers.set('Authorization', 'Bearer ' + this.configuration.accessToken);
}
// authentication (api_key) required
if (this.configuration.apiKey)
{
headers.set('api_key', this.configuration.apiKey);
}

View File

@@ -1,6 +1,6 @@
{
"name": "@swagger/angular2-typescript-petstore",
"version": "0.0.1-SNAPSHOT.201612061134",
"version": "0.0.1-SNAPSHOT.201612112338",
"description": "swagger client for @swagger/angular2-typescript-petstore",
"author": "Swagger Codegen Contributors",
"keywords": [

View File

@@ -9,7 +9,7 @@
"moduleResolution": "node",
"removeComments": true,
"sourceMap": true,
"outDir": "./lib",
"outDir": "./dist",
"noLib": false,
"declaration": true
},
@@ -17,7 +17,7 @@
"node_modules",
"typings/main.d.ts",
"typings/main",
"lib"
"dist"
],
"filesGlob": [
"./model/*.ts",