magic-http-status
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,12 +0,9 @@ | ||
declare const _default: { | ||
CODES: { | ||
[key: string]: number; | ||
}; | ||
MESSAGES: { | ||
[key: string]: string; | ||
}; | ||
STATUS: { | ||
[key: number]: string; | ||
}; | ||
export declare const CODES: { | ||
[key: string]: number; | ||
}; | ||
export default _default; | ||
export declare const MESSAGES: { | ||
[key: string]: string; | ||
}; | ||
export declare const STATUS: { | ||
[key: number]: string; | ||
}; |
@@ -14,7 +14,5 @@ "use strict"; | ||
} | ||
exports["default"] = { | ||
CODES: invertGeneric(http_1.STATUS_CODES, function (k) { return Number(k); }), | ||
MESSAGES: invertGeneric(http_1.STATUS_CODES, function (k) { return http_1.STATUS_CODES[k]; }), | ||
STATUS: http_1.STATUS_CODES | ||
}; | ||
exports.CODES = invertGeneric(http_1.STATUS_CODES, function (k) { return Number(k); }); | ||
exports.MESSAGES = invertGeneric(http_1.STATUS_CODES, function (k) { return http_1.STATUS_CODES[k]; }); | ||
exports.STATUS = http_1.STATUS_CODES; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "magic-http-status", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "HTTP status codes and messages", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
# HTTP Status Codes and Messages | ||
[![Build Status](https://travis-ci.com/g-ongenae/magic-http-status.svg?branch=master)](https://travis-ci.com/g-ongenae/magic-http-status) | ||
[![Build Status](https://travis-ci.com/g-ongenae/magic-http-status.svg?branch=master)](https://travis-ci.com/g-ongenae/magic-http-status) [![Greenkeeper badge](https://badges.greenkeeper.io/g-ongenae/magic-http-status.svg)](https://greenkeeper.io/) | ||
@@ -5,0 +5,0 @@ ## Install |
3893
5
25