diff --git a/CHANGELOG.md b/CHANGELOG.md index af9180e..77e5831 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,16 @@ 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.5.1](https://github.com/f3rno64/time-speak/compare/v1.5.0...v1.5.1) (2023-12-22) + + +### Bug Fixes + +* add unstaged changes when executing standard-version ([93430e0](https://github.com/f3rno64/time-speak/commit/93430e04965b359ce59d6b975ab3783739fe366e)) +* git add docs after gen in prepare-release script ([38ece16](https://github.com/f3rno64/time-speak/commit/38ece168f86a5afcbc5650b672c54bd50ad9b8c0)) +* release script ([6ce595d](https://github.com/f3rno64/time-speak/commit/6ce595dd06106962292dc65aa68ab4abef3c9225)) +* rm npm publish from release as it is done from a github action ([092754a](https://github.com/f3rno64/time-speak/commit/092754a5dbaf30e3b0308cf8947df18908495962)) + ## [1.5.0](https://github.com/f3rno64/time-speak/compare/v1.4.1...v1.5.0) (2023-12-22) diff --git a/docs/classes/InvalidInputError.html b/docs/classes/InvalidInputError.html index 3eec83f..885965d 100644 --- a/docs/classes/InvalidInputError.html +++ b/docs/classes/InvalidInputError.html @@ -1,7 +1,7 @@ -
Error thrown when the input cannot be parsed to a date or duration. It +
- Preparing search index...
- The search index is not available
time-speakClass 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
Index
Constructors
Hierarchy
Index
Constructors
Properties
detail
parameter will be included in the error message if provided.Parameters
input: string
The input that could not be parsed
Optional
detail: stringA more detailed description of the error
-Returns InvalidInputError
Properties
Private
_detailAn optional detailed description of the reason why parsing failed.
-Private
_inputThe input that could not be parsed.
-Optional
causemessage
name
Optional
stackStatic
Optional
prepareType declaration
Optional override for formatting stack traces
+Returns InvalidInputError
Properties
Private
_detailAn optional detailed description of the reason why parsing failed.
+Private
_inputThe input that could not be parsed.
+Optional
causemessage
name
Optional
stackStatic
Optional
prepareType declaration
Optional override for formatting stack traces
Parameters
err: Error
stackTraces: CallSite[]
Returns any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Static
stackAccessors
detail
Get the detail explaining why parsing failed. If no detail was provided, it will return an empty string.
Returns string
The detail string.
-input
Get the original input that could not be parsed.
+input
Get the original input that could not be parsed.
Returns string
The input string.
-Methods
Static
captureCreate .stack property on a target object
+Methods
Static
captureCreate .stack property on a target object
Parameters
targetObject: object
Optional
constructorOpt: FunctionReturns void
Settings
Member Visibility
Theme
On This Page
- Preparing search index...
- The search index is not available
time-speakFunction parse
Parses a string into a
Date
or number of milliseconds. The string can +- Preparing search index...
- The search index is not available
time-speakFunction 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:
-Settings
Member Visibility
Theme
Settings
Member Visibility
Theme
- Preparing search index...
- The search index is not available
time-speaktime-speak
A natural language parser for dates, times, and durations
+
- Preparing search index...
- The search index is not available
time-speaktime-speak
A natural language parser for dates, times, and durations
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 7fc056f..1afd630 100644 --- a/docs/modules.html +++ b/docs/modules.html @@ -1,3 +1,3 @@ -- Preparing search index...
- The search index is not available
time-speaktime-speak
Index
Classes
- Preparing search index...
- The search index is not available
time-speaktime-speak
Index
Classes
Functions
Settings
Member Visibility
Theme