buoy-config
Advanced tools
Comparing version 2.0.6-0 to 2.0.7-0
@@ -30,33 +30,3 @@ 'use strict'; | ||
} else { | ||
var path = require('path'); | ||
var fs = require('fs'); | ||
var _images = {}; | ||
if (fs.statSync(path.join(__dirname, 'images')).isDirectory()) { | ||
var _iteratorNormalCompletion = true; | ||
var _didIteratorError = false; | ||
var _iteratorError = undefined; | ||
try { | ||
for (var _iterator = fs.readdirSync(path.join(__dirname, 'images'))[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { | ||
var child = _step.value; | ||
_images[child.replace('./', '')] = child; | ||
} | ||
} catch (err) { | ||
_didIteratorError = true; | ||
_iteratorError = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion && _iterator.return) { | ||
_iterator.return(); | ||
} | ||
} finally { | ||
if (_didIteratorError) { | ||
throw _iteratorError; | ||
} | ||
} | ||
} | ||
} | ||
return _images; | ||
return {}; | ||
} | ||
@@ -63,0 +33,0 @@ }; |
{ | ||
"name": "buoy-config", | ||
"version": "2.0.6-0", | ||
"version": "2.0.7-0", | ||
"description": "Common configuration files for Buoy clients", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -18,12 +18,3 @@ import navConfig from "./configurations/nav.json" | ||
} else { | ||
const path = require('path') | ||
const fs = require('fs') | ||
let images = {} | ||
if (fs.statSync(path.join(__dirname, 'images')).isDirectory()) { | ||
for (let child of fs.readdirSync(path.join(__dirname, 'images'))) { | ||
images[child.replace('./', '')] = child | ||
} | ||
} | ||
return images | ||
return {} | ||
} | ||
@@ -30,0 +21,0 @@ } |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
1
0
217281
1025