Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fundamental-constants

Package Overview
Dependencies
Maintainers
0
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fundamental-constants - npm Package Compare versions

Comparing version 0.2.1 to 0.3.0

Distributable/cjs/ComputerNetworking/HTTP_Methods.js

22

Distributable/cjs/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MINIMAL_CHARACTERS_COUNT_OF_EMAIL_ADDRESS = exports.MAXIMAL_CHARACTERS_COUNT_OF_EMAIL_ADDRESS = exports.EMAIL_ADDRESS_VALID_PATTERN = exports.CHARACTERS_COUNT_IN_FULL_ISO8601_STRING = exports.CHARACTERS_COUNT_IN_DATE_PART_OF_ISO8601_STRING = exports.SECONDS_COUNT_IN_MINUTE = exports.MonthsNames = exports.MONTHS_COUNT_IN_YEAR = exports.MINUTES_COUNT_IN_HOUR = exports.MINIMAL_SUPPORTED_UNIX_MILLISECONDS_AMOUNT = exports.MAXIMAL_SUPPORTED_UNIX_MILLISECONDS_AMOUNT = exports.MAXIMAL_DAYS_IN_MONTH = exports.HOURS_COUNT_IN_STELLAR_DAY = exports.DaysOfWeekNames = exports.DAYS_COUNT_IN_WEEK = exports.NETWORK_PORT_MINIMAL_VALUE = exports.NETWORK_PORT_MAXIMAL_VALUE = exports.HTTPS_DEFAULT_PORT = exports.HTTP_DEFAULT_PORT = void 0;
exports.MINIMAL_CHARACTERS_COUNT_OF_EMAIL_ADDRESS = exports.MAXIMAL_CHARACTERS_COUNT_OF_EMAIL_ADDRESS = exports.EMAIL_ADDRESS_VALID_PATTERN = exports.CHARACTERS_COUNT_IN_FULL_ISO8601_STRING = exports.MAXIMAL_CHARACTERS_COUNT_IN_DATE_PART_OF_ISO8601_STRING = exports.SECONDS_COUNT_IN_MINUTE = exports.MonthsNames = exports.MONTHS_COUNT_IN_YEAR = exports.MINUTES_COUNT_IN_HOUR = exports.MINIMAL_SUPPORTED_UNIX_MILLISECONDS_AMOUNT = exports.MAXIMAL_SUPPORTED_UNIX_MILLISECONDS_AMOUNT = exports.MAXIMAL_DAYS_IN_MONTH = exports.HOURS_COUNT_IN_STELLAR_DAY = exports.DaysOfWeekNames = exports.DAYS_COUNT_IN_WEEK = exports.IntegerDataTypes = exports.ServerErrorsHTTP_StatusCodes = exports.ClientErrorsHTTP_StatusCodes = exports.RedirectionResponsesHTTP_StatusCodes = exports.SuccessfulResponsesHTTP_StatusCodes = exports.InformationalResponsesHTTP_StatusCodes = exports.HTTP_StatusCodes = exports.NETWORK_PORT_MINIMAL_VALUE = exports.NETWORK_PORT_MAXIMAL_VALUE = exports.HTTPS_DEFAULT_PORT = exports.HTTP_Methods = exports.HTTP_DEFAULT_PORT = void 0;
var HTTP_DEFAULT_PORT_1 = require("./ComputerNetworking/HTTP_DEFAULT_PORT");
Object.defineProperty(exports, "HTTP_DEFAULT_PORT", { enumerable: true, get: function () { return HTTP_DEFAULT_PORT_1.HTTP_DEFAULT_PORT; } });
var HTTP_Methods_1 = require("./ComputerNetworking/HTTP_Methods");
Object.defineProperty(exports, "HTTP_Methods", { enumerable: true, get: function () { return HTTP_Methods_1.HTTP_Methods; } });
var HTTPS_DEFAULT_PORT_1 = require("./ComputerNetworking/HTTPS_DEFAULT_PORT");

@@ -12,2 +14,16 @@ Object.defineProperty(exports, "HTTPS_DEFAULT_PORT", { enumerable: true, get: function () { return HTTPS_DEFAULT_PORT_1.HTTPS_DEFAULT_PORT; } });

