caching-transform
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -17,3 +17,3 @@ 'use strict'; | ||
} | ||
if (typeof opts.cacheDir !== 'string') { | ||
if (typeof opts.cacheDir !== 'string' && !opts.disableCache) { | ||
throw new Error('cacheDir must be a string'); | ||
@@ -20,0 +20,0 @@ } |
{ | ||
"name": "caching-transform", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Wraps a transform and provides caching", | ||
@@ -39,3 +39,3 @@ "license": "MIT", | ||
"mock-fs": "^3.5.0", | ||
"nyc": "^5.0.1", | ||
"nyc": "5.0.1", | ||
"proxyquire": "^1.7.3", | ||
@@ -42,0 +42,0 @@ "sinon": "^1.17.2", |
@@ -93,3 +93,4 @@ # caching-transform [![Build Status](https://travis-ci.org/jamestalmage/caching-transform.svg?branch=master)](https://travis-ci.org/jamestalmage/caching-transform) [![Coverage Status](https://coveralls.io/repos/jamestalmage/caching-transform/badge.svg?branch=master&service=github)](https://coveralls.io/github/jamestalmage/caching-transform?branch=master) | ||
Type: `string` | ||
Type: `string` | ||
*Required unless caching is disabled* | ||
@@ -96,0 +97,0 @@ The directory where cached transform results will be stored. The directory is automatically created with [`mkdirp`](https://www.npmjs.com/package/mkdirp). You can set `options.createCacheDir = false` if you are certain the directory already exists. |
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
9164
137