@aws-sdk/endpoint-cache
Advanced tools
Comparing version 3.16.0 to 3.17.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [3.17.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.16.0...v3.17.0) (2021-05-26) | ||
### Bug Fixes | ||
* **endpoint-cache:** reduce bundle size ([#2400](https://github.com/aws/aws-sdk-js-v3/issues/2400)) ([b157173](https://github.com/aws/aws-sdk-js-v3/commit/b1571731eef59271e1efb14d11a05854ad867ab9)) | ||
# [3.16.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.15.0...v3.16.0) (2021-05-14) | ||
@@ -8,0 +19,0 @@ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.EndpointCache = void 0; | ||
const mnemonist_1 = require("mnemonist"); | ||
const tslib_1 = require("tslib"); | ||
const lru_cache_1 = tslib_1.__importDefault(require("mnemonist/lru-cache")); | ||
class EndpointCache { | ||
constructor(capacity) { | ||
this.cache = new mnemonist_1.LRUCache(capacity); | ||
this.cache = new lru_cache_1.default(capacity); | ||
} | ||
@@ -98,2 +99,2 @@ /** | ||
exports.EndpointCache = EndpointCache; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRW5kcG9pbnRDYWNoZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9FbmRwb2ludENhY2hlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLHlDQUFxQztBQVFyQyxNQUFhLGFBQWE7SUFHeEIsWUFBWSxRQUFnQjtRQUMxQixJQUFJLENBQUMsS0FBSyxHQUFHLElBQUksb0JBQVEsQ0FBQyxRQUFRLENBQUMsQ0FBQztJQUN0QyxDQUFDO0lBRUQ7Ozs7O09BS0c7SUFDSCxXQUFXLENBQUMsR0FBVztRQUNyQixNQUFNLG1CQUFtQixHQUFHLElBQUksQ0FBQyxHQUFHLENBQUMsR0FBRyxDQUFD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bmlzdC9pc3N1ZXMvMTQzXG4gICAgdGhpcy5jYWNoZS5zZXQoa2V5LCBbXSk7XG4gIH1cblxuICAvKipcbiAgICogQ2hlY2tzIHdoZXRoZXIgdGhlIGtleSBleGlzdHMgaW4gY2FjaGUuXG4gICAqXG4gICAqIEBwYXJhbSB7c3RyaW5nfSBrZXlcbiAgICogQHJldHVybnMge2Jvb2xlYW59XG4gICAqL1xuICBoYXMoa2V5OiBzdHJpbmcpOiBib29sZWFuIHtcbiAgICBpZiAoIXRoaXMuY2FjaGUuaGFzKGtleSkpIHtcbiAgICAgIHJldHVybiBmYWxzZTtcbiAgICB9XG5cbiAgICAvLyBSZW1vdmUgY2FsbCBmb3IgcGVlaywgb25jZSByZW1vdmUvZGVsZXRlIHN1cHBvcnQgaXMgYWRkZWQgdXBzdHJlYW1cbiAgICAvLyBSZWZzOiBodHRwczovL2dpdGh1Yi5jb20vWW9tZ3VpdGhlcmVhbC9tbmVtb25pc3QvaXNzdWVzLzE0M1xuICAgIGNvbnN0IGVuZHBvaW50cyA9IHRoaXMuY2FjaGUucGVlayhrZXkpO1xuICAgIGlmICghZW5kcG9pbnRzKSB7XG4gICAgICByZXR1cm4gZmFsc2U7XG4gICAgfVxuICAgIHJldHVybiBlbmRwb2ludHMubGVuZ3RoID4gMDtcbiAgfVxuXG4gIC8qKlxuICAgKiBDbGVhcnMgdGhlIGNhY2hlLlxuICAgKi9cbiAgY2xlYXIoKSB7XG4gICAgdGhpcy5jYWNoZS5jbGVhcigpO1xuICB9XG59XG4iXX0= |
@@ -1,2 +0,2 @@ | ||
import { LRUCache } from "mnemonist"; | ||
import LRUCache from "mnemonist/lru-cache"; | ||
var EndpointCache = /** @class */ (function () { | ||
@@ -99,2 +99,2 @@ function EndpointCache(capacity) { | ||
export { EndpointCache }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRW5kcG9pbnRDYWNoZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJz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uICAgIC8vIFJlZnM6IGh0dHBzOi8vZ2l0aHViLmNvbS9Zb21ndWl0aGVyZWFsL21uZW1vbmlzdC9pc3N1ZXMvMTQzXG4gICAgY29uc3QgZW5kcG9pbnRzID0gdGhpcy5jYWNoZS5wZWVrKGtleSk7XG4gICAgaWYgKCFlbmRwb2ludHMpIHtcbiAgICAgIHJldHVybiBmYWxzZTtcbiAgICB9XG4gICAgcmV0dXJuIGVuZHBvaW50cy5sZW5ndGggPiAwO1xuICB9XG5cbiAgLyoqXG4gICAqIENsZWFycyB0aGUgY2FjaGUuXG4gICAqL1xuICBjbGVhcigpIHtcbiAgICB0aGlzLmNhY2hlLmNsZWFyKCk7XG4gIH1cbn1cbiJdfQ== |
{ | ||
"name": "@aws-sdk/endpoint-cache", | ||
"version": "3.16.0", | ||
"version": "3.17.0", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "prepublishOnly": "yarn build && downlevel-dts dist/types dist/types/ts3.4", |
@@ -1,2 +0,2 @@ | ||
import { LRUCache } from "mnemonist"; | ||
import LRUCache from "mnemonist/lru-cache"; | ||
@@ -6,3 +6,3 @@ import { Endpoint } from "./Endpoint"; | ||
jest.mock("mnemonist"); | ||
jest.mock("mnemonist/lru-cache"); | ||
@@ -9,0 +9,0 @@ describe(EndpointCache.name, () => { |
@@ -1,2 +0,2 @@ | ||
import { LRUCache } from "mnemonist"; | ||
import LRUCache from "mnemonist/lru-cache"; | ||
@@ -3,0 +3,0 @@ import { Endpoint } from "./Endpoint"; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
573
163815