From e3cf50c82b360c9961f095ec2f7c59152e09cb7f Mon Sep 17 00:00:00 2001 From: JGAntunes Date: Wed, 13 Jan 2021 17:42:03 +0000 Subject: [PATCH] chore: dropping lodash.once as per #1728 and using memoize-one --- src/utils/get-global-config.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils/get-global-config.js b/src/utils/get-global-config.js index c804e39f487..76a6af21fa1 100644 --- a/src/utils/get-global-config.js +++ b/src/utils/get-global-config.js @@ -1,6 +1,5 @@ const Configstore = require('configstore') const { memoizeOne } = require('memoize-one') -const { once } = require('lodash') const { v4: uuidv4 } = require('uuid') const { readFileAsync } = require('../lib/fs') @@ -30,4 +29,4 @@ const getGlobalConfig = async function () { } // Memoise config result so that we only load it once -module.exports = once(getGlobalConfig) +module.exports = memoizeOne(getGlobalConfig)