x-fidelity 2.16.4 → 2.16.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +1 -1
- package/dist/server/cacheManager.js +3 -1
- package/package.json +4 -1
- package/src/server/cacheManager.ts +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [2.16.5](https://github.com/zotoio/x-fidelity/compare/v2.16.4...v2.16.5) (2024-11-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** force resolution - version bump ([9ea4801](https://github.com/zotoio/x-fidelity/commit/9ea4801f24e80b61dc89d835ceea765a478eb6ee))
|
|
7
|
+
|
|
1
8
|
## [2.16.4](https://github.com/zotoio/x-fidelity/compare/v2.16.3...v2.16.4) (2024-11-07)
|
|
2
9
|
|
|
3
10
|
|
package/README.md
CHANGED
|
@@ -811,4 +811,4 @@ Contributions to x-fidelity are welcome! Please refer to the `CONTRIBUTING.md` f
|
|
|
811
811
|
|
|
812
812
|
## License
|
|
813
813
|
|
|
814
|
-
This project is licensed under the MIT License
|
|
814
|
+
This project is licensed under the MIT License.. See the `LICENSE` file for details.
|
|
@@ -38,7 +38,9 @@ class LRUCache {
|
|
|
38
38
|
set(key, value, ttl) {
|
|
39
39
|
if (this.cache.size >= this.maxSize) {
|
|
40
40
|
const oldestKey = this.cache.keys().next().value;
|
|
41
|
-
|
|
41
|
+
if (oldestKey !== undefined) {
|
|
42
|
+
this.cache.delete(oldestKey);
|
|
43
|
+
}
|
|
42
44
|
}
|
|
43
45
|
this.cache.set(key, new CacheItem(value, Date.now() + ttl));
|
|
44
46
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-fidelity",
|
|
3
|
-
"version": "2.16.
|
|
3
|
+
"version": "2.16.5",
|
|
4
4
|
"description": "cli for opinionated framework adherence checks",
|
|
5
5
|
"main": "dist/xfidelity",
|
|
6
6
|
"bin": {
|
|
@@ -87,6 +87,9 @@
|
|
|
87
87
|
"winston": "^3.13.0",
|
|
88
88
|
"yarn": "^1.22.21"
|
|
89
89
|
},
|
|
90
|
+
"resolutions": {
|
|
91
|
+
"jsonpath-plus": "^10.1.0"
|
|
92
|
+
},
|
|
90
93
|
"peerDependencies": {
|
|
91
94
|
"artillery": "^2.0.0-31"
|
|
92
95
|
},
|
|
@@ -33,7 +33,9 @@ class LRUCache {
|
|
|
33
33
|
set(key: string, value: any, ttl: number): void {
|
|
34
34
|
if (this.cache.size >= this.maxSize) {
|
|
35
35
|
const oldestKey = this.cache.keys().next().value;
|
|
36
|
-
|
|
36
|
+
if (oldestKey !== undefined) {
|
|
37
|
+
this.cache.delete(oldestKey);
|
|
38
|
+
}
|
|
37
39
|
}
|
|
38
40
|
this.cache.set(key, new CacheItem(value, Date.now() + ttl));
|
|
39
41
|
}
|