Always require fs-extra - consistency change

no issue
This commit is contained in:
kirrg001 2017-12-13 19:15:29 +01:00 committed by Katharina Irrgang
parent 7353c87d7f
commit d83f474ff8
24 changed files with 24 additions and 24 deletions

View File

@ -2,7 +2,7 @@
// API for DB operations
var Promise = require('bluebird'),
path = require('path'),
fs = require('fs'),
fs = require('fs-extra'),
pipeline = require('../utils/pipeline'),
apiUtils = require('./utils'),
exporter = require('../data/export'),

View File

@ -2,7 +2,7 @@
// RESTful API for the Tag resource
var Promise = require('bluebird'),
_ = require('lodash'),
fs = require('fs'),
fs = require('fs-extra'),
pipeline = require('../utils/pipeline'),
globalUtils = require('../utils'),
apiUtils = require('./utils'),

View File

@ -1,4 +1,4 @@
var fs = require('fs'),
var fs = require('fs-extra'),
session = require('cookie-session'),
crypto = require('crypto'),
path = require('path'),

View File

@ -1,6 +1,6 @@
// # Backup Database
// Provides for backing up the database before making potentially destructive changes
var fs = require('fs'),
var fs = require('fs-extra'),
path = require('path'),
Promise = require('bluebird'),
config = require('../../config'),

View File

@ -2,7 +2,7 @@
// Handles the creation of an HTTP Server for Ghost
var debug = require('ghost-ignition').debug('server'),
Promise = require('bluebird'),
fs = require('fs'),
fs = require('fs-extra'),
path = require('path'),
_ = require('lodash'),
config = require('./config'),

View File

@ -2,7 +2,7 @@
var supportedLocales = ['en'],
_ = require('lodash'),
fs = require('fs'),
fs = require('fs-extra'),
path = require('path'),
chalk = require('chalk'),
MessageFormat = require('intl-messageformat'),

View File

@ -1,5 +1,5 @@
var _ = require('lodash').runInContext(),
fs = require('fs'),
fs = require('fs-extra'),
Promise = require('bluebird'),
path = require('path'),
htmlToText = require('html-to-text'),

View File

@ -1,5 +1,5 @@
var _ = require('lodash'),
fs = require('fs'),
fs = require('fs-extra'),
path = require('path'),
Promise = require('bluebird'),
spawn = require('child_process').spawn,

View File

@ -1,4 +1,4 @@
var fs = require('fs'),
var fs = require('fs-extra'),
Promise = require('bluebird'),
path = require('path'),
parsePackageJson = require('../../utils/packages').parsePackageJSON;

View File

@ -90,7 +90,7 @@ AppSandbox.prototype.loadModule = function loadModuleSandboxed(modulePath) {
};
AppSandbox.defaults = {
blacklist: ['knex', 'fs', 'http', 'sqlite3', 'mysql', 'ghost']
blacklist: ['knex', 'fs-extra', 'http', 'sqlite3', 'mysql', 'ghost']
};
module.exports = AppSandbox;

View File

@ -3,7 +3,7 @@
*/
var Promise = require('bluebird'),
fs = require('fs'),
fs = require('fs-extra'),
common = require('../../lib/common'),
readFile = Promise.promisify(fs.readFile);

View File

@ -4,7 +4,7 @@
var Promise = require('bluebird'),
_ = require('lodash'),
join = require('path').join,
fs = require('fs'),
fs = require('fs-extra'),
parsePackageJson = require('./parse-package-json'),
common = require('../../lib/common'),

View File

@ -1,7 +1,7 @@
var Promise = require('bluebird'),
csvParser = require('csv-parser'),
_ = require('lodash'),
fs = require('fs');
fs = require('fs-extra');
function readCSV(options) {
var columnsToExtract = options.columnsToExtract || [],

View File

@ -1,4 +1,4 @@
var fs = require('fs');
var fs = require('fs-extra');
module.exports = function zipFolder(folderToZip, destination, callback) {
var archiver = require('archiver'),

View File

@ -1,4 +1,4 @@
var fs = require('fs'),
var fs = require('fs-extra'),
path = require('path'),
crypto = require('crypto'),
storage = require('../../adapters/storage'),

View File

@ -1,5 +1,5 @@
var crypto = require('crypto'),
fs = require('fs'),
fs = require('fs-extra'),
path = require('path'),
config = require('../../config'),
urlService = require('../../services/url');

View File

@ -5,7 +5,7 @@ var should = require('should'),
sinon = require('sinon'),
config = require('../../../../../core/server/config'),
models = require('../../../../../core/server/models'),
fs = require('fs'),
fs = require('fs-extra'),
_ = require('lodash'),
ghost = testUtils.startGhost,
request,

View File

@ -3,7 +3,7 @@ var should = require('should'),
testUtils = require('../../utils'),
Promise = require('bluebird'),
ObjectId = require('bson-objectid'),
fs = require('fs'),
fs = require('fs-extra'),
_ = require('lodash'),
context = testUtils.context,
common = require('../../../server/lib/common'),

View File

@ -1,5 +1,5 @@
var should = require('should'),
fs = require('fs'),
fs = require('fs-extra'),
config = require('../../../../server/config'),
common = require('../../../../server/lib/common'),
schedulingUtils = require('../../../../server/adapters/scheduling/utils');

View File

@ -2,7 +2,7 @@
var should = require('should'), // jshint ignore:line
sinon = require('sinon'),
crypto = require('crypto'),
fs = require('fs'),
fs = require('fs-extra'),
common = require('../../../../server/lib/common'),
settingsCache = require('../../../../server/settings/cache'),
privateBlogging = require('../../../../server/apps/private-blogging/lib/middleware'),

View File

@ -1,6 +1,6 @@
var should = require('should'), // jshint ignore:line
sinon = require('sinon'),
fs = require('fs'),
fs = require('fs-extra'),
servePublicFile = require('../../../server/web/middleware/serve-public-file'),
sandbox = sinon.sandbox.create();

View File

@ -4,7 +4,7 @@ var should = require('should'), // jshint ignore:line
_ = require('lodash'),
Promise = require('bluebird'),
crypto = require('crypto'),
fs = require('fs'),
fs = require('fs-extra'),
models = require('../../server/models'),
exporter = require('../../server/data/export'),
schema = require('../../server/data/schema'),

View File

@ -1,6 +1,6 @@
var should = require('should'), // jshint ignore:line
sinon = require('sinon'),
fs = require('fs'),
fs = require('fs-extra'),
tmp = require('tmp'),
join = require('path').join,

View File

@ -1,7 +1,7 @@
var should = require('should'), // jshint ignore:line
tmp = require('tmp'),
join = require('path').join,
fs = require('fs'),
fs = require('fs-extra'),
// Things we are testing
packages = require('../../../server/utils/packages'),