@argos-ci/api-client 0.13.0 → 0.15.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
@@ -103,6 +103,7 @@ interface components {
103
103
  key: string;
104
104
  name: string;
105
105
  baseName?: string | null;
106
+ parentName?: string | null;
106
107
  metadata?: {
107
108
  /**
108
109
  * @description Ignored. Can be set to get completions, validations and documentation in some editors.
@@ -185,6 +186,8 @@ interface components {
185
186
  } | null;
186
187
  pwTraceKey?: string | null;
187
188
  threshold?: number | null;
189
+ /** @default image/png */
190
+ contentType: string;
188
191
  };
189
192
  /** @description Build metadata */
190
193
  BuildMetadata: {
@@ -300,6 +303,8 @@ interface operations {
300
303
  runAttempt?: number | null;
301
304
  /** @description Whether the build was skipped, not comparing anything and always succeeding */
302
305
  skipped?: boolean | null;
306
+ /** @description Whether the build has been created in a merge queue */
307
+ mergeQueue?: boolean | null;
303
308
  };
304
309
  };
305
310
  };
package/dist/index.js CHANGED
@@ -39,7 +39,7 @@ function isNetworkError(error) {
39
39
  return errorMessages.has(message);
40
40
  }
41
41
 
42
- // ../../node_modules/.pnpm/p-retry@7.1.0/node_modules/p-retry/index.js
42
+ // ../../node_modules/.pnpm/p-retry@7.1.1/node_modules/p-retry/index.js
43
43
  function validateRetries(retries) {
44
44
  if (typeof retries === "number") {
45
45
  if (retries < 0) {
@@ -131,6 +131,7 @@ async function onAttemptFailure({ error, attemptNumber, retriesConsumed, startTi
131
131
  }
132
132
  const delayTime = calculateDelay(retriesConsumed, options);
133
133
  const finalDelay = Math.min(delayTime, remainingTime);
134
+ options.signal?.throwIfAborted();
134
135
  if (finalDelay > 0) {
135
136
  await new Promise((resolve, reject) => {
136
137
  const onAbort = () => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@argos-ci/api-client",
3
3
  "description": "Argos API Client library.",
4
- "version": "0.13.0",
4
+ "version": "0.15.0",
5
5
  "author": "Smooth Code",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -46,11 +46,11 @@
46
46
  "@types/debug": "^4.1.12",
47
47
  "@types/node": "catalog:",
48
48
  "openapi-typescript": "^7.10.1",
49
- "p-retry": "^7.1.0"
49
+ "p-retry": "^7.1.1"
50
50
  },
51
51
  "dependencies": {
52
52
  "debug": "^4.4.3",
53
53
  "openapi-fetch": "^0.15.0"
54
54
  },
55
- "gitHead": "7b770d9d0c621980319bd5a195413f96c54d5752"
55
+ "gitHead": "d460ccc12fe75b1d9389d58647f1906bee7d5e0d"
56
56
  }
package/LICENSE DELETED
@@ -1,7 +0,0 @@
1
- Copyright 2022 Smooth Code
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
-
5
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.