@eik/core 2.1.68 → 2.1.70
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 +14 -0
- package/lib/utils/healthcheck.js +10 -4
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [2.1.70](https://github.com/eik-lib/core/compare/v2.1.69...v2.1.70) (2026-08-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* health check now correctly throws when file exists after deletion ([db8cf84](https://github.com/eik-lib/core/commit/db8cf84d4f905d988ed3edf9de0bc421f7419ffe))
|
|
7
|
+
|
|
8
|
+
## [2.1.69](https://github.com/eik-lib/core/compare/v2.1.68...v2.1.69) (2026-07-25)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** update dependency tar to v7.5.22 ([#619](https://github.com/eik-lib/core/issues/619)) ([d0c5d71](https://github.com/eik-lib/core/commit/d0c5d71a18ba7f927362623954326f84ca75e9e3))
|
|
14
|
+
|
|
1
15
|
## [2.1.68](https://github.com/eik-lib/core/compare/v2.1.67...v2.1.68) (2026-07-22)
|
|
2
16
|
|
|
3
17
|
|
package/lib/utils/healthcheck.js
CHANGED
|
@@ -126,17 +126,23 @@ const HealthCheck = class HealthCheck {
|
|
|
126
126
|
throw error;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
+
let existsAfterDeletion = false;
|
|
129
130
|
try {
|
|
130
131
|
await this._exist();
|
|
132
|
+
existsAfterDeletion = true;
|
|
133
|
+
} catch {
|
|
134
|
+
// Expected: file is gone after deletion
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
if (existsAfterDeletion) {
|
|
131
138
|
this._log.warn(
|
|
132
139
|
"Sink health check successfully read file after deletion. It should not. Content was probably not deleted by sink.delete().",
|
|
133
140
|
);
|
|
134
|
-
throw new Error("File exist in sink");
|
|
135
|
-
// eslint-disable-next-line no-unused-vars
|
|
136
|
-
} catch (error) {
|
|
137
|
-
this._log.debug("Sink health check ended successfully. Sink is healthy");
|
|
141
|
+
throw new Error("File exist in sink after deletion");
|
|
138
142
|
}
|
|
139
143
|
|
|
144
|
+
this._log.debug("Sink health check ended successfully. Sink is healthy");
|
|
145
|
+
|
|
140
146
|
return true;
|
|
141
147
|
}
|
|
142
148
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eik/core",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.70",
|
|
4
4
|
"description": "Core server package",
|
|
5
5
|
"main": "lib/main.js",
|
|
6
6
|
"types": "./types/main.d.ts",
|
|
@@ -41,19 +41,19 @@
|
|
|
41
41
|
"original-url": "1.2.3",
|
|
42
42
|
"semver": "7.8.5",
|
|
43
43
|
"ssri": "14.0.0",
|
|
44
|
-
"tar": "7.5.
|
|
44
|
+
"tar": "7.5.22"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@eik/eslint-config": "2.0.9",
|
|
48
48
|
"@eik/prettier-config": "1.0.2",
|
|
49
49
|
"@eik/semantic-release-config": "1.0.17",
|
|
50
50
|
"@eik/typescript-config": "1.0.2",
|
|
51
|
-
"@types/readable-stream": "4.0.
|
|
51
|
+
"@types/readable-stream": "4.0.24",
|
|
52
52
|
"eslint": "10.4.1",
|
|
53
53
|
"mkdirp": "3.0.1",
|
|
54
|
-
"npm-run-all2": "9.0.
|
|
54
|
+
"npm-run-all2": "9.0.3",
|
|
55
55
|
"prettier": "3.8.3",
|
|
56
|
-
"semantic-release": "25.0.
|
|
56
|
+
"semantic-release": "25.0.8",
|
|
57
57
|
"typescript": "6.0.3"
|
|
58
58
|
}
|
|
59
59
|
}
|