mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
ba810fb0bb
Function wrapper and use strict pragma removed from all node files
17 lines
311 B
JavaScript
17 lines
311 B
JavaScript
var when = require('when');
|
|
|
|
module.exports = function (version) {
|
|
var exporter;
|
|
|
|
try {
|
|
exporter = require("./" + version);
|
|
} catch (ignore) {
|
|
// Zero effs given
|
|
}
|
|
|
|
if (!exporter) {
|
|
return when.reject("No exporter found");
|
|
}
|
|
|
|
return exporter.exportData();
|
|
};
|