@vechain/connex
Advanced tools
Comparing version 2.0.13 to 2.0.14
@@ -14,3 +14,3 @@ /// <reference types="@vechain/connex-types" /> | ||
sign: Connex.Vendor['sign']; | ||
constructor(genesisId?: 'main' | 'test' | string, noV1Compat?: boolean, noExtension?: boolean); | ||
constructor(genesisId?: 'main' | 'test' | string, opts?: Pick<Options, 'noV1Compat' | 'noExtension'>); | ||
} | ||
@@ -17,0 +17,0 @@ /** options for creating Connex object */ |
@@ -34,5 +34,5 @@ import { Framework } from '@vechain/connex-framework'; | ||
class VendorClass { | ||
constructor(genesisId, noV1Compat = false, noExtension = false) { | ||
constructor(genesisId, opts) { | ||
genesisId = normalizeGenesisId(genesisId); | ||
if (!noV1Compat) { | ||
if (!(opts && opts.noV1Compat)) { | ||
try { | ||
@@ -52,3 +52,3 @@ // to detect injected connex | ||
// detect the extension injected vechain | ||
const useExtension = !noExtension && !!window.vechain; | ||
const useExtension = !(opts && opts.noExtension) && !!window.vechain; | ||
const driver = new DriverVendorOnly(genesisId, useExtension); | ||
@@ -94,2 +94,2 @@ const vendor = newVendor(driver); | ||
export { ConnexClass as Connex }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLDJCQUEyQixDQUFBO0FBQ3JELE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxVQUFVLENBQUE7QUFDeEMsT0FBTyxFQUFFLE9BQU8sRUFBVyxNQUFNLFVBQVUsQ0FBQTtBQUMzQyxPQUFPLEVBQUUsVUFBVSxFQUFFLGdCQUFnQixFQUFtQixNQUFNLFVBQVUsQ0FBQTtBQUN4RSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sMkJBQTJCLENBQUE7QUFXckQsbURB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O1FBQzNELE1BQU0sU0FBUyxHQUFHLElBQUksU0FBUyxDQUFDLE1BQU0sQ0FBQyxDQUFBO1FBQ3ZDLE9BQU87WUFDSCxJQUFJLElBQUksS0FBSyxPQUFPLFNBQVMsQ0FBQyxJQUFJLENBQUEsQ0FBQyxDQUFDO1lBQ3BDLElBQUksTUFBTSxLQUFLLE9BQU8sU0FBUyxDQUFDLE1BQU0sQ0FBQSxDQUFDLENBQUM7U0FDM0MsQ0FBQTtJQUNMLENBQUM7O0FBN0JlLGtCQUFNLEdBQUcsV0FBVyxDQUFBO0FBZ0N4QyxlQUFlLFdBQVcsQ0FBQTtBQUMxQixPQUFPLEVBQUUsV0FBVyxJQUFJLE1BQU0sRUFBRSxDQUFBIn0= |
{ | ||
"name": "@vechain/connex", | ||
"version": "2.0.13", | ||
"version": "2.0.14", | ||
"description": "Standard interface to connect DApp with VeChain and user", | ||
@@ -51,3 +51,3 @@ "main": "dist/connex.js", | ||
}, | ||
"gitHead": "a58fbf3c2c468048de5375a258ba06fb0e1d39af" | ||
"gitHead": "c00bfc1abec3572c7d1df722bf8a7dfb14295102" | ||
} |
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
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
3962199
27960