@multiversx/sdk-network-providers
Advanced tools
Comparing version 2.4.3 to 2.5.0
@@ -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
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
191618
2811
+ Addedaxios@1.7.7(transitive)
- Removedaxios@1.6.8
- Removedaxios@1.6.8(transitive)