ember-cli-deploy-display-revisions
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -0,1 +1,9 @@ | ||
## v2.1.2 (2020-10-27) | ||
#### :bug: Bug Fix | ||
* [#42](https://github.com/ember-cli-deploy/ember-cli-deploy-display-revisions/pull/42) Luxon Take 3: Use fromJSDate instead of fromISO for ember-cli-deploy-revision-data ([@kpfefferle](https://github.com/kpfefferle)) | ||
#### Committers: 1 | ||
- Kevin Pfefferle ([@kpfefferle](https://github.com/kpfefferle)) | ||
## v2.1.1 (2020-10-23) | ||
@@ -2,0 +10,0 @@ |
@@ -41,4 +41,4 @@ let { DateTime } = require('luxon'); | ||
if(key.name === 'timestamp') { | ||
// ember-cli-deploy-revision-data uses ISO timestamps, so fall back to ISO if not milliseconds | ||
let dt = typeof value === 'number' ? DateTime.fromMillis(value) : DateTime.fromISO(value); | ||
// ember-cli-deploy-revision-data provides a JS Date object, so fall back to that if not milliseconds | ||
let dt = typeof value === 'number' ? DateTime.fromMillis(value) : DateTime.fromJSDate(value); | ||
value = dt.toFormat("yyyy/MM/dd HH:mm:ss"); | ||
@@ -45,0 +45,0 @@ } |
@@ -74,4 +74,4 @@ const Table = require('cli-table3'); | ||
let { timestamp } = data; | ||
// ember-cli-deploy-revision-data uses ISO timestamps, so fall back to ISO if not milliseconds | ||
let dt = typeof timestamp === 'number' ? DateTime.fromMillis(timestamp) : DateTime.fromISO(timestamp); | ||
// ember-cli-deploy-revision-data provides a JS Date object, so fall back to that if not milliseconds | ||
let dt = typeof timestamp === 'number' ? DateTime.fromMillis(timestamp) : DateTime.fromJSDate(timestamp); | ||
let value = dt.toFormat('yyyy/MM/dd HH:mm:ss'); | ||
@@ -78,0 +78,0 @@ row.push(value); |
{ | ||
"name": "ember-cli-deploy-display-revisions", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Display a list of deployed revisions using ember-cli-deploy.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
20815