New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

solr-client-cache

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

solr-client-cache - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

3

lib/extend-client.js

@@ -23,2 +23,5 @@ 'use strict';

if (cachedResults) {
// set debug flag
Object.defineProperty(cachedResults, '__fromCache', { value: true });
callback(null, cachedResults);

@@ -25,0 +28,0 @@ return cachedResults;

2

package.json
{
"name": "solr-client-cache",
"version": "1.0.0",
"version": "1.0.1",
"description": "Caching for Solr Client",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -154,2 +154,15 @@ 'use strict';

it('should flag the results as "from cache"', (done) => {
solrClient.cache().search({}, (err) => {
should.not.exist(err);
solrClient.cache().search({}, (err, results) => {
should.not.exist(err);
results.should.have.property('__fromCache');
results.__fromCache.should.be.true();
done();
});
});
});
});

@@ -156,0 +169,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