mirror of
https://github.com/chuot/rdio-scanner.git
synced 2026-08-14 08:53:03 -06:00
Version 5.2.9
This commit is contained in:
parent
8421a81f12
commit
3f2b184558
|
|
@ -48,6 +48,11 @@ _V5.2.8_
|
|||
|
||||
- Fix SQLite does not support TEXT with options.
|
||||
|
||||
_V5.2.9_
|
||||
|
||||
- Fix bad code for server options parsing.
|
||||
- Increase dirwatch polling interval from 1000ms to 2500ms.
|
||||
|
||||
# Version 5.1
|
||||
|
||||
This one is a big one... **Be sure to backup your config.json and your database.sqlite before updating.**
|
||||
|
|
|
|||
2
client/package-lock.json
generated
2
client/package-lock.json
generated
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "rdio-scanner-client",
|
||||
"version": "5.2.7",
|
||||
"version": "5.2.9",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
|||
|
|
@ -37,5 +37,5 @@
|
|||
"build": "ng build --base-href ./ --configuration production",
|
||||
"start": "ng serve"
|
||||
},
|
||||
"version": "5.2.8"
|
||||
"version": "5.2.9"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,5 +14,5 @@
|
|||
"update": "node update"
|
||||
},
|
||||
"type": "module",
|
||||
"version": "5.2.8"
|
||||
"version": "5.2.9"
|
||||
}
|
||||
|
|
@ -157,35 +157,61 @@ export class Config extends EventEmitter {
|
|||
|
||||
get options() {
|
||||
return {
|
||||
autoPopulate: this._options.autoPopulate ?? defaults.options.autoPopulate,
|
||||
dimmerDelay: this._options.dimmerDelay ?? defaults.options.dimmerDelay,
|
||||
disableAudioConversion: this._options.disableAudioConversion ?? defaults.options.disableAudioConversion,
|
||||
disableDuplicateDetection: this._options.disableDuplicateDetection ?? defaults.options.disableDuplicateDetection,
|
||||
duplicateDetectionTimeFrame: this._options.duplicateDetectionTimeFrame ?? defaults.options.duplicateDetectionTimeFrame,
|
||||
keypadBeeps: this._options.keypadBeeps ?? defaults.options.keypadBeeps,
|
||||
pruneDays: this._options.pruneDays ?? defaults.options.pruneDays,
|
||||
sortTalkgroups: this._options.sortTalkgroups ?? defaults.options.sortTalkgroups,
|
||||
autoPopulate: typeof this._options.autoPopulate === 'boolean'
|
||||
? this._options.autoPopulate
|
||||
: defaults.options.autoPopulate,
|
||||
dimmerDelay: typeof this._options.dimmerDelay === 'number'
|
||||
? this._options.dimmerDelay
|
||||
: defaults.options.dimmerDelay,
|
||||
disableAudioConversion: typeof this._options.disableAudioConversion === 'boolean'
|
||||
? this._options.disableAudioConversion
|
||||
: defaults.options.disableAudioConversion,
|
||||
disableDuplicateDetection: typeof this._options.disableDuplicateDetection === 'boolean'
|
||||
? this._options.disableDuplicateDetection
|
||||
: defaults.options.disableDuplicateDetection,
|
||||
duplicateDetectionTimeFrame: typeof this._options.duplicateDetectionTimeFrame === 'number'
|
||||
? this._options.duplicateDetectionTimeFrame
|
||||
: defaults.options.duplicateDetectionTimeFrame,
|
||||
keypadBeeps: typeof this._options.keypadBeeps === 'string'
|
||||
? this._options.keypadBeeps
|
||||
: defaults.options.keypadBeeps,
|
||||
pruneDays: typeof this._options.pruneDays === 'number'
|
||||
? this._options.pruneDays
|
||||
: defaults.options.pruneDays,
|
||||
sortTalkgroups: typeof this._options.sortTalkgroups === 'boolean'
|
||||
? this._options.sortTalkgroups
|
||||
: defaults.options.sortTalkgroups,
|
||||
};
|
||||
}
|
||||
|
||||
set options(options) {
|
||||
if (options !== null && !Array.isArray(options) && typeof options === 'object') {
|
||||
this._options = Object.keys(options).reduce((o, k) => {
|
||||
if ([
|
||||
'autoPopulate',
|
||||
'dimmerDelay',
|
||||
'disableAudioConversion',
|
||||
'disableDuplicateDetection',
|
||||
'duplicateDetectionTimeFrame',
|
||||
'keypadBeeps',
|
||||
'pruneDays',
|
||||
'sortTalkgroups',
|
||||
].includes(k)) {
|
||||
o[k] = options[k] ?? defaults.options[k];
|
||||
}
|
||||
|
||||
return o;
|
||||
}, {});
|
||||
this._options = {
|
||||
autoPopulate: typeof options.autoPopulate === 'boolean'
|
||||
? options.autoPopulate
|
||||
: defaults.options.autoPopulate,
|
||||
dimmerDelay: typeof options.dimmerDelay === 'number'
|
||||
? options.dimmerDelay
|
||||
: defaults.options.dimmerDelay,
|
||||
disableAudioConversion: typeof options.disableAudioConversion === 'boolean'
|
||||
? options.disableAudioConversion
|
||||
: defaults.options.disableAudioConversion,
|
||||
disableDuplicateDetection: typeof options.disableDuplicateDetection === 'boolean'
|
||||
? options.disableDuplicateDetection
|
||||
: defaults.options.disableDuplicateDetection,
|
||||
duplicateDetectionTimeFrame: typeof options.duplicateDetectionTimeFrame === 'number'
|
||||
? options.duplicateDetectionTimeFrame
|
||||
: defaults.options.duplicateDetectionTimeFrame,
|
||||
keypadBeeps: typeof options.keypadBeeps === 'string'
|
||||
? options.keypadBeeps
|
||||
: defaults.options.keypadBeeps,
|
||||
pruneDays: typeof options.pruneDays === 'number'
|
||||
? options.pruneDays
|
||||
: defaults.options.pruneDays,
|
||||
sortTalkgroups: typeof options.sortTalkgroups === 'boolean'
|
||||
? options.sortTalkgroups
|
||||
: defaults.options.sortTalkgroups,
|
||||
};
|
||||
|
||||
this.emit('changes');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -451,7 +451,7 @@ export class DirWatch {
|
|||
};
|
||||
|
||||
if (options.usePolling) {
|
||||
options.binaryInterval = options.interval = dirWatch.usePolling === true ? 1000 : dirWatch.usePolling;
|
||||
options.binaryInterval = options.interval = dirWatch.usePolling === true ? 2500 : dirWatch.usePolling;
|
||||
}
|
||||
|
||||
const watcher = chokidar.watch(path.resolve(dirname, '../../..', dirWatch.directory), options);
|
||||
|
|
|
|||
|
|
@ -19,6 +19,6 @@
|
|||
|
||||
'use strict';
|
||||
|
||||
export const version = '5.2.7';
|
||||
export const version = '5.2.9';
|
||||
|
||||
export default version;
|
||||
2
server/package-lock.json
generated
2
server/package-lock.json
generated
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "rdio-scanner-server",
|
||||
"version": "5.2.7",
|
||||
"version": "5.2.9",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
|||
|
|
@ -46,5 +46,5 @@
|
|||
"start": "nodemon"
|
||||
},
|
||||
"type": "module",
|
||||
"version": "5.2.7"
|
||||
"version": "5.2.9"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue