Switch to @tryghost/debug, remove ghost-ignition

no issue
The only pieces of Ghost-Ignition used in Ghost were debug and
logging. Both of these modules have been superceded by the Framework
monorepo, and all usages of Ignition have now been removed, replaced
with @tryghost/debug and @tryghost/logging.
This commit is contained in:
Sam Lord 2021-06-15 17:01:22 +01:00
parent f8524cb0a9
commit 35e51e364b
198 changed files with 205 additions and 227 deletions

View File

@ -7,7 +7,7 @@
// IMPORTANT: The only global requires here should be overrides + debug so we can monitor timings with DEBUG=ghost:boot* node ghost // IMPORTANT: The only global requires here should be overrides + debug so we can monitor timings with DEBUG=ghost:boot* node ghost
require('./server/overrides'); require('./server/overrides');
const debug = require('ghost-ignition').debug('boot'); const debug = require('@tryghost/debug')('boot');
// END OF GLOBAL REQUIRES // END OF GLOBAL REQUIRES
/** /**

View File

@ -4,7 +4,7 @@
// Outputs scripts and other assets at the top of a Ghost theme // Outputs scripts and other assets at the top of a Ghost theme
const {metaData, escapeExpression, SafeString, logging, settingsCache, config, blogIcon, urlUtils} = require('../services/proxy'); const {metaData, escapeExpression, SafeString, logging, settingsCache, config, blogIcon, urlUtils} = require('../services/proxy');
const _ = require('lodash'); const _ = require('lodash');
const debug = require('ghost-ignition').debug('ghost_head'); const debug = require('@tryghost/debug')('ghost_head');
const templateStyles = require('./tpl/styles'); const templateStyles = require('./tpl/styles');
const getMetaData = metaData.get; const getMetaData = metaData.get;

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('services:apps'); const debug = require('@tryghost/debug')('services:apps');
const Promise = require('bluebird'); const Promise = require('bluebird');
const i18n = require('../../../shared/i18n'); const i18n = require('../../../shared/i18n');
const logging = require('@tryghost/logging'); const logging = require('@tryghost/logging');

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('services:routing:collection-router'); const debug = require('@tryghost/debug')('services:routing:collection-router');
const events = require('../../../server/lib/common/events'); const events = require('../../../server/lib/common/events');
const urlUtils = require('../../../shared/url-utils'); const urlUtils = require('../../../shared/url-utils');
const ParentRouter = require('./ParentRouter'); const ParentRouter = require('./ParentRouter');

View File

@ -7,7 +7,7 @@
* Only allows for .use and .get at the moment - we don't have clear use-cases for anything else yet. * Only allows for .use and .get at the moment - we don't have clear use-cases for anything else yet.
*/ */
const debug = require('ghost-ignition').debug('services:routing:ParentRouter'); const debug = require('@tryghost/debug')('services:routing:ParentRouter');
const EventEmitter = require('events').EventEmitter; const EventEmitter = require('events').EventEmitter;
const express = require('../../../shared/express'); const express = require('../../../shared/express');

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('services:routing:static-pages-router'); const debug = require('@tryghost/debug')('services:routing:static-pages-router');
const urlUtils = require('../../../shared/url-utils'); const urlUtils = require('../../../shared/url-utils');
const ParentRouter = require('./ParentRouter'); const ParentRouter = require('./ParentRouter');
const controllers = require('./controllers'); const controllers = require('./controllers');

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('services:routing:static-routes-router'); const debug = require('@tryghost/debug')('services:routing:static-routes-router');
const events = require('../../../server/lib/common/events'); const events = require('../../../server/lib/common/events');
const errors = require('@tryghost/errors'); const errors = require('@tryghost/errors');
const urlUtils = require('../../../shared/url-utils'); const urlUtils = require('../../../shared/url-utils');

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('services:routing:taxonomy-router'); const debug = require('@tryghost/debug')('services:routing:taxonomy-router');
const config = require('../../../shared/config'); const config = require('../../../shared/config');
const events = require('../../../server/lib/common/events'); const events = require('../../../server/lib/common/events');
const ParentRouter = require('./ParentRouter'); const ParentRouter = require('./ParentRouter');

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('services:routing:bootstrap'); const debug = require('@tryghost/debug')('services:routing:bootstrap');
const _ = require('lodash'); const _ = require('lodash');
const events = require('../../../server/lib/common/events'); const events = require('../../../server/lib/common/events');
const settingsService = require('../settings'); const settingsService = require('../settings');

