Comparing version 0.18.1-alpha-20231123173204-44651e7 to 0.18.1-alpha-20231123173511-3bc4b9e
@@ -14,2 +14,3 @@ "use strict"; | ||
const types_js_1 = require("./open-api/types.js"); | ||
const qs_1 = require("qs"); | ||
const defaultErrorHandler = (errors) => { | ||
@@ -387,10 +388,4 @@ let status; | ||
} | ||
const searchParams = new URLSearchParams(url.split('?')[1]); | ||
if (searchParams.has(name)) { | ||
const values = searchParams.getAll(name); | ||
return values.length === 1 ? values[0] : values; | ||
} | ||
if (body && body.hasOwnProperty(name)) { | ||
return body[name]; | ||
} | ||
const searchParams = (0, qs_1.parse)(url.split('?')[1]); | ||
return searchParams[name] || body[name]; | ||
} |
@@ -11,2 +11,3 @@ import { isObjectType, isNonNullType, Kind, isIntrospectionType, isInputObjectType, } from 'graphql'; | ||
import { buildSchemaObjectFromType } from './open-api/types.js'; | ||
import { parse as qsParse } from 'qs'; | ||
const defaultErrorHandler = (errors) => { | ||
@@ -383,10 +384,4 @@ let status; | ||
} | ||
const searchParams = new URLSearchParams(url.split('?')[1]); | ||
if (searchParams.has(name)) { | ||
const values = searchParams.getAll(name); | ||
return values.length === 1 ? values[0] : values; | ||
} | ||
if (body && body.hasOwnProperty(name)) { | ||
return body[name]; | ||
} | ||
const searchParams = qsParse(url.split('?')[1]); | ||
return searchParams[name] || body[name]; | ||
} |
{ | ||
"name": "sofa-api", | ||
"version": "0.18.1-alpha-20231123173204-44651e7", | ||
"version": "0.18.1-alpha-20231123173511-3bc4b9e", | ||
"description": "Create REST APIs with GraphQL", | ||
@@ -17,2 +17,3 @@ "sideEffects": false, | ||
"title-case": "^3.0.3", | ||
"qs": "^6.11.2", | ||
"tslib": "^2.5.0" | ||
@@ -19,0 +20,0 @@ }, |
102703
10
2347
+ Addedqs@^6.11.2
+ Added@whatwg-node/node-fetch@0.7.7(transitive)
+ Added@whatwg-node/server@0.9.65(transitive)
+ Addedobject-inspect@1.13.3(transitive)
- Removed@whatwg-node/node-fetch@0.7.8(transitive)
- Removed@whatwg-node/server@0.9.66(transitive)
- Removedobject-inspect@1.13.4(transitive)