@argos-ci/util 1.1.0 → 1.2.1

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/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Get the top level of the git repository.
3
3
  */
4
- declare function getGitRepositoryPath(): Promise<string>;
4
+ declare function getGitRepositoryPath(): Promise<string | null>;
5
5
  /**
6
6
  * Read the version from a package.json file.
7
7
  */
package/dist/index.mjs CHANGED
@@ -6,15 +6,13 @@ let cached;
6
6
  * Get the top level of the git repository.
7
7
  */ function getGitRepositoryPath() {
8
8
  if (!cached) {
9
- cached = new Promise((resolve, reject)=>{
9
+ cached = new Promise((resolve)=>{
10
10
  exec("git rev-parse --show-toplevel", (error, stdout, stderr)=>{
11
11
  if (error) {
12
- reject(error);
13
- return;
12
+ resolve(null);
14
13
  }
15
14
  if (stderr) {
16
- reject(stderr);
17
- return;
15
+ resolve(null);
18
16
  }
19
17
  resolve(stdout.trim());
20
18
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@argos-ci/util",
3
3
  "description": "Set of utilities used across all Argos SDKs",
4
- "version": "1.1.0",
4
+ "version": "1.2.1",
5
5
  "author": "Smooth Code",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -15,13 +15,13 @@
15
15
  "type": "module",
16
16
  "exports": {
17
17
  ".": {
18
- "import": "./dist/index.mjs",
19
18
  "types": "./dist/index.d.ts",
19
+ "import": "./dist/index.mjs",
20
20
  "default": "./dist/index.mjs"
21
21
  },
22
22
  "./browser": {
23
- "import": "./dist/browser.mjs",
24
23
  "types": "./dist/browser.d.ts",
24
+ "import": "./dist/browser.mjs",
25
25
  "default": "./dist/browser.mjs"
26
26
  },
27
27
  "./package.json": "./package.json"
@@ -36,5 +36,5 @@
36
36
  "devDependencies": {
37
37
  "@types/node": "^16.0.0"
38
38
  },
39
- "gitHead": "47a939474ca0c0d55ca5360dcaa5f8912547ed76"
39
+ "gitHead": "3c0a10a7ec14c294c801491aca79cacb2f07edc2"
40
40
  }