@argos-ci/util 1.2.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 +1 -1
- package/dist/index.mjs +3 -5
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
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
|
|
9
|
+
cached = new Promise((resolve)=>{
|
|
10
10
|
exec("git rev-parse --show-toplevel", (error, stdout, stderr)=>{
|
|
11
11
|
if (error) {
|
|
12
|
-
|
|
13
|
-
return;
|
|
12
|
+
resolve(null);
|
|
14
13
|
}
|
|
15
14
|
if (stderr) {
|
|
16
|
-
|
|
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.2.
|
|
4
|
+
"version": "1.2.1",
|
|
5
5
|
"author": "Smooth Code",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/node": "^16.0.0"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "3c0a10a7ec14c294c801491aca79cacb2f07edc2"
|
|
40
40
|
}
|