Moved core/server/lib/common/logging to core/shared/logging (#11857)
- Represents that logging is shared across all parts of Ghost at present
* moved core/server/lib/common/logging to core/shared/logging
* updated logging path for generic imports
* updated migration and schema imports of logging
* updated tests and index logging import
* 🔥 removed logging from common module
* fixed tests
This commit is contained in:
parent
9b9f8462e7
commit
00c324fa4e
@ -1,5 +1,6 @@
|
||||
const {i18n} = require('../../../server/lib/common');
|
||||
const urlUtils = require('../../../shared/url-utils');
|
||||
const {logging, i18n} = require('../../../server/lib/common');
|
||||
const logging = require('../../../shared/logging');
|
||||
const errors = require('@tryghost/errors');
|
||||
const middleware = require('./lib/middleware');
|
||||
const router = require('./lib/router');
|
||||
|
@ -1,7 +1,7 @@
|
||||
const Promise = require('bluebird');
|
||||
const settingsCache = require('../../server/services/settings/cache');
|
||||
const urlUtils = require('../../shared/url-utils');
|
||||
const {logging} = require('../../server/lib/common');
|
||||
const logging = require('../../shared/logging');
|
||||
const getUrl = require('./url');
|
||||
const getImageDimensions = require('./image-dimensions');
|
||||
const getCanonicalUrl = require('./canonical_url');
|
||||
|
@ -1,6 +1,7 @@
|
||||
const debug = require('ghost-ignition').debug('services:apps');
|
||||
const Promise = require('bluebird');
|
||||
const {logging, i18n} = require('../../../server/lib/common');
|
||||
const {i18n} = require('../../../server/lib/common');
|
||||
const logging = require('../../../shared/logging');
|
||||
const errors = require('@tryghost/errors');
|
||||
const config = require('../../../shared/config');
|
||||
const loader = require('./loader');
|
||||
|
@ -4,7 +4,8 @@
|
||||
const hbs = require('./themes/engine');
|
||||
const errors = require('@tryghost/errors');
|
||||
|
||||
const {i18n, logging} = require('../../server/lib/common');
|
||||
const {i18n} = require('../../server/lib/common');
|
||||
const logging = require('../../shared/logging');
|
||||
const settingsCache = require('../../server/services/settings/cache');
|
||||
const config = require('../../shared/config');
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
const {events, logging, i18n} = require('../../../server/lib/common');
|
||||
const {events, i18n} = require('../../../server/lib/common');
|
||||
const logging = require('../../../shared/logging');
|
||||
const errors = require('@tryghost/errors');
|
||||
const active = require('./active');
|
||||
|
||||
|
@ -2,7 +2,7 @@ const Promise = require('bluebird');
|
||||
const errors = require('@tryghost/errors');
|
||||
const hbs = require('../engine');
|
||||
const config = require('../../../../shared/config');
|
||||
const {logging} = require('../../../../server/lib/common');
|
||||
const logging = require('../../../../shared/logging');
|
||||
|
||||
// Register an async handlebars helper for a given handlebars instance
|
||||
function asyncHelperWrapper(hbs, name, fn) {
|
||||
|
@ -1,5 +1,6 @@
|
||||
const errors = require('@tryghost/errors');
|
||||
const {i18n, events, logging} = require('../../../server/lib/common');
|
||||
const {i18n, events} = require('../../../server/lib/common');
|
||||
const logging = require('../../../shared/logging');
|
||||
const settingsCache = require('../../../server/services/settings/cache');
|
||||
const config = require('../../../shared/config');
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
const _ = require('lodash');
|
||||
const debug = require('ghost-ignition').debug('themes');
|
||||
const {events, i18n: commonI18n, logging} = require('../../../server/lib/common');
|
||||
const {events, i18n: commonI18n} = require('../../../server/lib/common');
|
||||
const logging = require('../../../shared/logging');
|
||||
const errors = require('@tryghost/errors');
|
||||
const themeLoader = require('./loader');
|
||||
const active = require('./active');
|
||||
|
@ -8,7 +8,8 @@ const themeLoader = require('./loader');
|
||||
const toJSON = require('./to-json');
|
||||
|
||||
const settingsCache = require('../../../server/services/settings/cache');
|
||||
const {i18n, logging} = require('../../../server/lib/common');
|
||||
const {i18n} = require('../../../server/lib/common');
|
||||
const logging = require('../../../shared/logging');
|
||||
const errors = require('@tryghost/errors');
|
||||
const debug = require('ghost-ignition').debug('api:themes');
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
const debug = require('ghost-ignition').debug('services:url:queue');
|
||||
const EventEmitter = require('events').EventEmitter;
|
||||
const _ = require('lodash');
|
||||
const {logging} = require('../../../server/lib/common');
|
||||
const logging = require('../../../shared/logging');
|
||||
const errors = require('@tryghost/errors');
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
const EventEmitter = require('events').EventEmitter;
|
||||
const {logging} = require('../../../server/lib/common');
|
||||
const logging = require('../../../shared/logging');
|
||||
const errors = require('@tryghost/errors');
|
||||
|
||||
/**
|
||||
|
@ -1,7 +1,8 @@
|
||||
const _ = require('lodash');
|
||||
const debug = require('ghost-ignition').debug('services:url:urls');
|
||||
const {events} = require('../../../server/lib/common');
|
||||
const urlUtils = require('../../../shared/url-utils');
|
||||
const {logging, events} = require('../../../server/lib/common');
|
||||
const logging = require('../../../shared/logging');
|
||||
const errors = require('@tryghost/errors');
|
||||
|
||||
/**
|
||||
|
@ -2,7 +2,7 @@ const util = require('util');
|
||||
const moment = require('moment');
|
||||
const debug = require('ghost-ignition').debug('scheduling-default');
|
||||
const SchedulingBase = require('./SchedulingBase');
|
||||
const {logging} = require('../../lib/common');
|
||||
const logging = require('../../../shared/logging');
|
||||
const errors = require('@tryghost/errors');
|
||||
const request = require('../../lib/request');
|
||||
|
||||
|
@ -7,7 +7,8 @@ const path = require('path');
|
||||
const Promise = require('bluebird');
|
||||
const moment = require('moment');
|
||||
const config = require('../../../shared/config');
|
||||
const {logging, i18n} = require('../../lib/common');
|
||||
const {i18n} = require('../../lib/common');
|
||||
const logging = require('../../../shared/logging');
|
||||
const errors = require('@tryghost/errors');
|
||||
const constants = require('../../lib/constants');
|
||||
const urlUtils = require('../../../shared/url-utils');
|
||||
|
@ -1,5 +1,6 @@
|
||||
const Promise = require('bluebird');
|
||||
const {i18n, logging} = require('../../lib/common');
|
||||
const {i18n} = require('../../lib/common');
|
||||
const logging = require('../../../shared/logging');
|
||||
const errors = require('@tryghost/errors');
|
||||
const security = require('../../lib/security');
|
||||
const mailService = require('../../services/mail');
|
||||
|
@ -7,7 +7,8 @@ const config = require('../../../shared/config');
|
||||
const models = require('../../models');
|
||||
const membersService = require('../../services/members');
|
||||
const settingsCache = require('../../services/settings/cache');
|
||||
const {i18n, logging} = require('../../lib/common');
|
||||
const {i18n} = require('../../lib/common');
|
||||
const logging = require('../../../shared/logging');
|
||||
const fsLib = require('../../lib/fs');
|
||||
const db = require('../../data/db');
|
||||
const _ = require('lodash');
|
||||
|
@ -1,5 +1,6 @@
|
||||
const Promise = require('bluebird');
|
||||
const {i18n, logging} = require('../../lib/common');
|
||||
const {i18n} = require('../../lib/common');
|
||||
const logging = require('../../../shared/logging');
|
||||
const errors = require('@tryghost/errors');
|
||||
const security = require('../../lib/security');
|
||||
const mailService = require('../../services/mail');
|
||||
|
@ -5,7 +5,7 @@ const fs = require('fs-extra');
|
||||
const path = require('path');
|
||||
const Promise = require('bluebird');
|
||||
const config = require('../../../shared/config');
|
||||
const {logging} = require('../../lib/common');
|
||||
const logging = require('../../../shared/logging');
|
||||
const urlUtils = require('../../../shared/url-utils');
|
||||
const exporter = require('../exporter');
|
||||
let writeExportFile;
|
||||
|
@ -1,6 +1,6 @@
|
||||
const knex = require('knex');
|
||||
const config = require('../../../shared/config');
|
||||
const {logging} = require('../../lib/common');
|
||||
const logging = require('../../../shared/logging');
|
||||
const errors = require('@tryghost/errors');
|
||||
let knexInstance;
|
||||
|
||||
|
@ -3,7 +3,8 @@ const Promise = require('bluebird');
|
||||
const db = require('../../data/db');
|
||||
const commands = require('../schema').commands;
|
||||
const ghostVersion = require('../../lib/ghost-version');
|
||||
const {logging, i18n} = require('../../lib/common');
|
||||
const {i18n} = require('../../lib/common');
|
||||
const logging = require('../../../shared/logging');
|
||||
const errors = require('@tryghost/errors');
|
||||
const security = require('../../lib/security');
|
||||
const models = require('../../models');
|
||||
|
@ -8,7 +8,8 @@ const uuid = require('uuid');
|
||||
const {extract} = require('@tryghost/zip');
|
||||
const sequence = require('../../lib/promise/sequence');
|
||||
const pipeline = require('../../lib/promise/pipeline');
|
||||
const {logging, i18n} = require('../../lib/common');
|
||||
const {i18n} = require('../../lib/common');
|
||||
const logging = require('../../../shared/logging');
|
||||
const errors = require('@tryghost/errors');
|
||||
const ImageHandler = require('./handlers/image');
|
||||
const JSONHandler = require('./handlers/json');
|
||||
|
@ -1,7 +1,7 @@
|
||||
const Promise = require('bluebird');
|
||||
const commands = require('../../schema').commands;
|
||||
const schema = require('../../schema').tables;
|
||||
const {logging} = require('../../../lib/common');
|
||||
const logging = require('../../../../shared/logging');
|
||||
const schemaTables = Object.keys(schema);
|
||||
|
||||
module.exports.up = function createTables(options) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
const Promise = require('bluebird');
|
||||
const _ = require('lodash');
|
||||
const fixtures = require('../../schema/fixtures');
|
||||
const {logging} = require('../../../lib/common');
|
||||
const logging = require('../../../../shared/logging');
|
||||
|
||||
module.exports.config = {
|
||||
transaction: true
|
||||
|
@ -1,5 +1,5 @@
|
||||
const Promise = require('bluebird');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const commands = require('../../../schema').commands;
|
||||
const table = 'posts';
|
||||
const columns = ['custom_template'];
|
||||
|
@ -1,7 +1,7 @@
|
||||
const _ = require('lodash');
|
||||
const utils = require('../../../schema/fixtures/utils');
|
||||
const permissions = require('../../../../services/permissions');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const resource = 'theme';
|
||||
const _private = {};
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
const Promise = require('bluebird');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const commands = require('../../../schema').commands;
|
||||
const table = 'webhooks';
|
||||
const message1 = 'Adding table: ' + table;
|
||||
|
@ -1,7 +1,7 @@
|
||||
const _ = require('lodash');
|
||||
const utils = require('../../../schema/fixtures/utils');
|
||||
const permissions = require('../../../../services/permissions');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const resource = 'webhook';
|
||||
const _private = {};
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
const _ = require('lodash');
|
||||
const models = require('../../../../models');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
|
||||
module.exports.config = {
|
||||
transaction: true
|
||||
|
@ -2,7 +2,7 @@ const merge = require('lodash/merge');
|
||||
const utils = require('../../../schema/fixtures/utils');
|
||||
const models = require('../../../../models');
|
||||
const permissions = require('../../../../services/permissions');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const _private = {};
|
||||
|
||||
_private.addRole = function addRole(options) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
const Promise = require('bluebird');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const commands = require('../../../schema').commands;
|
||||
const table = 'posts_authors';
|
||||
const message1 = 'Adding table: ' + table;
|
||||
|
@ -1,7 +1,7 @@
|
||||
const _ = require('lodash');
|
||||
const Promise = require('bluebird');
|
||||
const ObjectId = require('bson-objectid');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const models = require('../../../../models');
|
||||
|
||||
module.exports.config = {
|
||||
|
@ -1,6 +1,6 @@
|
||||
const _ = require('lodash');
|
||||
const Promise = require('bluebird');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const mobiledocLib = require('../../../../lib/mobiledoc');
|
||||
const models = require('../../../../models');
|
||||
const message1 = 'Migrating Koenig beta post\'s mobiledoc/HTML to 2.0 format';
|
||||
|
@ -1,5 +1,5 @@
|
||||
const _ = require('lodash');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const models = require('../../../../models');
|
||||
const fixtures = require('../../../../data/schema/fixtures');
|
||||
const message1 = 'Adding demo post.';
|
||||
|
@ -1,5 +1,5 @@
|
||||
const Promise = require('bluebird');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const commands = require('../../../schema').commands;
|
||||
const table = 'posts';
|
||||
const columns = ['custom_excerpt'];
|
||||
|
@ -1,5 +1,5 @@
|
||||
const Promise = require('bluebird');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const commands = require('../../../schema').commands;
|
||||
const table = 'posts';
|
||||
const columns = ['codeinjection_head', 'codeinjection_foot'];
|
||||
|
@ -1,5 +1,5 @@
|
||||
const Promise = require('bluebird');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const commands = require('../../../schema').commands;
|
||||
const table = 'posts';
|
||||
const columns = ['og_image', 'og_title', 'og_description', 'twitter_image', 'twitter_title', 'twitter_description'];
|
||||
|
@ -1,7 +1,7 @@
|
||||
const _ = require('lodash');
|
||||
const utils = require('../../../schema/fixtures/utils');
|
||||
const permissions = require('../../../../services/permissions');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const resource = 'redirect';
|
||||
const _private = {};
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const table = 'posts';
|
||||
const columnNameOld = 'amp';
|
||||
const columnNameNew = 'comment_id';
|
||||
|
@ -1,6 +1,6 @@
|
||||
const _ = require('lodash');
|
||||
const Promise = require('bluebird');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const mobiledocLib = require('../../../../lib/mobiledoc');
|
||||
const message1 = 'Updating posts: apply new editor format and set comment_id field.';
|
||||
const message2 = 'Updated posts: apply new editor format and set comment_id field.';
|
||||
|
@ -1,6 +1,6 @@
|
||||
const _ = require('lodash');
|
||||
const Promise = require('bluebird');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const models = require('../../../../models');
|
||||
const message1 = 'Removing `koenigEditor` from labs.';
|
||||
const message2 = 'Removed `koenigEditor` from labs.';
|
||||
|
@ -1,7 +1,7 @@
|
||||
const path = require('path');
|
||||
const fs = require('fs-extra');
|
||||
const config = require('../../../../../shared/config');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const models = require('../../../../models');
|
||||
const message1 = 'Removing `globals.permalinks` from routes.yaml.';
|
||||
const message2 = 'Removed `globals.permalinks` from routes.yaml.';
|
||||
|
@ -1,5 +1,5 @@
|
||||
const _ = require('lodash');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const message1 = 'Removing demo post.';
|
||||
const message2 = 'Removed demo post.';
|
||||
const message3 = 'Rollback: Bring back demo post.';
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const commands = require('../../../schema').commands;
|
||||
const table = 'actions';
|
||||
const message1 = `Adding table: ${table}`;
|
||||
|
@ -1,7 +1,7 @@
|
||||
const _ = require('lodash');
|
||||
const utils = require('../../../schema/fixtures/utils');
|
||||
const permissions = require('../../../../services/permissions');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const resource = 'action';
|
||||
const _private = {};
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const commands = require('../../../schema').commands;
|
||||
const table = 'integrations';
|
||||
const newColumnNames = [
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const merge = require('lodash/merge');
|
||||
const models = require('../../../../models');
|
||||
const utils = require('../../../schema/fixtures/utils');
|
||||
|
@ -1,6 +1,6 @@
|
||||
const _ = require('lodash');
|
||||
const Promise = require('bluebird');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
|
||||
module.exports.config = {
|
||||
transaction: true
|
||||
|
@ -1,5 +1,5 @@
|
||||
const Promise = require('bluebird');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const commands = require('../../../schema').commands;
|
||||
const table = 'posts';
|
||||
const columns = ['canonical_url'];
|
||||
|
@ -1,6 +1,6 @@
|
||||
const _ = require('lodash');
|
||||
const Promise = require('bluebird');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const settingsCache = require('../../../../services/settings/cache');
|
||||
const config = require('../../../../../shared/config');
|
||||
const moment = require('moment');
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const commands = require('../../../schema').commands;
|
||||
const table = 'sessions';
|
||||
const message1 = 'Adding table: ' + table;
|
||||
|
@ -1,5 +1,5 @@
|
||||
const commands = require('../../../schema').commands;
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
|
||||
const tables = ['integrations', 'api_keys'];
|
||||
const _private = {};
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const merge = require('lodash/merge');
|
||||
const models = require('../../../../models');
|
||||
const utils = require('../../../schema/fixtures/utils');
|
||||
|
@ -1,7 +1,7 @@
|
||||
const _ = require('lodash');
|
||||
const utils = require('../../../schema/fixtures/utils');
|
||||
const permissions = require('../../../../services/permissions');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
|
||||
const resources = ['integration', 'api_key'];
|
||||
const _private = {};
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const commands = require('../../../schema').commands;
|
||||
const table = 'mobiledoc_revisions';
|
||||
const message1 = 'Adding table: ' + table;
|
||||
|
@ -1,7 +1,7 @@
|
||||
const _ = require('lodash');
|
||||
const utils = require('../../../schema/fixtures/utils');
|
||||
const permissions = require('../../../../services/permissions');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
|
||||
const resources = ['notification'];
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
const _ = require('lodash');
|
||||
const utils = require('../../../schema/fixtures/utils');
|
||||
const permissions = require('../../../../services/permissions');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const resource = 'member';
|
||||
const _private = {};
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const merge = require('lodash/merge');
|
||||
const models = require('../../../../models');
|
||||
const utils = require('../../../schema/fixtures/utils');
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const merge = require('lodash/merge');
|
||||
const models = require('../../../../models');
|
||||
const utils = require('../../../schema/fixtures/utils');
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const config = require('../../../../../shared/config');
|
||||
const {URL} = require('url');
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const models = require('../../../../models');
|
||||
const utils = require('../../../schema/fixtures/utils');
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const utils = require('../../../schema/fixtures/utils');
|
||||
|
||||
const relationFixtures = {
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const merge = require('lodash/merge');
|
||||
const models = require('../../../../models');
|
||||
const utils = require('../../../schema/fixtures/utils');
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const merge = require('lodash/merge');
|
||||
const models = require('../../../../models');
|
||||
const utils = require('../../../schema/fixtures/utils');
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const utils = require('../../../schema/fixtures/utils');
|
||||
|
||||
const relationFixtures = {
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const commands = require('../../../schema').commands;
|
||||
|
||||
const createLog = type => msg => logging[type](msg);
|
||||
|
@ -1,5 +1,5 @@
|
||||
const toPairs = require('lodash/toPairs');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
|
||||
/*
|
||||
* @param from: object with a SINGLE entry { 'fromColumn': 'fromValue' }
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const commands = require('../../../schema').commands;
|
||||
|
||||
const createLog = type => msg => logging[type](msg);
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const commands = require('../../../schema').commands;
|
||||
const table = 'webhooks';
|
||||
const newColumnNames = [
|
||||
|
@ -1,7 +1,7 @@
|
||||
const _ = require('lodash');
|
||||
const utils = require('../../../schema/fixtures/utils');
|
||||
const permissions = require('../../../../services/permissions');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
|
||||
const resources = ['webhook'];
|
||||
const _private = {};
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const commands = require('../../../schema/commands');
|
||||
|
||||
module.exports = {
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const commands = require('../../../schema/commands');
|
||||
|
||||
module.exports = {
|
||||
|
@ -1,6 +1,6 @@
|
||||
const _ = require('lodash');
|
||||
const Promise = require('bluebird');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
|
||||
module.exports.config = {
|
||||
transaction: true
|
||||
|
@ -1,7 +1,7 @@
|
||||
const _ = require('lodash');
|
||||
const utils = require('../../../schema/fixtures/utils');
|
||||
const permissions = require('../../../../services/permissions');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
|
||||
const resources = ['webhook'];
|
||||
const _private = {};
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const commands = require('../../../schema').commands;
|
||||
const table = 'members';
|
||||
const message1 = 'Adding table: ' + table;
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const commands = require('../../../schema').commands;
|
||||
|
||||
const createLog = type => msg => logging[type](msg);
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const commands = require('../../../schema').commands;
|
||||
|
||||
const tables = [
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const commands = require('../../../schema').commands;
|
||||
|
||||
const tables = [
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const commands = require('../../../schema').commands;
|
||||
const table = 'posts_meta';
|
||||
const message1 = `Adding table: ${table}`;
|
||||
|
@ -2,7 +2,7 @@ const postsMetaSchema = require('../../../schema').tables.posts_meta;
|
||||
const ObjectId = require('bson-objectid');
|
||||
const _ = require('lodash');
|
||||
const models = require('../../../../models');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
|
||||
module.exports.config = {
|
||||
transaction: true
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const commands = require('../../../schema').commands;
|
||||
|
||||
const createLog = type => msg => logging[type](msg);
|
||||
|
@ -1,6 +1,6 @@
|
||||
const Promise = require('bluebird');
|
||||
const toPairs = require('lodash/toPairs');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
|
||||
/*
|
||||
* @param from: object with a SINGLE entry { 'fromColumn': 'fromValue' }
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const commands = require('../../../schema').commands;
|
||||
|
||||
const createLog = type => msg => logging[type](msg);
|
||||
|
@ -1,5 +1,5 @@
|
||||
const Promise = require('bluebird');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const schema = require('../../../schema');
|
||||
|
||||
/*
|
||||
|
@ -1,7 +1,7 @@
|
||||
const _ = require('lodash');
|
||||
const Promise = require('bluebird');
|
||||
const htmlToText = require('html-to-text');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const mobiledocLib = require('../../../../lib/mobiledoc');
|
||||
|
||||
module.exports.config = {
|
||||
|
@ -1,6 +1,6 @@
|
||||
const ObjectId = require('bson-objectid');
|
||||
const _ = require('lodash');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
|
||||
module.exports.config = {
|
||||
transaction: true,
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const commands = require('../../../schema').commands;
|
||||
|
||||
const tables = [
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
|
||||
module.exports = {
|
||||
async up({connection}) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
const _ = require('lodash');
|
||||
const utils = require('../../../schema/fixtures/utils');
|
||||
const permissions = require('../../../../services/permissions');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
|
||||
const resources = ['email_preview'];
|
||||
const _private = {};
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const commands = require('../../../schema').commands;
|
||||
|
||||
const createLog = type => msg => logging[type](msg);
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const commands = require('../../../schema').commands;
|
||||
const table = 'emails';
|
||||
const message1 = 'Adding table: ' + table;
|
||||
|
@ -1,7 +1,7 @@
|
||||
const _ = require('lodash');
|
||||
const utils = require('../../../schema/fixtures/utils');
|
||||
const permissions = require('../../../../services/permissions');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
|
||||
const resources = ['email'];
|
||||
const _private = {};
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const commands = require('../../../schema').commands;
|
||||
|
||||
const createLog = type => msg => logging[type](msg);
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const uuid = require('uuid');
|
||||
|
||||
module.exports = {
|
||||
|
@ -1,7 +1,7 @@
|
||||
const _ = require('lodash');
|
||||
const utils = require('../../../schema/fixtures/utils');
|
||||
const permissions = require('../../../../services/permissions');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
|
||||
const resources = ['email'];
|
||||
const _private = {};
|
||||
|
@ -1,6 +1,6 @@
|
||||
const _ = require('lodash');
|
||||
const Promise = require('bluebird');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const debug = require('ghost-ignition').debug('migrations');
|
||||
|
||||
module.exports.config = {
|
||||
|
@ -1,5 +1,5 @@
|
||||
const ObjectId = require('bson-objectid');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
|
||||
module.exports.config = {
|
||||
transaction: true
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const debug = require('ghost-ignition').debug('migrations');
|
||||
|
||||
module.exports.config = {
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const commands = require('../../../schema').commands;
|
||||
const table = 'labels';
|
||||
const message1 = 'Adding table: ' + table;
|
||||
|
@ -1,4 +1,4 @@
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
const commands = require('../../../schema').commands;
|
||||
const table = 'members_labels';
|
||||
const message1 = 'Adding table: ' + table;
|
||||
|
@ -1,7 +1,7 @@
|
||||
const _ = require('lodash');
|
||||
const utils = require('../../../schema/fixtures/utils');
|
||||
const permissions = require('../../../../services/permissions');
|
||||
const {logging} = require('../../../../lib/common');
|
||||
const logging = require('../../../../../shared/logging');
|
||||
|
||||
const resources = ['label'];
|
||||
const _private = {};
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user