Ghost/ghost/limit-service/package.json
Naz 4f41c2a206 Added utility calculating date of last period start
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
2021-05-06 15:50:36 +04:00

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"
}
}