chore(proxy): use extensions for file imports
Will be necessary for ESM.
This commit is contained in:
parent
7f570c074b
commit
5171378bea
@ -1,9 +1,9 @@
|
||||
import Config from '@xen-orchestra/mixins/Config'
|
||||
import Hooks from '@xen-orchestra/mixins/Hooks'
|
||||
import Config from '@xen-orchestra/mixins/Config.js'
|
||||
import Hooks from '@xen-orchestra/mixins/Hooks.js'
|
||||
import mixin from '@xen-orchestra/mixin'
|
||||
import { createDebounceResource } from '@vates/disposable/debounceResource'
|
||||
import { createDebounceResource } from '@vates/disposable/debounceResource.js'
|
||||
|
||||
import mixins from './mixins'
|
||||
import mixins from './mixins/index.js'
|
||||
|
||||
export default class App {
|
||||
constructor(opts) {
|
||||
|
@ -4,7 +4,7 @@ import fromEvent from 'promise-toolbox/fromEvent'
|
||||
import JsonRpcWebsocketClient from 'jsonrpc-websocket-client'
|
||||
import parsePairs from 'parse-pairs'
|
||||
import { createLogger } from '@xen-orchestra/log'
|
||||
import { deduped } from '@vates/disposable/deduped'
|
||||
import { deduped } from '@vates/disposable/deduped.js'
|
||||
import { execFile, spawn } from 'child_process'
|
||||
import { readFile } from 'fs-extra'
|
||||
|
||||
|
@ -3,7 +3,7 @@ import { createLogger } from '@xen-orchestra/log'
|
||||
import { execFileSync } from 'child_process'
|
||||
import { outputFileSync } from 'fs-extra'
|
||||
|
||||
import { Profile } from '../_Profile'
|
||||
import { Profile } from '../_Profile.js'
|
||||
|
||||
const { warn } = createLogger('xo:proxy:authentication')
|
||||
|
||||
|
@ -1,21 +1,21 @@
|
||||
import Disposable from 'promise-toolbox/Disposable'
|
||||
import fromCallback from 'promise-toolbox/fromCallback'
|
||||
import { asyncMap } from '@xen-orchestra/async-map'
|
||||
import { Backup } from '@xen-orchestra/backups/Backup'
|
||||
import { Backup } from '@xen-orchestra/backups/Backup.js'
|
||||
import { compose } from '@vates/compose'
|
||||
import { createLogger } from '@xen-orchestra/log'
|
||||
import { decorateWith } from '@vates/decorate-with'
|
||||
import { deduped } from '@vates/disposable/deduped'
|
||||
import { deduped } from '@vates/disposable/deduped.js'
|
||||
import { defer } from 'golike-defer'
|
||||
import { DurablePartition } from '@xen-orchestra/backups/DurablePartition'
|
||||
import { DurablePartition } from '@xen-orchestra/backups/DurablePartition.js'
|
||||
import { execFile } from 'child_process'
|
||||
import { formatVmBackups } from '@xen-orchestra/backups/formatVmBackups'
|
||||
import { ImportVmBackup } from '@xen-orchestra/backups/ImportVmBackup'
|
||||
import { formatVmBackups } from '@xen-orchestra/backups/formatVmBackups.js'
|
||||
import { ImportVmBackup } from '@xen-orchestra/backups/ImportVmBackup.js'
|
||||
import { Readable } from 'stream'
|
||||
import { RemoteAdapter } from '@xen-orchestra/backups/RemoteAdapter'
|
||||
import { RestoreMetadataBackup } from '@xen-orchestra/backups/RestoreMetadataBackup'
|
||||
import { runBackupWorker } from '@xen-orchestra/backups/runBackupWorker'
|
||||
import { Task } from '@xen-orchestra/backups/Task'
|
||||
import { RemoteAdapter } from '@xen-orchestra/backups/RemoteAdapter.js'
|
||||
import { RestoreMetadataBackup } from '@xen-orchestra/backups/RestoreMetadataBackup.js'
|
||||
import { runBackupWorker } from '@xen-orchestra/backups/runBackupWorker.js'
|
||||
import { Task } from '@xen-orchestra/backups/Task.js'
|
||||
import { Xapi } from '@xen-orchestra/xapi'
|
||||
|
||||
const noop = Function.prototype
|
||||
|
@ -1,7 +1,7 @@
|
||||
import Disposable from 'promise-toolbox/Disposable'
|
||||
import { compose } from '@vates/compose'
|
||||
import { decorateWith } from '@vates/decorate-with'
|
||||
import { deduped } from '@vates/disposable/deduped'
|
||||
import { deduped } from '@vates/disposable/deduped.js'
|
||||
import { getHandler } from '@xen-orchestra/fs'
|
||||
|
||||
export default class Remotes {
|
||||
|
Loading…
Reference in New Issue
Block a user