@allurereport/core 3.8.1 → 3.9.0

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.
@@ -1,2 +1,3 @@
1
- import { randomBytes } from "node:crypto";
1
+ import { randomBytes, createHash } from "node:crypto";
2
2
  export const shortHash = () => randomBytes(8).toString("hex");
3
+ export const md5 = (data) => createHash("md5").update(data).digest("hex");
@@ -28,7 +28,12 @@ export class RealtimeUpdateScheduler {
28
28
  await setTimeout(__classPrivateFieldGet(this, _RealtimeUpdateScheduler_cooldownMs, "f"));
29
29
  __classPrivateFieldSet(this, _RealtimeUpdateScheduler_phase, "running", "f");
30
30
  __classPrivateFieldSet(this, _RealtimeUpdateScheduler_dirty, false, "f");
31
+ const start = Date.now();
31
32
  await __classPrivateFieldGet(this, _RealtimeUpdateScheduler_worker, "f").call(this);
33
+ const elapsed = Date.now() - start;
34
+ if (__classPrivateFieldGet(this, _RealtimeUpdateScheduler_dirty, "f") && elapsed > __classPrivateFieldGet(this, _RealtimeUpdateScheduler_cooldownMs, "f")) {
35
+ await setTimeout(elapsed - __classPrivateFieldGet(this, _RealtimeUpdateScheduler_cooldownMs, "f"));
36
+ }
32
37
  } while (__classPrivateFieldGet(this, _RealtimeUpdateScheduler_dirty, "f"));
33
38
  });
34
39
  __classPrivateFieldSet(this, _RealtimeUpdateScheduler_worker, worker, "f");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allurereport/core",
3
- "version": "3.8.1",
3
+ "version": "3.9.0",
4
4
  "description": "Collection of generic Allure utilities used across the entire project",
5
5
  "keywords": [
6
6
  "allure"
@@ -25,37 +25,35 @@
25
25
  "lint:fix": "oxlint --import-plugin --fix src test features stories"
26
26
  },
27
27
  "dependencies": {
28
- "@allurereport/ci": "3.8.1",
29
- "@allurereport/core-api": "3.8.1",
30
- "@allurereport/plugin-agent": "3.8.1",
31
- "@allurereport/plugin-allure2": "3.8.1",
32
- "@allurereport/plugin-api": "3.8.1",
33
- "@allurereport/plugin-awesome": "3.8.1",
34
- "@allurereport/plugin-classic": "3.8.1",
35
- "@allurereport/plugin-csv": "3.8.1",
36
- "@allurereport/plugin-dashboard": "3.8.1",
37
- "@allurereport/plugin-jira": "3.8.1",
38
- "@allurereport/plugin-log": "3.8.1",
39
- "@allurereport/plugin-progress": "3.8.1",
40
- "@allurereport/plugin-slack": "3.8.1",
41
- "@allurereport/plugin-testops": "3.8.1",
42
- "@allurereport/plugin-testplan": "3.8.1",
43
- "@allurereport/reader": "3.8.1",
44
- "@allurereport/reader-api": "3.8.1",
45
- "@allurereport/service": "3.8.1",
46
- "@allurereport/summary": "3.8.1",
28
+ "@allurereport/ci": "3.9.0",
29
+ "@allurereport/core-api": "3.9.0",
30
+ "@allurereport/plugin-agent": "3.9.0",
31
+ "@allurereport/plugin-allure2": "3.9.0",
32
+ "@allurereport/plugin-api": "3.9.0",
33
+ "@allurereport/plugin-awesome": "3.9.0",
34
+ "@allurereport/plugin-classic": "3.9.0",
35
+ "@allurereport/plugin-csv": "3.9.0",
36
+ "@allurereport/plugin-dashboard": "3.9.0",
37
+ "@allurereport/plugin-jira": "3.9.0",
38
+ "@allurereport/plugin-log": "3.9.0",
39
+ "@allurereport/plugin-progress": "3.9.0",
40
+ "@allurereport/plugin-slack": "3.9.0",
41
+ "@allurereport/plugin-testops": "3.9.0",
42
+ "@allurereport/plugin-testplan": "3.9.0",
43
+ "@allurereport/reader": "3.9.0",
44
+ "@allurereport/reader-api": "3.9.0",
45
+ "@allurereport/service": "3.9.0",
46
+ "@allurereport/summary": "3.9.0",
47
47
  "glob": "^13.0.6",
48
48
  "handlebars": "^4.7.9",
49
49
  "node-stream-zip": "^1.15.0",
50
- "p-limit": "^7.2.0",
51
- "progress": "^2.0.3",
50
+ "p-limit": "^7.3.0",
52
51
  "yaml": "^2.8.3",
53
52
  "yoctocolors": "^2.1.1",
54
53
  "zip-stream": "^7.0.2"
55
54
  },
56
55
  "devDependencies": {
57
56
  "@types/node": "^20.17.9",
58
- "@types/progress": "^2",
59
57
  "@types/zip-stream": "^7.0.0",
60
58
  "@vitest/runner": "^2.1.9",
61
59
  "@vitest/snapshot": "^2.1.9",