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

@flourish/formatters

Package Overview
Dependencies
Maintainers
28
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flourish/formatters - npm Package Compare versions

Comparing version 0.0.3 to 1.0.0

50

formatter.js

@@ -93,2 +93,3 @@ (function (global, factory) {

var timeDay = day;
day.range;

@@ -108,8 +109,16 @@ function weekday(i) {

var monday = weekday(1);
weekday(2);
weekday(3);
var tuesday = weekday(2);
var wednesday = weekday(3);
var thursday = weekday(4);
weekday(5);
weekday(6);
var friday = weekday(5);
var saturday = weekday(6);
sunday.range;
monday.range;
tuesday.range;
wednesday.range;
thursday.range;
friday.range;
saturday.range;
var year = newInterval(function(date) {

@@ -138,2 +147,3 @@ date.setMonth(0, 1);

var timeYear = year;
year.range;

@@ -151,2 +161,3 @@ var utcDay = newInterval(function(date) {

var utcDay$1 = utcDay;
utcDay.range;

@@ -166,8 +177,16 @@ function utcWeekday(i) {

var utcMonday = utcWeekday(1);
utcWeekday(2);
utcWeekday(3);
var utcTuesday = utcWeekday(2);
var utcWednesday = utcWeekday(3);
var utcThursday = utcWeekday(4);
utcWeekday(5);
utcWeekday(6);
var utcFriday = utcWeekday(5);
var utcSaturday = utcWeekday(6);
utcSunday.range;
utcMonday.range;
utcTuesday.range;
utcWednesday.range;
utcThursday.range;
utcFriday.range;
utcSaturday.range;
var utcYear = newInterval(function(date) {

@@ -196,2 +215,3 @@ date.setUTCMonth(0, 1);

var utcYear$1 = utcYear;
utcYear.range;

@@ -886,4 +906,4 @@ function localDate(d) {

var locale;
var timeFormat;
var timeParse;
var utcFormat;
var utcParse;

@@ -903,4 +923,6 @@ defaultLocale({

locale = formatLocale$1(definition);
timeFormat = locale.format;
timeParse = locale.parse;
locale.format;
locale.parse;
utcFormat = locale.utcFormat;
utcParse = locale.utcParse;
return locale;

@@ -974,4 +996,4 @@ }

function createDatetimeInterpretation(format_string, secondaryTest) {
var parser = timeParse(format_string);
var formatter = timeFormat(format_string);
var parser = utcParse(format_string);
var formatter = utcFormat(format_string);
var test;

@@ -978,0 +1000,0 @@ if (typeof secondaryTest === "function") {

{
"name": "@flourish/formatters",
"version": "0.0.3",
"version": "1.0.0",
"description": "Format numbers and datetimes",

@@ -11,4 +11,3 @@ "main": "formatter.js",

"prepare": "npm run build && npm run minify",
"minify": "terser -m -o formatter.min.js formatter.js",
"precommit": "lint-staged"
"minify": "terser -m -o formatter.min.js formatter.js"
},

@@ -20,4 +19,2 @@ "author": "Kiln Enterprises Ltd",

"eslint": "^4.19.1",
"husky": "^0.14.3",
"lint-staged": "^10.5.3",
"rollup": "^2.64.0",

@@ -27,8 +24,5 @@ "rollup-plugin-node-resolve": "^5.2.0",

},
"lint-staged": {
"*.js": "npm run lint --"
},
"dependencies": {
"@flourish/interpreter": "^7.0.0"
"@flourish/interpreter": "^8.0.0"
}
}

@@ -0,1 +1,5 @@

# 1.0.0
* First release
* Use @flourish/interpreter v8 (parse and format dates in UTC)
# 0.0.3

@@ -2,0 +6,0 @@ * Update license

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