Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Commit

Permalink
Flow: Make query variables read-only (#518)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov authored Jun 30, 2019
1 parent 3c65602 commit eafa055
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"eslint-plugin-flowtype": "3.9.0",
"eslint-plugin-prettier": "3.1.0",
"express": "4.17.0",
"flow-bin": "0.96.0",
"flow-bin": "0.102.0",
"graphql": "14.4.1",
"mocha": "6.1.4",
"multer": "1.4.1",
Expand All @@ -84,6 +84,6 @@
"supertest": "4.0.2"
},
"peerDependencies": {
"graphql": "^14.2.0"
"graphql": "^14.4.1"
}
}
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export type RequestInfo = {|
/**
* The variable values used at runtime.
*/
variables: ?{ [name: string]: mixed },
variables: ?{ +[name: string]: mixed },

/**
* The (optional) operation name requested.
Expand Down Expand Up @@ -435,7 +435,7 @@ function graphqlHTTP(options: Options): Middleware {

export type GraphQLParams = {|
query: ?string,
variables: ?{ [name: string]: mixed },
variables: ?{ +[name: string]: mixed },
operationName: ?string,
raw: ?boolean,
|};
Expand Down
2 changes: 1 addition & 1 deletion src/renderGraphiQL.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

type GraphiQLData = {|
query: ?string,
variables: ?{ [name: string]: mixed },
variables: ?{ +[name: string]: mixed },
operationName: ?string,
result?: mixed,
options: GraphiQLOptions,
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1661,10 +1661,10 @@ flatted@^2.0.0:
resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.0.tgz#55122b6536ea496b4b44893ee2608141d10d9916"
integrity sha512-R+H8IZclI8AAkSBRQJLVOsxwAoHd6WC40b4QTNWIjzAa6BXOBfQcM587MXDTVPeYaopFNWHUFLx7eNmHDSxMWg==

flow-bin@0.96.0:
version "0.96.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.96.0.tgz#3b0379d97304dc1879ae6db627cd2d6819998661"
integrity sha512-OSxERs0EdhVxEVCst/HmlT/RcnXsQQIRqcfK9J9wC8/93JQj+xQz4RtlsmYe1PSRYaozuDLyPS5pIA81Zwzaww==
flow-bin@0.102.0:
version "0.102.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.102.0.tgz#3d5de44bcc26d26585e932b3201988b766f9b380"
integrity sha512-mYon6noeLO0Q5SbiWULLQeM1L96iuXnRtYMd47j3bEWXAwUW9EnwNWcn+cZg/jC/Dg4Wj/jnkdTDEuFtbeu1ww==

for-in@^1.0.1, for-in@^1.0.2:
version "1.0.2"
Expand Down

0 comments on commit eafa055

Please sign in to comment.