@matdata/yasqe 5.17.0 → 5.18.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/build/ts/src/sparql.js +1 -2
- package/build/ts/src/sparql.js.map +1 -1
- package/build/yasqe.min.css.map +1 -1
- package/build/yasqe.min.js +32 -32
- package/build/yasqe.min.js.map +3 -3
- package/package.json +1 -1
- package/src/sparql.ts +3 -2
package/package.json
CHANGED
package/src/sparql.ts
CHANGED
|
@@ -251,8 +251,9 @@ export async function executeQuery(
|
|
|
251
251
|
|
|
252
252
|
// Use custom query if provided, otherwise use the args from config
|
|
253
253
|
if (options?.customQuery) {
|
|
254
|
-
|
|
255
|
-
|
|
254
|
+
// A custom query is always a SPARQL read query (CONSTRUCT/DESCRIBE/SELECT/ASK),
|
|
255
|
+
// never an update — always use the "query" parameter regardless of editor mode.
|
|
256
|
+
searchParams.append("query", options.customQuery);
|
|
256
257
|
|
|
257
258
|
// Add other args except the query/update parameter
|
|
258
259
|
appendArgsToParams(populatedConfig.args, ["query", "update"]);
|