@formant/ava 3.4.20-formant → 3.4.21-formant

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@ import { generateTextSpec } from '../../../ntv';
5
5
  import { InsightNarrativeStrategy } from './base';
6
6
  import { getDiffDesc } from './helpers';
7
7
  import { formatDateRange } from "little-date";
8
- import { formatDate } from 'date-fns';
8
+ import { format } from 'date-fns';
9
9
  var variableMetaMap = {
10
10
  dateRange: {
11
11
  varType: 'time_desc',
@@ -54,7 +54,7 @@ var TimeSeriesOutlierNarrativeStrategy = /** @class */ (function (_super) {
54
54
  outliers: patterns.map(function (point) {
55
55
  var base = point.baselines[point.index];
56
56
  var diff = point.y - base;
57
- return __assign(__assign({}, point), { base: base, diffDesc: getDiffDesc(diff, lang), x: formatDate(new Date(point.x), 'MMM d, yyyy'), diff: diff });
57
+ return __assign(__assign({}, point), { base: base, diffDesc: getDiffDesc(diff, lang), x: format(new Date(point.x), 'MMM d, yyyy'), diff: diff });
58
58
  }),
59
59
  },
60
60
  });
@@ -56,7 +56,7 @@ var TimeSeriesOutlierNarrativeStrategy = /** @class */ (function (_super) {
56
56
  outliers: patterns.map(function (point) {
57
57
  var base = point.baselines[point.index];
58
58
  var diff = point.y - base;
59
- return tslib_1.__assign(tslib_1.__assign({}, point), { base: base, diffDesc: (0, helpers_1.getDiffDesc)(diff, lang), x: (0, date_fns_1.formatDate)(new Date(point.x), 'MMM d, yyyy'), diff: diff });
59
+ return tslib_1.__assign(tslib_1.__assign({}, point), { base: base, diffDesc: (0, helpers_1.getDiffDesc)(diff, lang), x: (0, date_fns_1.format)(new Date(point.x), 'MMM d, yyyy'), diff: diff });
60
60
  }),
61
61
  },
62
62
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formant/ava",
3
- "version": "3.4.20-formant",
3
+ "version": "3.4.21-formant",
4
4
  "description": "A framework for automated visual analytics.",
5
5
  "author": {
6
6
  "name": "formant",