ember-cli-deploy-display-revisions
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -0,1 +1,9 @@ | ||
## v2.1.1 (2020-10-23) | ||
#### :bug: Bug Fix | ||
* [#41](https://github.com/ember-cli-deploy/ember-cli-deploy-display-revisions/pull/41) Fall back to ISO if timestamp is not milliseconds ([@kpfefferle](https://github.com/kpfefferle)) | ||
#### Committers: 1 | ||
- Kevin Pfefferle ([@kpfefferle](https://github.com/kpfefferle)) | ||
## v2.1.0 (2020-10-02) | ||
@@ -2,0 +10,0 @@ |
@@ -41,3 +41,5 @@ let { DateTime } = require('luxon'); | ||
if(key.name === 'timestamp') { | ||
value = DateTime.fromMillis(value).toFormat("yyyy/MM/dd HH:mm:ss"); | ||
// 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); | ||
value = dt.toFormat("yyyy/MM/dd HH:mm:ss"); | ||
} | ||
@@ -44,0 +46,0 @@ |
@@ -73,3 +73,6 @@ const Table = require('cli-table3'); | ||
if (this._isWide()) { | ||
let value = DateTime.fromMillis(data.timestamp).toFormat('yyyy/MM/dd HH:mm:ss'); | ||
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); | ||
let value = dt.toFormat('yyyy/MM/dd HH:mm:ss'); | ||
row.push(value); | ||
@@ -76,0 +79,0 @@ } |
{ | ||
"name": "ember-cli-deploy-display-revisions", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"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
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
20448
218
0