Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@influxdata/giraffe

Package Overview
Dependencies
Maintainers
18
Versions
179
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@influxdata/giraffe - npm Package Compare versions

Comparing version 0.16.10 to 0.16.11

.rpt2_cache/rpt2_29818c6811f044697d9ba281b519ad6045cbd5df/code/cache/0130e0faccdbbac5964380127186f3479e9f4d66

26

package.json
{
"name": "@influxdata/giraffe",
"version": "0.16.10",
"version": "0.16.11",
"main": "dist/index.js",

@@ -28,4 +28,4 @@ "license": "MIT",

"@types/react-dom": "^16.8.2",
"@typescript-eslint/eslint-plugin": "^1.5.0",
"@typescript-eslint/parser": "^1.5.0",
"@typescript-eslint/eslint-plugin": "^2.10.0",
"@typescript-eslint/parser": "^2.10.0",
"d3-array": "^2.0.3",

@@ -38,8 +38,8 @@ "d3-color": "^1.2.3",

"d3-shape": "^1.3.5",
"eslint": "^5.15.3",
"eslint-config-prettier": "^5.0.0",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-react": "^7.12.4",
"eslint": "^6.7.2",
"eslint-config-prettier": "^6.7.0",
"eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-react": "^7.17.0",
"intl-dateformat": "^0.1.1",
"jest": "^24.5.0",
"jest": "^24.9.0",
"memoize-one": "^5.0.2",

@@ -50,9 +50,9 @@ "prettier": "^1.16.4",

"react-virtualized-auto-sizer": "^1.0.2",
"rollup": "^1.10.0",
"rollup-plugin-commonjs": "^10.0.0",
"rollup": "^1.27.8",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-gzip": "^2.2.0",
"rollup-plugin-node-resolve": "^5.0.3",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"rollup-plugin-terser": "^5.0.0",
"rollup-plugin-typescript2": "^0.21.2",
"rollup-plugin-terser": "^5.1.2",
"rollup-plugin-typescript2": "^0.25.3",
"ts-jest": "^24.0.0",

@@ -59,0 +59,0 @@ "typescript": "^3.3.4000",

@@ -170,3 +170,3 @@ import {range, thresholdSturges} from 'd3-array'

let binTable = newTable(binCount * groupIDs.length)
const binTable = newTable(binCount * groupIDs.length)
.addColumn(X_MIN, xColType, xMinData)

@@ -173,0 +173,0 @@ .addColumn(X_MAX, xColType, xMaxData)

@@ -40,3 +40,3 @@ import {Scale, NumericColumnData, SymbolType} from '../types'

for (var i = 0; i < n; i++) {
for (let i = 0; i < n; i++) {
const rowIndex = rowIndices ? rowIndices[i] : i

@@ -43,0 +43,0 @@ const x = xScale(xColData[rowIndex])

@@ -18,5 +18,35 @@ import {

// Defaults to 12 hour time when not UTC
expect(nonUTCFormatter(d)).toEqual('2018-12-31 4:00:00 PM PST')
expect(nonUTCFormatter(d)).toEqual('2018-12-31 4:00:00 PM PST')
})
test('uses AM/PM when given "a" in the format regardless of time zone or time format', () => {
const utcFormatterWithFormat = timeFormatter({
timeZone: 'UTC',
format: 'YYYY-MM-DD HH:mm:ss a ZZ',
})
const utcFormatterWithFormatWithLowerH = timeFormatter({
timeZone: 'UTC',
format: 'YYYY-MM-DD hh:mm:ss a ZZ',
})
const nonUTCFormatterWithFormat = timeFormatter({
timeZone: 'America/Los_Angeles',
format: 'YYYY-MM-DD HH:mm:ss a ZZ',
})
const nonUTCFormatterWithFormatWithLowerH = timeFormatter({
timeZone: 'America/Los_Angeles',
format: 'YYYY-MM-DD hh:mm:ss a ZZ',
})
const d = new Date('2019-01-01T00:00Z')
expect(utcFormatterWithFormat(d)).toEqual('2019-01-01 12:00:00 AM UTC')
expect(utcFormatterWithFormatWithLowerH(d)).toEqual(
'2019-01-01 12:00:00 AM UTC'
)
expect(nonUTCFormatterWithFormat(d)).toEqual('2018-12-31 4:00:00 PM PST')
expect(nonUTCFormatterWithFormatWithLowerH(d)).toEqual(
'2018-12-31 4:00:00 PM PST'
)
})
test('can format times with format strings', () => {

@@ -29,2 +59,3 @@ const tests = [

['YYYY/MM/DD HH:mm:ss', '2019/01/01 00:00:00'],
['hh:mm a', '12:00 AM'],
['HH:mm a', '12:00 AM'],

@@ -31,0 +62,0 @@ ['HH:mm', '00:00'],

@@ -142,2 +142,5 @@ /*

const formatStringFormatter = createDateFormatter({
// a deliberate space in front of single digit hours keeps the tick label length
// and the total number of ticks consistent regardless of time frame
hh: ({hour}) => (Number(hour) < 10 ? ` ${Number(hour)}` : String(hour)),
HH: ({lhour}) => {

@@ -144,0 +147,0 @@ if (format && format.includes('a')) {

@@ -63,3 +63,3 @@ type ArrayLike = number[] | Float64Array

if (dx !== 0 || dy !== 0) {
var t = ((x2 - x) * dx + (y2 - y) * dy) / (dx * dx + dy * dy)
const t = ((x2 - x) * dx + (y2 - y) * dy) / (dx * dx + dy * dy)

@@ -66,0 +66,0 @@ if (t > 1) {

@@ -41,3 +41,4 @@ import * as React from 'react'

let {direction, initialX, initialY} = dragEventRef.current
const {initialX, initialY} = dragEventRef.current
let {direction} = dragEventRef.current

@@ -44,0 +45,0 @@ if (!direction) {

@@ -293,3 +293,3 @@ import {range} from 'd3-array'

const collectClosestRowIndices = (i0, i1, j0, j1, bins): number[] => {
let closestRowIndices = []
const closestRowIndices = []

@@ -372,3 +372,3 @@ let x = i0

let nearestIndexByGroup: NearestIndexByGroup = {}
const nearestIndexByGroup: NearestIndexByGroup = {}

@@ -375,0 +375,0 @@ collectNearestIndices(

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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