Object.defineProperty(exports, "NETWORK_PORT_MINIMAL_VALUE", { enumerable: true, get: function () { return NETWORK_PORT_MINIMAL_VALUE_1.NETWORK_PORT_MINIMAL_VALUE; } });
var HTTP_StatusCodes_1 = require("./ComputerNetworking/HTTP_StatusCodes/HTTP_StatusCodes");
Object.defineProperty(exports, "HTTP_StatusCodes", { enumerable: true, get: function () { return HTTP_StatusCodes_1.HTTP_StatusCodes; } });
var InformationalResponsesHTTP_StatusCodes_1 = require("./ComputerNetworking/HTTP_StatusCodes/InformationalResponsesHTTP_StatusCodes");
Object.defineProperty(exports, "InformationalResponsesHTTP_StatusCodes", { enumerable: true, get: function () { return InformationalResponsesHTTP_StatusCodes_1.InformationalResponsesHTTP_StatusCodes; } });
var SuccessfulResponsesHTTP_StatusCodes_1 = require("./ComputerNetworking/HTTP_StatusCodes/SuccessfulResponsesHTTP_StatusCodes");
Object.defineProperty(exports, "SuccessfulResponsesHTTP_StatusCodes", { enumerable: true, get: function () { return SuccessfulResponsesHTTP_StatusCodes_1.SuccessfulResponsesHTTP_StatusCodes; } });
var RedirectionResponsesHTTP_StatusCodes_1 = require("./ComputerNetworking/HTTP_StatusCodes/RedirectionResponsesHTTP_StatusCodes");
Object.defineProperty(exports, "RedirectionResponsesHTTP_StatusCodes", { enumerable: true, get: function () { return RedirectionResponsesHTTP_StatusCodes_1.RedirectionResponsesHTTP_StatusCodes; } });
var ClientErrorsHTTP_StatusCodes_1 = require("./ComputerNetworking/HTTP_StatusCodes/ClientErrorsHTTP_StatusCodes");
Object.defineProperty(exports, "ClientErrorsHTTP_StatusCodes", { enumerable: true, get: function () { return ClientErrorsHTTP_StatusCodes_1.ClientErrorsHTTP_StatusCodes; } });
var ServerErrorsHTTP_StatusCodes_1 = require("./ComputerNetworking/HTTP_StatusCodes/ServerErrorsHTTP_StatusCodes");
Object.defineProperty(exports, "ServerErrorsHTTP_StatusCodes", { enumerable: true, get: function () { return ServerErrorsHTTP_StatusCodes_1.ServerErrorsHTTP_StatusCodes; } });
var IntegerDataTypes_1 = require("./DataTypes/IntegerDataTypes");
Object.defineProperty(exports, "IntegerDataTypes", { enumerable: true, get: function () { return IntegerDataTypes_1.IntegerDataTypes; } });
var DAYS_COUNT_IN_WEEK_1 = require("./DateTime/DAYS_COUNT_IN_WEEK");

@@ -33,4 +49,4 @@ Object.defineProperty(exports, "DAYS_COUNT_IN_WEEK", { enumerable: true, get: function () { return DAYS_COUNT_IN_WEEK_1.DAYS_COUNT_IN_WEEK; } });

Object.defineProperty(exports, "SECONDS_COUNT_IN_MINUTE", { enumerable: true, get: function () { return SECONDS_COUNT_IN_MINUTE_1.SECONDS_COUNT_IN_MINUTE; } });
var CHARACTERS_COUNT_IN_DATE_PART_OF_ISO8601_STRING_1 = require("./DateTime/ISO8601/CHARACTERS_COUNT_IN_DATE_PART_OF_ISO8601_STRING");
Object.defineProperty(exports, "CHARACTERS_COUNT_IN_DATE_PART_OF_ISO8601_STRING", { enumerable: true, get: function () { return CHARACTERS_COUNT_IN_DATE_PART_OF_ISO8601_STRING_1.CHARACTERS_COUNT_IN_DATE_PART_OF_ISO8601_STRING; } });
var MAXIMAL_CHARACTERS_COUNT_IN_DATE_PART_OF_ISO8601_STRING_1 = require("./DateTime/ISO8601/MAXIMAL_CHARACTERS_COUNT_IN_DATE_PART_OF_ISO8601_STRING");
Object.defineProperty(exports, "MAXIMAL_CHARACTERS_COUNT_IN_DATE_PART_OF_ISO8601_STRING", { enumerable: true, get: function () { return MAXIMAL_CHARACTERS_COUNT_IN_DATE_PART_OF_ISO8601_STRING_1.MAXIMAL_CHARACTERS_COUNT_IN_DATE_PART_OF_ISO8601_STRING; } });
var CHARACTERS_COUNT_IN_FULL_ISO8601_STRING_1 = require("./DateTime/ISO8601/CHARACTERS_COUNT_IN_FULL_ISO8601_STRING");

