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

petty-cache

Package Overview
Dependencies
Maintainers
0
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

petty-cache - npm Package Compare versions

Comparing version 3.3.0 to 3.3.1

6

index.js

@@ -1,3 +0,1 @@

const util = require('util');
const async = require('async');

@@ -339,3 +337,4 @@ const lock = require('lock').Lock();

// Execute the specified function and place the results in cache before returning the data
if (util.types.isAsyncFunction(func)) {
if (func.length === 0) {
// If the function doesn't have any arguments, there wasn't a callback provided
try {

@@ -351,2 +350,3 @@ const data = await func();

} else {
// If the function has arguments, there was a callback provided
func(function(err, data) {

@@ -353,0 +353,0 @@ if (err) {

@@ -33,3 +33,3 @@ {

},
"version": "3.3.0"
"version": "3.3.1"
}
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