fundamental-constants
Advanced tools
Comparing version 0.0.6 to 0.1.0
"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_OF_DATE_PART_IN_ISO8601_STRING = exports.CHARACTERS_COUNT_IN_FULL_ISO8601_STRING = exports.SECONDS_PER_MINUTE = exports.MonthsNames = exports.MINUTES_PER_HOUR = exports.MAXIMAL_DAYS_IN_MONTH = exports.HOURS_PER_STELLAR_DAY = exports.DaysOfWeekNames = exports.DAYS_COUNT_IN_WEEK = exports.NETWORK_PORT_MINIMAL_VALUE = exports.NETWORK_PORT_MAXIMAL_VALUE = 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.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.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; | ||
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 HTTPS_DEFAULT_PORT_1 = require("./ComputerNetworking/HTTPS_DEFAULT_PORT"); | ||
Object.defineProperty(exports, "HTTPS_DEFAULT_PORT", { enumerable: true, get: function () { return HTTPS_DEFAULT_PORT_1.HTTPS_DEFAULT_PORT; } }); | ||
var NETWORK_PORT_MAXIMAL_VALUE_1 = require("./ComputerNetworking/NETWORK_PORT_MAXIMAL_VALUE"); | ||
@@ -12,16 +16,18 @@ Object.defineProperty(exports, "NETWORK_PORT_MAXIMAL_VALUE", { enumerable: true, get: function () { return NETWORK_PORT_MAXIMAL_VALUE_1.NETWORK_PORT_MAXIMAL_VALUE; } }); | ||
Object.defineProperty(exports, "DaysOfWeekNames", { enumerable: true, get: function () { return DaysOfWeekNames_1.DaysOfWeekNames; } }); | ||
var HOURS_PER_STELLAR_DAY_1 = require("./DateTime/HOURS_PER_STELLAR_DAY"); | ||
Object.defineProperty(exports, "HOURS_PER_STELLAR_DAY", { enumerable: true, get: function () { return HOURS_PER_STELLAR_DAY_1.HOURS_PER_STELLAR_DAY; } }); | ||
var HOURS_COUNT_IN_STELLAR_DAY_1 = require("./DateTime/HOURS_COUNT_IN_STELLAR_DAY"); | ||
Object.defineProperty(exports, "HOURS_COUNT_IN_STELLAR_DAY", { enumerable: true, get: function () { return HOURS_COUNT_IN_STELLAR_DAY_1.HOURS_COUNT_IN_STELLAR_DAY; } }); | ||
var MAXIMAL_DAYS_IN_MONTH_1 = require("./DateTime/MAXIMAL_DAYS_IN_MONTH"); | ||
Object.defineProperty(exports, "MAXIMAL_DAYS_IN_MONTH", { enumerable: true, get: function () { return MAXIMAL_DAYS_IN_MONTH_1.MAXIMAL_DAYS_IN_MONTH; } }); | ||
var MINUTES_PER_HOUR_1 = require("./DateTime/MINUTES_PER_HOUR"); | ||
Object.defineProperty(exports, "MINUTES_PER_HOUR", { enumerable: true, get: function () { return MINUTES_PER_HOUR_1.MINUTES_PER_HOUR; } }); | ||
var MINUTES_COUNT_IN_HOUR_1 = require("./DateTime/MINUTES_COUNT_IN_HOUR"); | ||
Object.defineProperty(exports, "MINUTES_COUNT_IN_HOUR", { enumerable: true, get: function () { return MINUTES_COUNT_IN_HOUR_1.MINUTES_COUNT_IN_HOUR; } }); | ||
var MONTHS_COUNT_IN_YEAR_1 = require("./DateTime/MONTHS_COUNT_IN_YEAR"); | ||
Object.defineProperty(exports, "MONTHS_COUNT_IN_YEAR", { enumerable: true, get: function () { return MONTHS_COUNT_IN_YEAR_1.MONTHS_COUNT_IN_YEAR; } }); | ||
var MonthsNames_1 = require("./DateTime/MonthsNames"); | ||
Object.defineProperty(exports, "MonthsNames", { enumerable: true, get: function () { return MonthsNames_1.MonthsNames; } }); | ||
var SECONDS_PER_MINUTE_1 = require("./DateTime/SECONDS_PER_MINUTE"); | ||
Object.defineProperty(exports, "SECONDS_PER_MINUTE", { enumerable: true, get: function () { return SECONDS_PER_MINUTE_1.SECONDS_PER_MINUTE; } }); | ||
var SECONDS_COUNT_IN_MINUTE_1 = require("./DateTime/SECONDS_COUNT_IN_MINUTE"); | ||
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 CHARACTERS_COUNT_IN_FULL_ISO8601_STRING_1 = require("./DateTime/ISO8601/CHARACTERS_COUNT_IN_FULL_ISO8601_STRING"); | ||
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; } }); | ||
var CHARACTERS_COUNT_OF_DATE_PART_IN_ISO8601_STRING_1 = require("./DateTime/ISO8601/CHARACTERS_COUNT_OF_DATE_PART_IN_ISO8601_STRING"); | ||
Object.defineProperty(exports, "CHARACTERS_COUNT_OF_DATE_PART_IN_ISO8601_STRING", { enumerable: true, get: function () { return CHARACTERS_COUNT_OF_DATE_PART_IN_ISO8601_STRING_1.CHARACTERS_COUNT_OF_DATE_PART_IN_ISO8601_STRING; } }); | ||
var EMAIL_ADDRESS_VALID_PATTERN_1 = require("./EmailAddress/EMAIL_ADDRESS_VALID_PATTERN"); | ||
@@ -28,0 +34,0 @@ Object.defineProperty(exports, "EMAIL_ADDRESS_VALID_PATTERN", { enumerable: true, get: function () { return EMAIL_ADDRESS_VALID_PATTERN_1.EMAIL_ADDRESS_VALID_PATTERN; } }); |
@@ -0,1 +1,3 @@ | ||
export { HTTP_DEFAULT_PORT } from "./ComputerNetworking/HTTP_DEFAULT_PORT"; | ||
export { HTTPS_DEFAULT_PORT } from "./ComputerNetworking/HTTPS_DEFAULT_PORT"; | ||
export { NETWORK_PORT_MAXIMAL_VALUE } from "./ComputerNetworking/NETWORK_PORT_MAXIMAL_VALUE"; | ||
@@ -5,11 +7,12 @@ export { NETWORK_PORT_MINIMAL_VALUE } from "./ComputerNetworking/NETWORK_PORT_MINIMAL_VALUE"; | ||
export { DaysOfWeekNames } from "./DateTime/DaysOfWeekNames"; | ||
export { HOURS_PER_STELLAR_DAY } from "./DateTime/HOURS_PER_STELLAR_DAY"; | ||
export { HOURS_COUNT_IN_STELLAR_DAY } from "./DateTime/HOURS_COUNT_IN_STELLAR_DAY"; | ||
export { MAXIMAL_DAYS_IN_MONTH } from "./DateTime/MAXIMAL_DAYS_IN_MONTH"; | ||
export { MINUTES_PER_HOUR } from "./DateTime/MINUTES_PER_HOUR"; | ||
export { MINUTES_COUNT_IN_HOUR } from "./DateTime/MINUTES_COUNT_IN_HOUR"; | ||
export { MONTHS_COUNT_IN_YEAR } from "./DateTime/MONTHS_COUNT_IN_YEAR"; | ||
export { MonthsNames } from "./DateTime/MonthsNames"; | ||
export { SECONDS_PER_MINUTE } from "./DateTime/SECONDS_PER_MINUTE"; | ||
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 { CHARACTERS_COUNT_IN_FULL_ISO8601_STRING } from "./DateTime/ISO8601/CHARACTERS_COUNT_IN_FULL_ISO8601_STRING"; | ||
export { CHARACTERS_COUNT_OF_DATE_PART_IN_ISO8601_STRING } from "./DateTime/ISO8601/CHARACTERS_COUNT_OF_DATE_PART_IN_ISO8601_STRING"; | ||
export { EMAIL_ADDRESS_VALID_PATTERN } from "./EmailAddress/EMAIL_ADDRESS_VALID_PATTERN"; | ||
export { MAXIMAL_CHARACTERS_COUNT_OF_EMAIL_ADDRESS } from "./EmailAddress/MAXIMAL_CHARACTERS_COUNT_OF_EMAIL_ADDRESS"; | ||
export { MINIMAL_CHARACTERS_COUNT_OF_EMAIL_ADDRESS } from "./EmailAddress/MINIMAL_CHARACTERS_COUNT_OF_EMAIL_ADDRESS"; |
@@ -0,1 +1,3 @@ | ||
export { HTTP_DEFAULT_PORT } from "./ComputerNetworking/HTTP_DEFAULT_PORT"; | ||
export { HTTPS_DEFAULT_PORT } from "./ComputerNetworking/HTTPS_DEFAULT_PORT"; | ||
export { NETWORK_PORT_MAXIMAL_VALUE } from "./ComputerNetworking/NETWORK_PORT_MAXIMAL_VALUE"; | ||
@@ -5,11 +7,12 @@ export { NETWORK_PORT_MINIMAL_VALUE } from "./ComputerNetworking/NETWORK_PORT_MINIMAL_VALUE"; | ||
export { DaysOfWeekNames } from "./DateTime/DaysOfWeekNames"; | ||
export { HOURS_PER_STELLAR_DAY } from "./DateTime/HOURS_PER_STELLAR_DAY"; | ||
export { HOURS_COUNT_IN_STELLAR_DAY } from "./DateTime/HOURS_COUNT_IN_STELLAR_DAY"; | ||
export { MAXIMAL_DAYS_IN_MONTH } from "./DateTime/MAXIMAL_DAYS_IN_MONTH"; | ||
export { MINUTES_PER_HOUR } from "./DateTime/MINUTES_PER_HOUR"; | ||
export { MINUTES_COUNT_IN_HOUR } from "./DateTime/MINUTES_COUNT_IN_HOUR"; | ||
export { MONTHS_COUNT_IN_YEAR } from "./DateTime/MONTHS_COUNT_IN_YEAR"; | ||
export { MonthsNames } from "./DateTime/MonthsNames"; | ||
export { SECONDS_PER_MINUTE } from "./DateTime/SECONDS_PER_MINUTE"; | ||
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 { CHARACTERS_COUNT_IN_FULL_ISO8601_STRING } from "./DateTime/ISO8601/CHARACTERS_COUNT_IN_FULL_ISO8601_STRING"; | ||
export { CHARACTERS_COUNT_OF_DATE_PART_IN_ISO8601_STRING } from "./DateTime/ISO8601/CHARACTERS_COUNT_OF_DATE_PART_IN_ISO8601_STRING"; | ||
export { EMAIL_ADDRESS_VALID_PATTERN } from "./EmailAddress/EMAIL_ADDRESS_VALID_PATTERN"; | ||
export { MAXIMAL_CHARACTERS_COUNT_OF_EMAIL_ADDRESS } from "./EmailAddress/MAXIMAL_CHARACTERS_COUNT_OF_EMAIL_ADDRESS"; | ||
export { MINIMAL_CHARACTERS_COUNT_OF_EMAIL_ADDRESS } from "./EmailAddress/MINIMAL_CHARACTERS_COUNT_OF_EMAIL_ADDRESS"; |
{ | ||
"name": "fundamental-constants", | ||
"version": "0.0.6", | ||
"version": "0.1.0", | ||
"description": "Fundamental constants and enumerations", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Fundamental constants and enumerations. | ||
Some of their values are commonly known, for example the `HOURS_PER_STELLAR_DAY` is **24** and `MAXIMAL_DAYS_IN_MONTH` is **31**. | ||
Some of their values are commonly known, for example the `HOURS_COUNT_IN_STELLAR_DAY` is **24** and `MAXIMAL_DAYS_IN_MONTH` is **31**. | ||
However, without being stored to the constants with clear names, it will be the | ||
@@ -20,2 +20,4 @@ [magic numbers](https://en.wikipedia.org/wiki/Magic_number_(programming)). | ||
|------------------------------|-------| | ||
| `HTTP_DEFAULT_PORT` | 80 | | ||
| `HTTPS_DEFAULT_PORT` | 443 | | ||
| `NETWORK_PORT_MAXIMAL_VALUE` | 65535 | | ||
@@ -27,9 +29,10 @@ | `NETWORK_PORT_MINIMAL_VALUE` | 1 | | ||
| Constant name | Value | | ||
|-------------------------|-------| | ||
| `DAYS_COUNT_IN_WEEK` | 7 | | ||
| `HOURS_PER_STELLAR_DAY` | 24 | | ||
| `MAXIMAL_DAYS_IN_MONTH` | 31 | | ||
| `MINUTES_PER_HOUR` | 60 | | ||
| `SECONDS_PER_MINUTE` | 60 | | ||
| Constant name | Value | | ||
|------------------------------|-------| | ||
| `DAYS_COUNT_IN_WEEK` | 7 | | ||
| `HOURS_COUNT_IN_STELLAR_DAY` | 24 | | ||
| `MAXIMAL_DAYS_IN_MONTH` | 31 | | ||
| `MINUTES_COUNT_IN_HOUR` | 60 | | ||
| `MONTHS_COUNT_IN_YEAR` | 12 | | ||
| `SECONDS_COUNT_IN_MINUTE` | 60 | | ||
@@ -71,4 +74,4 @@ #### Enumerations | ||
|---------------------------------------------------|-------| | ||
| `CHARACTERS_COUNT_IN_DATE_PART_OF_ISO8601_STRING` | 10 | | ||
| `CHARACTERS_COUNT_IN_FULL_ISO8601_STRING` | 24 | | ||
| `CHARACTERS_COUNT_OF_DATE_PART_IN_ISO8601_STRING` | 10 | | ||
@@ -75,0 +78,0 @@ |
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
19796
57
242
83