@qawolf/ci-sdk 0.11.0 → 0.12.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/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # v0.12.0
2
+
3
+ - Define a more restrictive `LogDriver` interface for easy integration with GHA
4
+ `core` interface.
5
+
1
6
  # v0.11.0
2
7
 
3
8
  - Support `reproducedBugs` field from CI-greenlight API.
@@ -8,7 +8,7 @@ exports.defaultLogDriver = {
8
8
  warn(message) {
9
9
  console.warn(message);
10
10
  },
11
- error(message) {
12
- console.error(message);
11
+ error(message, error) {
12
+ console.error(message, error);
13
13
  },
14
14
  };
@@ -5,7 +5,7 @@ export const defaultLogDriver = {
5
5
  warn(message) {
6
6
  console.warn(message);
7
7
  },
8
- error(message) {
9
- console.error(message);
8
+ error(message, error) {
9
+ console.error(message, error);
10
10
  },
11
11
  };
@@ -1,7 +1,7 @@
1
1
  export interface LogDriver {
2
- info(...messages: unknown[]): void;
3
- warn(...messages: unknown[]): void;
4
- error(...messages: unknown[]): void;
2
+ info(message: string): void;
3
+ warn(message: string): void;
4
+ error(message: string, error?: unknown): void;
5
5
  }
6
6
  export type FetchDriver = typeof fetch;
7
7
  export type SdkDependencies = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qawolf/ci-sdk",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "A simple SDK for interacting with QAWolf in CI scripts.",
5
5
  "type": "module",
6
6
  "private": false,
@@ -14,7 +14,8 @@
14
14
  "scripts": {
15
15
  "build": "./scripts/build.sh",
16
16
  "test": "jest",
17
- "prepare": "npm run build"
17
+ "prepare": "npm run build",
18
+ "publish": "./scripts/publish.sh"
18
19
  },
19
20
  "keywords": [],
20
21
  "author": "Jules Sam. Randolph<jules@qawolf.com>",