Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
contextFn.keys = function() {
var request = resolve.context.sync(this.context, contextName, this.root.options.resolve);
var requestObj = resolve.parse(request);
var files = fs.readdirSync(requestObj.resource.path);
return files.map(function(file) { return "./" + file; });
}.bind(this);
return contextFn;