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

cache-memory

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cache-memory - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

1

lib/cacher.js

@@ -120,3 +120,2 @@ "use strict";

logger.log(`getAndSet - no getter function is defined - cacher id: ${self.id}, key: ${key}, options: ${JSON.stringify(options)}`);
console.log('getter');
return undefined;

@@ -123,0 +122,0 @@ }

2

package.json
{
"name": "cache-memory",
"version": "2.1.1",
"version": "2.1.2",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

@@ -12,3 +12,3 @@ # cache-memory

If using a node version that supports async/await do
If using a node version that supports `async/await` do

@@ -22,3 +22,3 @@ ```bash

```bash
$ npm install cache-memory@2.1.1 --save
$ npm install cache-memory@1.0.11 --save
```

@@ -25,0 +25,0 @@

@@ -408,3 +408,5 @@ "use strict";

console.log('1')
value = await cache.getAndSet(key, getData, {});
console.log('2')
value.startsWith('hello-world').should.equal(true);

@@ -411,0 +413,0 @@ let value2 = await cache.getAndSet(key, getData, {});

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