View File

@ -1,5 +1,5 @@
const _ = require('lodash'); const _ = require('lodash');
const debug = require('ghost-ignition').debug('services:routing:controllers:channel'); const debug = require('@tryghost/debug')('services:routing:controllers:channel');
const i18n = require('../../../../shared/i18n'); const i18n = require('../../../../shared/i18n');
const errors = require('@tryghost/errors'); const errors = require('@tryghost/errors');
const security = require('@tryghost/security'); const security = require('@tryghost/security');

View File

@ -1,5 +1,5 @@
const _ = require('lodash'); const _ = require('lodash');
const debug = require('ghost-ignition').debug('services:routing:controllers:collection'); const debug = require('@tryghost/debug')('services:routing:controllers:collection');
const {i18n} = require('../../proxy'); const {i18n} = require('../../proxy');
const errors = require('@tryghost/errors'); const errors = require('@tryghost/errors');
const security = require('@tryghost/security'); const security = require('@tryghost/security');

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('services:routing:controllers:entry'); const debug = require('@tryghost/debug')('services:routing:controllers:entry');
const url = require('url'); const url = require('url');
const config = require('../../../../shared/config'); const config = require('../../../../shared/config');
const urlService = require('../../../services/url'); const urlService = require('../../../services/url');

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('services:routing:controllers:preview'); const debug = require('@tryghost/debug')('services:routing:controllers:preview');
const config = require('../../../../shared/config'); const config = require('../../../../shared/config');
const urlService = require('../../url'); const urlService = require('../../url');
const urlUtils = require('../../../../shared/url-utils'); const urlUtils = require('../../../../shared/url-utils');

View File

@ -1,5 +1,5 @@
const _ = require('lodash'); const _ = require('lodash');
const debug = require('ghost-ignition').debug('services:routing:controllers:rss'); const debug = require('@tryghost/debug')('services:routing:controllers:rss');
const url = require('url'); const url = require('url');
const security = require('@tryghost/security'); const security = require('@tryghost/security');
const settingsCache = require('../../../../server/services/settings/cache'); const settingsCache = require('../../../../server/services/settings/cache');

View File

