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