Comparing version 0.3.0 to 0.3.1
@@ -159,3 +159,3 @@ const fs = require('fs') | ||
} else { | ||
debug(url, 'checking for cached version of'); | ||
debug(url, 'checking for cached version'); | ||
// Check if cached version exists | ||
@@ -165,4 +165,5 @@ fs.access(optionsFilename, fs.constants.R_OK, function(err) { | ||
// Cached version does not exist | ||
debug(url, 'cached version not found'); | ||
if (CONFIGURATION.mode === 'cache') { | ||
debug(url, 'cached version not found. making network request'); | ||
debug(url, 'making network request'); | ||
// Perform the fetch, save the response, and then yield the original response | ||
@@ -181,2 +182,3 @@ fetchImpl(url, args) | ||
} else { | ||
debug(url, 'NOT making network request because VCR_MODE=' + CONFIGURATION.mode); | ||
// throw new Error('fetch-vcr ERROR: Fixture file was not found.') | ||
@@ -186,2 +188,3 @@ reject(err) // TODO: Provide a more detailed message | ||
} else { | ||
debug(url, 'using cached version'); | ||
loadFixture(url, args) | ||
@@ -188,0 +191,0 @@ .then(resolve, reject) |
{ | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"name": "fetch-vcr", | ||
@@ -4,0 +4,0 @@ "description": "Stop mocking HTTP Requests and just record and then play them back", |
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
12764
233