@argos-ci/api-client 0.31.2 → 0.32.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.mjs CHANGED
@@ -1,10 +1,9 @@
1
- import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
1
+ import { t as __exportAll } from "./rolldown-runtime-D3KUYPsf.mjs";
2
2
  import createFetchClient from "openapi-fetch";
3
3
  import createDebug from "debug";
4
4
  import pRetry from "p-retry";
5
5
  const debug = createDebug("@argos-ci/api-client");
6
- //#endregion
7
- //#region src/fetch.ts
6
+ // src/fetch.ts
8
7
  const DEFAULT_TIMEOUT = 3e4;
9
8
  const DEFAULT_MIN_TIMEOUT = 1e3;
10
9
  /**
@@ -116,11 +115,9 @@ async function apiFetch(input, options = {}) {
116
115
  }
117
116
  });
118
117
  }
119
- //#endregion
120
- //#region src/schema.ts
118
+ // src/schema.ts
121
119
  var schema_exports = /* @__PURE__ */ __exportAll({});
122
- //#endregion
123
- //#region src/index.ts
120
+ // src/index.ts
124
121
  /**
125
122
  * Wrap {@link apiFetch} so every request carries a `User-Agent`.
126
123
  *
@@ -212,5 +209,4 @@ function throwAPIError(error, response) {
212
209
  data: error
213
210
  });
214
211
  }
215
- //#endregion
216
212
  export { APIError, schema_exports as ArgosAPISchema, createClient, formatAPIError, throwAPIError };
@@ -0,0 +1,12 @@
1
+ // \0rolldown/runtime.js
2
+ var __defProp = Object.defineProperty;
3
+ var __exportAll = (all, flags) => {
4
+ let target = Object.setPrototypeOf({}, null);
5
+ for (var name in all) __defProp(target, name, {
6
+ get: all[name],
7
+ enumerable: true
8
+ });
9
+ if (!(flags & 1)) __defProp(target, Symbol.toStringTag, { value: "Module" });
10
+ return flags & 2 ? target : Object.preventExtensions(target);
11
+ };
12
+ export { __exportAll as t };
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.31.2",
4
+ "version": "0.32.0",
5
5
  "author": "Smooth Code",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -14,9 +14,13 @@
14
14
  "url": "https://github.com/argos-ci/argos-javascript/issues"
15
15
  },
16
16
  "keywords": [
17
+ "argos",
18
+ "argos-ci",
17
19
  "api",
20
+ "api-client",
18
21
  "openapi",
19
- "argos"
22
+ "rest-api",
23
+ "visual-testing"
20
24
  ],
21
25
  "publishConfig": {
22
26
  "access": "public"
@@ -54,5 +58,5 @@
54
58
  "openapi-fetch": "^0.17.0",
55
59
  "p-retry": "^8.0.1"
56
60
  },
57
- "gitHead": "e9d0b2fb39001683230eff86f9c39e0016b5cf27"
61
+ "gitHead": "96ca00234edc12d322416295a4abebbc8471b696"
58
62
  }
@@ -1,13 +0,0 @@
1
- //#region \0rolldown/runtime.js
2
- var __defProp = Object.defineProperty;
3
- var __exportAll = (all, no_symbols) => {
4
- let target = {};
5
- for (var name in all) __defProp(target, name, {
6
- get: all[name],
7
- enumerable: true
8
- });
9
- if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
10
- return target;
11
- };
12
- //#endregion
13
- export { __exportAll as t };