mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-29 13:52:10 +03:00
4f41c2a206
refs https://github.com/TryGhost/Team/issues/588 - There's a need to calculate when the last period has started to be able to generate correct counting queries for the "maxPeriodical" limit - It operatest on ISO strings as an input and output in UTC timezone to take timezone calculations out of the equation - Refer to inclucded unit tests for example calculations
32 lines
730 B
JSON
32 lines
730 B
JSON
{
|
|
"name": "@tryghost/limit-service",
|
|
"version": "0.4.3",
|
|
"repository": "https://github.com/TryGhost/Utils/tree/master/packages/limit-service",
|
|
"author": "Ghost Foundation",
|
|
"license": "MIT",
|
|
"main": "./lib/limit-service.js",
|
|
"exports": "./lib/limit-service.js",
|
|
"scripts": {
|
|
"dev": "echo \"Implement me!\"",
|
|
"test": "NODE_ENV=testing mocha './test/**/*.test.js'",
|
|
"lint": "eslint . --ext .js --cache",
|
|
"posttest": "yarn lint"
|
|
},
|
|
"files": [
|
|
"index.js",
|
|
"lib"
|
|
],
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"devDependencies": {
|
|
"date-fns": "^2.21.2",
|
|
"mocha": "8.3.2",
|
|
"should": "13.2.3",
|
|
"sinon": "10.0.0"
|
|
},
|
|
"dependencies": {
|
|
"lodash": "^4.17.21"
|
|
}
|
|
}
|