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

@wallet-standard/wallet

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wallet-standard/wallet - npm Package Compare versions

Comparing version 1.0.0-rc.5 to 1.0.0-rc.6

14

lib/cjs/register.js

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

};
var _WindowRegisterWalletEvent_detail;
var _RegisterWalletEvent_detail;
Object.defineProperty(exports, "__esModule", { value: true });

@@ -20,3 +20,3 @@ exports.DEPRECATED_registerWallet = exports.registerWallet = void 0;

try {
window.dispatchEvent(new WindowRegisterWalletEvent(callback));
window.dispatchEvent(new RegisterWalletEvent(callback));
}

@@ -34,3 +34,3 @@ catch (error) {

exports.registerWallet = registerWallet;
class WindowRegisterWalletEvent extends Event {
class RegisterWalletEvent extends Event {
constructor(callback) {

@@ -42,7 +42,7 @@ super('wallet-standard:register-wallet', {

});
_WindowRegisterWalletEvent_detail.set(this, void 0);
__classPrivateFieldSet(this, _WindowRegisterWalletEvent_detail, callback, "f");
_RegisterWalletEvent_detail.set(this, void 0);
__classPrivateFieldSet(this, _RegisterWalletEvent_detail, callback, "f");
}
get detail() {
return __classPrivateFieldGet(this, _WindowRegisterWalletEvent_detail, "f");
return __classPrivateFieldGet(this, _RegisterWalletEvent_detail, "f");
}

@@ -65,3 +65,3 @@ get type() {

}
_WindowRegisterWalletEvent_detail = new WeakMap();
_RegisterWalletEvent_detail = new WeakMap();
/** @deprecated */

@@ -68,0 +68,0 @@ function DEPRECATED_registerWallet(wallet) {

@@ -12,7 +12,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {

};
var _WindowRegisterWalletEvent_detail;
var _RegisterWalletEvent_detail;
export function registerWallet(wallet) {
const callback = ({ register }) => register(wallet);
try {
window.dispatchEvent(new WindowRegisterWalletEvent(callback));
window.dispatchEvent(new RegisterWalletEvent(callback));
}

@@ -29,3 +29,3 @@ catch (error) {

}
class WindowRegisterWalletEvent extends Event {
class RegisterWalletEvent extends Event {
constructor(callback) {

@@ -37,7 +37,7 @@ super('wallet-standard:register-wallet', {

});
_WindowRegisterWalletEvent_detail.set(this, void 0);
__classPrivateFieldSet(this, _WindowRegisterWalletEvent_detail, callback, "f");
_RegisterWalletEvent_detail.set(this, void 0);
__classPrivateFieldSet(this, _RegisterWalletEvent_detail, callback, "f");
}
get detail() {
return __classPrivateFieldGet(this, _WindowRegisterWalletEvent_detail, "f");
return __classPrivateFieldGet(this, _RegisterWalletEvent_detail, "f");
}

@@ -60,3 +60,3 @@ get type() {

}
_WindowRegisterWalletEvent_detail = new WeakMap();
_RegisterWalletEvent_detail = new WeakMap();
/** @deprecated */

@@ -63,0 +63,0 @@ export function DEPRECATED_registerWallet(wallet) {

{
"name": "@wallet-standard/wallet",
"version": "1.0.0-rc.5",
"version": "1.0.0-rc.6",
"author": "Solana Maintainers <maintainers@solana.foundation>",

@@ -29,3 +29,3 @@ "repository": "https://github.com/wallet-standard/wallet-standard",

"dependencies": {
"@wallet-standard/base": "^1.0.0-rc.5"
"@wallet-standard/base": "^1.0.0-rc.6"
},

@@ -37,4 +37,4 @@ "devDependencies": {

"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"
}
}

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

WalletEventsWindow,
WindowRegisterWalletEvent as WindowRegisterWalletEventInterface,
WindowRegisterWalletEvent,
WindowRegisterWalletEventCallback,

@@ -13,3 +13,3 @@ } from '@wallet-standard/base';

try {
(window as WalletEventsWindow).dispatchEvent(new WindowRegisterWalletEvent(callback));
(window as WalletEventsWindow).dispatchEvent(new RegisterWalletEvent(callback));
} catch (error) {

@@ -27,3 +27,3 @@ console.error('wallet-standard:register-wallet event could not be dispatched\n', error);

class WindowRegisterWalletEvent extends Event implements WindowRegisterWalletEventInterface {
class RegisterWalletEvent extends Event implements WindowRegisterWalletEvent {
readonly #detail: WindowRegisterWalletEventCallback;

@@ -30,0 +30,0 @@

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