diff --git a/package.json b/package.json index 6d8888c..3be7850 100644 --- a/package.json +++ b/package.json @@ -31,10 +31,11 @@ }, "homepage": "https://github.com/MetaMask/extension-port-stream#readme", "dependencies": { - "webextension-polyfill-ts": "^0.26.0" + "webextension-polyfill": ">=0.10.0 <1.0" }, "devDependencies": { "@metamask/eslint-config": "^4.1.0", + "@types/webextension-polyfill": ">=0.10.0 <1.0", "@types/node": "14.14.7", "@typescript-eslint/eslint-plugin": "^4.8.1", "@typescript-eslint/parser": "^4.8.1", diff --git a/src/index.ts b/src/index.ts index 751291c..356efc5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,5 @@ import { Duplex } from 'stream'; -import { Runtime } from 'webextension-polyfill-ts'; +import { Runtime } from 'webextension-polyfill'; type Log = (data: unknown, out: boolean) => void; diff --git a/yarn.lock b/yarn.lock index b9a9fbe..4dfd87e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -80,6 +80,11 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.7.tgz#8ea1e8f8eae2430cf440564b98c6dfce1ec5945d" integrity sha512-Zw1vhUSQZYw+7u5dAwNbIA9TuTotpzY/OF7sJM9FqPOF3SPjKnxrjoTktXDZgUjybf4cWVBP7O8wvKdSaGHweg== +"@types/webextension-polyfill@>=0.10.0 <1.0": + version "0.10.0" + resolved "https://registry.yarnpkg.com/@types/webextension-polyfill/-/webextension-polyfill-0.10.0.tgz#e87b5e2c101599779a584cdb043887ad73b37b0e" + integrity sha512-If4EcaHzYTqcbNMp/FdReVdRmLL/Te42ivnJII551bYjhX19bWem5m14FERCqdJA732OloGuxCRvLBvcMGsn4A== + "@typescript-eslint/eslint-plugin@^4.8.1": version "4.8.1" resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.8.1.tgz#b362abe0ee478a6c6d06c14552a6497f0b480769" @@ -1462,17 +1467,10 @@ vscode-uri@^2.1.2: resolved "https://registry.yarnpkg.com/vscode-uri/-/vscode-uri-2.1.2.tgz#c8d40de93eb57af31f3c715dd650e2ca2c096f1c" integrity sha512-8TEXQxlldWAuIODdukIb+TR5s+9Ds40eSJrw+1iDDA9IFORPjMELarNQE3myz5XIkWWpdprmJjm1/SxMlWOC8A== -webextension-polyfill-ts@^0.26.0: - version "0.26.0" - resolved "https://registry.yarnpkg.com/webextension-polyfill-ts/-/webextension-polyfill-ts-0.26.0.tgz#80b7063ddaf99abaa1ca73aad0cec09f306612d3" - integrity sha512-XEFL+aYVEsm/d4RajVwP75g56c/w2aSHnPwgtUv8/nCzbLNSzRQIix6aj1xqFkA5yr7OIDkk3OD/QTnPp8ThYA== - dependencies: - webextension-polyfill "^0.8.0" - -webextension-polyfill@^0.8.0: - version "0.8.0" - resolved "https://registry.yarnpkg.com/webextension-polyfill/-/webextension-polyfill-0.8.0.tgz#f80e9f4b7f81820c420abd6ffbebfa838c60e041" - integrity sha512-a19+DzlT6Kp9/UI+mF9XQopeZ+n2ussjhxHJ4/pmIGge9ijCDz7Gn93mNnjpZAk95T4Tae8iHZ6sSf869txqiQ== +"webextension-polyfill@>=0.10.0 <1.0": + version "0.10.0" + resolved "https://registry.yarnpkg.com/webextension-polyfill/-/webextension-polyfill-0.10.0.tgz#ccb28101c910ba8cf955f7e6a263e662d744dbb8" + integrity sha512-c5s35LgVa5tFaHhrZDnr3FpQpjj1BB+RXhLTYUxGqBVN460HkbM8TBtEqdXWbpTKfzwCcjAZVF7zXCYSKtcp9g== which@^2.0.1: version "2.0.2"