From e40578a855d42f0424966fd3427c4af8140ae703 Mon Sep 17 00:00:00 2001 From: Jovi De Croock Date: Mon, 19 Aug 2019 13:09:05 +0200 Subject: [PATCH 1/2] (chore) - add types/react dep --- package.json | 1 + yarn.lock | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/package.json b/package.json index 47e2238..181d1c5 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "homepage": "https://github.com/FormidableLabs/urql-devtools-exchange#readme", "devDependencies": { "@types/node": "^12.7.1", + "@types/react": "^16.9.2", "graphql": "^14.4.2", "prettier": "^1.18.2", "react": "^16.9.0", diff --git a/yarn.lock b/yarn.lock index 3d076ef..cd73c71 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7,6 +7,24 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-12.7.1.tgz#3b5c3a26393c19b400844ac422bd0f631a94d69d" integrity sha512-aK9jxMypeSrhiYofWWBf/T7O+KwaiAHzM4sveCdWPn71lzUSMimRnKzhXDKfKwV1kWoBo2P1aGgaIYGLf9/ljw== +"@types/prop-types@*": + version "15.7.1" + resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.1.tgz#f1a11e7babb0c3cad68100be381d1e064c68f1f6" + integrity sha512-CFzn9idOEpHrgdw8JsoTkaDDyRWk1jrzIV8djzcgpq0y9tG4B4lFT+Nxh52DVpDXV+n4+NPNv7M1Dj5uMp6XFg== + +"@types/react@^16.9.2": + version "16.9.2" + resolved "https://registry.yarnpkg.com/@types/react/-/react-16.9.2.tgz#6d1765431a1ad1877979013906731aae373de268" + integrity sha512-jYP2LWwlh+FTqGd9v7ynUKZzjj98T8x7Yclz479QdRhHfuW9yQ+0jjnD31eXSXutmBpppj5PYNLYLRfnZJvcfg== + dependencies: + "@types/prop-types" "*" + csstype "^2.2.0" + +csstype@^2.2.0: + version "2.6.6" + resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.6.6.tgz#c34f8226a94bbb10c32cc0d714afdf942291fc41" + integrity sha512-RpFbQGUE74iyPgvr46U9t1xoQBM8T4BL8SxrN66Le2xYAPSaDJJKeztV3awugusb3g3G9iL8StmkBBXhcbbXhg== + fast-json-stable-stringify@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2" From bd763baf97365d33c9c58eb73181542d0176eeb7 Mon Sep 17 00:00:00 2001 From: Jovi De Croock Date: Mon, 19 Aug 2019 13:09:26 +0200 Subject: [PATCH 2/2] (chore) - add disconnect message type --- src/types/outgoing.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/types/outgoing.ts b/src/types/outgoing.ts index 6dab424..1c2dd0d 100644 --- a/src/types/outgoing.ts +++ b/src/types/outgoing.ts @@ -25,11 +25,16 @@ export interface InitMessage { type: "init"; } +export interface DisconnectMessage { + type: "disconnect"; +} + /** Messages being sent by the devtools exchange to the content script. */ export type DevtoolsExchangeOutgoingMessage = | OperationMessage | OperationResponseMessage | OperationErrorMessage + | DisconnectMessage | InitMessage; /** Event type associated with events triggered by the exchange. */