Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cachetrax

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cachetrax - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

.babelrc

45

package.json
{
"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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc