@requesto/cli 1.13.0 → 1.13.1
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 +16 -5
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -82169,9 +82169,15 @@ var require_environment_service = __commonJS({
|
|
|
82169
82169
|
const overrides = this.localRepo.getForEnvironment(env2.id);
|
|
82170
82170
|
if (Object.keys(overrides).length === 0)
|
|
82171
82171
|
return env2;
|
|
82172
|
+
const variables = env2.variables.map((v) => Object.prototype.hasOwnProperty.call(overrides, v.key) ? { ...v, currentValue: overrides[v.key] } : v);
|
|
82173
|
+
for (const [key, currentValue] of Object.entries(overrides)) {
|
|
82174
|
+
if (!variables.some((v) => v.key === key)) {
|
|
82175
|
+
variables.push({ key, value: "", currentValue, enabled: true });
|
|
82176
|
+
}
|
|
82177
|
+
}
|
|
82172
82178
|
return {
|
|
82173
82179
|
...env2,
|
|
82174
|
-
variables
|
|
82180
|
+
variables
|
|
82175
82181
|
};
|
|
82176
82182
|
}
|
|
82177
82183
|
getAll() {
|
|
@@ -134888,11 +134894,16 @@ function buildSavedGraphQLRequest(req) {
|
|
|
134888
134894
|
if (operation.operation !== "query") {
|
|
134889
134895
|
throw new Error("GraphQL GET requests can only execute query operations");
|
|
134890
134896
|
}
|
|
134891
|
-
const
|
|
134892
|
-
url.
|
|
134897
|
+
const hashIndex = req.url.indexOf("#");
|
|
134898
|
+
const base = hashIndex < 0 ? req.url : req.url.slice(0, hashIndex);
|
|
134899
|
+
const hash = hashIndex < 0 ? "" : req.url.slice(hashIndex);
|
|
134900
|
+
const queryIndex = base.indexOf("?");
|
|
134901
|
+
const path6 = queryIndex < 0 ? base : base.slice(0, queryIndex);
|
|
134902
|
+
const params = new URLSearchParams(queryIndex < 0 ? "" : base.slice(queryIndex + 1));
|
|
134903
|
+
params.set("query", document2);
|
|
134893
134904
|
if (variables)
|
|
134894
|
-
|
|
134895
|
-
return { method: "GET", url:
|
|
134905
|
+
params.set("variables", JSON.stringify(variables));
|
|
134906
|
+
return { method: "GET", url: `${path6}?${params}${hash}`, headers, auth: req.auth };
|
|
134896
134907
|
}
|
|
134897
134908
|
setDefaultHeader(headers, "Content-Type", "application/json");
|
|
134898
134909
|
const body = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@requesto/cli",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.1",
|
|
4
4
|
"description": "Run your Requesto collections from the terminal and CI pipelines",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.mjs",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "^26.6.4",
|
|
28
28
|
"esbuild": "^0.28.2",
|
|
29
|
-
"requesto-backend": "1.13.
|
|
30
|
-
"requesto-engine": "1.13.
|
|
29
|
+
"requesto-backend": "1.13.1",
|
|
30
|
+
"requesto-engine": "1.13.1",
|
|
31
31
|
"tsx": "^4.23.15",
|
|
32
32
|
"typescript": "^7.0.2",
|
|
33
33
|
"vitest": "^5.0.3"
|