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 2.0.0 to 2.1.0

11

lib/adapter/fetch-node.js
// This is so webpack can override this with a browser version
module.exports = require('node-fetch')
let fetchImpl
// Try to load the hack-node-fetch package because jest allows remapping packages (useful for tests)
try {
fetchImpl = require('hack-node-fetch')
} catch (err) {
fetchImpl = require('node-fetch')
}
module.exports = fetchImpl

2

lib/adapter/response-node.js
// This is so webpack can override this with a browser version
module.exports = require('node-fetch').Response
module.exports = require('./fetch-node').Response
{
"version": "2.0.0",
"version": "2.1.0",
"name": "fetch-vcr",

@@ -19,5 +19,5 @@ "description": "Stop mocking HTTP Requests. Just record and then play them back",

"jsdom": "^11.0.0",
"rollup": "^0.54.1",
"rollup-plugin-commonjs": "^9.0.0",
"rollup-plugin-node-resolve": "^3.0.0",
"rollup": "^0.58.2",
"rollup-plugin-commonjs": "^9.1.0",
"rollup-plugin-node-resolve": "^3.3.0",
"standard": "^11.0.0"

@@ -24,0 +24,0 @@ },

@@ -72,3 +72,4 @@ # fetch-vcr

"moduleNameMapper": {
"fetch": "fetch-vcr"
"hack-node-fetch": "node-fetch",
"node-fetch": "fetch-vcr"
}

@@ -75,0 +76,0 @@ }

@@ -6,3 +6,3 @@ // This is used for building the ./test/browser-bundle.js for testing

export default {
entry: './lib/index.js',
input: './lib/index.js',
plugins: [

@@ -15,10 +15,10 @@ resolve({

],
targets: [
output: [
{
dest: './browser-bundle.js',
file: './browser-bundle.js',
format: 'umd',
moduleName: 'fetchVCR',
sourceMap: true
name: 'fetchVCR',
sourcemap: true
}
]
}
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