Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tiplink/wallet-adapter

Package Overview
Dependencies
Maintainers
4
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tiplink/wallet-adapter - npm Package Compare versions

Comparing version 2.1.16 to 2.1.17

6

lib/cjs/embed.js

@@ -48,3 +48,3 @@ "use strict";

PopupType[PopupType["NOT_ALLOWLISTED"] = 3] = "NOT_ALLOWLISTED";
})(PopupType || (exports.PopupType = PopupType = {}));
})(PopupType = exports.PopupType || (exports.PopupType = {}));
class TipLinkEmbed extends wallet_adapter_base_1.EventEmitter {

@@ -291,2 +291,6 @@ constructor(title, buildEnv, clientId, forceIframe, dAppSessionId, isDisallowed) {

const tipLinkAutoConnect = !!queryParams.tipLinkAutoConnect;
if (promptTipLinkAutoConnectFromRedirect || tipLinkAutoConnect) {
directConnect = false;
autoConnect = true;
}
let windowParams = undefined;

@@ -293,0 +297,0 @@ const isThemed = theme !== "system";

2

lib/cjs/index.js

@@ -23,3 +23,3 @@ "use strict";

exports.GoogleViaTipLinkWalletName = "Google via TipLink";
exports.NPM_VERSION = "2.1.16";
exports.NPM_VERSION = "2.1.17";
// preload for iframe doesn't work https://bugs.chromium.org/p/chromium/issues/detail?id=593267

@@ -26,0 +26,0 @@ function preLoadIframe(buildEnv, clientId) {

@@ -80,70 +80,2 @@ "use strict";

class SolanaWalletAdapterWallet {
get version() {
return "1.0.0";
}
get name() {
return __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_adapter, "f").name;
}
get icon() {
return __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_adapter, "f").icon;
}
get chains() {
return [__classPrivateFieldGet(this, _SolanaWalletAdapterWallet_chain, "f")];
}
get features() {
const features = {
[features_1.StandardConnect]: {
version: "1.0.0",
connect: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_connect, "f"),
},
[features_1.StandardDisconnect]: {
version: "1.0.0",
disconnect: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_disconnect, "f"),
},
[features_1.StandardEvents]: {
version: "1.0.0",
on: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_on, "f"),
},
[wallet_standard_features_1.SolanaSignAndSendTransaction]: {
version: "1.0.0",
supportedTransactionVersions: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_supportedTransactionVersions, "f"),
signAndSendTransaction: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_signAndSendTransaction, "f"),
},
};
let signTransactionFeature;
if ("signTransaction" in __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_adapter, "f")) {
signTransactionFeature = {
[wallet_standard_features_1.SolanaSignTransaction]: {
version: "1.0.0",
supportedTransactionVersions: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_supportedTransactionVersions, "f"),
signTransaction: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_signTransaction, "f"),
},
};
}
let signMessageFeature;
if ("signMessage" in __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_adapter, "f")) {
signMessageFeature = {
[wallet_standard_features_1.SolanaSignMessage]: {
version: "1.0.0",
signMessage: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_signMessage, "f"),
},
};
}
let signInFeature;
if ("signIn" in __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_adapter, "f")) {
signInFeature = {
[wallet_standard_features_1.SolanaSignIn]: {
version: "1.0.0",
signIn: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_signIn, "f"),
},
};
}
return Object.assign(Object.assign(Object.assign(Object.assign({}, features), signTransactionFeature), signMessageFeature), signInFeature);
}
get accounts() {
return __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_account, "f") ? [__classPrivateFieldGet(this, _SolanaWalletAdapterWallet_account, "f")] : [];
}
get endpoint() {
return __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_endpoint, "f");
}
constructor(adapter, chain, endpoint) {

@@ -317,2 +249,70 @@ _SolanaWalletAdapterWallet_instances.add(this);

}
get version() {
return "1.0.0";
}
get name() {
return __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_adapter, "f").name;
}
get icon() {
return __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_adapter, "f").icon;
}
get chains() {
return [__classPrivateFieldGet(this, _SolanaWalletAdapterWallet_chain, "f")];
}
get features() {
const features = {
[features_1.StandardConnect]: {
version: "1.0.0",
connect: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_connect, "f"),
},
[features_1.StandardDisconnect]: {
version: "1.0.0",
disconnect: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_disconnect, "f"),
},
[features_1.StandardEvents]: {
version: "1.0.0",
on: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_on, "f"),
},
[wallet_standard_features_1.SolanaSignAndSendTransaction]: {
version: "1.0.0",
supportedTransactionVersions: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_supportedTransactionVersions, "f"),
signAndSendTransaction: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_signAndSendTransaction, "f"),
},
};
let signTransactionFeature;
if ("signTransaction" in __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_adapter, "f")) {
signTransactionFeature = {
[wallet_standard_features_1.SolanaSignTransaction]: {
version: "1.0.0",
supportedTransactionVersions: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_supportedTransactionVersions, "f"),
signTransaction: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_signTransaction, "f"),
},
};
}
let signMessageFeature;
if ("signMessage" in __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_adapter, "f")) {
signMessageFeature = {
[wallet_standard_features_1.SolanaSignMessage]: {
version: "1.0.0",
signMessage: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_signMessage, "f"),
},
};
}
let signInFeature;
if ("signIn" in __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_adapter, "f")) {
signInFeature = {
[wallet_standard_features_1.SolanaSignIn]: {
version: "1.0.0",
signIn: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_signIn, "f"),
},
};
}
return Object.assign(Object.assign(Object.assign(Object.assign({}, features), signTransactionFeature), signMessageFeature), signInFeature);
}
get accounts() {
return __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_account, "f") ? [__classPrivateFieldGet(this, _SolanaWalletAdapterWallet_account, "f")] : [];
}
get endpoint() {
return __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_endpoint, "f");
}
destroy() {

@@ -319,0 +319,0 @@ __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_adapter, "f").off("connect", __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_instances, "m", _SolanaWalletAdapterWallet_connected), this);

