@solana/wallet-adapter-salmon
Advanced tools
Comparing version 0.1.9 to 0.1.10
@@ -65,4 +65,3 @@ "use strict"; | ||
(0, wallet_adapter_base_1.scopePollingDetectionStrategy)(() => { | ||
var _a; | ||
if (typeof ((_a = window.salmon) === null || _a === void 0 ? void 0 : _a.postMessage) === 'function') { | ||
if (window.salmon) { | ||
this._readyState = wallet_adapter_base_1.WalletReadyState.Installed; | ||
@@ -69,0 +68,0 @@ this.emit('readyStateChange', this._readyState); |
@@ -30,3 +30,3 @@ import { BaseMessageSignerWalletAdapter, scopePollingDetectionStrategy, WalletAccountError, WalletAdapterNetwork, WalletConfigError, WalletConnectionError, WalletDisconnectedError, WalletDisconnectionError, WalletLoadError, WalletNotConnectedError, WalletNotReadyError, WalletPublicKeyError, WalletReadyState, WalletSignMessageError, WalletSignTransactionError, } from '@solana/wallet-adapter-base'; | ||
scopePollingDetectionStrategy(() => { | ||
if (typeof window.salmon?.postMessage === 'function') { | ||
if (window.salmon) { | ||
this._readyState = WalletReadyState.Installed; | ||
@@ -33,0 +33,0 @@ this.emit('readyStateChange', this._readyState); |
{ | ||
"name": "@solana/wallet-adapter-salmon", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"author": "Solana Maintainers <maintainers@solana.foundation>", | ||
"repository": "https://github.com/solana-labs/wallet-adapter", | ||
"license": "Apache-2.0", | ||
"type": "module", | ||
"sideEffects": false, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"files": [ | ||
"lib", | ||
"src", | ||
"LICENSE" | ||
], | ||
"engines": { | ||
"node": ">=16" | ||
}, | ||
"type": "module", | ||
"sideEffects": false, | ||
"main": "./lib/cjs/index.js", | ||
@@ -20,19 +28,11 @@ "module": "./lib/esm/index.js", | ||
}, | ||
"files": [ | ||
"lib", | ||
"src", | ||
"LICENSE" | ||
], | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"peerDependencies": { | ||
"@solana/web3.js": "^1.61.0" | ||
"@solana/web3.js": "^1.58.0" | ||
}, | ||
"dependencies": { | ||
"@solana/wallet-adapter-base": "^0.9.18", | ||
"salmon-adapter-sdk": "^1.1.0" | ||
"@solana/wallet-adapter-base": "^0.9.19", | ||
"salmon-adapter-sdk": "^1.1.1" | ||
}, | ||
"devDependencies": { | ||
"@solana/web3.js": "^1.61.0", | ||
"@solana/web3.js": "^1.58.0", | ||
"shx": "^0.3.4" | ||
@@ -42,4 +42,4 @@ }, | ||
"clean": "shx mkdir -p lib && shx rm -rf lib", | ||
"package": "shx echo '{ \"type\": \"commonjs\" }' > lib/cjs/package.json" | ||
"package": "shx mkdir -p lib/cjs && shx echo '{ \"type\": \"commonjs\" }' > lib/cjs/package.json" | ||
} | ||
} |
@@ -60,3 +60,3 @@ import type { WalletName } from '@solana/wallet-adapter-base'; | ||
scopePollingDetectionStrategy(() => { | ||
if (typeof window.salmon?.postMessage === 'function') { | ||
if (window.salmon) { | ||
this._readyState = WalletReadyState.Installed; | ||
@@ -63,0 +63,0 @@ this.emit('readyStateChange', this._readyState); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
56049
646