aboutsummaryrefslogtreecommitdiff
path: root/node_modules/hullabaloo-config-manager/lib
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-08-14 05:01:11 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-08-14 05:02:09 +0200
commit363723fc84f7b8477592e0105aeb331ec9a017af (patch)
tree29f92724f34131bac64d6a318dd7e30612e631c7 /node_modules/hullabaloo-config-manager/lib
parent5634e77ad96bfe1818f6b6ee70b7379652e5487f (diff)
node_modules
Diffstat (limited to 'node_modules/hullabaloo-config-manager/lib')
-rw-r--r--node_modules/hullabaloo-config-manager/lib/Verifier.js3
-rw-r--r--node_modules/hullabaloo-config-manager/lib/resolvePluginsAndPresets.js2
2 files changed, 3 insertions, 2 deletions
diff --git a/node_modules/hullabaloo-config-manager/lib/Verifier.js b/node_modules/hullabaloo-config-manager/lib/Verifier.js
index 267fcb2bb..0ac85a558 100644
--- a/node_modules/hullabaloo-config-manager/lib/Verifier.js
+++ b/node_modules/hullabaloo-config-manager/lib/Verifier.js
@@ -5,6 +5,7 @@ const path = require('path')
const isEqual = require('lodash.isequal')
const md5Hex = require('md5-hex')
+const SafeBuffer = require('safe-buffer').Buffer
const currentEnv = require('./currentEnv')
const hashDependencies = require('./hashDependencies')
@@ -134,7 +135,7 @@ class Verifier {
}
toBuffer () {
- return Buffer.from(JSON.stringify({
+ return SafeBuffer.from(JSON.stringify({
babelrcDir: this.babelrcDir,
envNames: this.envNames,
dependencies: this.dependencies,
diff --git a/node_modules/hullabaloo-config-manager/lib/resolvePluginsAndPresets.js b/node_modules/hullabaloo-config-manager/lib/resolvePluginsAndPresets.js
index b72ab4090..631ffa2ef 100644
--- a/node_modules/hullabaloo-config-manager/lib/resolvePluginsAndPresets.js
+++ b/node_modules/hullabaloo-config-manager/lib/resolvePluginsAndPresets.js
@@ -29,7 +29,7 @@ function isFilePath (ref) {
function resolveName (name, fromDir, cache) {
if (cache.has(name)) return cache.get(name)
- const filename = resolveFrom(fromDir, name)
+ const filename = resolveFrom.silent(fromDir, name)
cache.set(name, filename)
return filename
}