@adobe/helix-admin-support 3.1.21 → 3.1.23
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/package.json +3 -3
- package/src/auditlog/Writer.js +3 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [3.1.23](https://github.com/adobe/helix-admin-support/compare/v3.1.22...v3.1.23) (2025-01-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* library should not log itself, leave it to caller ([#361](https://github.com/adobe/helix-admin-support/issues/361)) ([deb0d58](https://github.com/adobe/helix-admin-support/commit/deb0d58fa802cfa0eeec0c2a2d3fac338449a8de))
|
|
7
|
+
|
|
8
|
+
## [3.1.22](https://github.com/adobe/helix-admin-support/compare/v3.1.21...v3.1.22) (2025-01-27)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** update external fixes ([#359](https://github.com/adobe/helix-admin-support/issues/359)) ([37c1e2f](https://github.com/adobe/helix-admin-support/commit/37c1e2f1b39d4cbc8e64dc6cff98a124204766b1))
|
|
14
|
+
|
|
1
15
|
## [3.1.21](https://github.com/adobe/helix-admin-support/compare/v3.1.20...v3.1.21) (2025-01-21)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-admin-support",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.23",
|
|
4
4
|
"description": "Helix Admin Support Library",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"jsdoc-to-markdown": "9.1.1",
|
|
56
56
|
"json-schema-to-typescript": "15.0.4",
|
|
57
57
|
"junit-report-builder": "5.1.1",
|
|
58
|
-
"lint-staged": "15.4.
|
|
59
|
-
"mocha": "11.0
|
|
58
|
+
"lint-staged": "15.4.3",
|
|
59
|
+
"mocha": "11.1.0",
|
|
60
60
|
"mocha-multi-reporters": "1.5.1",
|
|
61
61
|
"mocha-suppress-logs": "0.5.1",
|
|
62
62
|
"nock": "13.5.6",
|
package/src/auditlog/Writer.js
CHANGED
|
@@ -171,11 +171,9 @@ export default class Writer {
|
|
|
171
171
|
* Appends rows to the audit log
|
|
172
172
|
*
|
|
173
173
|
* @param {Array} updates added rows
|
|
174
|
-
* @returns {Promise<
|
|
174
|
+
* @returns {Promise<String>} name of log file where updates have been written to
|
|
175
175
|
*/
|
|
176
176
|
async append(updates) {
|
|
177
|
-
const { log } = this;
|
|
178
|
-
|
|
179
177
|
if (updates.length) {
|
|
180
178
|
const { key, contents } = await this.#getOrCreateLogObject();
|
|
181
179
|
const lastEventTime = updates[updates.length - 1].timestamp;
|
|
@@ -183,9 +181,9 @@ export default class Writer {
|
|
|
183
181
|
await this.#storeLogFile(key, contents, {
|
|
184
182
|
[META_LAST_EVENT]: DateFormat.format(new Date(lastEventTime)),
|
|
185
183
|
});
|
|
186
|
-
|
|
187
|
-
log.info(`Appended ${updates.length} to ${key}`);
|
|
184
|
+
return key;
|
|
188
185
|
}
|
|
186
|
+
return null;
|
|
189
187
|
}
|
|
190
188
|
|
|
191
189
|
close() {
|