-const path = require('path');
-const { name: packageName, version: packageVersion } = require('../package');
-
-const libraryIdentifier = `${packageName}@${packageVersion}`;
-
-/**
- * Return a function which combines a part of the filename with a scope, for use in logging.
- * @param {string} filename
- */
-const fileScope = (filename) => {
- const shortFilename = path.basename(filename, '.js');
- const fScope = (shortFilename === 'index') ? path.basename(path.dirname(filename)) : shortFilename;
- return (scope) => [libraryIdentifier, fScope, scope].join(':');
-}
-
-