@ -1,6 +1,6 @@
const _ = require('lodash'); const _ = require('lodash');
const Promise = require('bluebird'); const Promise = require('bluebird');
const debug = require('ghost-ignition').debug('services:routing:controllers:static'); const debug = require('@tryghost/debug')('services:routing:controllers:static');
const helpers = require('../helpers'); const helpers = require('../helpers');
function processQuery(query, locals) { function processQuery(query, locals) {

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('services:routing:controllers:unsubscribe'); const debug = require('@tryghost/debug')('services:routing:controllers:unsubscribe');
const path = require('path'); const path = require('path');
const megaService = require('../../../../server/services/mega'); const megaService = require('../../../../server/services/mega');
const helpers = require('../../../services/routing/helpers'); const helpers = require('../../../services/routing/helpers');

View File

@ -1,7 +1,7 @@
const _ = require('lodash'); const _ = require('lodash');
const Promise = require('bluebird'); const Promise = require('bluebird');
const url = require('url'); const url = require('url');
const debug = require('ghost-ignition').debug('services:routing:helpers:entry-lookup'); const debug = require('@tryghost/debug')('services:routing:helpers:entry-lookup');
const routeMatch = require('path-match')(); const routeMatch = require('path-match')();
/** /**

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('services:routing:helpers:render-entries'); const debug = require('@tryghost/debug')('services:routing:helpers:render-entries');
const formatResponse = require('./format-response'); const formatResponse = require('./format-response');
const renderer = require('./renderer'); const renderer = require('./renderer');

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('services:routing:helpers:render-post'); const debug = require('@tryghost/debug')('services:routing:helpers:render-post');
const formatResponse = require('./format-response'); const formatResponse = require('./format-response');
const renderer = require('./renderer'); const renderer = require('./renderer');
/** /**

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('services:routing:helpers:renderer'); const debug = require('@tryghost/debug')('services:routing:helpers:renderer');
const setContext = require('./context'); const setContext = require('./context');
const templates = require('./templates'); const templates = require('./templates');

View File

@ -1,7 +1,7 @@
const fs = require('fs-extra'); const fs = require('fs-extra');
const Promise = require('bluebird'); const Promise = require('bluebird');
const path = require('path'); const path = require('path');
const debug = require('ghost-ignition').debug('frontend:services:settings:ensure-settings'); const debug = require('@tryghost/debug')('frontend:services:settings:ensure-settings');
const {i18n} = require('../proxy'); const {i18n} = require('../proxy');
const errors = require('@tryghost/errors'); const errors = require('@tryghost/errors');
const config = require('../../../shared/config'); const config = require('../../../shared/config');

View File

@ -1,6 +1,6 @@
const _ = require('lodash'); const _ = require('lodash');
const crypto = require('crypto'); const crypto = require('crypto');
const debug = require('ghost-ignition').debug('frontend:services:settings:index'); const debug = require('@tryghost/debug')('frontend:services:settings:index');
const SettingsLoader = require('./loader'); const SettingsLoader = require('./loader');
const ensureSettingsFiles = require('./ensure-settings'); const ensureSettingsFiles = require('./ensure-settings');

View File

@ -1,6 +1,6 @@
const fs = require('fs-extra'); const fs = require('fs-extra');
const path = require('path'); const path = require('path');
const debug = require('ghost-ignition').debug('frontend:services:settings:settings-loader'); const debug = require('@tryghost/debug')('frontend:services:settings:settings-loader');
const {i18n} = require('../proxy'); const {i18n} = require('../proxy');
const errors = require('@tryghost/errors'); const errors = require('@tryghost/errors');
const config = require('../../../shared/config'); const config = require('../../../shared/config');

View File

@ -1,5 +1,5 @@
const _ = require('lodash'); const _ = require('lodash');
const debug = require('ghost-ignition').debug('frontend:services:settings:validate'); const debug = require('@tryghost/debug')('frontend:services:settings:validate');
const {i18n} = require('../proxy'); const {i18n} = require('../proxy');
const errors = require('@tryghost/errors'); const errors = require('@tryghost/errors');
const bridge = require('../../../bridge'); const bridge = require('../../../bridge');

View File

@ -1,5 +1,5 @@
const yaml = require('js-yaml'); const yaml = require('js-yaml');
const debug = require('ghost-ignition').debug('frontend:services:settings:yaml-parser'); const debug = require('@tryghost/debug')('frontend:services:settings:yaml-parser');
const {i18n} = require('../proxy'); const {i18n} = require('../proxy');
const errors = require('@tryghost/errors'); const errors = require('@tryghost/errors');

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('services:url:queue'); const debug = require('@tryghost/debug')('services:url:queue');
const EventEmitter = require('events').EventEmitter; const EventEmitter = require('events').EventEmitter;
const _ = require('lodash'); const _ = require('lodash');
const logging = require('@tryghost/logging'); const logging = require('@tryghost/logging');

View File

@ -1,6 +1,6 @@
const _ = require('lodash'); const _ = require('lodash');
const Promise = require('bluebird'); const Promise = require('bluebird');
const debug = require('ghost-ignition').debug('services:url:resources'); const debug = require('@tryghost/debug')('services:url:resources');
const Resource = require('./Resource'); const Resource = require('./Resource');
const config = require('../../../shared/config'); const config = require('../../../shared/config');
const models = require('../../../server/models'); const models = require('../../../server/models');

View File

@ -1,6 +1,6 @@
const _ = require('lodash'); const _ = require('lodash');
const nql = require('@nexes/nql'); const nql = require('@nexes/nql');
const debug = require('ghost-ignition').debug('services:url:generator'); const debug = require('@tryghost/debug')('services:url:generator');
const localUtils = require('../../../shared/url-utils'); const localUtils = require('../../../shared/url-utils');
// @TODO: merge with filter plugin // @TODO: merge with filter plugin

View File

@ -1,4 +1,4 @@
const _debug = require('ghost-ignition').debug._base; const _debug = require('@tryghost/debug')._base;
const debug = _debug('ghost:services:url:service'); const debug = _debug('ghost:services:url:service');
const _ = require('lodash'); const _ = require('lodash');
const events = require('../../../server/lib/common/events'); const events = require('../../../server/lib/common/events');

View File

@ -1,5 +1,5 @@
const _ = require('lodash'); const _ = require('lodash');
const debug = require('ghost-ignition').debug('services:url:urls'); const debug = require('@tryghost/debug')('services:url:urls');
const events = require('../../../server/lib/common/events'); const events = require('../../../server/lib/common/events');
const urlUtils = require('../../../shared/url-utils'); const urlUtils = require('../../../shared/url-utils');
const logging = require('@tryghost/logging'); const logging = require('@tryghost/logging');

View File

@ -1,6 +1,6 @@
const util = require('util'); const util = require('util');
const moment = require('moment'); const moment = require('moment');
const debug = require('ghost-ignition').debug('scheduling-default'); const debug = require('@tryghost/debug')('scheduling-default');
const SchedulingBase = require('./SchedulingBase'); const SchedulingBase = require('./SchedulingBase');
const logging = require('@tryghost/logging'); const logging = require('@tryghost/logging');
const errors = require('@tryghost/errors'); const errors = require('@tryghost/errors');

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:canary:utils:permissions'); const debug = require('@tryghost/debug')('api:canary:utils:permissions');
const Promise = require('bluebird'); const Promise = require('bluebird');
const _ = require('lodash'); const _ = require('lodash');
const permissions = require('../../../services/permissions'); const permissions = require('../../../services/permissions');

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:input:authors'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:input:authors');
const slugFilterOrder = require('./utils/slug-filter-order'); const slugFilterOrder = require('./utils/slug-filter-order');
const utils = require('../../index'); const utils = require('../../index');

View File

@ -1,5 +1,5 @@
const _ = require('lodash'); const _ = require('lodash');
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:input:db'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:input:db');
const optionsUtil = require('../../../../shared/utils/options'); const optionsUtil = require('../../../../shared/utils/options');
const INTERNAL_OPTIONS = ['transacting', 'forUpdate']; const INTERNAL_OPTIONS = ['transacting', 'forUpdate'];

View File

@ -1,5 +1,5 @@
const _ = require('lodash'); const _ = require('lodash');
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:input:integrations'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:input:integrations');
function setDefaultFilter(frame) { function setDefaultFilter(frame) {
if (frame.options.filter) { if (frame.options.filter) {

View File

@ -1,5 +1,5 @@
const _ = require('lodash'); const _ = require('lodash');
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:input:members'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:input:members');
function defaultRelations(frame) { function defaultRelations(frame) {
if (frame.options.withRelated) { if (frame.options.withRelated) {

View File

@ -1,5 +1,5 @@
const _ = require('lodash'); const _ = require('lodash');
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:input:pages'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:input:pages');
const mapNQLKeyValues = require('@nexes/nql').utils.mapKeyValues; const mapNQLKeyValues = require('@nexes/nql').utils.mapKeyValues;
const mobiledoc = require('../../../../../lib/mobiledoc'); const mobiledoc = require('../../../../../lib/mobiledoc');
const url = require('./utils/url'); const url = require('./utils/url');

View File

@ -1,5 +1,5 @@
const _ = require('lodash'); const _ = require('lodash');
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:input:posts'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:input:posts');
const mapNQLKeyValues = require('@nexes/nql').utils.mapKeyValues; const mapNQLKeyValues = require('@nexes/nql').utils.mapKeyValues;
const url = require('./utils/url'); const url = require('./utils/url');
const slugFilterOrder = require('./utils/slug-filter-order'); const slugFilterOrder = require('./utils/slug-filter-order');

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:input:tags'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:input:tags');
const url = require('./utils/url'); const url = require('./utils/url');
const slugFilterOrder = require('./utils/slug-filter-order'); const slugFilterOrder = require('./utils/slug-filter-order');
const utils = require('../../index'); const utils = require('../../index');

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:input:users'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:input:users');
const url = require('./utils/url'); const url = require('./utils/url');
module.exports = { module.exports = {

View File

@ -1,5 +1,5 @@
const _ = require('lodash'); const _ = require('lodash');
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:input:webhooks'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:input:webhooks');
module.exports = { module.exports = {
add(apiConfig, frame) { add(apiConfig, frame) {

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:output:actions'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:output:actions');
const mapper = require('./utils/mapper'); const mapper = require('./utils/mapper');
module.exports = { module.exports = {

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:output:all'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:output:all');
const _ = require('lodash'); const _ = require('lodash');
const removeXBY = (object) => { const removeXBY = (object) => {

View File

@ -1,6 +1,6 @@
const i18n = require('../../../../../../shared/i18n'); const i18n = require('../../../../../../shared/i18n');
const mapper = require('./utils/mapper'); const mapper = require('./utils/mapper');
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:output:authentication'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:output:authentication');
module.exports = { module.exports = {
setup(user, apiConfig, frame) { setup(user, apiConfig, frame) {

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:output:authors'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:output:authors');
const mapper = require('./utils/mapper'); const mapper = require('./utils/mapper');
module.exports = { module.exports = {

View File

@ -1,5 +1,5 @@
const _ = require('lodash'); const _ = require('lodash');
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:output:config'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:output:config');
module.exports = { module.exports = {
all(data, apiConfig, frame) { all(data, apiConfig, frame) {

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:output:db'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:output:db');
module.exports = { module.exports = {
backupContent(filename, apiConfig, frame) { backupContent(filename, apiConfig, frame) {

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:output:images'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:output:images');
const mapper = require('./utils/mapper'); const mapper = require('./utils/mapper');
module.exports = { module.exports = {

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:output:integrations'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:output:integrations');
const mapper = require('./utils/mapper'); const mapper = require('./utils/mapper');
module.exports = { module.exports = {

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:output:invites'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:output:invites');
module.exports = { module.exports = {
all(models, apiConfig, frame) { all(models, apiConfig, frame) {

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:output:labels'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:output:labels');
const mapper = require('./utils/mapper'); const mapper = require('./utils/mapper');
module.exports = { module.exports = {

View File

@ -1,5 +1,5 @@
const _ = require('lodash'); const _ = require('lodash');
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:output:mail'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:output:mail');
module.exports = { module.exports = {
all(response, apiConfig, frame) { all(response, apiConfig, frame) {

View File

@ -1,5 +1,5 @@
//@ts-check //@ts-check
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:output:members'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:output:members');
const {unparse} = require('@tryghost/members-csv'); const {unparse} = require('@tryghost/members-csv');
module.exports = { module.exports = {

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:output:notifications'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:output:notifications');
module.exports = { module.exports = {
all(response, apiConfig, frame) { all(response, apiConfig, frame) {

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:output:oembed'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:output:oembed');
module.exports = { module.exports = {
all(res, apiConfig, frame) { all(res, apiConfig, frame) {

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:output:pages'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:output:pages');
const mapper = require('./utils/mapper'); const mapper = require('./utils/mapper');
module.exports = { module.exports = {

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:output:posts'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:output:posts');
const mapper = require('./utils/mapper'); const mapper = require('./utils/mapper');
module.exports = { module.exports = {

View File

@ -1,5 +1,5 @@
//@ts-check //@ts-check
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:output:products'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:output:products');
const _ = require('lodash'); const _ = require('lodash');
const allowedIncludes = ['stripe_prices', 'monthly_price', 'yearly_price']; const allowedIncludes = ['stripe_prices', 'monthly_price', 'yearly_price'];

View File

@ -1,5 +1,5 @@
const Promise = require('bluebird'); const Promise = require('bluebird');
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:output:roles'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:output:roles');
const canThis = require('../../../../../services/permissions').canThis; const canThis = require('../../../../../services/permissions').canThis;
module.exports = { module.exports = {

View File

@ -1,5 +1,5 @@
const _ = require('lodash'); const _ = require('lodash');
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:output:site'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:output:site');
module.exports = { module.exports = {
read(data, apiConfig, frame) { read(data, apiConfig, frame) {

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:output:slugs'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:output:slugs');
module.exports = { module.exports = {
all(slug, apiConfig, frame) { all(slug, apiConfig, frame) {

View File

@ -1,5 +1,5 @@
//@ts-check //@ts-check
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:output:snippets'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:output:snippets');
module.exports = { module.exports = {
browse: createSerializer('browse', paginatedSnippets), browse: createSerializer('browse', paginatedSnippets),

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:output:tags'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:output:tags');
const mapper = require('./utils/mapper'); const mapper = require('./utils/mapper');
module.exports = { module.exports = {

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:output:themes'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:output:themes');
module.exports = { module.exports = {
browse(themes, apiConfig, frame) { browse(themes, apiConfig, frame) {

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:output:users'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:output:users');
const i18n = require('../../../../../../shared/i18n'); const i18n = require('../../../../../../shared/i18n');
const mapper = require('./utils/mapper'); const mapper = require('./utils/mapper');

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:output:webhooks'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:output:webhooks');
module.exports = { module.exports = {
all(models, apiConfig, frame) { all(models, apiConfig, frame) {

View File

@ -1,6 +1,6 @@
const Promise = require('bluebird'); const Promise = require('bluebird');
const validator = require('validator'); const validator = require('validator');
const debug = require('ghost-ignition').debug('api:canary:utils:validators:input:invitation'); const debug = require('@tryghost/debug')('api:canary:utils:validators:input:invitation');
const i18n = require('../../../../../../shared/i18n'); const i18n = require('../../../../../../shared/i18n');
const errors = require('@tryghost/errors'); const errors = require('@tryghost/errors');

View File

@ -1,6 +1,6 @@
const Promise = require('bluebird'); const Promise = require('bluebird');
const validator = require('validator'); const validator = require('validator');
const debug = require('ghost-ignition').debug('api:canary:utils:validators:input:passwordreset'); const debug = require('@tryghost/debug')('api:canary:utils:validators:input:passwordreset');
const i18n = require('../../../../../../shared/i18n'); const i18n = require('../../../../../../shared/i18n');
const errors = require('@tryghost/errors'); const errors = require('@tryghost/errors');

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:canary:utils:validators:input:updateSetup'); const debug = require('@tryghost/debug')('api:canary:utils:validators:input:updateSetup');
const i18n = require('../../../../../../shared/i18n'); const i18n = require('../../../../../../shared/i18n');
const errors = require('@tryghost/errors'); const errors = require('@tryghost/errors');

View File

@ -1,5 +1,5 @@
const Promise = require('bluebird'); const Promise = require('bluebird');
const debug = require('ghost-ignition').debug('api:canary:utils:validators:input:users'); const debug = require('@tryghost/debug')('api:canary:utils:validators:input:users');
const i18n = require('../../../../../../shared/i18n'); const i18n = require('../../../../../../shared/i18n');
const errors = require('@tryghost/errors'); const errors = require('@tryghost/errors');

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:shared:frame'); const debug = require('@tryghost/debug')('api:shared:frame');
const _ = require('lodash'); const _ = require('lodash');
/** /**

View File

@ -1,5 +1,5 @@
const url = require('url'); const url = require('url');
const debug = require('ghost-ignition').debug('api:shared:headers'); const debug = require('@tryghost/debug')('api:shared:headers');
const Promise = require('bluebird'); const Promise = require('bluebird');
const INVALIDATE_ALL = '/*'; const INVALIDATE_ALL = '/*';

View File

@ -1,5 +1,5 @@
const url = require('url'); const url = require('url');
const debug = require('ghost-ignition').debug('api:shared:http'); const debug = require('@tryghost/debug')('api:shared:http');
const shared = require('../shared'); const shared = require('../shared');
const models = require('../../models'); const models = require('../../models');

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:shared:pipeline'); const debug = require('@tryghost/debug')('api:shared:pipeline');
const Promise = require('bluebird'); const Promise = require('bluebird');
const _ = require('lodash'); const _ = require('lodash');
const shared = require('../shared'); const shared = require('../shared');

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:shared:serializers:handle'); const debug = require('@tryghost/debug')('api:shared:serializers:handle');
const Promise = require('bluebird'); const Promise = require('bluebird');
const {sequence} = require('@tryghost/promise'); const {sequence} = require('@tryghost/promise');
const errors = require('@tryghost/errors'); const errors = require('@tryghost/errors');

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:shared:serializers:input:all'); const debug = require('@tryghost/debug')('api:shared:serializers:input:all');
const _ = require('lodash'); const _ = require('lodash');
const utils = require('../../utils'); const utils = require('../../utils');

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:shared:validators:handle'); const debug = require('@tryghost/debug')('api:shared:validators:handle');
const Promise = require('bluebird'); const Promise = require('bluebird');
const errors = require('@tryghost/errors'); const errors = require('@tryghost/errors');
const {sequence} = require('@tryghost/promise'); const {sequence} = require('@tryghost/promise');

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:shared:validators:input:all'); const debug = require('@tryghost/debug')('api:shared:validators:input:all');
const _ = require('lodash'); const _ = require('lodash');
const Promise = require('bluebird'); const Promise = require('bluebird');
const i18n = require('../../../../../shared/i18n'); const i18n = require('../../../../../shared/i18n');

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:v2:utils:permissions'); const debug = require('@tryghost/debug')('api:v2:utils:permissions');
const Promise = require('bluebird'); const Promise = require('bluebird');
const _ = require('lodash'); const _ = require('lodash');
const permissions = require('../../../services/permissions'); const permissions = require('../../../services/permissions');

View File

@ -1,5 +1,5 @@
const _ = require('lodash'); const _ = require('lodash');
const debug = require('ghost-ignition').debug('api:v2:utils:serializers:input:db'); const debug = require('@tryghost/debug')('api:v2:utils:serializers:input:db');
const optionsUtil = require('../../../../shared/utils/options'); const optionsUtil = require('../../../../shared/utils/options');
const INTERNAL_OPTIONS = ['transacting', 'forUpdate']; const INTERNAL_OPTIONS = ['transacting', 'forUpdate'];

View File

@ -1,5 +1,5 @@
const _ = require('lodash'); const _ = require('lodash');
const debug = require('ghost-ignition').debug('api:v2:utils:serializers:input:integrations'); const debug = require('@tryghost/debug')('api:v2:utils:serializers:input:integrations');
function setDefaultFilter(frame) { function setDefaultFilter(frame) {
if (frame.options.filter) { if (frame.options.filter) {

View File

@ -1,6 +1,6 @@
const _ = require('lodash'); const _ = require('lodash');
const mapNQLKeyValues = require('@nexes/nql').utils.mapKeyValues; const mapNQLKeyValues = require('@nexes/nql').utils.mapKeyValues;
const debug = require('ghost-ignition').debug('api:v2:utils:serializers:input:pages'); const debug = require('@tryghost/debug')('api:v2:utils:serializers:input:pages');
const mobiledoc = require('../../../../../lib/mobiledoc'); const mobiledoc = require('../../../../../lib/mobiledoc');
const url = require('./utils/url'); const url = require('./utils/url');
const localUtils = require('../../index'); const localUtils = require('../../index');

View File

@ -1,6 +1,6 @@
const _ = require('lodash'); const _ = require('lodash');
const mapNQLKeyValues = require('@nexes/nql').utils.mapKeyValues; const mapNQLKeyValues = require('@nexes/nql').utils.mapKeyValues;
const debug = require('ghost-ignition').debug('api:v2:utils:serializers:input:posts'); const debug = require('@tryghost/debug')('api:v2:utils:serializers:input:posts');
const url = require('./utils/url'); const url = require('./utils/url');
const localUtils = require('../../index'); const localUtils = require('../../index');
const mobiledoc = require('../../../../../lib/mobiledoc'); const mobiledoc = require('../../../../../lib/mobiledoc');

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:v2:utils:serializers:input:tags'); const debug = require('@tryghost/debug')('api:v2:utils:serializers:input:tags');
const url = require('./utils/url'); const url = require('./utils/url');
const utils = require('../../index'); const utils = require('../../index');

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:v2:utils:serializers:input:users'); const debug = require('@tryghost/debug')('api:v2:utils:serializers:input:users');
const url = require('./utils/url'); const url = require('./utils/url');
module.exports = { module.exports = {

View File

@ -1,5 +1,5 @@
const _ = require('lodash'); const _ = require('lodash');
const debug = require('ghost-ignition').debug('api:canary:utils:serializers:input:webhooks'); const debug = require('@tryghost/debug')('api:canary:utils:serializers:input:webhooks');
module.exports = { module.exports = {
add(apiConfig, frame) { add(apiConfig, frame) {

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:v2:utils:serializers:output:actions'); const debug = require('@tryghost/debug')('api:v2:utils:serializers:output:actions');
const mapper = require('./utils/mapper'); const mapper = require('./utils/mapper');
module.exports = { module.exports = {

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:v2:utils:serializers:output:all'); const debug = require('@tryghost/debug')('api:v2:utils:serializers:output:all');
const _ = require('lodash'); const _ = require('lodash');
const removeXBY = (object) => { const removeXBY = (object) => {

View File

@ -1,6 +1,6 @@
const i18n = require('../../../../../../shared/i18n'); const i18n = require('../../../../../../shared/i18n');
const mapper = require('./utils/mapper'); const mapper = require('./utils/mapper');
const debug = require('ghost-ignition').debug('api:v2:utils:serializers:output:authentication'); const debug = require('@tryghost/debug')('api:v2:utils:serializers:output:authentication');
module.exports = { module.exports = {
setup(user, apiConfig, frame) { setup(user, apiConfig, frame) {

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:v2:utils:serializers:output:authors'); const debug = require('@tryghost/debug')('api:v2:utils:serializers:output:authors');
const mapper = require('./utils/mapper'); const mapper = require('./utils/mapper');
module.exports = { module.exports = {

View File

@ -1,5 +1,5 @@
const _ = require('lodash'); const _ = require('lodash');
const debug = require('ghost-ignition').debug('api:v2:utils:serializers:output:config'); const debug = require('@tryghost/debug')('api:v2:utils:serializers:output:config');
module.exports = { module.exports = {
all(data, apiConfig, frame) { all(data, apiConfig, frame) {

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:v2:utils:serializers:output:db'); const debug = require('@tryghost/debug')('api:v2:utils:serializers:output:db');
module.exports = { module.exports = {
backupContent(filename, apiConfig, frame) { backupContent(filename, apiConfig, frame) {

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:v2:utils:serializers:output:images'); const debug = require('@tryghost/debug')('api:v2:utils:serializers:output:images');
const mapper = require('./utils/mapper'); const mapper = require('./utils/mapper');
module.exports = { module.exports = {

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:v2:utils:serializers:output:integrations'); const debug = require('@tryghost/debug')('api:v2:utils:serializers:output:integrations');
const mapper = require('./utils/mapper'); const mapper = require('./utils/mapper');
module.exports = { module.exports = {

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:v2:utils:serializers:output:invites'); const debug = require('@tryghost/debug')('api:v2:utils:serializers:output:invites');
module.exports = { module.exports = {
all(models, apiConfig, frame) { all(models, apiConfig, frame) {

View File

@ -1,5 +1,5 @@
const _ = require('lodash'); const _ = require('lodash');
const debug = require('ghost-ignition').debug('api:v2:utils:serializers:output:mail'); const debug = require('@tryghost/debug')('api:v2:utils:serializers:output:mail');
module.exports = { module.exports = {
all(response, apiConfig, frame) { all(response, apiConfig, frame) {

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:v2:utils:serializers:output:notifications'); const debug = require('@tryghost/debug')('api:v2:utils:serializers:output:notifications');
module.exports = { module.exports = {
all(response, apiConfig, frame) { all(response, apiConfig, frame) {

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:v2:utils:serializers:output:oembed'); const debug = require('@tryghost/debug')('api:v2:utils:serializers:output:oembed');
module.exports = { module.exports = {
all(res, apiConfig, frame) { all(res, apiConfig, frame) {

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:v2:utils:serializers:output:pages'); const debug = require('@tryghost/debug')('api:v2:utils:serializers:output:pages');
const mapper = require('./utils/mapper'); const mapper = require('./utils/mapper');
module.exports = { module.exports = {

View File

@ -1,4 +1,4 @@
const debug = require('ghost-ignition').debug('api:v2:utils:serializers:output:posts'); const debug = require('@tryghost/debug')('api:v2:utils:serializers:output:posts');
const mapper = require('./utils/mapper'); const mapper = require('./utils/mapper');
module.exports = { module.exports = {

Some files were not shown because too many files have changed in this diff Show More