{"version":3,"sources":["jsdelivr-header.js","/npm/@loopback/http-caching-proxy@7.0.10/dist/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAKA,OAAO,eAAe,QAAS,aAAc,CAAE,OAAO,IACtD,MAAM,QAAU,QAAQ,SAgCxB,QAAQ,aAAa,QAAQ,wBAAyB","file":"/npm/@loopback/http-caching-proxy@7.0.10/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@loopback/http-caching-proxy@7.0.10/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\n// Copyright IBM Corp. and LoopBack contributors 2018,2020. All Rights Reserved.\n// Node module: @loopback/http-caching-proxy\n// This file is licensed under the MIT License.\n// License text available at https://opensource.org/licenses/MIT\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst tslib_1 = require(\"tslib\");\n/**\n * A caching HTTP proxy for integration tests.\n *\n * @remarks\n * **NOT SUITABLE FOR PRODUCTION USE!**\n *\n * Testing applications connecting to backend REST/SOAP services can be\n * difficult: The backend service may be slow, apply rate limiting, etc.\n * Integration tests become too slow in such case, which makes test-first\n * development impractical.\n *\n * This can be addressed by setting up a snapshot-based mock server or using a\n * caching HTTP client, but both of these solutions come with severe\n * disadvantages:\n *\n * - When using a snapshot-based mock server, we must ensure that snapshots are\n *   up-to-date with the actual backend implementation.\n * - Caching at HTTP-client side requires non-trivial changes of the application\n *   code.\n *\n * A filesystem-backed caching HTTP proxy offers a neat solution that combines\n * caching and snapshots:\n *\n * - The first request is forwarded to the actual backend and the response is\n *   stored as a snapshot.\n * - Subsequent requests are served by the proxy using the cached snaphost.\n * - Snapshot older than a configured time are discarded and the first next\n *   request will fetch the real response from the backend.\n *\n * @packageDocumentation\n */\ntslib_1.__exportStar(require(\"./http-caching-proxy\"), exports);\n"]}