@mo36924/graphql-plugin 5.5.0 → 5.5.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/index.cjs CHANGED
@@ -96,7 +96,7 @@ const graphql = ({ typescript: ts })=>{
96
96
  }
97
97
  const field = query.match(/\w+/)?.[0] ?? "";
98
98
  const isMutation = !!schema.getMutationType()?.getFields()[field];
99
- const operation = isMutation ? "mutation" : "query";
99
+ const operation = isMutation ? "mutation" : "";
100
100
  query = operation + query.replace(/\n|\r/g, " ");
101
101
  const offset = -operation.length + template.getStart() + 1;
102
102
  return {
package/dist/index.js CHANGED
@@ -94,7 +94,7 @@ const graphql = ({ typescript: ts })=>{
94
94
  }
95
95
  const field = query.match(/\w+/)?.[0] ?? "";
96
96
  const isMutation = !!schema.getMutationType()?.getFields()[field];
97
- const operation = isMutation ? "mutation" : "query";
97
+ const operation = isMutation ? "mutation" : "";
98
98
  query = operation + query.replace(/\n|\r/g, " ");
99
99
  const offset = -operation.length + template.getStart() + 1;
100
100
  return {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mo36924/graphql-plugin",
3
3
  "type": "module",
4
- "version": "5.5.0",
4
+ "version": "5.5.14",
5
5
  "description": "graphql-plugin",
6
6
  "author": "mo36924",
7
7
  "license": "MIT",
@@ -39,12 +39,12 @@
39
39
  "access": "public"
40
40
  },
41
41
  "dependencies": {
42
- "@mo36924/graphql": "^5.5.0",
42
+ "@mo36924/graphql": "^5.5.4",
43
43
  "@volar/typescript": "^2.4.10",
44
44
  "graphql": "^16.9.0",
45
45
  "graphql-language-service": "^5.3.0",
46
46
  "typescript": "^5.6.3",
47
47
  "vscode-languageserver-types": "^3.17.5"
48
48
  },
49
- "gitHead": "db377c8fa7e0a7a412a658f17af65af48be3823e"
49
+ "gitHead": "3169b8257ca615c7023363657da6f2545cef1898"
50
50
  }