New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@density/chart-historical-counts

Package Overview
Dependencies
Maintainers
4
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@density/chart-historical-counts - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

2

dist/index.js

@@ -206,3 +206,3 @@ 'use strict';

.tickValues(d3.range(firstHourMark, domainEnd, MINUTES_PER_HOUR * SECONDS_PER_MINUTE * MILLISECONDS_PER_SECOND)).tickSizeOuter(0).tickFormat(function (d, i) {
var timeFormat = (0, _moment2.default)(d).add(timeZoneOffset, 'hours').format('hA');
var timeFormat = _moment2.default.utc(d).add(timeZoneOffset, 'hours').format('hA');
return timeFormat.slice(0, timeFormat.startsWith('12') ? -1 : -2).toLowerCase();

@@ -209,0 +209,0 @@ });

@@ -116,3 +116,3 @@ 'use strict';

enteringGroup.select('.historical-counts-overlay-bottom-text').text((0, _moment2.default)(timeAtPosition).add(timeZoneOffset, 'hours').format('hh:mm A[' + (timeZoneLabel ? ' (' + timeZoneLabel + ') ' : ' ') + ']ddd MMM YY'));
enteringGroup.select('.historical-counts-overlay-bottom-text').text(_moment2.default.utc(timeAtPosition).add(timeZoneOffset, 'hours').format('hh:mm A[' + (timeZoneLabel ? ' (' + timeZoneLabel + ') ' : ' ') + ']ddd MMM YY'));

@@ -119,0 +119,0 @@ enteringGroup.select('.historical-counts-overlay-top-text').attr('transform', 'translate(' + overlayDialogTopTextCenterOffset + ',0)').text(countAtPosition);

@@ -212,3 +212,3 @@ import './styles.scss';

.tickFormat((d, i) => {
const timeFormat = moment(d).add(timeZoneOffset, 'hours').format(`hA`);
const timeFormat = moment.utc(d).add(timeZoneOffset, 'hours').format(`hA`);
return timeFormat.slice(

@@ -215,0 +215,0 @@ 0,

@@ -174,3 +174,3 @@ import { bisector } from 'd3';

enteringGroup.select('.historical-counts-overlay-bottom-text')
.text(moment(timeAtPosition).add(timeZoneOffset, 'hours').format(`hh:mm A[${timeZoneLabel ? ` (${timeZoneLabel}) ` : ' '}]ddd MMM YY`));
.text(moment.utc(timeAtPosition).add(timeZoneOffset, 'hours').format(`hh:mm A[${timeZoneLabel ? ` (${timeZoneLabel}) ` : ' '}]ddd MMM YY`));

@@ -177,0 +177,0 @@ enteringGroup.select('.historical-counts-overlay-top-text')

{
"name": "@density/chart-historical-counts",
"version": "1.4.0",
"version": "1.4.1",
"description": "Historical Counts chart",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc