@near-js/wallet-account
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42867
790
+ Added@near-js/accounts@1.2.2(transitive)
+ Added@near-js/crypto@1.3.0(transitive)
+ Added@near-js/keystores@0.1.0(transitive)
+ Added@near-js/providers@0.2.3(transitive)
+ Added@near-js/signers@0.1.5(transitive)
+ Added@near-js/transactions@1.2.3(transitive)
+ Added@near-js/utils@0.3.0(transitive)
+ Addedbn.js@4.12.0(transitive)
+ Addedbrorand@1.1.0(transitive)
+ Addedelliptic@6.6.0(transitive)
+ Addedhash.js@1.1.7(transitive)
+ Addedhmac-drbg@1.0.1(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedminimalistic-assert@1.0.1(transitive)
+ Addedminimalistic-crypto-utils@1.0.1(transitive)
+ Addednode-addon-api@5.1.0(transitive)
+ Addednode-gyp-build@4.8.2(transitive)
+ Addedsecp256k1@5.0.0(transitive)
- Removed@near-js/accounts@1.2.1(transitive)
- Removed@near-js/crypto@1.2.4(transitive)
- Removed@near-js/keystores@0.0.12(transitive)
- Removed@near-js/providers@0.2.2(transitive)
- Removed@near-js/signers@0.1.4(transitive)
- Removed@near-js/transactions@1.2.2(transitive)
- Removed@near-js/utils@0.2.2(transitive)
Updated@near-js/accounts@1.2.2
Updated@near-js/crypto@1.3.0
Updated@near-js/keystores@0.1.0
Updated@near-js/providers@0.2.3
Updated@near-js/signers@0.1.5
Updated@near-js/transactions@1.2.3
Updated@near-js/utils@0.3.0