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

@near-js/wallet-account

Package Overview
Dependencies
Maintainers
2
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@near-js/wallet-account - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

3

lib/wallet_account.d.ts

@@ -19,2 +19,3 @@ /**

failureUrl?: string;
keyType: 'ed25519' | 'secp256k1';
}

@@ -110,3 +111,3 @@ /**

*/
requestSignInUrl({ contractId, methodNames, successUrl, failureUrl }: SignInOptions): Promise<string>;
requestSignInUrl({ contractId, methodNames, successUrl, failureUrl, keyType }: SignInOptions): Promise<string>;
/**

@@ -113,0 +114,0 @@ * Redirects current page to the wallet authentication page.

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

*/
requestSignInUrl({ contractId, methodNames, successUrl, failureUrl }) {
requestSignInUrl({ contractId, methodNames, successUrl, failureUrl, keyType = 'ed25519' }) {
return __awaiter(this, void 0, void 0, function* () {

@@ -146,3 +146,3 @@ const currentUrl = new URL(window.location.href);

newUrl.searchParams.set('contract_id', contractId);
const accessKey = crypto_1.KeyPair.fromRandom('ed25519');
const accessKey = crypto_1.KeyPair.fromRandom(keyType);
newUrl.searchParams.set('public_key', accessKey.getPublicKey().toString());

@@ -149,0 +149,0 @@ yield this._keyStore.setKey(this._networkId, PENDING_ACCESS_KEY_PREFIX + accessKey.getPublicKey(), accessKey);

{
"name": "@near-js/wallet-account",
"version": "1.2.2",
"version": "1.2.3",
"description": "Dependencies for the NEAR API JavaScript client in the browser",

@@ -11,10 +11,10 @@ "main": "lib/index.js",

"borsh": "1.0.0",
"@near-js/accounts": "1.2.1",
"@near-js/crypto": "1.2.4",
"@near-js/keystores": "0.0.12",
"@near-js/signers": "0.1.4",
"@near-js/transactions": "1.2.2",
"@near-js/accounts": "1.2.2",
"@near-js/crypto": "1.3.0",
"@near-js/keystores": "0.1.0",
"@near-js/signers": "0.1.5",
"@near-js/transactions": "1.2.3",
"@near-js/types": "0.2.1",
"@near-js/utils": "0.2.2",
"@near-js/providers": "0.2.2"
"@near-js/utils": "0.3.0",
"@near-js/providers": "0.2.3"
},

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

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