mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
21 lines
No EOL
412 B
JavaScript
21 lines
No EOL
412 B
JavaScript
(function () {
|
|
"use strict";
|
|
|
|
var when = require('when');
|
|
|
|
module.exports = function (version, data) {
|
|
var importer;
|
|
|
|
try {
|
|
importer = require("./" + version);
|
|
} catch (ignore) {
|
|
// Zero effs given
|
|
}
|
|
|
|
if (!importer) {
|
|
return when.reject("No importer found");
|
|
}
|
|
|
|
return importer.importData(data);
|
|
};
|
|
}()); |