fepper-utils
Advanced tools
Comparing version 1.3.2 to 1.3.3
14
index.js
@@ -145,2 +145,8 @@ 'use strict'; | ||
exports.pref = () => { | ||
// Return if global.pref already set. | ||
if (global.pref) { | ||
return global.pref; | ||
} | ||
let pref; | ||
@@ -151,3 +157,3 @@ let defaults; | ||
const yml = fs.readFileSync(`${global.rootDir}/pref.yml`, enc); | ||
pref = global.pref = yaml.safeLoad(yml); | ||
pref = yaml.safeLoad(yml); | ||
} | ||
@@ -365,3 +371,3 @@ catch (err) { | ||
} | ||
catch (err) { | ||
catch { | ||
@@ -441,5 +447,3 @@ // The most likely reason for getting here is that target[key] is set, but not an instanceof Object. | ||
} | ||
catch (err) { | ||
// Fail gracefully. | ||
} | ||
catch {} // eslint-disable-line no-empty | ||
@@ -446,0 +450,0 @@ if (stat && stat.isDirectory()) { |
{ | ||
"name": "fepper-utils", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "Fepper utilities", | ||
@@ -52,2 +52,3 @@ "main": "index.js", | ||
"devDependencies": { | ||
"babel-eslint": "^10.0.3", | ||
"eslint": "6.x", | ||
@@ -54,0 +55,0 @@ "husky": "1.x", |
40199
670
4