@loopback/http-caching-proxy
Advanced tools
Comparing version 2.1.2 to 2.1.3
@@ -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 @@ |
{ | ||
"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 @@ |
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
50796
123
Updatedtslib@^1.11.2