@storm-stack/date-time
Advanced tools
Comparing version 1.37.0 to 1.37.1
@@ -41,2 +41,3 @@ import { Temporal } from "@js-temporal/polyfill"; | ||
export declare function deserializeStormDateTime(utcString: JsonValue): StormDateTime; | ||
export declare const createDateTime: (dateTime?: DateTimeInput, options?: DateTimeOptions) => StormDateTime; | ||
/** | ||
@@ -91,2 +92,9 @@ * A wrapper of the and Date class used by Storm Software to provide Date-Time values | ||
/** | ||
* Validate the input date value | ||
* | ||
* @param dateTime - The date value to validate | ||
* @returns A boolean representing whether the value is a valid *date-time* | ||
*/ | ||
static validate(value?: DateTimeInput): ValidationDetails | null; | ||
/** | ||
* Creates a new instance of StormDateTime from a string with a specified format. | ||
@@ -99,9 +107,2 @@ * | ||
static create: (dateTime?: DateTimeInput, options?: DateTimeOptions) => StormDateTime; | ||
/** | ||
* Validate the input date value | ||
* | ||
* @param dateTime - The date value to validate | ||
* @returns A boolean representing whether the value is a valid *date-time* | ||
*/ | ||
static validate(value?: DateTimeInput): ValidationDetails | null; | ||
constructor(dateTime?: DateTimeInput, options?: DateTimeOptions); | ||
@@ -108,0 +109,0 @@ /** |
@@ -20,2 +20,3 @@ import { Temporal } from "@js-temporal/polyfill"; | ||
export declare function deserializeStormDate(utcString: JsonValue): StormDate; | ||
export declare const createDate: (date?: DateTimeInput, options?: DateTimeOptions) => StormDate; | ||
/** | ||
@@ -22,0 +23,0 @@ * A wrapper of the and Date class used by Storm Software to provide Date-Time values |
@@ -20,2 +20,3 @@ import { Temporal } from "@js-temporal/polyfill"; | ||
export declare function deserializeStormTime(utcString: JsonValue): StormTime; | ||
export declare const createTime: (time?: DateTimeInput, options?: DateTimeOptions) => StormTime; | ||
/** | ||
@@ -39,2 +40,9 @@ * A wrapper of the and Date class used by Storm Software to provide Date-Time values | ||
/** | ||
* Validate the input time value | ||
* | ||
* @param dateTime - The date value to validate | ||
* @returns A boolean representing whether the value is a valid *date-time* | ||
*/ | ||
static validate(value?: DateTimeInput): ValidationDetails | null; | ||
/** | ||
* Creates a new instance of DateTime from a string with a specified format. | ||
@@ -47,9 +55,2 @@ * | ||
static create: (time?: DateTimeInput, options?: DateTimeOptions) => StormTime; | ||
/** | ||
* Validate the input time value | ||
* | ||
* @param dateTime - The date value to validate | ||
* @returns A boolean representing whether the value is a valid *date-time* | ||
*/ | ||
static validate(value?: DateTimeInput): ValidationDetails | null; | ||
constructor(dateTime?: DateTimeInput, options?: DateTimeOptions); | ||
@@ -56,0 +57,0 @@ /** |
{ | ||
"name": "@storm-stack/date-time", | ||
"version": "1.37.0", | ||
"version": "1.37.1", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "This package includes a DateTime class, various utility functions for working with dates and times, and a number of formatting options.", |
@@ -24,3 +24,3 @@ <!-- START header --> | ||
[![Version](https://img.shields.io/badge/version-1.36.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/) [![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/) [![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/) [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/) ![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6) [![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/) ![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-stack/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6) | ||
[![Version](https://img.shields.io/badge/version-1.37.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/) [![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/) [![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/) [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/) ![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6) [![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/) ![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-stack/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6) | ||
@@ -27,0 +27,0 @@ |
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
106269
2290