From bc73c15787d40e6d8d5c0ecd3e72f676b5f9c283 Mon Sep 17 00:00:00 2001 From: Cris Mihalache Date: Mon, 15 Jan 2024 17:59:44 +0100 Subject: [PATCH] chore(release): 1.8.0 --- CHANGELOG.md | 2 ++ docs/classes/InvalidInputError.html | 14 +++++++------- docs/functions/parse.html | 4 ++-- docs/index.html | 2 +- docs/modules.html | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 7 files changed, 16 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 15e58f4..d971cb8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [1.8.0](https://github.com/f3rno64/time-speak/compare/v1.7.0...v1.8.0) (2024-01-15) + ## [1.7.0](https://github.com/f3rno64/time-speak/compare/v1.6.0...v1.7.0) (2024-01-15) ## [1.6.0](https://github.com/f3rno64/time-speak/compare/v1.5.1...v1.6.0) (2023-12-22) diff --git a/docs/classes/InvalidInputError.html b/docs/classes/InvalidInputError.html index d967924..14ea051 100644 --- a/docs/classes/InvalidInputError.html +++ b/docs/classes/InvalidInputError.html @@ -1,7 +1,7 @@ -InvalidInputError | time-speak

Class InvalidInputError

Error thrown when the input cannot be parsed to a date or duration. It +InvalidInputError | time-speak

Class InvalidInputError

Error thrown when the input cannot be parsed to a date or duration. It optionally accepts a detail parameter that can be used to provide more information about why parsing failed.

-

Hierarchy

  • Error
    • InvalidInputError

Constructors

Hierarchy

  • Error
    • InvalidInputError

Constructors

Properties

_detail _input cause? @@ -18,14 +18,14 @@ The detail parameter will be included in the error message if provided.

Parameters

  • input: string

    The input that could not be parsed

  • Optional detail: string

    A more detailed description of the error

    -

Returns InvalidInputError

Properties

_detail: string

An optional detailed description of the reason why parsing failed.

-
_input: string

The input that could not be parsed.

-
cause?: unknown
message: string
name: string
stack?: string
prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

    • (err, stackTraces): any
    • Optional override for formatting stack traces

      +

Returns InvalidInputError

Properties

_detail: string

An optional detailed description of the reason why parsing failed.

+
_input: string

The input that could not be parsed.

+
cause?: unknown
message: string
name: string
stack?: string
prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

stackTraceLimit: number

Accessors

  • get detail(): string
  • Get the detail explaining why parsing failed. If no detail was provided, it will return an empty string.

    Returns string

    The detail string.

    -

Methods

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

\ No newline at end of file diff --git a/docs/functions/parse.html b/docs/functions/parse.html index 6e6e33a..faced55 100644 --- a/docs/functions/parse.html +++ b/docs/functions/parse.html @@ -1,4 +1,4 @@ -parse | time-speak

Function parse

  • Parses a string into a Date or number of milliseconds. The string can +parse | time-speak

    Function parse

    • Parses a string into a Date or number of milliseconds. The string can describe the date in natural language (e.g. "tomorrow", "in 2 hours and 3 minutes", "a month ago", etc.) or be a valid date string (e.g. "2018-01-01").

      Parameters

      • input: string

        The string to parse.

        @@ -11,4 +11,4 @@

        Example

        Here are some example invocations:

        Example

        Here are some example invocations that throw an exception:

        parse('in 2 hours and 3 minutes ago')
        parse('a month in the past')
        -
    \ No newline at end of file +
\ No newline at end of file diff --git a/docs/index.html b/docs/index.html index e956794..6fe3be4 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,4 +1,4 @@ -time-speak

time-speak

A natural language parser for dates, times, and durations

NPM Version +time-speak

time-speak

A natural language parser for dates, times, and durations

NPM Version Downloads Stats

A tiny utility library with no dependencies that parses natural language dates, times, and intervals to either a Date instance or a diff --git a/docs/modules.html b/docs/modules.html index 13c9e42..6547e9f 100644 --- a/docs/modules.html +++ b/docs/modules.html @@ -1,3 +1,3 @@ -time-speak

time-speak

Index

Classes

InvalidInputError +time-speak

time-speak

Index

Classes

Functions

\ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 3ab20bb..d9a94df 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "time-speak", - "version": "1.7.0", + "version": "1.8.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "time-speak", - "version": "1.7.0", + "version": "1.8.0", "license": "MIT", "dependencies": { "numbers-from-words": "^0.0.8", diff --git a/package.json b/package.json index 24437ac..5f11f9e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "time-speak", - "version": "1.7.0", + "version": "1.8.0", "description": "A natural language parser for dates, times and intervals.", "main": "dist/index.js", "types": "dist/index.d.ts",