New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@wallet-standard/util

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wallet-standard/util - npm Package Compare versions

Comparing version 0.1.0-alpha.4 to 0.1.0-alpha.6

3

lib/cjs/account.js

@@ -24,2 +24,5 @@ "use strict";

_ReadonlyWalletAccount_icon.set(this, void 0);
if (new.target === ReadonlyWalletAccount) {
Object.freeze(this);
}
__classPrivateFieldSet(this, _ReadonlyWalletAccount_address, account.address, "f");

@@ -26,0 +29,0 @@ __classPrivateFieldSet(this, _ReadonlyWalletAccount_publicKey, account.publicKey, "f");

1

lib/cjs/index.js

@@ -18,4 +18,3 @@ "use strict";

__exportStar(require("./account.js"), exports);
__exportStar(require("./ciphers.js"), exports);
__exportStar(require("./util.js"), exports);
//# sourceMappingURL=index.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.pick = exports.concatBytes = exports.bytesEqual = void 0;
exports.pick = exports.concatBytes = exports.arraysEqual = exports.bytesEqual = void 0;
/** TODO: docs */
function bytesEqual(a, b) {
return arraysEqual(a, b);
}
exports.bytesEqual = bytesEqual;
/** TODO: docs */
function arraysEqual(a, b) {
if (a === b)
return true;
const length = a.length;

@@ -15,3 +22,3 @@ if (length !== b.length)

}
exports.bytesEqual = bytesEqual;
exports.arraysEqual = arraysEqual;
/** TODO: docs */

@@ -18,0 +25,0 @@ function concatBytes(first, ...others) {

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

_ReadonlyWalletAccount_icon.set(this, void 0);
if (new.target === ReadonlyWalletAccount) {
Object.freeze(this);
}
__classPrivateFieldSet(this, _ReadonlyWalletAccount_address, account.address, "f");

@@ -23,0 +26,0 @@ __classPrivateFieldSet(this, _ReadonlyWalletAccount_publicKey, account.publicKey, "f");

export * from './account.js';
export * from './ciphers.js';
export * from './util.js';
//# sourceMappingURL=index.js.map
/** TODO: docs */
export function bytesEqual(a, b) {
return arraysEqual(a, b);
}
/** TODO: docs */
export function arraysEqual(a, b) {
if (a === b)
return true;
const length = a.length;

@@ -4,0 +10,0 @@ if (length !== b.length)

@@ -9,5 +9,5 @@ import type { WalletAccount } from '@wallet-standard/standard';

get label(): string | undefined;
get icon(): `data:image/svg+xml;base64,${string}` | `data:image/png;base64,${string}` | undefined;
get icon(): `data:image/svg+xml;base64,${string}` | `data:image/webp;base64,${string}` | `data:image/png;base64,${string}` | `data:image/gif;base64,${string}` | undefined;
constructor(account: WalletAccount);
}
//# sourceMappingURL=account.d.ts.map
export * from './account.js';
export * from './ciphers.js';
export * from './util.js';
//# sourceMappingURL=index.d.ts.map
/** TODO: docs */
export declare function bytesEqual(a: Uint8Array, b: Uint8Array): boolean;
interface Indexed<T> {
length: number;
[index: number]: T;
}
/** TODO: docs */
export declare function arraysEqual<T>(a: Indexed<T>, b: Indexed<T>): boolean;
/** TODO: docs */
export declare function concatBytes(first: Uint8Array, ...others: ReadonlyArray<Uint8Array>): Uint8Array;
/** TODO: docs */
export declare function pick<T, K extends keyof T>(object: T, ...keys: K[]): Pick<T, K>;
export {};
//# sourceMappingURL=util.d.ts.map
{
"name": "@wallet-standard/util",
"version": "0.1.0-alpha.4",
"version": "0.1.0-alpha.6",
"author": "Solana Maintainers <maintainers@solana.foundation>",

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

"dependencies": {
"@wallet-standard/standard": "^0.1.0-alpha.4"
"@wallet-standard/standard": "^0.1.0-alpha.5"
},

@@ -29,0 +29,0 @@ "devDependencies": {

@@ -36,2 +36,6 @@ import type { WalletAccount } from '@wallet-standard/standard';

constructor(account: WalletAccount) {
if (new.target === ReadonlyWalletAccount) {
Object.freeze(this);
}
this.#address = account.address;

@@ -38,0 +42,0 @@ this.#publicKey = account.publicKey;

export * from './account.js';
export * from './ciphers.js';
export * from './util.js';
/** TODO: docs */
export function bytesEqual(a: Uint8Array, b: Uint8Array): boolean {
return arraysEqual(a, b);
}
interface Indexed<T> {
length: number;
[index: number]: T;
}
/** TODO: docs */
export function arraysEqual<T>(a: Indexed<T>, b: Indexed<T>): boolean {
if (a === b) return true;
const length = a.length;
if (length !== b.length) return false;
for (let i = 0; i < length; i++) {
if (a[i] !== b[i]) return false;
}
return true;

@@ -9,0 +23,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

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