refactor(ConfigChanges): simplify (#130)
authorRaphael von der Grün <raphinesse@gmail.com>
Wed, 8 Jan 2020 09:45:10 +0000 (10:45 +0100)
committerGitHub <noreply@github.com>
Wed, 8 Jan 2020 09:45:10 +0000 (10:45 +0100)
commit5f245f08e0a37d43a91d7295a0dd086c4c206e56
tree150f039086aa6c11155bd1e2ff7bb971b3505735
parent4b03d3da90877f4f3396ec4a6036d7383d07304b
refactor(ConfigChanges): simplify (#130)

* refactor: ConfigChanges

* refactor: ConfigFile

* test(ConfigChanges): organize imports and constants

* refactor(ConfigChanges): reduce var scope

* refactor(ConfigChanges): remove unused statement

* refactor(ConfigChanges): simplify after removing useless statement

* refactor(ConfigChanges): drop useless if

* refactor(ConfigChanges): take method from variable

* refactor(ConfigFile): make use of Array#find

* refactor(ConfigFile): prefer cwd opt for glob

* refactor(ConfigFile): simplify return logic

* refactor(ConfigFile): use read-chunk in isBinaryPlist

* refactor: ConfigKeeper

* refactor(ConfigKeeper): use Map as cache

* refactor(ConfigKeeper): apply standard caching pattern

Co-authored-by: エリス <erisu@users.noreply.github.com>
package-lock.json
package.json
spec/ConfigChanges/ConfigChanges.spec.js
spec/ConfigChanges/ConfigFile.spec.js
src/ConfigChanges/ConfigChanges.js
src/ConfigChanges/ConfigFile.js
src/ConfigChanges/ConfigKeeper.js