sofa-api 0.15.0 → 0.15.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/index.js +1 -2
- package/index.mjs +1 -2
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -49,8 +49,7 @@ function resolveVariable({ value, type, schema, }) {
|
|
|
49
49
|
if (graphql.isScalarType(namedType)) {
|
|
50
50
|
// GraphQLBoolean.serialize expects a boolean or a number only
|
|
51
51
|
if (graphql.isEqualType(graphql.GraphQLBoolean, namedType)) {
|
|
52
|
-
|
|
53
|
-
value = value === 'true';
|
|
52
|
+
value = (value === 'true' || value === true);
|
|
54
53
|
}
|
|
55
54
|
return namedType.serialize(value);
|
|
56
55
|
}
|
package/index.mjs
CHANGED
|
@@ -43,8 +43,7 @@ function resolveVariable({ value, type, schema, }) {
|
|
|
43
43
|
if (isScalarType(namedType)) {
|
|
44
44
|
// GraphQLBoolean.serialize expects a boolean or a number only
|
|
45
45
|
if (isEqualType(GraphQLBoolean, namedType)) {
|
|
46
|
-
|
|
47
|
-
value = value === 'true';
|
|
46
|
+
value = (value === 'true' || value === true);
|
|
48
47
|
}
|
|
49
48
|
return namedType.serialize(value);
|
|
50
49
|
}
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sofa-api",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"description": "Create REST APIs with GraphQL",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|
|
7
7
|
"graphql": "^0.13.2 || ^14.0.0 || ^15.0.0 || ^16.0.0"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@graphql-tools/utils": "
|
|
11
|
-
"@whatwg-node/fetch": "^0.
|
|
10
|
+
"@graphql-tools/utils": "9.1.0",
|
|
11
|
+
"@whatwg-node/fetch": "^0.5.0",
|
|
12
12
|
"@whatwg-node/server": "^0.4.1",
|
|
13
13
|
"ansi-colors": "4.1.3",
|
|
14
14
|
"itty-router": "^2.6.1",
|
|
15
15
|
"openapi-types": "12.0.2",
|
|
16
16
|
"param-case": "3.0.4",
|
|
17
17
|
"title-case": "3.0.3",
|
|
18
|
-
"tslib": "2.4.
|
|
18
|
+
"tslib": "2.4.1"
|
|
19
19
|
},
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|