Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "cachetrax", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Caching.", | ||
@@ -9,4 +9,23 @@ "main": "source/CacheTrax.js", | ||
"test": "./node_modules/mocha/bin/_mocha -u tdd -R spec", | ||
"build": "node Bundle.js" | ||
"build": "./node_modules/.bin/gulp build", | ||
"build-compatible": "GULP_CUSTOM_BUILD_TARGET=compatible ./node_modules/.bin/gulp build" | ||
}, | ||
"mocha": { | ||
"diff": true, | ||
"extension": [ | ||
"js" | ||
], | ||
"package": "./package.json", | ||
"reporter": "spec", | ||
"slow": "75", | ||
"timeout": "5000", | ||
"ui": "tdd", | ||
"watch-files": [ | ||
"source/**/*.js", | ||
"test/**/*.js" | ||
], | ||
"watch-ignore": [ | ||
"lib/vendor" | ||
] | ||
}, | ||
"repository": { | ||
@@ -26,12 +45,18 @@ "type": "git", | ||
"devDependencies": { | ||
"@babel/core": "^7.0.0-rc.1", | ||
"babelify": "^9.0.0", | ||
"browserify": "^16.2.2", | ||
"chai": "4.1.2", | ||
"codeclimate-test-reporter": "0.5.0", | ||
"coveralls": "3.0.2", | ||
"istanbul": "0.4.5", | ||
"mocha": "5.2.0" | ||
"@babel/core": "^7.21.5", | ||
"@babel/preset-env": "^7.21.5", | ||
"browserify": "^17.0.0", | ||
"chai": "4.3.7", | ||
"gulp": "^4.0.2", | ||
"gulp-babel": "^8.0.0", | ||
"gulp-env": "^0.4.0", | ||
"gulp-sourcemaps": "^3.0.0", | ||
"gulp-terser": "^2.1.0", | ||
"gulp-util": "^3.0.8", | ||
"mocha": "10.2.0", | ||
"nyc": "^15.1.0", | ||
"vinyl-buffer": "^1.0.1", | ||
"vinyl-source-stream": "^2.0.0" | ||
}, | ||
"dependencies": {} | ||
} |
@@ -80,3 +80,3 @@ /** | ||
return false; | ||
// Get the old node out of the list | ||
@@ -96,3 +96,3 @@ let tmpNode = this._List.remove(this._HashMap[pHash]); | ||
return false; | ||
let tmpNode = this._HashMap[pHash]; | ||
@@ -158,3 +158,3 @@ | ||
} | ||
// Prune the list down to the asserted rules (max age then max length if still too long) | ||
@@ -168,3 +168,3 @@ prune(fComplete) | ||
return fComplete(tmpRemovedRecords); | ||
// Now prune based on expiration time | ||
@@ -177,3 +177,3 @@ this.pruneBasedOnExpiration((fExpirationPruneComplete)=> | ||
} | ||
// Read a datum by hash from the cache | ||
@@ -184,6 +184,6 @@ read(pHash) | ||
return false; | ||
return this._HashMap[pHash].Datum; | ||
} | ||
// Get a low level node (including metadata statistics) by hash from the cache | ||
@@ -194,3 +194,3 @@ getNode(pHash) | ||
return false; | ||
return this._HashMap[pHash]; | ||
@@ -197,0 +197,0 @@ } |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
146676
24
2028
14
2
12