@xen-orchestra/backups 0.28.0 → 0.28.1

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.
Files changed (2) hide show
  1. package/RemoteAdapter.js +6 -6
  2. package/package.json +3 -3
package/RemoteAdapter.js CHANGED
@@ -76,14 +76,16 @@ const debounceResourceFactory = factory =>
76
76
  }
77
77
 
78
78
  class RemoteAdapter {
79
- constructor(handler, { debounceResource = res => res, dirMode, vhdDirectoryCompression, useGetDiskLegacy=false } = {}) {
79
+ constructor(
80
+ handler,
81
+ { debounceResource = res => res, dirMode, vhdDirectoryCompression, useGetDiskLegacy = false } = {}
82
+ ) {
80
83
  this._debounceResource = debounceResource
81
84
  this._dirMode = dirMode
82
85
  this._handler = handler
83
86
  this._vhdDirectoryCompression = vhdDirectoryCompression
84
87
  this._readCacheListVmBackups = synchronized.withKey()(this._readCacheListVmBackups)
85
88
  this._useGetDiskLegacy = useGetDiskLegacy
86
-
87
89
  }
88
90
 
89
91
  get handler() {
@@ -324,9 +326,7 @@ class RemoteAdapter {
324
326
  return this.#useVhdDirectory()
325
327
  }
326
328
 
327
-
328
329
  async *#getDiskLegacy(diskId) {
329
-
330
330
  const RE_VHDI = /^vhdi(\d+)$/
331
331
  const handler = this._handler
332
332
 
@@ -358,8 +358,8 @@ class RemoteAdapter {
358
358
  }
359
359
 
360
360
  async *getDisk(diskId) {
361
- if(this._useGetDiskLegacy){
362
- yield * this.#getDiskLegacy(diskId)
361
+ if (this._useGetDiskLegacy) {
362
+ yield* this.#getDiskLegacy(diskId)
363
363
  return
364
364
  }
365
365
  const handler = this._handler
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.28.0",
11
+ "version": "0.28.1",
12
12
  "engines": {
13
13
  "node": ">=14.6"
14
14
  },
@@ -20,12 +20,12 @@
20
20
  "@vates/cached-dns.lookup": "^1.0.0",
21
21
  "@vates/compose": "^2.1.0",
22
22
  "@vates/decorate-with": "^2.0.0",
23
- "@vates/disposable": "^0.1.1",
23
+ "@vates/disposable": "^0.1.2",
24
24
  "@vates/fuse-vhd": "^1.0.0",
25
25
  "@vates/parse-duration": "^0.1.1",
26
26
  "@xen-orchestra/async-map": "^0.1.2",
27
27
  "@xen-orchestra/fs": "^3.1.0",
28
- "@xen-orchestra/log": "^0.3.0",
28
+ "@xen-orchestra/log": "^0.4.0",
29
29
  "@xen-orchestra/template": "^0.1.0",
30
30
  "compare-versions": "^5.0.1",
31
31
  "d3-time-format": "^3.0.0",