@argos-ci/api-client 0.31.3 → 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.d.mts +1088 -381
- package/dist/index.mjs +4 -8
- package/dist/rolldown-runtime-D3KUYPsf.mjs +12 -0
- package/package.json +2 -2
- package/dist/rolldown-runtime-D7D4PA-g.mjs +0 -13
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
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
|
-
|
|
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
|
-
|
|
120
|
-
//#region src/schema.ts
|
|
118
|
+
// src/schema.ts
|
|
121
119
|
var schema_exports = /* @__PURE__ */ __exportAll({});
|
|
122
|
-
|
|
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.
|
|
4
|
+
"version": "0.32.0",
|
|
5
5
|
"author": "Smooth Code",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"openapi-fetch": "^0.17.0",
|
|
59
59
|
"p-retry": "^8.0.1"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "96ca00234edc12d322416295a4abebbc8471b696"
|
|
62
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 };
|