mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
0fe8426f97
- renamed our internal validation library to "validator" - which is the same as the tool it wraps - updated the public api so that validator methods are directly exposed - this will make it a drop-in replacement for validator-js - in turn, this allows us to pull this out into @tryghost/validator, and use our own wrapper instead of the 3rd party library
12 lines
642 B
JavaScript
12 lines
642 B
JavaScript
const request = require('../request');
|
|
const urlUtils = require('../../../shared/url-utils');
|
|
const storage = require('../../adapters/storage');
|
|
const storageUtils = require('../../adapters/storage/utils');
|
|
const validator = require('../../data/validator');
|
|
const config = require('../../../shared/config');
|
|
const logging = require('../../../shared/logging');
|
|
const i18n = require('../../../shared/i18n');
|
|
const settingsCache = require('../../services/settings/cache');
|
|
const ImageUtils = require('./image-utils');
|
|
|
|
module.exports = new ImageUtils({config, logging, i18n, urlUtils, settingsCache, storageUtils, storage, validator, request});
|