@bigcommerce/stencil-paper-handlebars
Advanced tools
Comparing version 5.9.3 to 5.9.4
'use strict'; | ||
const utils = require('./3p/utils'); | ||
const date = require('date.js'); | ||
const chrono = require('chrono-node'); | ||
@@ -43,3 +43,3 @@ // suppress error messages that are not actionable | ||
if (typeof str === 'string' && typeof pattern === 'string') { | ||
return moment(date(str)).format(pattern); | ||
return moment(chrono.parseDate(str)).format(pattern); | ||
} | ||
@@ -46,0 +46,0 @@ |
{ | ||
"name": "@bigcommerce/stencil-paper-handlebars", | ||
"version": "5.9.3", | ||
"version": "5.9.4", | ||
"description": "A paper plugin to render pages using Handlebars.js", | ||
@@ -38,3 +38,3 @@ "main": "index.js", | ||
"@bigcommerce/handlebars-v4": "4.7.6", | ||
"date.js": "^0.3.3", | ||
"chrono-node": "^2.6.5", | ||
"handlebars": "3.0.8", | ||
@@ -41,0 +41,0 @@ "he": "^1.2.0", |
Sorry, the diff of this file is too big to display
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
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
1101075
+ Addedchrono-node@^2.6.5
+ Addedchrono-node@2.7.7(transitive)
+ Addeddayjs@1.11.13(transitive)
- Removeddate.js@^0.3.3
- Removeddate.js@0.3.3(transitive)
- Removeddebug@3.1.0(transitive)
- Removedms@2.0.0(transitive)