Skip to content

Commit

Permalink
Don’t import and link types from the middlware modules within the mod…
Browse files Browse the repository at this point in the history
…ule `processRequest.js`.

Fixes #314 .
  • Loading branch information
jaydenseric committed May 29, 2022
1 parent cd9e4f1 commit 7d25d46
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# graphql-upload changelog

## Next

### Patch

- Don’t import and link types from the middlware modules `graphqlUploadExpress.js` and `graphqlUploadKoa.js` within the module `processRequest.js`, fixing [#314](https://github.com/jaydenseric/graphql-upload/issues/314).

## 15.0.0

### Major
Expand Down
5 changes: 1 addition & 4 deletions processRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ const ignoreStream = require("./ignoreStream.js");
const Upload = require("./Upload.js");

/** @typedef {import("./GraphQLUpload.js")} GraphQLUpload */
/** @typedef {import("./graphqlUploadExpress.js")} graphqlUploadExpress */
/** @typedef {import("./graphqlUploadKoa.js")} graphqlUploadKoa */

/**
* Processes an incoming
Expand All @@ -22,8 +20,7 @@ const Upload = require("./Upload.js");
* is expected in the GraphQL operation for the {@linkcode GraphQLUpload} scalar
* to derive it’s value. Errors are created with
* [`http-errors`](https://npm.im/http-errors) to assist in sending responses
* with appropriate HTTP status codes. Used to create custom middleware and is
* used by {@linkcode graphqlUploadExpress} and {@linkcode graphqlUploadKoa}.
* with appropriate HTTP status codes. Used to create custom middleware.
* @type {ProcessRequestFunction}
*/
function processRequest(
Expand Down

0 comments on commit 7d25d46

Please sign in to comment.