diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..bc1968d --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,9 @@ +# Changelog + +## 1.1.0 + +- added all documented http status codes + +## 1.0.0 + +initial release diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index e1916b5..0000000 --- a/index.d.ts +++ /dev/null @@ -1,183 +0,0 @@ -/* - * Copyright (C) Sapphirecode - All Rights Reserved - * This file is part of consts which is released under MIT. - * See file 'LICENSE' for full license details. - * Created by Timo Hocker , May 2020 - */ - -export declare const http: { - status_codes: { - status_continue: number; - status_switching_protocols: number; - status_processing: number; - status_early_hints: number; - status_ok: number; - status_created: number; - status_accepted: number; - status_non_authoritative: number; - status_no_content: number; - status_ok_no_content: number; - status_reset_content: number; - status_partial_content: number; - status_multi_status: number; - status_already_reported: number; - status_im_used: number; - status_multiple_choices: number; - status_moved_permanently: number; - status_found: number; - status_see_other: number; - status_not_modified: number; - status_use_proxy: number; - status_switch_proxy: number; - status_temporary_redirect: number; - status_permanent_redirect: number; - status_bad_request: number; - status_unauthorized: number; - status_payment_required: number; - status_forbidden: number; - status_not_found: number; - status_method_not_allowed: number; - status_not_acceptable: number; - status_proxy_authentication_required: number; - status_request_timeout: number; - status_conflict: number; - status_gone: number; - status_length_required: number; - status_precondition_failed: number; - status_payload_too_large: number; - status_uri_too_long: number; - status_unsupported_media_type: number; - status_range_not_satisfiable: number; - status_expectation_failed: number; - status_im_a_teapot: number; - status_misdirected_request: number; - status_unprocessable_entity: number; - status_locked: number; - status_failed_dependency: number; - status_too_early: number; - status_upgrade_required: number; - status_precondition_required: number; - status_too_many_requests: number; - status_request_header_fields_too_large: number; - status_unavailable_for_legal_reasons: number; - status_internal_server_error: number; - status_not_implemented: number; - status_bad_gateway: number; - status_service_unavailable: number; - status_gateway_timeout: number; - status_http_version_not_supported: number; - status_variant_also_negotiates: number; - status_insufficient_storage: number; - status_loop_detected: number; - status_not_extended: number; - status_network_authentication_required: number; - }; - unofficial: { - status_checkpoint: number; - status_this_is_fine: number; - status_page_expired: number; - status_method_failure: number; - status_enhance_your_calm: number; - status_request_header_fields_too_large: number; - status_blocked_by_windows_parental_controls: number; - status_invalid_token: number; - status_token_expired: number; - status_bandwidth_limit_exceeded: number; - status_invalid_ssl_certificate: number; - status_site_is_overloaded: number; - status_site_is_frozen: number; - status_network_read_timeout_error: number; - }; - iis: { - status_login_timeout: number; - status_retry_with: number; - status_redirect: number; - }; - nginx: { - status_no_response: number; - status_request_header_too_large: number; - status_ssl_certificate_error: number; - status_ssl_certificate_required: number; - status_http_request_sent_to_https_port: number; - status_client_closed_request: number; - }; - cloudflare: { - status_web_server_returned_unknown_error: number; - status_web_server_is_down: number; - status_connection_timed_out: number; - status_origin_is_unreachable: number; - status_a_timeout_occured: number; - status_ssl_handshake_failed: number; - status_invalid_ssl_certificate: number; - status_railgun_error: number; - status_530: number; - }; - aws_loadbalance: { - status_client_closed_connection: number; - status_too_many_adresses: number; - }; - status_continue: number; - status_switching_protocols: number; - status_processing: number; - status_early_hints: number; - status_ok: number; - status_created: number; - status_accepted: number; - status_non_authoritative: number; - status_no_content: number; - status_ok_no_content: number; - status_reset_content: number; - status_partial_content: number; - status_multi_status: number; - status_already_reported: number; - status_im_used: number; - status_multiple_choices: number; - status_moved_permanently: number; - status_found: number; - status_see_other: number; - status_not_modified: number; - status_use_proxy: number; - status_switch_proxy: number; - status_temporary_redirect: number; - status_permanent_redirect: number; - status_bad_request: number; - status_unauthorized: number; - status_payment_required: number; - status_forbidden: number; - status_not_found: number; - status_method_not_allowed: number; - status_not_acceptable: number; - status_proxy_authentication_required: number; - status_request_timeout: number; - status_conflict: number; - status_gone: number; - status_length_required: number; - status_precondition_failed: number; - status_payload_too_large: number; - status_uri_too_long: number; - status_unsupported_media_type: number; - status_range_not_satisfiable: number; - status_expectation_failed: number; - status_im_a_teapot: number; - status_misdirected_request: number; - status_unprocessable_entity: number; - status_locked: number; - status_failed_dependency: number; - status_too_early: number; - status_upgrade_required: number; - status_precondition_required: number; - status_too_many_requests: number; - status_request_header_fields_too_large: number; - status_unavailable_for_legal_reasons: number; - status_internal_server_error: number; - status_not_implemented: number; - status_bad_gateway: number; - status_service_unavailable: number; - status_gateway_timeout: number; - status_http_version_not_supported: number; - status_variant_also_negotiates: number; - status_insufficient_storage: number; - status_loop_detected: number; - status_not_extended: number; - status_network_authentication_required: number; -}; diff --git a/package.json b/package.json index 0e69e50..a6d79a3 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,16 @@ { "name": "@sapphirecode/consts", - "version": "1.1.28", + "version": "1.1.27", "main": "index.js", - "author": "Timo Hocker ", + "author": { + "name": "Timo Hocker", + "email": "timo@scode.ovh" + }, + "bugs": "https://redmine.scode.ovh/projects/consts", "license": "MIT", "repository": { "type": "git", - "url": "git@git.scode.ovh:timo/consts" + "url": "https://git.scode.ovh:timo/consts.git" }, "description": "useful constant values that are used in many applications", "devDependencies": { @@ -25,7 +29,10 @@ "LICENSE", "index.d.ts", "index.js", - "http_status_codes.js", - "console.js" + "http_status_codes.js" + ], + "keywords": [ + "constants", + "http status code" ] -} \ No newline at end of file +}