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

@date-io/core

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@date-io/core - npm Package Compare versions

Comparing version 2.6.0 to 2.7.0

18

dev-utils.js

@@ -1,9 +0,9 @@

const nodeResolve = require("rollup-plugin-node-resolve")
const typescriptPlugin = require("rollup-plugin-typescript")
const nodeResolve = require("rollup-plugin-node-resolve");
const typescriptPlugin = require("rollup-plugin-typescript");
exports.createRollupConfig = typescript => {
exports.createRollupConfig = (typescript) => {
const extensions = [".ts", ".tsx"];
// treat as externals not relative and not absolute paths
const external = id => !id.startsWith(".") && !id.startsWith("/");
const external = (id) => !id.startsWith(".") && !id.startsWith("/");

@@ -16,5 +16,5 @@ return [

file: `build/index.esm.js`,
format: "esm"
format: "esm",
},
plugins: [nodeResolve({ extensions }), typescriptPlugin({ typescript })]
plugins: [nodeResolve({ extensions }), typescriptPlugin({ typescript })],
},

@@ -26,7 +26,7 @@ {

file: `build/index.js`,
format: "cjs"
format: "cjs",
},
plugins: [nodeResolve({ extensions }), typescriptPlugin({ typescript })]
}
plugins: [nodeResolve({ extensions }), typescriptPlugin({ typescript })],
},
];
};

@@ -0,9 +1,15 @@

/**
* Localized output will of course vary based on the locale and date library used. Inline examples here are based on
* using `moment` with the `en-US` locale.
*/
export interface DateIOFormats<TLibFormatToken = string> {
/** Localized full date, useful for accessibility @example "January 1st, 2019" */
/** Localized full date @example "Jan 1, 2019" */
fullDate: TLibFormatToken;
/** Date format string with month and day of month @example "01 January" */
/** Partially localized full date with weekday, useful for text-to-speech accessibility @example "Tuesday, January 1, 2019" */
fullDateWithWeekday: TLibFormatToken;
/** Date format string with month and day of month @example "1 January" */
normalDate: TLibFormatToken;
/** Date format string with weekday, month and day of month @example "Wed, Jan 1st" */
/** Date format string with weekday, month and day of month @example "Wed, Jan 1" */
normalDateWithWeekday: TLibFormatToken;
/** Shorter day format @example "1 January" */
/** Shorter day format @example "Jan 1" */
shortDate: TLibFormatToken;

@@ -18,5 +24,9 @@ /** Year format string @example "2019" */

monthAndYear: TLibFormatToken;
/** Month with date format string @example "January 1st" */
/** Month with date format string @example "January 1" */
monthAndDate: TLibFormatToken;
/** Day format string @example "12" */
/** Weekday format string @example "Wednesday" */
weekday: TLibFormatToken;
/** Short weekday format string @example "Wed" */
weekdayShort: TLibFormatToken;
/** Day format string @example "1" */
dayOfMonth: TLibFormatToken;

@@ -27,5 +37,5 @@ /** Hours format string @example "11" */

hours24h: TLibFormatToken;
/** Minutes format string @example "59" */
/** Minutes format string @example "44" */
minutes: TLibFormatToken;
/** Seconds format string @example "59" */
/** Seconds format string @example "00" */
seconds: TLibFormatToken;

@@ -36,17 +46,17 @@ /** Full time localized format string @example "11:44 PM" for US, "23:44" for Europe */

fullTime12h: TLibFormatToken;
/** Not localized full time format string @example "23:59" */
/** Not localized full time format string @example "23:44" */
fullTime24h: TLibFormatToken;
/** Date & time format string with localized time @example "2018, Jan 1st 11:44 PM" */
/** Date & time format string with localized time @example "Jan 1, 2018 11:44 PM" */
fullDateTime: TLibFormatToken;
/** Not localized date & Time format 12h @example "2018, Jan 1st 11:44 PM" */
/** Not localized date & Time format 12h @example "Jan 1, 2018 11:44 PM" */
fullDateTime12h: TLibFormatToken;
/** Not localized date & Time format 24h @example "2018, Jan 1st 23:44" */
/** Not localized date & Time format 24h @example "Jan 1, 2018 23:44" */
fullDateTime24h: TLibFormatToken;
/** Localized keyboard input friendly date format @example "2019/01/01" */
/** Localized keyboard input friendly date format @example "02/13/2020 */
keyboardDate: TLibFormatToken;
/** Localized keyboard input friendly date/time format @example "2019/01/01 23:44" */
/** Localized keyboard input friendly date/time format @example "02/13/2020 23:44" */
keyboardDateTime: TLibFormatToken;
/** Not Localized keyboard input friendly date/time 12h format @example "2019/01/01 11:44 PM" */
/** Partially localized keyboard input friendly date/time 12h format @example "02/13/2020 11:44 PM" */
keyboardDateTime12h: TLibFormatToken;
/** Not localized keyboard input friendly date/time 24h format @example "2019/01/01 23:44" */
/** Partially localized keyboard input friendly date/time 24h format @example "02/13/2020 23:44" */
keyboardDateTime24h: TLibFormatToken;

@@ -53,0 +63,0 @@ }

{
"name": "@date-io/core",
"version": "2.6.0",
"version": "2.7.0",
"description": "Abstraction over common javascript date management libraries",

@@ -34,3 +34,3 @@ "scripts": {

},
"gitHead": "d6db25c9863530a6d5934a2f8b97b1f0162d967d"
"gitHead": "659d6c1858a313cff392aa27b03d1c5bcc1a3e29"
}
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