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

@loopback/http-caching-proxy

Package Overview
Dependencies
Maintainers
8
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@loopback/http-caching-proxy - npm Package Compare versions

Comparing version 2.1.2 to 2.1.3

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [2.1.3](https://github.com/strongloop/loopback-next/compare/@loopback/http-caching-proxy@2.1.2...@loopback/http-caching-proxy@2.1.3) (2020-05-07)
**Note:** Version bump only for package @loopback/http-caching-proxy
## [2.1.2](https://github.com/strongloop/loopback-next/compare/@loopback/http-caching-proxy@2.1.1...@loopback/http-caching-proxy@2.1.2) (2020-04-29)

@@ -8,0 +16,0 @@

12

package.json
{
"name": "@loopback/http-caching-proxy",
"version": "2.1.2",
"version": "2.1.3",
"description": "A caching HTTP proxy for integration tests. NOT SUITABLE FOR PRODUCTION USE!",

@@ -24,8 +24,8 @@ "engines": {

"rimraf": "^3.0.2",
"tslib": "^1.11.1"
"tslib": "^1.11.2"
},
"devDependencies": {
"@loopback/build": "^5.3.0",
"@loopback/eslint-config": "^6.0.5",
"@loopback/testlab": "^3.1.2",
"@loopback/build": "^5.3.1",
"@loopback/eslint-config": "^6.0.6",
"@loopback/testlab": "^3.1.3",
"@types/debug": "^4.1.5",

@@ -61,3 +61,3 @@ "@types/node": "^10.17.21",

},
"gitHead": "9ecee6fc8648b8f0999be6c13934d4756e9b0ddc"
"gitHead": "50c3f06d942f8bae8f0c32a3775ff98a7498e4fd"
}

@@ -27,3 +27,3 @@ # @loopback/http-caching-proxy

stored as a snapshot.
- Subsequent requests are served by the proxy using the cached snaphost.
- Subsequent requests are served by the proxy using the cached snapshot.
- Snapshot older than a configured time are discarded and the first next request

@@ -93,2 +93,16 @@ will fetch the real response from the backend.

## Alternative solutions for HTTP-based integration testing
A caching proxy is great if you want your tests to talk to the real backend
service. There are many cases where such behavior is not desirable and the tests
must run fully isolated. If that's your situation, then please consider using a
tool that can record and replay HTTP interactions, for example:
- [nock](https://www.npmjs.com/package/nock)
- [Polly.JS](https://netflix.github.io/pollyjs/#/)
Just make sure you have a process in place to verify that your recorded
interactions are staying up to date with the actual behavior of the backend
service!
## Contributions

@@ -95,0 +109,0 @@

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