@argos-ci/core 2.4.2-alpha.7 → 2.5.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.
Files changed (2) hide show
  1. package/dist/index.mjs +3 -4
  2. package/package.json +4 -4
package/dist/index.mjs CHANGED
@@ -46,11 +46,10 @@ import { createRequire } from 'node:module';
46
46
  }
47
47
  }
48
48
  function getMergeBaseCommitShaWithDepth(input) {
49
- const head = input.head || `HEAD`;
50
49
  try {
51
- execSync(`git fetch origin ${head}:${head} --depth ${input.depth}`);
52
- execSync(`git fetch origin ${input.base}:${input.base} --depth ${input.depth}`);
53
- const mergeBase = execSync(`git merge-base ${head} ${input.base}`).toString().trim();
50
+ execSync(`git fetch --update-head-ok --depth ${input.depth} origin ${input.head}:${input.head}`);
51
+ execSync(`git fetch --update-head-ok --depth ${input.depth} origin ${input.base}:${input.base}`);
52
+ const mergeBase = execSync(`git merge-base ${input.head} ${input.base}`).toString().trim();
54
53
  return mergeBase || null;
55
54
  } catch {
56
55
  return null;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@argos-ci/core",
3
3
  "description": "Visual testing solution to avoid visual regression. The core component of Argos SDK that handles build creation.",
4
- "version": "2.4.2-alpha.7+3eb419d",
4
+ "version": "2.5.1",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "types": "./dist/index.d.ts",
@@ -40,8 +40,8 @@
40
40
  "access": "public"
41
41
  },
42
42
  "dependencies": {
43
- "@argos-ci/api-client": "0.1.1-alpha.35+3eb419d",
44
- "@argos-ci/util": "2.1.1-alpha.15+3eb419d",
43
+ "@argos-ci/api-client": "0.2.0",
44
+ "@argos-ci/util": "2.1.1",
45
45
  "axios": "^1.7.4",
46
46
  "convict": "^6.2.4",
47
47
  "debug": "^4.3.6",
@@ -60,5 +60,5 @@
60
60
  "build": "rollup -c",
61
61
  "e2e": "node ./e2e/upload.cjs && node ./e2e/upload.mjs"
62
62
  },
63
- "gitHead": "3eb419d3b661bf705619e1ec869cc73e05165b53"
63
+ "gitHead": "36dc00b48375b72a82aad17bc1465b8933e8e6a9"
64
64
  }