Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@formkit/tempo

Package Overview
Dependencies
Maintainers
4
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@formkit/tempo - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

docs/public/og.png

18

dist/index.d.ts

@@ -128,7 +128,7 @@ /**

*/
locale?: "en";
locale?: string;
/**
* Whether or not to escape literals.
*/
genitive?: false;
genitive?: boolean;
/**

@@ -210,2 +210,14 @@ * A function to filter parts.

/**
* Creates a date object for the input date at the given timezone. For example
* `tzDate("2017-05-06T12:00", "Europe/Amsterdam")` will return a date object
* for 2017-05-06T10:00:00Z since 12:00 in Amsterdam is 10:00Z.
*
* If given a Date object it will use local time and convert it to the given
* timezone, thus "changing" the date.
* @param inputDate - An iso8601 date string with no timezone
* @param tz - A timezone string
*/
declare function tzDate(inputDate: DateInput, tz: string): Date;
/**
* Gets the what day of the year a given date is. For example, August 1st is

@@ -382,2 +394,2 @@ * the 213th day of the year on non-leapyears and 214th on leapyears.

export { type DateInput, type FilledPart, type Format, type FormatOptions, type FormatPattern, type FormatStyle, type FormatStyleObj, type FormatToken, type NamedFormatOption, type NamedFormats, type ParseOptions, type Part, addDay, addHour, addMinute, addMonth, addSecond, addYear, ap, applyOffset, date, dayEnd, dayOfYear, dayStart, format, formatStr, fourDigitYear, iso8601, monthDays, monthEnd, monthStart, nearestDay, offset, parse, parts, range, removeOffset, sameDay, weekEnd, weekStart, yearDays };
export { type DateInput, type FilledPart, type Format, type FormatOptions, type FormatPattern, type FormatStyle, type FormatStyleObj, type FormatToken, type NamedFormatOption, type NamedFormats, type ParseOptions, type Part, addDay, addHour, addMinute, addMonth, addSecond, addYear, ap, applyOffset, date, dayEnd, dayOfYear, dayStart, format, formatStr, fourDigitYear, iso8601, monthDays, monthEnd, monthStart, nearestDay, offset, parse, parts, range, removeOffset, sameDay, tzDate, weekEnd, weekStart, yearDays };

2

package.json
{
"name": "@formkit/tempo",
"version": "0.0.3",
"version": "0.0.4",
"description": "The easiest way to work with dates in JavaScript and TypeScript.",

@@ -5,0 +5,0 @@ "type": "module",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc