@allurereport/ci 3.9.0 → 3.11.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.
package/README.md CHANGED
@@ -9,5 +9,3 @@
9
9
  - 💬 [General Discussion ](https://github.com/orgs/allure-framework/discussions/categories/general-discussion) – engage in casual conversations, share insights and ideas with the community
10
10
 
11
11
  ---
12
-
13
- TODO:
package/dist/detect.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  import type { CiDescriptor } from "@allurereport/core-api";
2
- export declare const detect: () => CiDescriptor | undefined;
2
+ export declare const detect: () => CiDescriptor;
@@ -1,2 +1,5 @@
1
- import { type CiDescriptor } from "@allurereport/core-api";
1
+ import { type CiDescriptor, CiType } from "@allurereport/core-api";
2
2
  export declare const local: CiDescriptor;
3
+ export declare const isLocalCiDescriptor: (ci: CiDescriptor) => ci is Omit<CiDescriptor, "type"> & {
4
+ type: CiType.Local;
5
+ };
@@ -45,3 +45,4 @@ export const local = {
45
45
  return "";
46
46
  },
47
47
  };
48
+ export const isLocalCiDescriptor = (ci) => ci.type === CiType.Local;
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export { detect } from "./detect.js";
2
+ export { isLocalCiDescriptor } from "./detectors/local.js";
package/dist/index.js CHANGED
@@ -1 +1,2 @@
1
1
  export { detect } from "./detect.js";
2
+ export { isLocalCiDescriptor } from "./detectors/local.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allurereport/ci",
3
- "version": "3.9.0",
3
+ "version": "3.11.0",
4
4
  "description": "Utilities set to get useful report data from different CI",
5
5
  "keywords": [
6
6
  "allure",
@@ -30,16 +30,16 @@
30
30
  "lint:fix": "oxlint --import-plugin --fix src test features stories"
31
31
  },
32
32
  "dependencies": {
33
- "@allurereport/core-api": "3.9.0"
33
+ "@allurereport/core-api": "3.11.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@types/node": "^20.17.9",
36
+ "@types/node": "^20",
37
37
  "@vitest/runner": "^2.1.8",
38
38
  "@vitest/snapshot": "^2.1.8",
39
- "allure-js-commons": "^3.3.3",
40
- "allure-vitest": "^3.0.9",
41
- "rimraf": "^6.0.1",
42
- "typescript": "^5.6.3",
43
- "vitest": "^2.1.8"
39
+ "allure-js-commons": "^3",
40
+ "allure-vitest": "^3",
41
+ "rimraf": "^6",
42
+ "typescript": "^5",
43
+ "vitest": "^4.1.0"
44
44
  }
45
45
  }