@flourish/formatters
Advanced tools
Comparing version 0.0.3 to 1.0.0
@@ -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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
68134
5
1606
1
+ Added@flourish/interpreter@8.6.0(transitive)
- Removed@flourish/interpreter@7.0.0(transitive)
Updated@flourish/interpreter@^8.0.0