@@ -37,0 +53,0 @@ Object.defineProperty(exports, "CHARACTERS_COUNT_IN_FULL_ISO8601_STRING", { enumerable: true, get: function () { return CHARACTERS_COUNT_IN_FULL_ISO8601_STRING_1.CHARACTERS_COUNT_IN_FULL_ISO8601_STRING; } });

export { HTTP_DEFAULT_PORT } from "./ComputerNetworking/HTTP_DEFAULT_PORT";
export { HTTP_Methods } from "./ComputerNetworking/HTTP_Methods";
export { HTTPS_DEFAULT_PORT } from "./ComputerNetworking/HTTPS_DEFAULT_PORT";
export { NETWORK_PORT_MAXIMAL_VALUE } from "./ComputerNetworking/NETWORK_PORT_MAXIMAL_VALUE";
export { NETWORK_PORT_MINIMAL_VALUE } from "./ComputerNetworking/NETWORK_PORT_MINIMAL_VALUE";
export { HTTP_StatusCodes } from "./ComputerNetworking/HTTP_StatusCodes/HTTP_StatusCodes";
export { InformationalResponsesHTTP_StatusCodes } from "./ComputerNetworking/HTTP_StatusCodes/InformationalResponsesHTTP_StatusCodes";
export { SuccessfulResponsesHTTP_StatusCodes } from "./ComputerNetworking/HTTP_StatusCodes/SuccessfulResponsesHTTP_StatusCodes";
export { RedirectionResponsesHTTP_StatusCodes } from "./ComputerNetworking/HTTP_StatusCodes/RedirectionResponsesHTTP_StatusCodes";
export { ClientErrorsHTTP_StatusCodes } from "./ComputerNetworking/HTTP_StatusCodes/ClientErrorsHTTP_StatusCodes";
export { ServerErrorsHTTP_StatusCodes } from "./ComputerNetworking/HTTP_StatusCodes/ServerErrorsHTTP_StatusCodes";
export { IntegerDataTypes } from "./DataTypes/IntegerDataTypes";
export { DAYS_COUNT_IN_WEEK } from "./DateTime/DAYS_COUNT_IN_WEEK";

@@ -15,3 +23,3 @@ export { DaysOfWeekNames } from "./DateTime/DaysOfWeekNames";

export { SECONDS_COUNT_IN_MINUTE } from "./DateTime/SECONDS_COUNT_IN_MINUTE";
export { CHARACTERS_COUNT_IN_DATE_PART_OF_ISO8601_STRING } from "./DateTime/ISO8601/CHARACTERS_COUNT_IN_DATE_PART_OF_ISO8601_STRING";
export { MAXIMAL_CHARACTERS_COUNT_IN_DATE_PART_OF_ISO8601_STRING } from "./DateTime/ISO8601/MAXIMAL_CHARACTERS_COUNT_IN_DATE_PART_OF_ISO8601_STRING";
export { CHARACTERS_COUNT_IN_FULL_ISO8601_STRING } from "./DateTime/ISO8601/CHARACTERS_COUNT_IN_FULL_ISO8601_STRING";

@@ -18,0 +26,0 @@ export { EMAIL_ADDRESS_VALID_PATTERN } from "./EmailAddress/EMAIL_ADDRESS_VALID_PATTERN";

export { HTTP_DEFAULT_PORT } from "./ComputerNetworking/HTTP_DEFAULT_PORT";
export { HTTP_Methods } from "./ComputerNetworking/HTTP_Methods";
export { HTTPS_DEFAULT_PORT } from "./ComputerNetworking/HTTPS_DEFAULT_PORT";
export { NETWORK_PORT_MAXIMAL_VALUE } from "./ComputerNetworking/NETWORK_PORT_MAXIMAL_VALUE";
export { NETWORK_PORT_MINIMAL_VALUE } from "./ComputerNetworking/NETWORK_PORT_MINIMAL_VALUE";
export { HTTP_StatusCodes } from "./ComputerNetworking/HTTP_StatusCodes/HTTP_StatusCodes";
export { InformationalResponsesHTTP_StatusCodes } from "./ComputerNetworking/HTTP_StatusCodes/InformationalResponsesHTTP_StatusCodes";
export { SuccessfulResponsesHTTP_StatusCodes } from "./ComputerNetworking/HTTP_StatusCodes/SuccessfulResponsesHTTP_StatusCodes";
export { RedirectionResponsesHTTP_StatusCodes } from "./ComputerNetworking/HTTP_StatusCodes/RedirectionResponsesHTTP_StatusCodes";
export { ClientErrorsHTTP_StatusCodes } from "./ComputerNetworking/HTTP_StatusCodes/ClientErrorsHTTP_StatusCodes";
export { ServerErrorsHTTP_StatusCodes } from "./ComputerNetworking/HTTP_StatusCodes/ServerErrorsHTTP_StatusCodes";
export { IntegerDataTypes } from "./DataTypes/IntegerDataTypes";
export { DAYS_COUNT_IN_WEEK } from "./DateTime/DAYS_COUNT_IN_WEEK";

