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

@multiversx/sdk-network-providers

Package Overview
Dependencies
Maintainers
0
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@multiversx/sdk-network-providers - npm Package Compare versions

Comparing version 2.4.3 to 2.5.0

17

out/providers.dev.net.spec.js

@@ -187,3 +187,2 @@ "use strict";

// Ignore fields which are not present on API response:
proxyResponse.type = "";
proxyResponse.epoch = 0;

@@ -230,11 +229,9 @@ proxyResponse.blockNonce = 0;

this.timeout(10000);
let identifiers = ["BEER-b16c6d", "CHOCOLATE-daf625"];
for (const identifier of identifiers) {
let apiResponse = yield apiProvider.getDefinitionOfFungibleToken(identifier);
let proxyResponse = yield proxyProvider.getDefinitionOfFungibleToken(identifier);
// Assets are only present on API responses, thus we ignore them for comparison.
apiResponse.assets = {};
chai_1.assert.equal(apiResponse.identifier, identifier);
chai_1.assert.deepEqual(apiResponse, proxyResponse);
}
let identifier = "CHOCOLATE-daf625";
let apiResponse = yield apiProvider.getDefinitionOfFungibleToken(identifier);
let proxyResponse = yield proxyProvider.getDefinitionOfFungibleToken(identifier);
// Assets are only present on API responses, thus we ignore them for comparison.
apiResponse.assets = {};
chai_1.assert.equal(apiResponse.identifier, identifier);
chai_1.assert.deepEqual(apiResponse, proxyResponse);
});

@@ -241,0 +238,0 @@ });

{
"name": "@multiversx/sdk-network-providers",
"version": "2.4.3",
"version": "2.5.0",
"lockfileVersion": 2,

@@ -16,3 +16,2 @@ "requires": true,

"dependencies": {
"axios": "1.6.8",
"bech32": "1.1.4",

@@ -36,2 +35,5 @@ "bignumber.js": "9.0.1",

},
"peerDependencies": {
"axios": "^1.6.8"
},
"scripts": {

@@ -38,0 +40,0 @@ "compile": "tsc -p tsconfig.json",

@@ -9,4 +9,4 @@ # MultiversX SDK for JavaScript and TypeScript: Network Providers

- [cookbook](https://docs.multiversx.com/sdk-and-tools/erdjs/erdjs-cookbook)
- [extending the components](https://docs.multiversx.com/sdk-and-tools/erdjs/extending-erdjs)
- [cookbook](https://docs.multiversx.com/sdk-and-tools/sdk-js/sdk-js-cookbook-versions)
- [extending the components](https://docs.multiversx.com/sdk-and-tools/sdk-js/extending-sdk-js)

@@ -13,0 +13,0 @@ ## Distribution

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