http-response-status
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -5,2 +5,19 @@ # Changelog | ||
### [0.0.4](https://github.com/arnaud-zg/http-status/compare/v0.0.2...v0.0.4) (2019-08-31) | ||
### 🔧 Chore | ||
- **deps:** bump eslint-utils from 1.4.0 to 1.4.2 ([#10](https://github.com/arnaud-zg/http-status/issues/10)) ([7e15d02](https://github.com/arnaud-zg/http-status/commit/7e15d02)) | ||
- **deps:** pin dependency codecov to 3.5.0 ([#8](https://github.com/arnaud-zg/http-status/issues/8)) ([ae8e1fe](https://github.com/arnaud-zg/http-status/commit/ae8e1fe)) | ||
- **deps:** update dependency @types/jest to v24.0.18 ([#9](https://github.com/arnaud-zg/http-status/issues/9)) ([d9c0686](https://github.com/arnaud-zg/http-status/commit/d9c0686)) | ||
- **deps:** update dependency tsdx to v0.9.0 ([#11](https://github.com/arnaud-zg/http-status/issues/11)) ([ad99e99](https://github.com/arnaud-zg/http-status/commit/ad99e99)) | ||
- **deps:** update dependency typescript to v3.6.2 ([#12](https://github.com/arnaud-zg/http-status/issues/12)) ([62614c1](https://github.com/arnaud-zg/http-status/commit/62614c1)) | ||
- **project:** update project name on README ([#5](https://github.com/arnaud-zg/http-status/issues/5)) ([68dbe3b](https://github.com/arnaud-zg/http-status/commit/68dbe3b)) | ||
- **release:** 0.0.3 ([86c222f](https://github.com/arnaud-zg/http-status/commit/86c222f)) | ||
- **test:** add test on NHttpHeaders ([#7](https://github.com/arnaud-zg/http-status/issues/7)) ([399d2d3](https://github.com/arnaud-zg/http-status/commit/399d2d3)) | ||
### 🖋 Features | ||
- **util:** add utils for getting category and name ([#4](https://github.com/arnaud-zg/http-status/issues/4)) ([3bc6c3a](https://github.com/arnaud-zg/http-status/commit/3bc6c3a)) | ||
### [0.0.3](https://github.com/arnaud-zg/http-response-status/compare/v0.0.2...v0.0.3) (2019-08-30) | ||
@@ -7,0 +24,0 @@ |
export declare namespace NHttpHeaders { | ||
enum EHttpHeaders { | ||
ACCEPT = "Accept", | ||
ACCESS_CONTROL_ALLOW_CREDENTIALS = "Access-Control-Allow-Credentials", | ||
ACCESS_CONTROL_ALLOW_HEADERS = "Access-Control-Allow-Headers", | ||
ACCESS_CONTROL_ALLOW_METHODS = "Access-Control-Allow-Methods", | ||
ACCESS_CONTROL_ALLOW_ORIGIN = "Access-Control-Allow-Origin", | ||
ACCESS_CONTROL_EXPOSE_HEADERS = "Access-Control-Expose-Headers", | ||
ACCESS_CONTROL_MAX_AGE = "Access-Control-Max-Age", | ||
ACCEPT_RANGES = "Accept-Ranges", | ||
AGE = "Age", | ||
ALLOW = "Allow", | ||
ALTERNATE_PROTOCOL = "Alternate-Protocol", | ||
CACHE_CONTROL = "Cache-Control", | ||
CLIENT_DATE = "Client-Date", | ||
CLIENT_PEER = "Client-Peer", | ||
CLIENT_RESPONSE_NUM = "Client-Response-Num", | ||
CONNECTION = "Connection", | ||
CONTENT_DISPOSITION = "Content-Disposition", | ||
CONTENT_ENCODING = "Content-Encoding", | ||
CONTENT_LANGUAGE = "Content-Language", | ||
CONTENT_LENGTH = "Content-Length", | ||
CONTENT_LOCATION = "Content-Location", | ||
CONTENT_MD5 = "Content-MD5", | ||
CONTENT_RANGE = "Content-Range", | ||
CONTENT_SECURITY_POLICY = "X-Content-Security-Policy", | ||
X_WEBKIT_CSP = "Content-Security-Policy, X-Content-Security-Policy, X-Webkit-CSP", | ||
CONTENT_SECURITY_POLICY_REPORT_ONLY = "Content-Security-Policy-Report-Only", | ||
CONTENT_TYPE = "Content-Type", | ||
APPLICATION_JSON = "application/json" | ||
DATE = "Date", | ||
ETAG = "Etag", | ||
EXPIRES = "Expires", | ||
HTTP = "HTTP", | ||
KEEP_ALIVE = "Keep-Alive", | ||
LAST_MODIFIED = "Last-Modified", | ||
LINK = "Link", | ||
LOCATION = "Location", | ||
P3P = "P3P", | ||
PRAGMA = "Pragma", | ||
PROXY_AUTHENTICATE = "Proxy-Authenticate", | ||
PROXY_CONNECTION = "Proxy-Connection", | ||
REFRESH = "Refresh", | ||
RETRY_AFTER = "Retry-After", | ||
SERVER = "Server", | ||
SET_COOKIE = "Set-Cookie", | ||
STATUS = "Status", | ||
STRICT_TRANSPORT_SECURITY = "Strict-Transport-Security", | ||
TIMING_ALLOW_ORIGIN = "Timing-Allow-Origin", | ||
TRAILER = "Trailer", | ||
TRANSFER_ENCODING = "Transfer-Encoding", | ||
UPGRADE = "Upgrade", | ||
VARY = "Vary", | ||
VIA = "Via", | ||
WARNING = "Warning", | ||
WWW_AUTHENTICATE = "WWW-Authenticate", | ||
X_ASPNET_VERSION = "X-Aspnet-Version", | ||
X_CONTENT_TYPE_OPTIONS = "X-Content-Type-Options", | ||
X_FRAME_OPTIONS = "X-Frame-Options", | ||
X_PERMITTED_CROSS_DOMAIN_POLICIES = "X-Permitted-Cross-Domain-Policies", | ||
X_PINGBACK = "X-Pingback", | ||
X_POWERED_BY = "X-Powered-By", | ||
X_ROBOTS_TAG = "X-Robots-Tag", | ||
X_UA_COMPATIBLE = "X-UA-Compatible", | ||
X_XSS_PROTECTION = "X-XSS-Protection" | ||
} | ||
@@ -7,0 +65,0 @@ } |
@@ -7,5 +7,63 @@ 'use strict'; | ||
(function (EHttpHeaders) { | ||
EHttpHeaders["ACCEPT"] = "Accept"; | ||
EHttpHeaders["ACCESS_CONTROL_ALLOW_CREDENTIALS"] = "Access-Control-Allow-Credentials"; | ||
EHttpHeaders["ACCESS_CONTROL_ALLOW_HEADERS"] = "Access-Control-Allow-Headers"; | ||
EHttpHeaders["ACCESS_CONTROL_ALLOW_METHODS"] = "Access-Control-Allow-Methods"; | ||
EHttpHeaders["ACCESS_CONTROL_ALLOW_ORIGIN"] = "Access-Control-Allow-Origin"; | ||
EHttpHeaders["ACCESS_CONTROL_EXPOSE_HEADERS"] = "Access-Control-Expose-Headers"; | ||
EHttpHeaders["ACCESS_CONTROL_MAX_AGE"] = "Access-Control-Max-Age"; | ||
EHttpHeaders["ACCEPT_RANGES"] = "Accept-Ranges"; | ||
EHttpHeaders["AGE"] = "Age"; | ||
EHttpHeaders["ALLOW"] = "Allow"; | ||
EHttpHeaders["ALTERNATE_PROTOCOL"] = "Alternate-Protocol"; | ||
EHttpHeaders["CACHE_CONTROL"] = "Cache-Control"; | ||
EHttpHeaders["CLIENT_DATE"] = "Client-Date"; | ||
EHttpHeaders["CLIENT_PEER"] = "Client-Peer"; | ||
EHttpHeaders["CLIENT_RESPONSE_NUM"] = "Client-Response-Num"; | ||
EHttpHeaders["CONNECTION"] = "Connection"; | ||
EHttpHeaders["CONTENT_DISPOSITION"] = "Content-Disposition"; | ||
EHttpHeaders["CONTENT_ENCODING"] = "Content-Encoding"; | ||
EHttpHeaders["CONTENT_LANGUAGE"] = "Content-Language"; | ||
EHttpHeaders["CONTENT_LENGTH"] = "Content-Length"; | ||
EHttpHeaders["CONTENT_LOCATION"] = "Content-Location"; | ||
EHttpHeaders["CONTENT_MD5"] = "Content-MD5"; | ||
EHttpHeaders["CONTENT_RANGE"] = "Content-Range"; | ||
EHttpHeaders["CONTENT_SECURITY_POLICY"] = "X-Content-Security-Policy"; | ||
EHttpHeaders["X_WEBKIT_CSP"] = "Content-Security-Policy, X-Content-Security-Policy, X-Webkit-CSP"; | ||
EHttpHeaders["CONTENT_SECURITY_POLICY_REPORT_ONLY"] = "Content-Security-Policy-Report-Only"; | ||
EHttpHeaders["CONTENT_TYPE"] = "Content-Type"; | ||
EHttpHeaders["APPLICATION_JSON"] = "application/json"; | ||
EHttpHeaders["DATE"] = "Date"; | ||
EHttpHeaders["ETAG"] = "Etag"; | ||
EHttpHeaders["EXPIRES"] = "Expires"; | ||
EHttpHeaders["HTTP"] = "HTTP"; | ||
EHttpHeaders["KEEP_ALIVE"] = "Keep-Alive"; | ||
EHttpHeaders["LAST_MODIFIED"] = "Last-Modified"; | ||
EHttpHeaders["LINK"] = "Link"; | ||
EHttpHeaders["LOCATION"] = "Location"; | ||
EHttpHeaders["P3P"] = "P3P"; | ||
EHttpHeaders["PRAGMA"] = "Pragma"; | ||
EHttpHeaders["PROXY_AUTHENTICATE"] = "Proxy-Authenticate"; | ||
EHttpHeaders["PROXY_CONNECTION"] = "Proxy-Connection"; | ||
EHttpHeaders["REFRESH"] = "Refresh"; | ||
EHttpHeaders["RETRY_AFTER"] = "Retry-After"; | ||
EHttpHeaders["SERVER"] = "Server"; | ||
EHttpHeaders["SET_COOKIE"] = "Set-Cookie"; | ||
EHttpHeaders["STATUS"] = "Status"; | ||
EHttpHeaders["STRICT_TRANSPORT_SECURITY"] = "Strict-Transport-Security"; | ||
EHttpHeaders["TIMING_ALLOW_ORIGIN"] = "Timing-Allow-Origin"; | ||
EHttpHeaders["TRAILER"] = "Trailer"; | ||
EHttpHeaders["TRANSFER_ENCODING"] = "Transfer-Encoding"; | ||
EHttpHeaders["UPGRADE"] = "Upgrade"; | ||
EHttpHeaders["VARY"] = "Vary"; | ||
EHttpHeaders["VIA"] = "Via"; | ||
EHttpHeaders["WARNING"] = "Warning"; | ||
EHttpHeaders["WWW_AUTHENTICATE"] = "WWW-Authenticate"; | ||
EHttpHeaders["X_ASPNET_VERSION"] = "X-Aspnet-Version"; | ||
EHttpHeaders["X_CONTENT_TYPE_OPTIONS"] = "X-Content-Type-Options"; | ||
EHttpHeaders["X_FRAME_OPTIONS"] = "X-Frame-Options"; | ||
EHttpHeaders["X_PERMITTED_CROSS_DOMAIN_POLICIES"] = "X-Permitted-Cross-Domain-Policies"; | ||
EHttpHeaders["X_PINGBACK"] = "X-Pingback"; | ||
EHttpHeaders["X_POWERED_BY"] = "X-Powered-By"; | ||
EHttpHeaders["X_ROBOTS_TAG"] = "X-Robots-Tag"; | ||
EHttpHeaders["X_UA_COMPATIBLE"] = "X-UA-Compatible"; | ||
EHttpHeaders["X_XSS_PROTECTION"] = "X-XSS-Protection"; | ||
})(EHttpHeaders = NHttpHeaders.EHttpHeaders || (NHttpHeaders.EHttpHeaders = {})); | ||
@@ -12,0 +70,0 @@ })(exports.NHttpHeaders || (exports.NHttpHeaders = {})); |
@@ -1,2 +0,2 @@ | ||
"use strict";var E,T,O,N,_,R,I,A;(E=(T=exports.NHttpHeaders||(exports.NHttpHeaders={})).EHttpHeaders||(T.EHttpHeaders={})).ACCEPT="Accept",E.CONTENT_TYPE="Content-Type",E.APPLICATION_JSON="application/json",(I=(A=exports.NHttpStatuses||(exports.NHttpStatuses={})).EInformational||(A.EInformational={}))[I.CONTINUE=100]="CONTINUE",I[I.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",I[I.PROCESSING=102]="PROCESSING",(R=A.ESuccess||(A.ESuccess={}))[R.OK=200]="OK",R[R.CREATED=201]="CREATED",R[R.ACCEPTED=202]="ACCEPTED",R[R.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",R[R.NO_CONTENT=204]="NO_CONTENT",R[R.RESET_CONTENT=205]="RESET_CONTENT",R[R.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",R[R.MULTI_STATUS=207]="MULTI_STATUS",R[R.ALREADY_REPORTED=208]="ALREADY_REPORTED",R[R.IM_USED=226]="IM_USED",(_=A.ERedirection||(A.ERedirection={}))[_.MULTIPLE_CHOICES=300]="MULTIPLE_CHOICES",_[_.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",_[_.FOUND=302]="FOUND",_[_.SEE_OTHER=303]="SEE_OTHER",_[_.NOT_MODIFIED=304]="NOT_MODIFIED",_[_.USE_PROXY=305]="USE_PROXY",_[_.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",_[_.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",(N=A.ClientError||(A.ClientError={}))[N.BAD_REQUEST=400]="BAD_REQUEST",N[N.UNAUTHORIZED=401]="UNAUTHORIZED",N[N.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",N[N.FORBIDDEN=403]="FORBIDDEN",N[N.NOT_FOUND=404]="NOT_FOUND",N[N.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",N[N.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",N[N.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",N[N.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",N[N.CONFLICT=409]="CONFLICT",N[N.GONE=410]="GONE",N[N.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",N[N.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",N[N.PAYLOAD_TOO_LARGE=413]="PAYLOAD_TOO_LARGE",N[N.REQUEST_URI_TOO_LONG=414]="REQUEST_URI_TOO_LONG",N[N.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",N[N.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",N[N.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",N[N.I_M_A_TEAPOT=418]="I_M_A_TEAPOT",N[N.MISDIRECTED_REQUEST=421]="MISDIRECTED_REQUEST",N[N.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",N[N.LOCKED=423]="LOCKED",N[N.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",N[N.UPGRADE_REQUIRED=426]="UPGRADE_REQUIRED",N[N.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",N[N.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",N[N.REQUEST_HEADER_FIELDS_TOO_LARGE=431]="REQUEST_HEADER_FIELDS_TOO_LARGE",N[N.CONNECTION_CLOSED_WITHOUT_RESPONSE=444]="CONNECTION_CLOSED_WITHOUT_RESPONSE",N[N.UNAVAILABLE_FOR_LEGAL_REASONS=451]="UNAVAILABLE_FOR_LEGAL_REASONS",N[N.CLIENT_CLOSED_REQUEST=499]="CLIENT_CLOSED_REQUEST",(O=A.EServerError||(A.EServerError={}))[O.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",O[O.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",O[O.BAD_GATEWAY=502]="BAD_GATEWAY",O[O.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",O[O.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",O[O.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",O[O.VARIANT_ALSO_NEGOTIATES=506]="VARIANT_ALSO_NEGOTIATES",O[O.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",O[O.LOOP_DETECTED=508]="LOOP_DETECTED",O[O.NOT_EXTENDED=510]="NOT_EXTENDED",O[O.NETWORK_AUTHENTICATION_REQUIRED=511]="NETWORK_AUTHENTICATION_REQUIRED",O[O.NETWORK_CONNECT_TIMEOUT_ERROR=599]="NETWORK_CONNECT_TIMEOUT_ERROR",exports.getHttpStatusCatgory=function(E){return-1!==Object.values(exports.NHttpStatuses.EInformational).indexOf(E)?"Informational":-1!==Object.values(exports.NHttpStatuses.ESuccess).indexOf(E)?"Success":-1!==Object.values(exports.NHttpStatuses.ERedirection).indexOf(E)?"Redirection":-1!==Object.values(exports.NHttpStatuses.ClientError).indexOf(E)?"ClientError":-1!==Object.values(exports.NHttpStatuses.EServerError).indexOf(E)?"ServerError":void 0},exports.getHttpStatusName=function(E){return exports.NHttpStatuses.EInformational[E]||exports.NHttpStatuses.ESuccess[E]||exports.NHttpStatuses.ERedirection[E]||exports.NHttpStatuses.ClientError[E]||exports.NHttpStatuses.EServerError[E]}; | ||
"use strict";var E,T,O,N,_,R,A,t;(E=(T=exports.NHttpHeaders||(exports.NHttpHeaders={})).EHttpHeaders||(T.EHttpHeaders={})).ACCESS_CONTROL_ALLOW_CREDENTIALS="Access-Control-Allow-Credentials",E.ACCESS_CONTROL_ALLOW_HEADERS="Access-Control-Allow-Headers",E.ACCESS_CONTROL_ALLOW_METHODS="Access-Control-Allow-Methods",E.ACCESS_CONTROL_ALLOW_ORIGIN="Access-Control-Allow-Origin",E.ACCESS_CONTROL_EXPOSE_HEADERS="Access-Control-Expose-Headers",E.ACCESS_CONTROL_MAX_AGE="Access-Control-Max-Age",E.ACCEPT_RANGES="Accept-Ranges",E.AGE="Age",E.ALLOW="Allow",E.ALTERNATE_PROTOCOL="Alternate-Protocol",E.CACHE_CONTROL="Cache-Control",E.CLIENT_DATE="Client-Date",E.CLIENT_PEER="Client-Peer",E.CLIENT_RESPONSE_NUM="Client-Response-Num",E.CONNECTION="Connection",E.CONTENT_DISPOSITION="Content-Disposition",E.CONTENT_ENCODING="Content-Encoding",E.CONTENT_LANGUAGE="Content-Language",E.CONTENT_LENGTH="Content-Length",E.CONTENT_LOCATION="Content-Location",E.CONTENT_MD5="Content-MD5",E.CONTENT_RANGE="Content-Range",E.CONTENT_SECURITY_POLICY="X-Content-Security-Policy",E.X_WEBKIT_CSP="Content-Security-Policy, X-Content-Security-Policy, X-Webkit-CSP",E.CONTENT_SECURITY_POLICY_REPORT_ONLY="Content-Security-Policy-Report-Only",E.CONTENT_TYPE="Content-Type",E.DATE="Date",E.ETAG="Etag",E.EXPIRES="Expires",E.HTTP="HTTP",E.KEEP_ALIVE="Keep-Alive",E.LAST_MODIFIED="Last-Modified",E.LINK="Link",E.LOCATION="Location",E.P3P="P3P",E.PRAGMA="Pragma",E.PROXY_AUTHENTICATE="Proxy-Authenticate",E.PROXY_CONNECTION="Proxy-Connection",E.REFRESH="Refresh",E.RETRY_AFTER="Retry-After",E.SERVER="Server",E.SET_COOKIE="Set-Cookie",E.STATUS="Status",E.STRICT_TRANSPORT_SECURITY="Strict-Transport-Security",E.TIMING_ALLOW_ORIGIN="Timing-Allow-Origin",E.TRAILER="Trailer",E.TRANSFER_ENCODING="Transfer-Encoding",E.UPGRADE="Upgrade",E.VARY="Vary",E.VIA="Via",E.WARNING="Warning",E.WWW_AUTHENTICATE="WWW-Authenticate",E.X_ASPNET_VERSION="X-Aspnet-Version",E.X_CONTENT_TYPE_OPTIONS="X-Content-Type-Options",E.X_FRAME_OPTIONS="X-Frame-Options",E.X_PERMITTED_CROSS_DOMAIN_POLICIES="X-Permitted-Cross-Domain-Policies",E.X_PINGBACK="X-Pingback",E.X_POWERED_BY="X-Powered-By",E.X_ROBOTS_TAG="X-Robots-Tag",E.X_UA_COMPATIBLE="X-UA-Compatible",E.X_XSS_PROTECTION="X-XSS-Protection",(A=(t=exports.NHttpStatuses||(exports.NHttpStatuses={})).EInformational||(t.EInformational={}))[A.CONTINUE=100]="CONTINUE",A[A.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",A[A.PROCESSING=102]="PROCESSING",(R=t.ESuccess||(t.ESuccess={}))[R.OK=200]="OK",R[R.CREATED=201]="CREATED",R[R.ACCEPTED=202]="ACCEPTED",R[R.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",R[R.NO_CONTENT=204]="NO_CONTENT",R[R.RESET_CONTENT=205]="RESET_CONTENT",R[R.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",R[R.MULTI_STATUS=207]="MULTI_STATUS",R[R.ALREADY_REPORTED=208]="ALREADY_REPORTED",R[R.IM_USED=226]="IM_USED",(_=t.ERedirection||(t.ERedirection={}))[_.MULTIPLE_CHOICES=300]="MULTIPLE_CHOICES",_[_.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",_[_.FOUND=302]="FOUND",_[_.SEE_OTHER=303]="SEE_OTHER",_[_.NOT_MODIFIED=304]="NOT_MODIFIED",_[_.USE_PROXY=305]="USE_PROXY",_[_.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",_[_.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",(N=t.ClientError||(t.ClientError={}))[N.BAD_REQUEST=400]="BAD_REQUEST",N[N.UNAUTHORIZED=401]="UNAUTHORIZED",N[N.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",N[N.FORBIDDEN=403]="FORBIDDEN",N[N.NOT_FOUND=404]="NOT_FOUND",N[N.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",N[N.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",N[N.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",N[N.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",N[N.CONFLICT=409]="CONFLICT",N[N.GONE=410]="GONE",N[N.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",N[N.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",N[N.PAYLOAD_TOO_LARGE=413]="PAYLOAD_TOO_LARGE",N[N.REQUEST_URI_TOO_LONG=414]="REQUEST_URI_TOO_LONG",N[N.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",N[N.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",N[N.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",N[N.I_M_A_TEAPOT=418]="I_M_A_TEAPOT",N[N.MISDIRECTED_REQUEST=421]="MISDIRECTED_REQUEST",N[N.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",N[N.LOCKED=423]="LOCKED",N[N.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",N[N.UPGRADE_REQUIRED=426]="UPGRADE_REQUIRED",N[N.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",N[N.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",N[N.REQUEST_HEADER_FIELDS_TOO_LARGE=431]="REQUEST_HEADER_FIELDS_TOO_LARGE",N[N.CONNECTION_CLOSED_WITHOUT_RESPONSE=444]="CONNECTION_CLOSED_WITHOUT_RESPONSE",N[N.UNAVAILABLE_FOR_LEGAL_REASONS=451]="UNAVAILABLE_FOR_LEGAL_REASONS",N[N.CLIENT_CLOSED_REQUEST=499]="CLIENT_CLOSED_REQUEST",(O=t.EServerError||(t.EServerError={}))[O.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",O[O.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",O[O.BAD_GATEWAY=502]="BAD_GATEWAY",O[O.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",O[O.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",O[O.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",O[O.VARIANT_ALSO_NEGOTIATES=506]="VARIANT_ALSO_NEGOTIATES",O[O.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",O[O.LOOP_DETECTED=508]="LOOP_DETECTED",O[O.NOT_EXTENDED=510]="NOT_EXTENDED",O[O.NETWORK_AUTHENTICATION_REQUIRED=511]="NETWORK_AUTHENTICATION_REQUIRED",O[O.NETWORK_CONNECT_TIMEOUT_ERROR=599]="NETWORK_CONNECT_TIMEOUT_ERROR",exports.getHttpStatusCatgory=function(E){return-1!==Object.values(exports.NHttpStatuses.EInformational).indexOf(E)?"Informational":-1!==Object.values(exports.NHttpStatuses.ESuccess).indexOf(E)?"Success":-1!==Object.values(exports.NHttpStatuses.ERedirection).indexOf(E)?"Redirection":-1!==Object.values(exports.NHttpStatuses.ClientError).indexOf(E)?"ClientError":-1!==Object.values(exports.NHttpStatuses.EServerError).indexOf(E)?"ServerError":void 0},exports.getHttpStatusName=function(E){return exports.NHttpStatuses.EInformational[E]||exports.NHttpStatuses.ESuccess[E]||exports.NHttpStatuses.ERedirection[E]||exports.NHttpStatuses.ClientError[E]||exports.NHttpStatuses.EServerError[E]}; | ||
//# sourceMappingURL=http-response-status.cjs.production.min.js.map |
@@ -7,5 +7,63 @@ var NHttpHeaders; | ||
(function (EHttpHeaders) { | ||
EHttpHeaders["ACCEPT"] = "Accept"; | ||
EHttpHeaders["ACCESS_CONTROL_ALLOW_CREDENTIALS"] = "Access-Control-Allow-Credentials"; | ||
EHttpHeaders["ACCESS_CONTROL_ALLOW_HEADERS"] = "Access-Control-Allow-Headers"; | ||
EHttpHeaders["ACCESS_CONTROL_ALLOW_METHODS"] = "Access-Control-Allow-Methods"; | ||
EHttpHeaders["ACCESS_CONTROL_ALLOW_ORIGIN"] = "Access-Control-Allow-Origin"; | ||
EHttpHeaders["ACCESS_CONTROL_EXPOSE_HEADERS"] = "Access-Control-Expose-Headers"; | ||
EHttpHeaders["ACCESS_CONTROL_MAX_AGE"] = "Access-Control-Max-Age"; | ||
EHttpHeaders["ACCEPT_RANGES"] = "Accept-Ranges"; | ||
EHttpHeaders["AGE"] = "Age"; | ||
EHttpHeaders["ALLOW"] = "Allow"; | ||
EHttpHeaders["ALTERNATE_PROTOCOL"] = "Alternate-Protocol"; | ||
EHttpHeaders["CACHE_CONTROL"] = "Cache-Control"; | ||
EHttpHeaders["CLIENT_DATE"] = "Client-Date"; | ||
EHttpHeaders["CLIENT_PEER"] = "Client-Peer"; | ||
EHttpHeaders["CLIENT_RESPONSE_NUM"] = "Client-Response-Num"; | ||
EHttpHeaders["CONNECTION"] = "Connection"; | ||
EHttpHeaders["CONTENT_DISPOSITION"] = "Content-Disposition"; | ||
EHttpHeaders["CONTENT_ENCODING"] = "Content-Encoding"; | ||
EHttpHeaders["CONTENT_LANGUAGE"] = "Content-Language"; | ||
EHttpHeaders["CONTENT_LENGTH"] = "Content-Length"; | ||
EHttpHeaders["CONTENT_LOCATION"] = "Content-Location"; | ||
EHttpHeaders["CONTENT_MD5"] = "Content-MD5"; | ||
EHttpHeaders["CONTENT_RANGE"] = "Content-Range"; | ||
EHttpHeaders["CONTENT_SECURITY_POLICY"] = "X-Content-Security-Policy"; | ||
EHttpHeaders["X_WEBKIT_CSP"] = "Content-Security-Policy, X-Content-Security-Policy, X-Webkit-CSP"; | ||
EHttpHeaders["CONTENT_SECURITY_POLICY_REPORT_ONLY"] = "Content-Security-Policy-Report-Only"; | ||
EHttpHeaders["CONTENT_TYPE"] = "Content-Type"; | ||
EHttpHeaders["APPLICATION_JSON"] = "application/json"; | ||
EHttpHeaders["DATE"] = "Date"; | ||
EHttpHeaders["ETAG"] = "Etag"; | ||
EHttpHeaders["EXPIRES"] = "Expires"; | ||
EHttpHeaders["HTTP"] = "HTTP"; | ||
EHttpHeaders["KEEP_ALIVE"] = "Keep-Alive"; | ||
EHttpHeaders["LAST_MODIFIED"] = "Last-Modified"; | ||
EHttpHeaders["LINK"] = "Link"; | ||
EHttpHeaders["LOCATION"] = "Location"; | ||
EHttpHeaders["P3P"] = "P3P"; | ||
EHttpHeaders["PRAGMA"] = "Pragma"; | ||
EHttpHeaders["PROXY_AUTHENTICATE"] = "Proxy-Authenticate"; | ||
EHttpHeaders["PROXY_CONNECTION"] = "Proxy-Connection"; | ||
EHttpHeaders["REFRESH"] = "Refresh"; | ||
EHttpHeaders["RETRY_AFTER"] = "Retry-After"; | ||
EHttpHeaders["SERVER"] = "Server"; | ||
EHttpHeaders["SET_COOKIE"] = "Set-Cookie"; | ||
EHttpHeaders["STATUS"] = "Status"; | ||
EHttpHeaders["STRICT_TRANSPORT_SECURITY"] = "Strict-Transport-Security"; | ||
EHttpHeaders["TIMING_ALLOW_ORIGIN"] = "Timing-Allow-Origin"; | ||
EHttpHeaders["TRAILER"] = "Trailer"; | ||
EHttpHeaders["TRANSFER_ENCODING"] = "Transfer-Encoding"; | ||
EHttpHeaders["UPGRADE"] = "Upgrade"; | ||
EHttpHeaders["VARY"] = "Vary"; | ||
EHttpHeaders["VIA"] = "Via"; | ||
EHttpHeaders["WARNING"] = "Warning"; | ||
EHttpHeaders["WWW_AUTHENTICATE"] = "WWW-Authenticate"; | ||
EHttpHeaders["X_ASPNET_VERSION"] = "X-Aspnet-Version"; | ||
EHttpHeaders["X_CONTENT_TYPE_OPTIONS"] = "X-Content-Type-Options"; | ||
EHttpHeaders["X_FRAME_OPTIONS"] = "X-Frame-Options"; | ||
EHttpHeaders["X_PERMITTED_CROSS_DOMAIN_POLICIES"] = "X-Permitted-Cross-Domain-Policies"; | ||
EHttpHeaders["X_PINGBACK"] = "X-Pingback"; | ||
EHttpHeaders["X_POWERED_BY"] = "X-Powered-By"; | ||
EHttpHeaders["X_ROBOTS_TAG"] = "X-Robots-Tag"; | ||
EHttpHeaders["X_UA_COMPATIBLE"] = "X-UA-Compatible"; | ||
EHttpHeaders["X_XSS_PROTECTION"] = "X-XSS-Protection"; | ||
})(EHttpHeaders = NHttpHeaders.EHttpHeaders || (NHttpHeaders.EHttpHeaders = {})); | ||
@@ -12,0 +70,0 @@ })(NHttpHeaders || (NHttpHeaders = {})); |
{ | ||
"name": "http-response-status", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/http-status.esm.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
66681
512