@neriros/ralphy 3.10.13 → 3.10.14
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/shell/index.js +17 -7
- package/package.json +1 -1
package/dist/shell/index.js
CHANGED
|
@@ -18928,8 +18928,8 @@ import { readFileSync } from "fs";
|
|
|
18928
18928
|
import { resolve } from "path";
|
|
18929
18929
|
function getVersion() {
|
|
18930
18930
|
try {
|
|
18931
|
-
if ("3.10.
|
|
18932
|
-
return "3.10.
|
|
18931
|
+
if ("3.10.14")
|
|
18932
|
+
return "3.10.14";
|
|
18933
18933
|
} catch {}
|
|
18934
18934
|
const dirsToTry = [];
|
|
18935
18935
|
try {
|
|
@@ -103114,11 +103114,21 @@ function formatLinearError(err) {
|
|
|
103114
103114
|
async function linearRequest(apiKey, query, variables) {
|
|
103115
103115
|
let lastHttpError;
|
|
103116
103116
|
for (let attempt2 = 1;attempt2 <= MAX_LINEAR_ATTEMPTS; attempt2++) {
|
|
103117
|
-
|
|
103118
|
-
|
|
103119
|
-
|
|
103120
|
-
|
|
103121
|
-
|
|
103117
|
+
let res;
|
|
103118
|
+
try {
|
|
103119
|
+
res = await fetch(LINEAR_API, {
|
|
103120
|
+
method: "POST",
|
|
103121
|
+
headers: { "Content-Type": "application/json", Authorization: apiKey },
|
|
103122
|
+
body: JSON.stringify({ query, variables })
|
|
103123
|
+
});
|
|
103124
|
+
} catch (netErr) {
|
|
103125
|
+
lastHttpError = netErr;
|
|
103126
|
+
if (attempt2 < MAX_LINEAR_ATTEMPTS) {
|
|
103127
|
+
await linearRequestInternals.sleep(Math.min(backoffMs(attempt2), MAX_RETRY_AFTER_MS));
|
|
103128
|
+
continue;
|
|
103129
|
+
}
|
|
103130
|
+
throw netErr;
|
|
103131
|
+
}
|
|
103122
103132
|
if (!res.ok) {
|
|
103123
103133
|
const err = new Error("Linear API request failed");
|
|
103124
103134
|
err.status = res.status;
|
package/package.json
CHANGED