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 1.2.1 to 1.2.2

4

index.d.ts

@@ -458,6 +458,6 @@ /**

transfers: Transfer[]
decoded?: Decoded | { revertReason: string }
decoded?: Decoded & { revertReason?: string }
}
type Decoded = { __length__: number } & { [field: string]: string }
type Decoded = { [name: string]: any } & { [index: number]: any }
}

@@ -464,0 +464,0 @@

{
"name": "@vechain/connex",
"version": "1.2.1",
"version": "1.2.2",
"description": "Standard interface to connect DApp with VeChain and user",

@@ -5,0 +5,0 @@ "main": "",

@@ -75,6 +75,6 @@ # Connex [![Gitter](https://badges.gitter.im/vechain/thor.svg)](https://gitter.im/vechain/thor?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)

#### Angular does not find Connex
I am using angular, have done all of the above and my IDE recognizes the Connex namespace however when I run or compile, i get the errors `Cannot find namespace 'Connex'` and / or `Property 'connex' does not exist on type 'Window'.` What is going wrong?<br>
You are probably using a larger project with multiple project roots, just adding `@vechain/connex` to the root config is not enough in this case. You also have to find all `tsconfig.app.ts` and `tsconfig.spec.ts` files in your subprojects. While these inherrit from the main `tsconfig.json` you have to make sure it does not override the types with for example `"types": []` and that there is no confict with `typesRoots`
#### TypeScript complier does not find Connex
First, check `tsconfig.json` and make sure `@vechain/connex` is present in `compilerOptions.types`. Furthermore if you are doing an angular project and still get the error, you are probably using a larger project with multiple project roots, just adding `@vechain/connex` to the root config is not enough in this case. You also have to find all `tsconfig.app.ts` and `tsconfig.spec.ts` files in your sub-projects. While these inherit from the main `tsconfig.json` you have to make sure it does not override the types with for example `"types": []` and that there is no conflict with `typesRoots`
## License

@@ -81,0 +81,0 @@

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