bifocal/node_modules/gscan/lib/specs/index.js

16 lines
315 B
JavaScript
Raw Normal View History

2024-06-19 09:56:58 -04:00
const debug = require('@tryghost/debug')('ghost-spec');
module.exports = {
get: function get(key) {
let [version] = key;
if (version === 'v5') {
version = 'canary';
}
debug('Checking against version:', version);
return require(`./${[version]}`);
}
};