4 Commits

Author SHA1 Message Date
c0f411e261 1.0.4 2019-01-02 01:29:36 +01:00
09e3ea8733 fix(core): update 2019-01-02 01:29:35 +01:00
e8dbd7d793 1.0.3 2019-01-02 01:11:40 +01:00
77dbe56974 fix(core): update 2019-01-02 01:11:40 +01:00
4 changed files with 10 additions and 10 deletions

View File

@ -1,7 +1,7 @@
{
"npmci": {
"globalNpmTools": [
"npmts"
]
"globalNpmTools": [],
"npmRegistryUrl": "verdaccio.lossless.one",
"npmAccessLevel": "public"
}
}

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartstatus",
"version": "1.0.2",
"version": "1.0.4",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartstatus",
"version": "1.0.2",
"version": "1.0.4",
"private": false,
"description": "status information in TypeScript",
"main": "dist/index.js",

View File

@ -2,12 +2,12 @@ export type TStatusGroup = 'clientError' | 'serverError';
export class HttpStatus {
protected static statusMap: {[key:string]: HttpStatus} = {};
public static getHttpStatusByString (codeArg: number) {
return HttpStatus.statusMap[codeArg.toString()];
public static getHttpStatusByString (codeStringArg: string) {
return HttpStatus.statusMap[codeStringArg];
}
code: number;
text: string;
description: string;
public code: number;
public text: string;
public description: string;
constructor(optionsArg: { code: number; text: string; description: string }) {
this.code = optionsArg.code;
this.text = optionsArg.text;