Update deps.
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user