caching-transform
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -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 @@ |
{ | ||
"name": "caching-transform", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Wraps a transform and provides caching", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8079
64