diff --git a/package-lock.json b/package-lock.json index 4067d6832..dfc58227c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -63,7 +63,7 @@ "redux": "^4.0.5", "redux-persist": "^6.0.0", "redux-state-sync": "^3.1.4", - "sats-connect": "1.3.0-d302453", + "sats-connect": "1.4.0", "stream-browserify": "^3.0.0", "string-to-color": "^2.2.2", "styled-components": "^5.3.5", @@ -11958,9 +11958,9 @@ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, "node_modules/sats-connect": { - "version": "1.3.0-d302453", - "resolved": "https://registry.npmjs.org/sats-connect/-/sats-connect-1.3.0-d302453.tgz", - "integrity": "sha512-86kmkJ+NoHhP4zm7eUz1DGcqOuvvRwWpQ2VyqxWAfAZX7L7oOLjNtvxMzbepDcQEP1IYz1DpNQ9kXVZQmxv8zg==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/sats-connect/-/sats-connect-1.4.0.tgz", + "integrity": "sha512-jXc9sFdFp9iDDXF4ptSiiWEjHiJUyhvPh2h37QI6IrfhH00Awxjqjhq8PXmfum2ODMzYKDEzI1gXo/UUaToCCA==", "dependencies": { "jsontokens": "^4.0.1", "process": "^0.11.10", @@ -23205,9 +23205,9 @@ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, "sats-connect": { - "version": "1.3.0-d302453", - "resolved": "https://registry.npmjs.org/sats-connect/-/sats-connect-1.3.0-d302453.tgz", - "integrity": "sha512-86kmkJ+NoHhP4zm7eUz1DGcqOuvvRwWpQ2VyqxWAfAZX7L7oOLjNtvxMzbepDcQEP1IYz1DpNQ9kXVZQmxv8zg==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/sats-connect/-/sats-connect-1.4.0.tgz", + "integrity": "sha512-jXc9sFdFp9iDDXF4ptSiiWEjHiJUyhvPh2h37QI6IrfhH00Awxjqjhq8PXmfum2ODMzYKDEzI1gXo/UUaToCCA==", "requires": { "jsontokens": "^4.0.1", "process": "^0.11.10", diff --git a/package.json b/package.json index 4d48d77f9..6de446d98 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,7 @@ "redux": "^4.0.5", "redux-persist": "^6.0.0", "redux-state-sync": "^3.1.4", - "sats-connect": "1.3.0-d302453", + "sats-connect": "1.4.0", "stream-browserify": "^3.0.0", "string-to-color": "^2.2.2", "styled-components": "^5.3.5", diff --git a/src/inpage/index.ts b/src/inpage/index.ts index de0cad154..b2cf92e96 100644 --- a/src/inpage/index.ts +++ b/src/inpage/index.ts @@ -5,15 +5,10 @@ import SatsMethodsProvider from './sats.inpage'; import StacksMethodsProvider from './stacks.inpage'; declare global { - interface Window { - // @ts-ignore - XverseProviders: { - StacksProvider: StacksProvider; - BitcoinProvider: BitcoinProvider; - }; + interface XverseProviders { + StacksProvider: StacksProvider; } } - // we inject these in case implementors call the default providers window.StacksProvider = StacksMethodsProvider as StacksProvider; window.BitcoinProvider = SatsMethodsProvider as BitcoinProvider;