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

update deps and typings #23

Merged
merged 1 commit into from
May 4, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fetch-mock.typings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ declare namespace FetchMock {
* Function(url, opts): A function that is passed the url and opts fetch()
is called with and that returns any of the responses listed above
*/
type MockResponse = IResponse | Promise<IResponse>
type MockResponse = Response | Promise<Response>
| number | Promise<number>
| string | Promise<string>
| Object | Promise<Object>
Expand Down
43 changes: 23 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,31 @@
"persistgraphql": "./bin/persistgraphql"
},
"dependencies": {
"@types/chai": "^3.4.34",
"@types/lodash": "^4.14.37",
"@types/mocha": "^2.2.32",
"@types/node": "^6.0.45",
"@types/yargs": "^6.5.0",
"chai": "^3.5.0",
"es6-promise": "^4.0.5",
"graphql": "^0.7.2",
"graphql-tag": "^0.1.14",
"lodash": "^4.16.4",
"mocha": "^3.1.2",
"source-map-support": "^0.4.3",
"typescript": "^2.0.3",
"whatwg-fetch": "^2.0.0",
"yargs": "^6.5.0"
"apollo-client": "^1.1",
"graphql": "^0.9.4",
"graphql-tag": "^2.0.0",
"lodash": "^4.17.4",
"whatwg-fetch": "^2.0.3",
"yargs": "^7.1.0"
},
"devDependencies": {
"@types/express": "^4.0.34",
"@types/graphql": "^0.8.5",
"apollo-client": "^0.8",
"fetch-mock": "^5.5.0",
"@types/chai": "^3.5.1",
"@types/express": "^4.0.35",
"@types/lodash": "^4.14.63",
"@types/mocha": "^2.2.41",
"@types/node": "^7.0.14",
"@types/yargs": "^6.6.0",
"chai": "^3.5.0",
"es6-promise": "^4.1.0",
"fetch-mock": "^5.10.0",
"isomorphic-fetch": "^2.2.1",
"tslint": "^3.15.1"
"mocha": "^3.3.0",
"source-map-support": "^0.4.15",
"tslint": "^5.1.0",
"typescript": "^2.3.1"
},
"optionalDependencies": {
"@types/graphql": "^0.9.0",
"@types/isomorphic-fetch": "0.0.34"
}
}
2 changes: 1 addition & 1 deletion test/network_interface/ApolloNetworkInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ describe('addPersistedQueries', () => {
id: string,
},
operationName: string,
}
};

const networkInterface = new GenericNetworkInterface();
addPersistedQueries(networkInterface, queryMap);
Expand Down
7 changes: 0 additions & 7 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"interface-name": false,
"jsdoc-format": true,
"label-position": true,
"label-undefined": true,
"max-line-length": [
true,
140
Expand All @@ -44,9 +43,7 @@
"trace"
],
"no-construct": true,
"no-constructor-vars": true,
"no-debugger": true,
"no-duplicate-key": true,
"no-duplicate-variable": true,
"no-empty": true,
"no-eval": true,
Expand All @@ -57,7 +54,6 @@
"no-shadowed-variable": true,
"no-switch-case-fall-through": true,
"no-trailing-whitespace": true,
"no-unreachable": true,
"no-unused-expression": true,
"no-unused-variable": true,
"no-use-before-declare": true,
Expand Down Expand Up @@ -119,9 +115,6 @@
"variable-declaration": "space"
}
],
"use-strict": [
false
],
"variable-name": [
true,
"check-format",
Expand Down