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

@wallet-standard/base

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wallet-standard/base - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

lib/cjs/bytes.js

1

lib/cjs/index.js

@@ -17,2 +17,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./bytes.js"), exports);
__exportStar(require("./identifier.js"), exports);

@@ -19,0 +20,0 @@ __exportStar(require("./wallet.js"), exports);

@@ -0,1 +1,2 @@

export * from './bytes.js';
export * from './identifier.js';

@@ -2,0 +3,0 @@ export * from './wallet.js';

6

lib/types/identifier.d.ts

@@ -8,3 +8,3 @@ /**

*/
export declare type IdentifierString = `${string}:${string}`;
export type IdentifierString = `${string}:${string}`;
/**

@@ -18,3 +18,3 @@ * A read-only array of namespaced identifiers in the format `${namespace}:${reference}`.

*/
export declare type IdentifierArray = readonly IdentifierString[];
export type IdentifierArray = readonly IdentifierString[];
/**

@@ -27,3 +27,3 @@ * A read-only object with keys of namespaced identifiers in the format `${namespace}:${reference}`.

*/
export declare type IdentifierRecord<T> = Readonly<Record<IdentifierString, T>>;
export type IdentifierRecord<T> = Readonly<Record<IdentifierString, T>>;
//# sourceMappingURL=identifier.d.ts.map

@@ -0,1 +1,2 @@

export * from './bytes.js';
export * from './identifier.js';

@@ -2,0 +3,0 @@ export * from './wallet.js';

@@ -0,1 +1,2 @@

import type { ReadonlyUint8Array } from './bytes.js';
import type { IdentifierArray, IdentifierRecord } from './identifier.js';

@@ -14,3 +15,3 @@ /**

*/
export declare type WalletVersion = '1.0.0';
export type WalletVersion = '1.0.0';
/**

@@ -23,3 +24,3 @@ * A data URI containing a base64-encoded SVG, WebP, PNG, or GIF image.

*/
export declare type WalletIcon = `data:image/${'svg+xml' | 'webp' | 'png' | 'gif'};base64,${string}`;
export type WalletIcon = `data:image/${'svg+xml' | 'webp' | 'png' | 'gif'};base64,${string}`;
/**

@@ -127,3 +128,3 @@ * Interface of a **Wallet**, also referred to as a **Standard Wallet**.

/** Public key of the account, corresponding with a secret key to use. */
readonly publicKey: Uint8Array;
readonly publicKey: ReadonlyUint8Array;
/**

@@ -151,5 +152,5 @@ * Chains supported by the account.

*/
export declare type WalletWithFeatures<Features extends Wallet['features']> = Omit<Wallet, 'features'> & {
export type WalletWithFeatures<Features extends Wallet['features']> = Omit<Wallet, 'features'> & {
features: Features;
};
//# sourceMappingURL=wallet.d.ts.map

@@ -30,3 +30,3 @@ import type { Wallet } from './wallet.js';

*/
export declare type WindowAppReadyEventType = 'wallet-standard:app-ready';
export type WindowAppReadyEventType = 'wallet-standard:app-ready';
/** Interface that will be provided to {@link Wallet | Wallets} by the app when the app calls the

@@ -58,3 +58,3 @@ * {@link WindowRegisterWalletEventCallback} provided by Wallets.

*/
export declare type WindowAppReadyEvent = UnstoppableCustomEvent<WindowAppReadyEventType, WindowAppReadyEventAPI>;
export type WindowAppReadyEvent = UnstoppableCustomEvent<WindowAppReadyEventType, WindowAppReadyEventAPI>;
/**

@@ -65,3 +65,3 @@ * Type of {@link WindowRegisterWalletEvent}.

*/
export declare type WindowRegisterWalletEventType = 'wallet-standard:register-wallet';
export type WindowRegisterWalletEventType = 'wallet-standard:register-wallet';
/**

@@ -73,3 +73,3 @@ * Callback function provided by {@link Wallet | Wallets} to be called by the app when the app is ready to register

*/
export declare type WindowRegisterWalletEventCallback = (api: WindowAppReadyEventAPI) => void;
export type WindowRegisterWalletEventCallback = (api: WindowAppReadyEventAPI) => void;
/**

@@ -83,3 +83,3 @@ * Event that will be dispatched on the `window` by each {@link Wallet | Wallet} when the Wallet is ready to be

*/
export declare type WindowRegisterWalletEvent = UnstoppableCustomEvent<WindowRegisterWalletEventType, WindowRegisterWalletEventCallback>;
export type WindowRegisterWalletEvent = UnstoppableCustomEvent<WindowRegisterWalletEventType, WindowRegisterWalletEventCallback>;
/**

@@ -114,3 +114,3 @@ * @deprecated Use {@link WalletEventsWindow} instead.

*/
export declare type DEPRECATED_WalletsCallback = (wallets: {
export type DEPRECATED_WalletsCallback = (wallets: {
register(...wallets: Wallet[]): () => void;

@@ -117,0 +117,0 @@ }) => void;

{
"name": "@wallet-standard/base",
"version": "1.0.1",
"version": "1.1.0",
"author": "Solana Maintainers <maintainers@solana.foundation>",

@@ -5,0 +5,0 @@ "repository": "https://github.com/wallet-standard/wallet-standard",

@@ -0,3 +1,4 @@

export * from './bytes.js';
export * from './identifier.js';
export * from './wallet.js';
export * from './window.js';

@@ -0,1 +1,2 @@

import type { ReadonlyUint8Array } from './bytes.js';
import type { IdentifierArray, IdentifierRecord, IdentifierString } from './identifier.js';

@@ -135,3 +136,3 @@

/** Public key of the account, corresponding with a secret key to use. */
readonly publicKey: Uint8Array;
readonly publicKey: ReadonlyUint8Array;

@@ -138,0 +139,0 @@ /**

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