@graphql-codegen/java-apollo-android 5.0.0 → 5.0.1-alpha-20261111121831-90435a1629fd5d14288eb36ea09128200d5e5219
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/cjs/field-arguments.js +2 -3
- package/esm/field-arguments.js +2 -3
- package/package.json +1 -1
package/cjs/field-arguments.js
CHANGED
|
@@ -13,9 +13,8 @@ function visitFieldArguments(selection, imports) {
|
|
|
13
13
|
return (0, plugin_helpers_1.oldVisit)(selection, {
|
|
14
14
|
leave: {
|
|
15
15
|
Field: (node) => {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
'.build()');
|
|
16
|
+
const args = node.arguments || [];
|
|
17
|
+
return (`new UnmodifiableMapBuilder<String, Object>(${args.length})` + args.join('') + '.build()');
|
|
19
18
|
},
|
|
20
19
|
Argument: (node) => {
|
|
21
20
|
return `.put("${node.name.value}", ${node.value})`;
|
package/esm/field-arguments.js
CHANGED
|
@@ -10,9 +10,8 @@ export function visitFieldArguments(selection, imports) {
|
|
|
10
10
|
return oldVisit(selection, {
|
|
11
11
|
leave: {
|
|
12
12
|
Field: (node) => {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
'.build()');
|
|
13
|
+
const args = node.arguments || [];
|
|
14
|
+
return (`new UnmodifiableMapBuilder<String, Object>(${args.length})` + args.join('') + '.build()');
|
|
16
15
|
},
|
|
17
16
|
Argument: (node) => {
|
|
18
17
|
return `.put("${node.name.value}", ${node.value})`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/java-apollo-android",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.1-alpha-20261111121831-90435a1629fd5d14288eb36ea09128200d5e5219",
|
|
4
4
|
"description": "GraphQL Code Generator plugin for generating Java classes for Apollo-Android",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"graphql": "^16.0.0 || ^17.0.0"
|