Skip to content

Commit

Permalink
chore(package): update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
I committed Apr 30, 2016
1 parent 45a1e9b commit 4d20f70
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 32 deletions.
8 changes: 4 additions & 4 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
},
"dependencies": {
"@risingstack/graffiti": "../",
"@risingstack/graffiti-mongoose": "^5.0.9",
"babel-polyfill": "^6.7.2",
"@risingstack/graffiti-mongoose": "^5.0.10",
"babel-polyfill": "^6.7.4",
"body-parser": "^1.15.0",
"express": "^4.13.4",
"graphql": "^0.4.18",
"graphql": "^0.5.0",
"koa": "^1.2.0",
"koa-bodyparser": "^2.0.1",
"koa-static": "^2.0.0",
"mongoose": "^4.4.7"
"mongoose": "^4.4.14"
}
}
47 changes: 24 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,33 +28,34 @@
},
"homepage": "https://github.com/RisingStack/graffiti#readme",
"dependencies": {
"boom": "^3.1.2"
"boom": "3.1.2"
},
"peerDependencies": {
"graphql": "^0.4.17"
"graphql": "^0.5.0"
},
"devDependencies": {
"babel": "^6.5.1",
"babel-cli": "^6.6.5",
"babel-eslint": "^5.0.0-beta6",
"babel-polyfill": "^6.7.2",
"babel-preset-es2015": "^6.6.0",
"babel-preset-stage-0": "^6.5.0",
"babel-register": "^6.7.2",
"chai": "^3.5.0",
"chai-subset": "^1.2.0",
"co-mocha": "^1.1.2",
"eslint": "^2.4.0",
"eslint-config-airbnb": "^6.1.0",
"eslint-plugin-react": "^4.2.1",
"express": "^4.13.4",
"graphql": "^0.4.17",
"hapi": "^13.2.1",
"koa": "^2.0.0-alpha.2",
"mocha": "^2.4.5",
"pre-commit": "^1.1.2",
"sinon": "^1.17.3",
"sinon-chai": "^2.8.0"
"babel": "6.5.2",
"babel-cli": "6.7.7",
"babel-eslint": "6.0.4",
"babel-polyfill": "6.7.4",
"babel-preset-es2015": "6.6.0",
"babel-preset-stage-0": "6.5.0",
"babel-register": "6.7.2",
"chai": "3.5.0",
"chai-subset": "1.2.2",
"co-mocha": "1.1.2",
"eslint": "2.9.0",
"eslint-config-airbnb": "8.0.0",
"eslint-plugin-import": "1.6.1",
"eslint-plugin-react": "5.0.1",
"express": "4.13.4",
"graphql": "0.5.0",
"hapi": "13.3.0",
"koa": "2.0.0-alpha.2",
"mocha": "2.4.5",
"pre-commit": "1.1.2",
"sinon": "1.17.3",
"sinon-chai": "2.8.0"
},
"pre-commit": [
"eslint",
Expand Down
2 changes: 1 addition & 1 deletion src/express/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function middleware({ graphiql = true, schema = required() } = {}
// ignore
}

return graphql(schema, query, request, parsedVariables)
return graphql(schema, query, request, request, parsedVariables)
.then((result) => {
if (result.errors) {
const message = result.errors.map((error) => error.message).join('\n');
Expand Down
2 changes: 1 addition & 1 deletion src/express/express.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ describe('graffiti express', () => {
query: `mutation mutate($data: String!) {
updateData(data: $data)
}`,
variables: '{ "data": "123" }'
variables: JSON.stringify({ data: '123' })
},
accepts: (type) => type === 'json'
};
Expand Down
2 changes: 1 addition & 1 deletion src/hapi/hapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const plugin = {
// ignore
}

return graphql(schema, query, request, parsedVariables)
return graphql(schema, query, request, request, parsedVariables)
.then((result) => {
if (result.errors) {
const message = result.errors.map((error) => error.message).join('\n');
Expand Down
2 changes: 1 addition & 1 deletion src/koa/koa.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function middleware({ graphiql = true, schema = required() } = {}
// ignore
}

this.body = yield graphql(schema, query, this, parsedVariables);
this.body = yield graphql(schema, query, this, this, parsedVariables);
return this.body;
}

Expand Down
2 changes: 1 addition & 1 deletion src/util/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function required() {
throw new Error('Required option is missing');
}

const GRAPHIQL_VERSION = '0.6.0';
const GRAPHIQL_VERSION = '0.7.1';

export function renderGraphiQL({ query, variables, version = GRAPHIQL_VERSION } = {}) {
return `
Expand Down

0 comments on commit 4d20f70

Please sign in to comment.