@toruslabs/solana-embed
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -1105,3 +1105,3 @@ import { Transaction } from '@solana/web3.js'; | ||
} | ||
init({ buildEnv = TORUS_BUILD_ENV.PRODUCTION, enableLogging = false, network, showTorusButton = true, useLocalStorage = false, buttonPosition = BUTTON_POSITION.BOTTOM_LEFT, apiKey = "torus-default", } = {}) { | ||
init({ buildEnv = TORUS_BUILD_ENV.PRODUCTION, enableLogging = false, network, showTorusButton = true, useLocalStorage = false, buttonPosition = BUTTON_POSITION.BOTTOM_LEFT, apiKey = "torus-default", extraParams = {}, } = {}) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
@@ -1152,2 +1152,3 @@ if (this.isInitialized) | ||
dappMetadata, | ||
extraParams, | ||
}, torusIframeUrl.origin); | ||
@@ -1154,0 +1155,0 @@ })); |
@@ -20,3 +20,3 @@ import { Transaction } from "@solana/web3.js"; | ||
constructor({ modalZIndex }?: TorusCtorArgs); | ||
init({ buildEnv, enableLogging, network, showTorusButton, useLocalStorage, buttonPosition, apiKey, }?: TorusParams): Promise<void>; | ||
init({ buildEnv, enableLogging, network, showTorusButton, useLocalStorage, buttonPosition, apiKey, extraParams, }?: TorusParams): Promise<void>; | ||
private handleDappStorageKey; | ||
@@ -23,0 +23,0 @@ login(params?: { |
@@ -218,2 +218,11 @@ import { JRPCRequest } from "@toruslabs/openlogin-jrpc"; | ||
useLocalStorage?: boolean; | ||
/** | ||
* Allows passing external data for initialize | ||
* | ||
* Defaults to empty object | ||
* @default {} | ||
*/ | ||
extraParams?: { | ||
[keyof: string]: string; | ||
}; | ||
} | ||
@@ -220,0 +229,0 @@ export interface ProviderOptions { |
{ | ||
"name": "@toruslabs/solana-embed", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Embed script for solana blockchain", | ||
@@ -5,0 +5,0 @@ "main": "dist/torus.cjs.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
1130561
4751