fix(mixins/Config#watch): first run even when undefined
Fixes issue introduced by d157fd352
This commit is contained in:
parent
1a51c66028
commit
3bad40095a
@ -58,7 +58,9 @@ export default class Config {
|
|||||||
// internal arg
|
// internal arg
|
||||||
const processor = arguments.length > 2 ? arguments[2] : identity
|
const processor = arguments.length > 2 ? arguments[2] : identity
|
||||||
|
|
||||||
let prev
|
// unique value to ensure first run even if the value is `undefined`
|
||||||
|
let prev = {}
|
||||||
|
|
||||||
const watcher = config => {
|
const watcher = config => {
|
||||||
try {
|
try {
|
||||||
const value = processor(niceGet(config, path))
|
const value = processor(niceGet(config, path))
|
||||||
|
@ -4,12 +4,17 @@
|
|||||||
> understandable by them.
|
> understandable by them.
|
||||||
|
|
||||||
### Enhancements
|
### Enhancements
|
||||||
|
|
||||||
> Users must be able to say: “Nice enhancement, I'm eager to test it”
|
> Users must be able to say: “Nice enhancement, I'm eager to test it”
|
||||||
|
|
||||||
- [Backup/Encryption] Use `aes-256-gcm` instead of `aes-256-ccm` to mitigate [padding oracle attacks](https://en.wikipedia.org/wiki/Padding_oracle_attack) (PR [#6447](https://github.com/vatesfr/xen-orchestra/pull/6447))
|
- [Backup/Encryption] Use `aes-256-gcm` instead of `aes-256-ccm` to mitigate [padding oracle attacks](https://en.wikipedia.org/wiki/Padding_oracle_attack) (PR [#6447](https://github.com/vatesfr/xen-orchestra/pull/6447))
|
||||||
|
|
||||||
### Bug fixes
|
### Bug fixes
|
||||||
|
|
||||||
> Users must be able to say: “I had this issue, happy to know it's fixed”
|
> Users must be able to say: “I had this issue, happy to know it's fixed”
|
||||||
|
|
||||||
|
- Really enable by default the embedded HTTP/HTTPS proxy
|
||||||
|
|
||||||
### Packages to release
|
### Packages to release
|
||||||
|
|
||||||
> When modifying a package, add it here with its release type.
|
> When modifying a package, add it here with its release type.
|
||||||
@ -31,6 +36,7 @@
|
|||||||
- @vates/read-chunk patch
|
- @vates/read-chunk patch
|
||||||
- @xen-orchestra/fs minor
|
- @xen-orchestra/fs minor
|
||||||
- @xen-orchestra/log minor
|
- @xen-orchestra/log minor
|
||||||
|
- @xen-orchestra/mixins patch
|
||||||
- xo-remote-parser patch
|
- xo-remote-parser patch
|
||||||
- xo-server-transport-nagios patch
|
- xo-server-transport-nagios patch
|
||||||
- xo-web patch
|
- xo-web patch
|
||||||
|
Loading…
Reference in New Issue
Block a user