@@ -19,3 +19,3 @@ "use strict";

CallbackType[CallbackType["POST"] = 1] = "POST";
})(CallbackType || (exports.CallbackType = CallbackType = {}));
})(CallbackType = exports.CallbackType || (exports.CallbackType = {}));
class WindowCommunicator {

@@ -22,0 +22,0 @@ constructor(buildEnv, windowOpenFailHandler) {

@@ -264,2 +264,6 @@ /*

const tipLinkAutoConnect = !!queryParams.tipLinkAutoConnect;
if (promptTipLinkAutoConnectFromRedirect || tipLinkAutoConnect) {
directConnect = false;
autoConnect = true;
}
let windowParams = undefined;

@@ -266,0 +270,0 @@ const isThemed = theme !== "system";

@@ -11,3 +11,3 @@ import { BaseSignInMessageSignerWalletAdapter, WalletConfigError, WalletConnectionError, WalletDisconnectionError, WalletNotConnectedError, WalletNotReadyError, WalletPublicKeyError, WalletReadyState, WalletSignInError, WalletSignMessageError, WalletSignTransactionError, } from "@solana/wallet-adapter-base";

export const GoogleViaTipLinkWalletName = "Google via TipLink";
export const NPM_VERSION = "2.1.16";
export const NPM_VERSION = "2.1.17";
// preload for iframe doesn't work https://bugs.chromium.org/p/chromium/issues/detail?id=593267

@@ -14,0 +14,0 @@ async function preLoadIframe(buildEnv, clientId) {

@@ -64,75 +64,2 @@ /**

export class SolanaWalletAdapterWallet {
get version() {
return "1.0.0";
}
get name() {
return __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_adapter, "f").name;
}
get icon() {
return __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_adapter, "f").icon;
}
get chains() {
return [__classPrivateFieldGet(this, _SolanaWalletAdapterWallet_chain, "f")];
}
get features() {
const features = {
[StandardConnect]: {
version: "1.0.0",
connect: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_connect, "f"),
},
[StandardDisconnect]: {
version: "1.0.0",
disconnect: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_disconnect, "f"),
},
[StandardEvents]: {
version: "1.0.0",
on: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_on, "f"),
},
[SolanaSignAndSendTransaction]: {
version: "1.0.0",
supportedTransactionVersions: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_supportedTransactionVersions, "f"),
signAndSendTransaction: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_signAndSendTransaction, "f"),
},
};
let signTransactionFeature;
if ("signTransaction" in __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_adapter, "f")) {
signTransactionFeature = {
[SolanaSignTransaction]: {
version: "1.0.0",
supportedTransactionVersions: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_supportedTransactionVersions, "f"),
signTransaction: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_signTransaction, "f"),
},
};
}
let signMessageFeature;
if ("signMessage" in __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_adapter, "f")) {
signMessageFeature = {
[SolanaSignMessage]: {
version: "1.0.0",
signMessage: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_signMessage, "f"),
},
};
}
let signInFeature;
if ("signIn" in __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_adapter, "f")) {
signInFeature = {
[SolanaSignIn]: {
version: "1.0.0",
signIn: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_signIn, "f"),
},
};
}
return {
...features,
...signTransactionFeature,
...signMessageFeature,
...signInFeature,
};
}
get accounts() {
return __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_account, "f") ? [__classPrivateFieldGet(this, _SolanaWalletAdapterWallet_account, "f")] : [];
}
get endpoint() {
return __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_endpoint, "f");
}
constructor(adapter, chain, endpoint) {

@@ -308,2 +235,75 @@ _SolanaWalletAdapterWallet_instances.add(this);

}
get version() {
return "1.0.0";
}
get name() {
return __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_adapter, "f").name;
}
get icon() {
return __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_adapter, "f").icon;
}
get chains() {
return [__classPrivateFieldGet(this, _SolanaWalletAdapterWallet_chain, "f")];
}
get features() {
const features = {
[StandardConnect]: {
version: "1.0.0",
connect: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_connect, "f"),
},
[StandardDisconnect]: {
version: "1.0.0",
disconnect: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_disconnect, "f"),
},
[StandardEvents]: {
version: "1.0.0",
on: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_on, "f"),
},
[SolanaSignAndSendTransaction]: {
version: "1.0.0",
supportedTransactionVersions: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_supportedTransactionVersions, "f"),
signAndSendTransaction: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_signAndSendTransaction, "f"),
},
};
let signTransactionFeature;
if ("signTransaction" in __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_adapter, "f")) {
signTransactionFeature = {
[SolanaSignTransaction]: {
version: "1.0.0",
supportedTransactionVersions: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_supportedTransactionVersions, "f"),
signTransaction: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_signTransaction, "f"),
},
};
}
let signMessageFeature;
if ("signMessage" in __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_adapter, "f")) {
signMessageFeature = {
[SolanaSignMessage]: {
version: "1.0.0",
signMessage: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_signMessage, "f"),
},
};
}
let signInFeature;
if ("signIn" in __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_adapter, "f")) {
signInFeature = {
[SolanaSignIn]: {
version: "1.0.0",
signIn: __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_signIn, "f"),
},
};
}
return {
...features,
...signTransactionFeature,
...signMessageFeature,
...signInFeature,
};
}
get accounts() {
return __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_account, "f") ? [__classPrivateFieldGet(this, _SolanaWalletAdapterWallet_account, "f")] : [];
}
get endpoint() {
return __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_endpoint, "f");
}
destroy() {

@@ -310,0 +310,0 @@ __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_adapter, "f").off("connect", __classPrivateFieldGet(this, _SolanaWalletAdapterWallet_instances, "m", _SolanaWalletAdapterWallet_connected), this);

@@ -9,6 +9,6 @@ import type { SendTransactionOptions, TransactionOrVersionedTransaction, WalletName } from "@solana/wallet-adapter-base";

export declare const GoogleViaTipLinkWalletName: WalletName<"Google via TipLink">;
export type TipLinkWalletAdapterTheme = "system" | "light" | "dark";
export declare const NPM_VERSION = "2.1.16";
export type CustomSolanaSignInInput = SolanaSignInInput | (() => Promise<SolanaSignInInput>);
type WalletAdapterConfig = {
export declare type TipLinkWalletAdapterTheme = "system" | "light" | "dark";
export declare const NPM_VERSION = "2.1.17";
export declare type CustomSolanaSignInInput = SolanaSignInInput | (() => Promise<SolanaSignInInput>);
declare type WalletAdapterConfig = {
clientId: string;

@@ -15,0 +15,0 @@ title: string;

@@ -8,3 +8,3 @@ export declare const TIPLINK_BUILD_ENV: {

};
export type TIPLINK_BUILD_ENV_TYPE = (typeof TIPLINK_BUILD_ENV)[keyof typeof TIPLINK_BUILD_ENV];
export declare type TIPLINK_BUILD_ENV_TYPE = (typeof TIPLINK_BUILD_ENV)[keyof typeof TIPLINK_BUILD_ENV];
//# sourceMappingURL=interfaces.d.ts.map

@@ -7,3 +7,3 @@ import type { PopupType } from "./embed.js";

}
export type WindowCallbacks = {
export declare type WindowCallbacks = {
[key: string]: {

@@ -14,5 +14,5 @@ type: CallbackType;

};
export type CloseFn = () => void;
export type PostFn = (data: any, publicKeyOverride?: string) => void;
export type WindowOpenParams = {
export declare type CloseFn = () => void;
export declare type PostFn = (data: any, publicKeyOverride?: string) => void;
export declare type WindowOpenParams = {
popup: Window;

@@ -19,0 +19,0 @@ url: URL;

{
"name": "@tiplink/wallet-adapter",
"version": "2.1.16",
"version": "2.1.17",
"author": "Alex Fung",

@@ -5,0 +5,0 @@ "contributors": [

@@ -430,2 +430,6 @@ /*

const tipLinkAutoConnect = !!queryParams.tipLinkAutoConnect;
if (promptTipLinkAutoConnectFromRedirect || tipLinkAutoConnect) {
directConnect = false;
autoConnect = true;
}
let windowParams: WindowOpenParams | undefined = undefined;

@@ -432,0 +436,0 @@ const isThemed = theme !== "system";

@@ -52,3 +52,3 @@ import type {

export type TipLinkWalletAdapterTheme = "system" | "light" | "dark";
export const NPM_VERSION = "2.1.16";
export const NPM_VERSION = "2.1.17";
export type CustomSolanaSignInInput =

@@ -55,0 +55,0 @@ | SolanaSignInInput

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc