Skip to content

Commit

Permalink
Update travis config for "next" publish
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Delisle <[email protected]>
  • Loading branch information
delislesim committed Apr 23, 2019
1 parent f521cc2 commit 4da108d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tsp-typescript-client",
"version": "0.0.0",
"version": "0.1.0",
"description": "Trace Server Protocol client written in TypeScript",
"author": "Ericsson and others",
"main": "lib/index.js",
Expand Down Expand Up @@ -38,6 +38,6 @@
},
"scripts": {
"build": "tsc",
"publish:next": "yarn publish --tag next"
"publish:next": "yarn publish --new-version \"$(semver $npm_package_version -i minor)-next.$(git rev-parse --short HEAD)\" --tag next"
}
}
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ export * from './models/trace';
export * from './models/xy';
export * from './protocol/tsp-client';
export * from './protocol/rest-client';
export * from './protocol/tsp-client-response';
3 changes: 3 additions & 0 deletions src/protocol/tsp-client-response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ export class TspClientResponse<T> {
return this.statusMessage;
}

/**
* Check if the status code is 200
*/
public isOk(): boolean {
// TODO Use a constant
return this.statusCode === 200;
Expand Down

0 comments on commit 4da108d

Please sign in to comment.