@xen-orchestra/backups 0.45.0 → 0.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31,7 +31,7 @@ export class PoolMetadataBackup {
31
31
  const poolDir = `${DIR_XO_POOL_METADATA_BACKUPS}/${schedule.id}/${pool.$id}`
32
32
  const dir = `${poolDir}/${formatFilenameDate(timestamp)}`
33
33
 
34
- const stream = await this._exportPoolMetadata()
34
+ const stream = (await this._exportPoolMetadata()).body
35
35
  const fileName = `${dir}/data`
36
36
 
37
37
  const metadata = JSON.stringify(
@@ -30,10 +30,12 @@ export const FullXapi = class FullXapiVmBackupRunner extends AbstractXapi {
30
30
  const vm = this._vm
31
31
  const exportedVm = this._exportedVm
32
32
  const stream = this._throttleStream(
33
- await this._xapi.VM_export(exportedVm.$ref, {
34
- compress: Boolean(compression) && (compression === 'native' ? 'gzip' : 'zstd'),
35
- useSnapshot: false,
36
- })
33
+ (
34
+ await this._xapi.VM_export(exportedVm.$ref, {
35
+ compress: Boolean(compression) && (compression === 'native' ? 'gzip' : 'zstd'),
36
+ useSnapshot: false,
37
+ })
38
+ ).body
37
39
  )
38
40
 
39
41
  const vdis = await exportedVm.$getDisks()
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "type": "git",
9
9
  "url": "https://github.com/vatesfr/xen-orchestra.git"
10
10
  },
11
- "version": "0.45.0",
11
+ "version": "0.46.0",
12
12
  "engines": {
13
13
  "node": ">=14.18"
14
14
  },
@@ -25,10 +25,10 @@
25
25
  "@vates/decorate-with": "^2.1.0",
26
26
  "@vates/disposable": "^0.1.5",
27
27
  "@vates/fuse-vhd": "^2.1.0",
28
- "@vates/nbd-client": "^3.0.0",
28
+ "@vates/nbd-client": "^3.0.1",
29
29
  "@vates/parse-duration": "^0.1.1",
30
30
  "@xen-orchestra/async-map": "^0.1.2",
31
- "@xen-orchestra/fs": "^4.1.5",
31
+ "@xen-orchestra/fs": "^4.1.6",
32
32
  "@xen-orchestra/log": "^0.6.0",
33
33
  "@xen-orchestra/template": "^0.1.0",
34
34
  "app-conf": "^2.3.0",
@@ -45,7 +45,7 @@
45
45
  "tar": "^6.1.15",
46
46
  "uuid": "^9.0.0",
47
47
  "vhd-lib": "^4.9.1",
48
- "xen-api": "^2.0.1",
48
+ "xen-api": "^3.0.0",
49
49
  "yazl": "^2.5.1"
50
50
  },
51
51
  "devDependencies": {
@@ -56,7 +56,7 @@
56
56
  "tmp": "^0.2.1"
57
57
  },
58
58
  "peerDependencies": {
59
- "@xen-orchestra/xapi": "^4.3.0"
59
+ "@xen-orchestra/xapi": "^5.0.0"
60
60
  },
61
61
  "license": "AGPL-3.0-or-later",
62
62
  "author": {