@@ -15,3 +23,3 @@ export { DaysOfWeekNames } from "./DateTime/DaysOfWeekNames";

export { SECONDS_COUNT_IN_MINUTE } from "./DateTime/SECONDS_COUNT_IN_MINUTE";
export { CHARACTERS_COUNT_IN_DATE_PART_OF_ISO8601_STRING } from "./DateTime/ISO8601/CHARACTERS_COUNT_IN_DATE_PART_OF_ISO8601_STRING";
export { MAXIMAL_CHARACTERS_COUNT_IN_DATE_PART_OF_ISO8601_STRING } from "./DateTime/ISO8601/MAXIMAL_CHARACTERS_COUNT_IN_DATE_PART_OF_ISO8601_STRING";
export { CHARACTERS_COUNT_IN_FULL_ISO8601_STRING } from "./DateTime/ISO8601/CHARACTERS_COUNT_IN_FULL_ISO8601_STRING";

@@ -18,0 +26,0 @@ export { EMAIL_ADDRESS_VALID_PATTERN } from "./EmailAddress/EMAIL_ADDRESS_VALID_PATTERN";

2

package.json
{
"name": "fundamental-constants",
"version": "0.2.1",
"version": "0.3.0",
"description": "Fundamental constants and enumerations",

@@ -5,0 +5,0 @@ "keywords": [

@@ -16,5 +16,5 @@ Fundamental constants and enumerations.

## Content
### Compute networking
### Computer Networking
| Constant name | Value |
| Constant Name | Value |
|------------------------------|-------|

@@ -27,2 +27,193 @@ | `HTTP_DEFAULT_PORT` | 80 |

#### Enumerations
##### `HTTP_Methods`
| Key | Value |
|----------|-----------|
| get | "GET" |
| post | "POST" |
| create | "CREATE" |
| put | "PUT" |
| delete | "DELETE" |
| options | "OPTIONS" |
| head | "HEAD" |
| connect | "CONNECT" |
| trace | "TRACE" |
| patch | "PATCH" |
##### HTTP Status Codes
###### `HTTP_StatusCodes` — All HTTP Status Codes
| Key | Value |
|-------------------------------|-------|
| continue | 100 |
| switchingProtocols | 101 |
| processing | 102 |
| earlyHints | 103 |
| OK | 200 |
| created | 201 |
| accepted | 202 |
| nonAuthoritativeInformation | 203 |
| noContent | 204 |
| resetContent | 205 |
| partialContent | 206 |
| multiStatus | 207 |
| alreadyReported | 208 |
| IM\_Used | 226 |
| multipleChoices | 300 |
| movedPermanently | 301 |
| found | 302 |
| seeOther | 303 |
| notModified | 304 |
| useProxy | 305 |
| unused | 306 |
| temporaryRedirect | 307 |
| permanentRedirect | 308 |
| badRequest | 400 |
| unauthorized | 401 |
| paymentRequired | 402 |
| forbidden | 403 |
| notFound | 404 |
| methodNotAllowed | 405 |
| notAcceptable | 406 |
| proxyAuthenticationRequired | 407 |
| requestTimeout | 408 |
| conflict | 409 |
| gone | 410 |
| lengthRequired | 411 |
| preconditionFailed | 412 |
| payloadTooLarge | 413 |
| URI\_TooLong | 414 |
| unsupportedMediaType | 415 |
| rangeNotSatisfiable | 416 |
| expectationFailed | 417 |
| IAmATeapot | 418 |
| misdirectedRequest | 421 |
| unprocessableEntity | 422 |
| locked | 423 |
| failedDependency | 424 |
| tooEarly | 425 |
| upgradeRequired | 426 |
| preconditionRequired | 428 |
| tooManyRequests | 429 |
| requestHeaderFieldsTooLarge | 431 |
| unavailableForLegalReasons | 451 |
| internalServerError | 500 |
| notImplemented | 501 |
| badGateway | 502 |
| serviceUnavailable | 503 |
| gatewayTimeout | 504 |
| HTTP\_VersionNotSupported | 505 |
| variantAlsoNegotiates | 506 |
| insufficientStorage | 507 |
| loopDetected | 508 |
| notExtended | 510 |
| networkAuthenticationRequired | 511 |
###### `InformationalResponsesHTTP_StatusCodes` — Information Responses
| Key | Value |
|-------------------------------|-------|
| continue | 100 |
| switchingProtocols | 101 |
| processing | 102 |
| earlyHints | 103 |
###### `SuccessfulResponsesHTTP_StatusCodes` — Successful Responses
| Key | Value |
|-------------------------------|-------|
| OK | 200 |
| created | 201 |
| accepted | 202 |
| nonAuthoritativeInformation | 203 |
| noContent | 204 |
| resetContent | 205 |
| partialContent | 206 |
| multiStatus | 207 |
| alreadyReported | 208 |
| IM\_Used | 226 |
###### `RedirectionResponsesHTTP_StatusCodes` — Redirection Messages
| Key | Value |
|-------------------------------|-------|
| multipleChoices | 300 |
| movedPermanently | 301 |
| found | 302 |
| seeOther | 303 |
| notModified | 304 |
| useProxy | 305 |
| unused | 306 |
| temporaryRedirect | 307 |
| permanentRedirect | 308 |
###### `ClientErrorsHTTP_StatusCodes` — Client Error Responses
| Key | Value |
|-------------------------------|-------|
| badRequest | 400 |
| unauthorized | 401 |
| paymentRequired | 402 |
| forbidden | 403 |
| notFound | 404 |
| methodNotAllowed | 405 |
| notAcceptable | 406 |
| proxyAuthenticationRequired | 407 |
| requestTimeout | 408 |
| conflict | 409 |
| gone | 410 |
| lengthRequired | 411 |
| preconditionFailed | 412 |
| payloadTooLarge | 413 |
| URI\_TooLong | 414 |
| unsupportedMediaType | 415 |
| rangeNotSatisfiable | 416 |
| expectationFailed | 417 |
| IAmATeapot | 418 |
| misdirectedRequest | 421 |
| unprocessableEntity | 422 |
| locked | 423 |
| failedDependency | 424 |
| tooEarly | 425 |
| upgradeRequired | 426 |
| preconditionRequired | 428 |
| tooManyRequests | 429 |
| requestHeaderFieldsTooLarge | 431 |
| unavailableForLegalReasons | 451 |
###### `ServerErrorsHTTP_StatusCodes` — Server Error Responses
| Key | Value |
|-------------------------------|-------|
| internalServerError | 500 |
| notImplemented | 501 |
| badGateway | 502 |
| serviceUnavailable | 503 |
| gatewayTimeout | 504 |
| HTTP\_VersionNotSupported | 505 |
| variantAlsoNegotiates | 506 |
| insufficientStorage | 507 |
| loopDetected | 508 |
| notExtended | 510 |
| networkAuthenticationRequired | 511 |
### DataTypes
#### IntegerDataTypes
| Key | Value |
|--------------------------|------------------------|
| `OneByte\_\_8\_Bits` | "1\_BYTE\_\_8\_BITS" |
| `TwoBytes\_\_16\_Bits` | "2\_BYTES\_\_16\_BITS" |
| `ThreeBytes\_\_24\_Bits` | "3\_BYTES\_\_24\_BITS" |
| `FourBytes\_\_32\_Bits` | "4\_BYTES\_\_32\_BITS" |
| `EightBytes\_\_64\_Bits` | "8\_BYTES\_\_64\_BITS" |
### Date and Time

@@ -74,6 +265,6 @@

| Constant name | Value |
|---------------------------------------------------|-------|
| `CHARACTERS_COUNT_IN_DATE_PART_OF_ISO8601_STRING` | 10 |
| `CHARACTERS_COUNT_IN_FULL_ISO8601_STRING` | 24 |
| Constant name | Value |
|-----------------------------------------------------------|-------|
| `MAXIMAL_CHARACTERS_COUNT_IN_DATE_PART_OF_ISO8601_STRING` | 10 |
| `CHARACTERS_COUNT_IN_FULL_ISO8601_STRING` | 24 |

@@ -80,0 +271,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc