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

caching-transform

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

caching-transform - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

7

index.js

@@ -16,2 +16,6 @@ 'use strict';

function defaultHash(input, additionalData, salt) {
return getHash(input, salt);
}
function wrap(opts) {

@@ -34,2 +38,3 @@ if (!(opts.factory || opts.transform) || (opts.factory && opts.transform)) {

var disableCache = opts.disableCache;
var hashFn = opts.hash || defaultHash;

@@ -57,3 +62,3 @@ function transform(input, additionalData, hash) {

var hash = getHash(input, salt);
var hash = hashFn(input, additionalData, salt);
var cachedPath = path.join(cacheDir, hash + ext);

@@ -60,0 +65,0 @@

2

package.json
{
"name": "caching-transform",
"version": "0.0.2",
"version": "0.0.3",
"description": "Wraps a transform and provides caching",

@@ -5,0 +5,0 @@ "license": "MIT",

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