Update deps.

This commit is contained in:
Julien Fontanet
2016-01-08 18:39:59 +01:00
parent d2b9cc8df9
commit a3c25d56a0
2 changed files with 7 additions and 7 deletions

View File

@@ -36,18 +36,18 @@
"dependencies": {
"app-conf": "^0.4.0",
"babel-runtime": "^5",
"base64url": "1.0.4",
"base64url": "^1.0.5",
"blocked": "^1.1.0",
"bluebird": "^2.9.14",
"bluebird": "^3.1.1",
"body-parser": "^1.13.3",
"connect-flash": "^0.1.1",
"cookie": "^0.2.3",
"cookie-parser": "^1.3.5",
"cron": "^1.0.9",
"d3-time-format": "^0.1.3",
"d3-time-format": "^0.3.0",
"debug": "^2.1.3",
"escape-string-regexp": "^1.0.3",
"event-to-promise": "^0.4.0",
"event-to-promise": "^0.6.0",
"exec-promise": "^0.5.1",
"express": "^4.13.3",
"express-session": "^1.11.3",

View File

@@ -1,5 +1,4 @@
import createDebug from 'debug'
import d3TimeFormat from 'd3-time-format'
import eventToPromise from 'event-to-promise'
import find from 'lodash.find'
import got from 'got'
@@ -12,6 +11,7 @@ import unzip from 'julien-f-unzip'
import { PassThrough } from 'stream'
import { request as httpRequest } from 'http'
import { stringify as formatQueryString } from 'querystring'
import { utcFormat, utcParse } from 'd3-time-format'
import {
wrapError as wrapXapiError,
Xapi as XapiBase
@@ -85,9 +85,9 @@ const getNamespaceForType = (type) => typeToNamespace[type] || type
// Format a date (pseudo ISO 8601) from one XenServer get by
// xapi.call('host.get_servertime', host.$ref) for example
export const formatDateTime = d3TimeFormat.utcFormat('%Y%m%dT%H:%M:%SZ')
export const formatDateTime = utcFormat('%Y%m%dT%H:%M:%SZ')
export const parseDateTime = formatDateTime.parse
export const parseDateTime = utcParse('%Y%m%dT%H:%M:%SZ')
export const isHostRunning = (host) => {
const {$metrics: metrics} = host