cache-manager-fs-hash
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -1,1 +0,1 @@ | ||
module.exports = require('./lib'); | ||
module.exports = require('./src'); |
{ | ||
"name": "cache-manager-fs-hash", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"main": "index.js", | ||
"engines": { | ||
"node": ">=6.0.0" | ||
"node": ">=8.0.0" | ||
}, | ||
@@ -13,3 +13,3 @@ "description": "file system store for node cache manager", | ||
"index.js", | ||
"lib/*" | ||
"src/*" | ||
], | ||
@@ -29,20 +29,12 @@ "keywords": [ | ||
"scripts": { | ||
"build": "babel src --out-dir lib", | ||
"prepare": "npm run build", | ||
"pretest": "npm run build", | ||
"test": "mocha --require @babel/register ./test/**/*.js" | ||
"test": "mocha ./test/**/*.js" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.1.0", | ||
"@babel/core": "^7.1.0", | ||
"@babel/preset-env": "^7.1.0", | ||
"@babel/register": "^7.0.0", | ||
"cache-manager": "^2.9.0", | ||
"mocha": "^5.2.0", | ||
"rimraf": "^2.6.2" | ||
"cache-manager": "^3.2.1", | ||
"mocha": "^7.1.1", | ||
"rimraf": "^3.0.2" | ||
}, | ||
"dependencies": { | ||
"es6-promisify": "^6.0.0", | ||
"lockfile": "^1.0.4" | ||
} | ||
} |
@@ -35,4 +35,5 @@ # Node Cache Manager store for Filesystem | ||
ttl: 60 * 60, //time to life in seconds | ||
subdirs: true, //create subdirectories to reduce the | ||
subdirs: true, //create subdirectories to reduce the | ||
//files in a single dir (default: false) | ||
zip: true, //zip files to save diskspace (default: false) | ||
} | ||
@@ -56,3 +57,3 @@ }); | ||
function getUserCached(userId) { | ||
return diskCache.wrap(userId, function () { | ||
return diskCache.wrap(userId /* cache key */, function () { | ||
return getUser(userId); | ||
@@ -81,2 +82,2 @@ }); | ||
cache-manager-fs-hash is licensed under the MIT license. | ||
cache-manager-fs-hash is licensed under the MIT license. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1
3
8
81
16152
327
1
- Removedes6-promisify@^6.0.0
- Removedes6-promisify@6.1.1(transitive)