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

fetch-vcr

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetch-vcr - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

7

index.js

@@ -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",

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