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

@vechain/connex

Package Overview
Dependencies
Maintainers
2
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vechain/connex - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

2

esm/index.d.ts

@@ -18,2 +18,4 @@ /// <reference types="@vechain/connex-types" />

network?: 'main' | 'test' | Connex.Thor.Block;
/** the flag to disable the compatibility with connex1 environment */
noV1Compat?: boolean;
};

@@ -20,0 +22,0 @@ /** Connex class */

23

esm/index.js

@@ -62,15 +62,16 @@ import { Framework } from '@vechain/connex-framework';

const genesis = normalizeNetwork(opts.network);
try {
// to detect injected connex
const injected = (window || {}).connex;
if (injected && injected.thor.genesis.id === genesis.id) {
// injected genesis id matched
if (/^1\./.test(injected.version)) {
// wrap v1 to v2
return compat1(injected);
if (!opts.noV1Compat) {
try {
// to detect injected connex
const injected = (window || {}).connex;
if (injected && injected.thor.genesis.id === genesis.id) {
// injected genesis id matched
if (/^1\./.test(injected.version)) {
// wrap v1 to v2
return compat1(injected);
}
}
return injected;
}
catch ( /**/_a) { /**/ }
}
catch ( /**/_a) { /**/ }
const driver = createFull(opts.node, genesis);

@@ -87,2 +88,2 @@ const framework = new Framework(driver);

export { ConnexClass as Connex };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLDJCQUEyQixDQUFBO0FBQ3JELE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxVQUFVLENBQUE7QUFDeEMsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLFVBQVUsQ0FBQTtBQUNsQyxPQUFPLEVBQUUsV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0.5",
"description": "Standard interface to connect DApp with VeChain and user",

@@ -46,8 +46,8 @@ "main": "dist/connex.js",

"dependencies": {
"@vechain/connex-driver": "^2.0.4",
"@vechain/connex-framework": "^2.0.4",
"@vechain/connex-driver": "^2.0.5",
"@vechain/connex-framework": "^2.0.5",
"randombytes": "^2.1.0",
"thor-devkit": "^2.0.1"
},
"gitHead": "20ce635e9ce255976a4acb48a6a0a8b926c7f3e8"
"gitHead": "025c3df8d634e6e47a0815cae26b70c0449793da"
}

@@ -68,3 +68,3 @@ # Connex

```ts
const vendor = new Connex.Vendor('main')
const vendor = new Connex.Vendor('main') //'main','test' or genesis ID if it's private network
```

@@ -71,0 +71,0 @@

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

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