@tsofist/stem
Advanced tools
@@ -75,3 +75,4 @@ /** | ||
| readonly UTCOffset: "(([+-])(0\\d|1\\d|2[0-3]):(0\\d|[1-5]\\d))"; | ||
| readonly Year: "(197\\d|19[89]\\d|20[0-2]\\d|203[0-8])"; | ||
| readonly Year: "(\\d\\d\\d\\d)"; | ||
| readonly YearCentury: "(19\\d\\d|2\\d\\d\\d)"; | ||
| readonly Month: "(0[1-9]|1[0-2])"; | ||
@@ -83,7 +84,7 @@ readonly Day: "(0[1-9]|[12]\\d|3[01])"; | ||
| readonly AnyTime: "((0\\d|1\\d|2[0-3]):(0\\d|[1-5]\\d):(0\\d|[1-5]\\d)(\\.(00\\d|0[1-9]\\d|[1-9]\\d{2}))?((Z)|((([+-])(0\\d|1\\d|2[0-3]):(0\\d|[1-5]\\d))))?)"; | ||
| readonly Date: "((197\\d|19[89]\\d|20[0-2]\\d|203[0-8])-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01]))"; | ||
| readonly ZuluDate: "(((197\\d|19[89]\\d|20[0-2]\\d|203[0-8])-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01]))T(00):(00):(00)(\\.(000))?Z)"; | ||
| readonly DateWithAnyTime: "(((197\\d|19[89]\\d|20[0-2]\\d|203[0-8])-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01]))T((0\\d|1\\d|2[0-3]):(0\\d|[1-5]\\d):(0\\d|[1-5]\\d)(\\.(00\\d|0[1-9]\\d|[1-9]\\d{2}))?((Z)|((([+-])(0\\d|1\\d|2[0-3]):(0\\d|[1-5]\\d))))?))"; | ||
| readonly DateWithLocalTime: "(((197\\d|19[89]\\d|20[0-2]\\d|203[0-8])-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01]))T((0\\d|1\\d|2[0-3]):(0\\d|[1-5]\\d):(0\\d|[1-5]\\d)(\\.(00\\d|0[1-9]\\d|[1-9]\\d{2}))?(([+-])(0\\d|1\\d|2[0-3]):(0\\d|[1-5]\\d))?))"; | ||
| readonly DateWithZuluTime: "(((197\\d|19[89]\\d|20[0-2]\\d|203[0-8])-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01]))T(0\\d|1\\d|2[0-3]):(0\\d|[1-5]\\d):(0\\d|[1-5]\\d)(\\.(00\\d|0[1-9]\\d|[1-9]\\d{2}))?Z)"; | ||
| readonly Date: "((\\d\\d\\d\\d)-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01]))"; | ||
| readonly ZuluDate: "(((\\d\\d\\d\\d)-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01]))T(00):(00):(00)(\\.(000))?Z)"; | ||
| readonly DateWithAnyTime: "(((\\d\\d\\d\\d)-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01]))T((0\\d|1\\d|2[0-3]):(0\\d|[1-5]\\d):(0\\d|[1-5]\\d)(\\.(00\\d|0[1-9]\\d|[1-9]\\d{2}))?((Z)|((([+-])(0\\d|1\\d|2[0-3]):(0\\d|[1-5]\\d))))?))"; | ||
| readonly DateWithLocalTime: "(((\\d\\d\\d\\d)-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01]))T((0\\d|1\\d|2[0-3]):(0\\d|[1-5]\\d):(0\\d|[1-5]\\d)(\\.(00\\d|0[1-9]\\d|[1-9]\\d{2}))?(([+-])(0\\d|1\\d|2[0-3]):(0\\d|[1-5]\\d))?))"; | ||
| readonly DateWithZuluTime: "(((\\d\\d\\d\\d)-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01]))T(0\\d|1\\d|2[0-3]):(0\\d|[1-5]\\d):(0\\d|[1-5]\\d)(\\.(00\\d|0[1-9]\\d|[1-9]\\d{2}))?Z)"; | ||
| }; | ||
@@ -90,0 +91,0 @@ /** |
@@ -100,3 +100,4 @@ "use strict"; | ||
| // Date | ||
| const Year = `(197\\d|19[89]\\d|20[0-2]\\d|203[0-8])`; | ||
| const Year = `(\\d\\d\\d\\d)`; | ||
| const YearCentury = `(19\\d\\d|2\\d\\d\\d)`; | ||
| const Month = `(0[1-9]|1[0-2])`; | ||
@@ -119,3 +120,3 @@ const Day = `(0[1-9]|[12]\\d|3[01])`; | ||
| Sign, UTCOffset, | ||
| Year, Month, Day, | ||
| Year, YearCentury, Month, Day, | ||
| Time, LocalTime, ZuluTime, AnyTime, | ||
@@ -122,0 +123,0 @@ Date, ZuluDate, |
@@ -63,2 +63,4 @@ import { EnumValues } from '../../enum'; | ||
| * 2021-02-28 | ||
| * 1966-08-12 | ||
| * 2145-01-29 | ||
| * | ||
@@ -71,3 +73,3 @@ * @see https://en.wikipedia.org/wiki/UTC_offset | ||
| * | ||
| * @pattern ^(197\d|19[89]\d|20[0-2]\d|203[0-8])-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$ | ||
| * @pattern ^(\d\d\d\d)-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$ | ||
| * | ||
@@ -129,3 +131,3 @@ * @public | ||
| * | ||
| * @pattern ^(197\d|19[89]\d|20[0-2]\d|203[0-8])-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])T(0\d|1\d|2[0-3]):(0\d|[1-5]\d):(0\d|[1-5]\d)(\.(00\d|0[1-9]\d|[1-9]\d{2}))?(([+-])(0\d|1\d|2[0-3]):(0\d|[1-5]\d))?$ | ||
| * @pattern ^(\d\d\d\d)-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])T(0\d|1\d|2[0-3]):(0\d|[1-5]\d):(0\d|[1-5]\d)(\.(00\d|0[1-9]\d|[1-9]\d{2}))?(([+-])(0\d|1\d|2[0-3]):(0\d|[1-5]\d))?$ | ||
| * | ||
@@ -175,3 +177,3 @@ * @public | ||
| * | ||
| * @pattern ^((197\d|19[89]\d|20[0-2]\d|203[0-8])-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01]))T(00):(00):(00)(\.(000))?Z$ | ||
| * @pattern ^((\d\d\d\d)-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01]))T(00):(00):(00)(\.(000))?Z$ | ||
| * | ||
@@ -208,3 +210,3 @@ * @faker { | ||
| * | ||
| * @pattern ^(197\d|19[89]\d|20[0-2]\d|203[0-8])-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])T(0\d|1\d|2[0-3]):(0\d|[1-5]\d):(0\d|[1-5]\d)(\.(00\d|0[1-9]\d|[1-9]\d{2}))?Z$ | ||
| * @pattern ^(\d\d\d\d)-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])T(0\d|1\d|2[0-3]):(0\d|[1-5]\d):(0\d|[1-5]\d)(\.(00\d|0[1-9]\d|[1-9]\d{2}))?Z$ | ||
| * | ||
@@ -211,0 +213,0 @@ * @faker date.anytime |
+1
-1
| { | ||
| "name": "@tsofist/stem", | ||
| "version": "5.19.0", | ||
| "version": "5.20.0", | ||
| "description": "Core basics for TypeScript applications", | ||
@@ -5,0 +5,0 @@ "author": "Andrew Berdnikov <tsofistgudmen@gmail.com>", |
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
9352
0.04%379704
-0.03%