@argos-ci/core 0.4.2-alpha.6 → 0.5.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/dist/index.d.ts CHANGED
@@ -5,7 +5,7 @@ interface UploadParameters {
5
5
  files?: string[];
6
6
  /** Root directory to look for image to upload (default to current directory) */
7
7
  root?: string;
8
- /** Globs matching image file paths to ignore (default to "**\/*.{png,jpg,jpeg}") */
8
+ /** Globs matching image file paths to ignore (default to "**\/*.\{png,jpg,jpeg\}") */
9
9
  ignore?: string[];
10
10
  /** Base URL of Argos API (default to "https://api.argos-ci.com/v2/") */
11
11
  apiBaseUrl?: string;
package/dist/index.mjs CHANGED
@@ -180,8 +180,9 @@ function getBranch({ env }) {
180
180
  return null;
181
181
  }
182
182
  function getRepository({ env }) {
183
- if (!env.GITHUB_REPOSITORY) return null;
184
- return env.GITHUB_REPOSITORY.split("/")[1];
183
+ if (!env.GITHUB_REPOSITORY_OWNER) return null;
184
+ const [, ...repositoryParts] = env.GITHUB_REPOSITORY_OWNER.split("/");
185
+ return repositoryParts.join("/");
185
186
  }
186
187
  const service = {
187
188
  detect: ({ env })=>Boolean(env.GITHUB_ACTIONS),
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": "0.4.2-alpha.6+3ace924",
4
+ "version": "0.5.0",
5
5
  "scripts": {
6
6
  "prebuild": "rm -rf dist",
7
7
  "build": "rollup -c",
@@ -45,20 +45,20 @@
45
45
  "access": "public"
46
46
  },
47
47
  "dependencies": {
48
- "axios": "^0.27.2",
48
+ "axios": "^1.1.2",
49
49
  "convict": "^6.2.3",
50
50
  "debug": "^4.3.4",
51
51
  "env-ci": "^7.3.0",
52
- "fast-glob": "^3.2.11",
53
- "sharp": "^0.30.7",
52
+ "fast-glob": "^3.2.12",
53
+ "sharp": "^0.31.1",
54
54
  "tmp": "^0.2.1"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@types/convict": "^6.1.1",
58
- "msw": "^0.44.2",
59
- "rollup": "^2.78.0",
60
- "rollup-plugin-dts": "^4.2.2",
61
- "rollup-plugin-swc3": "^0.3.0"
58
+ "msw": "^0.47.4",
59
+ "rollup": "^2.79.1",
60
+ "rollup-plugin-dts": "^4.2.3",
61
+ "rollup-plugin-swc3": "^0.6.0"
62
62
  },
63
- "gitHead": "3ace9249c7e55c5e0e2ae176b203f6807005b872"
63
+ "gitHead": "c085c7e514623e54a86b2f311ff988709be391d0"
64
64
  }