mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Updated dependency @tryghost/limit-service to v0.4.0
refs https://github.com/TryGhost/Team/issues/510 - This version bump includes follwing interface improvements of the limit-service package: passing in errors as a parameter to "loadLimits" and allowing for custom "currentCountQuery" method implementations per limit
This commit is contained in:
parent
efc674fda2
commit
42a3197f6d
3 changed files with 7 additions and 6 deletions
|
@ -1,3 +1,4 @@
|
|||
const errors = require('@tryghost/errors');
|
||||
const config = require('../../shared/config');
|
||||
const db = require('../data/db');
|
||||
const LimitService = require('@tryghost/limit-service');
|
||||
|
@ -16,7 +17,7 @@ const initFn = () => {
|
|||
helpLink = 'https://ghost.org/help/';
|
||||
}
|
||||
|
||||
limitService.loadLimits({limits: config.get('hostSettings:limits'), db, helpLink});
|
||||
limitService.loadLimits({limits: config.get('hostSettings:limits'), db, helpLink, errors});
|
||||
};
|
||||
|
||||
module.exports = limitService;
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
"@tryghost/kg-default-cards": "4.0.2",
|
||||
"@tryghost/kg-markdown-html-renderer": "4.0.1",
|
||||
"@tryghost/kg-mobiledoc-html-renderer": "4.0.0",
|
||||
"@tryghost/limit-service": "0.3.0",
|
||||
"@tryghost/limit-service": "0.4.0",
|
||||
"@tryghost/magic-link": "1.0.0",
|
||||
"@tryghost/members-api": "1.1.1",
|
||||
"@tryghost/members-csv": "1.0.0",
|
||||
|
|
|
@ -559,10 +559,10 @@
|
|||
dependencies:
|
||||
"@tryghost/kg-clean-basic-html" "^1.0.13"
|
||||
|
||||
"@tryghost/limit-service@0.3.0":
|
||||
version "0.3.0"
|
||||
resolved "https://registry.yarnpkg.com/@tryghost/limit-service/-/limit-service-0.3.0.tgz#e205c6e6e77c7ce940a92cd2adbfa4e37fc2f20e"
|
||||
integrity sha512-OqT++jq9EPgVt5tDEfvYJ+ZdI2vGuf55RmqDTGmd1zKVJqj8O3OfHFOCdWV5nKsZm874qe3TAVykuXhekiGawA==
|
||||
"@tryghost/limit-service@0.4.0":
|
||||
version "0.4.0"
|
||||
resolved "https://registry.yarnpkg.com/@tryghost/limit-service/-/limit-service-0.4.0.tgz#a681eb866171a6966162db87ae0d18ccb1fbb965"
|
||||
integrity sha512-DVWYiKgvXzWqi+L2jJPhTQLogiRZUJw+bX9XMmLg202rnNAn8A9eYIAmWu5TbY4Gp0+6gz6IZFdIIocGDtA8Aw==
|
||||
dependencies:
|
||||
lodash "^4.17.21"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue