ts-cache-mongoose
Version:
Cache plugin for mongoose Queries and Aggregate (in-memory, redis)
126 lines (125 loc) • 2.98 kB
JSON
{
"name": "ts-cache-mongoose",
"version": "2.2.1",
"description": "Cache plugin for mongoose Queries and Aggregate (in-memory, redis)",
"author": "ilovepixelart",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/ilovepixelart/ts-cache-mongoose.git"
},
"bugs": {
"url": "https://github.com/ilovepixelart/ts-cache-mongoose/issues"
},
"homepage": "https://github.com/ilovepixelart/ts-cache-mongoose#readme",
"keywords": [
"backend",
"mongo",
"mongodb",
"mongoose",
"plugin",
"schema",
"db",
"nosql",
"ts",
"typescript",
"cache",
"redis",
"store",
"memory",
"ttl",
"query",
"aggregate"
],
"engines": {
"node": ">=20"
},
"files": [
"dist"
],
"type": "module",
"exports": {
".": {
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
},
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
}
},
"./nest": {
"require": {
"types": "./dist/nest/index.d.cts",
"default": "./dist/nest/index.cjs"
},
"import": {
"types": "./dist/nest/index.d.mts",
"default": "./dist/nest/index.mjs"
}
}
},
"typesVersions": {
"*": {
"nest": [
"./dist/nest/index.d.cts"
]
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.cts",
"publishConfig": {
"access": "public",
"provenance": true
},
"scripts": {
"biome": "npx @biomejs/biome check",
"biome:fix": "npx @biomejs/biome check --write .",
"test": "vitest run --coverage",
"test:open": "vitest run --coverage && open-cli coverage/lcov-report/index.html",
"clean": "rm -rf ./dist",
"type:check": "tsc --noEmit",
"type:check:tests": "tsc --noEmit -p tests/tsconfig.json",
"build": "pkgroll --clean-dist",
"release": "npm install && npm run biome && npm run type:check && npm run type:check:tests && npm run build && np --no-publish"
},
"dependencies": {
"ioredis": "5.10.0"
},
"devDependencies": {
"@biomejs/biome": "2.4.14",
"@nestjs/common": "11.1.18",
"@nestjs/core": "11.1.18",
"@nestjs/testing": "11.1.18",
"@types/node": "25.6.1",
"@vitest/coverage-v8": "4.1.5",
"bson": "7.2.0",
"fast-check": "4.7.0",
"mongodb-memory-server": "11.0.1",
"mongoose": "9.4.1",
"open-cli": "9.0.0",
"pkgroll": "2.27.0",
"simple-git-hooks": "2.13.1",
"typescript": "5.9.3",
"vitest": "4.1.5"
},
"peerDependencies": {
"@nestjs/common": ">=9.0.0 < 12",
"bson": ">=4.7.2 < 8",
"mongoose": ">=6.6.0 < 10"
},
"peerDependenciesMeta": {
"@nestjs/common": {
"optional": true
}
},
"simple-git-hooks": {
"pre-commit": "npm run type:check",
"pre-push": "npm run biome:fix"
},
"np": {
"publish": false
}
}