@pioneer-platform/pioneer-sdk 8.15.7 → 8.15.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +7 -2
- package/dist/index.es.js +7 -2
- package/dist/index.js +7 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -891,9 +891,12 @@ class Pioneer {
|
|
|
891
891
|
Object.keys(this.client.spec.paths).forEach((path) => {
|
|
892
892
|
Object.keys(this.client.spec.paths[path]).forEach((method) => {
|
|
893
893
|
const operationId = this.client.spec.paths[path][method].operationId;
|
|
894
|
-
this.pioneer[operationId] = async (parameters) => {
|
|
894
|
+
this.pioneer[operationId] = async (parameters, queryParams) => {
|
|
895
895
|
try {
|
|
896
896
|
log.debug(TAG, `${operationId} called with:`, parameters);
|
|
897
|
+
if (queryParams) {
|
|
898
|
+
log.debug(TAG, `${operationId} query params:`, queryParams);
|
|
899
|
+
}
|
|
897
900
|
if (operationId === "GetMarketInfo") {
|
|
898
901
|
if (!Array.isArray(parameters)) {
|
|
899
902
|
throw new Error(`GetMarketInfo requires an array of CAIP strings, got ${typeof parameters}`);
|
|
@@ -908,7 +911,8 @@ class Pioneer {
|
|
|
908
911
|
let request = {
|
|
909
912
|
operationId,
|
|
910
913
|
parameters: {
|
|
911
|
-
Authorization: this.queryKey
|
|
914
|
+
Authorization: this.queryKey,
|
|
915
|
+
...queryParams || {}
|
|
912
916
|
},
|
|
913
917
|
responseContentType: "application/json"
|
|
914
918
|
};
|
|
@@ -917,6 +921,7 @@ class Pioneer {
|
|
|
917
921
|
} else {
|
|
918
922
|
request.parameters = {
|
|
919
923
|
...parameters,
|
|
924
|
+
...queryParams || {},
|
|
920
925
|
Authorization: this.queryKey
|
|
921
926
|
};
|
|
922
927
|
}
|
package/dist/index.es.js
CHANGED
|
@@ -876,9 +876,12 @@ class Pioneer {
|
|
|
876
876
|
Object.keys(this.client.spec.paths).forEach((path) => {
|
|
877
877
|
Object.keys(this.client.spec.paths[path]).forEach((method) => {
|
|
878
878
|
const operationId = this.client.spec.paths[path][method].operationId;
|
|
879
|
-
this.pioneer[operationId] = async (parameters) => {
|
|
879
|
+
this.pioneer[operationId] = async (parameters, queryParams) => {
|
|
880
880
|
try {
|
|
881
881
|
log.debug(TAG, `${operationId} called with:`, parameters);
|
|
882
|
+
if (queryParams) {
|
|
883
|
+
log.debug(TAG, `${operationId} query params:`, queryParams);
|
|
884
|
+
}
|
|
882
885
|
if (operationId === "GetMarketInfo") {
|
|
883
886
|
if (!Array.isArray(parameters)) {
|
|
884
887
|
throw new Error(`GetMarketInfo requires an array of CAIP strings, got ${typeof parameters}`);
|
|
@@ -893,7 +896,8 @@ class Pioneer {
|
|
|
893
896
|
let request = {
|
|
894
897
|
operationId,
|
|
895
898
|
parameters: {
|
|
896
|
-
Authorization: this.queryKey
|
|
899
|
+
Authorization: this.queryKey,
|
|
900
|
+
...queryParams || {}
|
|
897
901
|
},
|
|
898
902
|
responseContentType: "application/json"
|
|
899
903
|
};
|
|
@@ -902,6 +906,7 @@ class Pioneer {
|
|
|
902
906
|
} else {
|
|
903
907
|
request.parameters = {
|
|
904
908
|
...parameters,
|
|
909
|
+
...queryParams || {},
|
|
905
910
|
Authorization: this.queryKey
|
|
906
911
|
};
|
|
907
912
|
}
|
package/dist/index.js
CHANGED
|
@@ -876,9 +876,12 @@ class Pioneer {
|
|
|
876
876
|
Object.keys(this.client.spec.paths).forEach((path) => {
|
|
877
877
|
Object.keys(this.client.spec.paths[path]).forEach((method) => {
|
|
878
878
|
const operationId = this.client.spec.paths[path][method].operationId;
|
|
879
|
-
this.pioneer[operationId] = async (parameters) => {
|
|
879
|
+
this.pioneer[operationId] = async (parameters, queryParams) => {
|
|
880
880
|
try {
|
|
881
881
|
log.debug(TAG, `${operationId} called with:`, parameters);
|
|
882
|
+
if (queryParams) {
|
|
883
|
+
log.debug(TAG, `${operationId} query params:`, queryParams);
|
|
884
|
+
}
|
|
882
885
|
if (operationId === "GetMarketInfo") {
|
|
883
886
|
if (!Array.isArray(parameters)) {
|
|
884
887
|
throw new Error(`GetMarketInfo requires an array of CAIP strings, got ${typeof parameters}`);
|
|
@@ -893,7 +896,8 @@ class Pioneer {
|
|
|
893
896
|
let request = {
|
|
894
897
|
operationId,
|
|
895
898
|
parameters: {
|
|
896
|
-
Authorization: this.queryKey
|
|
899
|
+
Authorization: this.queryKey,
|
|
900
|
+
...queryParams || {}
|
|
897
901
|
},
|
|
898
902
|
responseContentType: "application/json"
|
|
899
903
|
};
|
|
@@ -902,6 +906,7 @@ class Pioneer {
|
|
|
902
906
|
} else {
|
|
903
907
|
request.parameters = {
|
|
904
908
|
...parameters,
|
|
909
|
+
...queryParams || {},
|
|
905
910
|
Authorization: this.queryKey
|
|
906
911
|
};
|
|
907
912
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "highlander",
|
|
3
3
|
"name": "@pioneer-platform/pioneer-sdk",
|
|
4
|
-
"version": "8.15.
|
|
4
|
+
"version": "8.15.9",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@keepkey/keepkey-sdk": "^0.2.62",
|
|
7
7
|
"@pioneer-platform/loggerdog": "^8.11.0",
|
|
8
8
|
"@pioneer-platform/pioneer-caip": "^9.10.0",
|
|
9
|
-
"@pioneer-platform/pioneer-client": "^9.10.
|
|
9
|
+
"@pioneer-platform/pioneer-client": "^9.10.11",
|
|
10
10
|
"@pioneer-platform/pioneer-coins": "^9.11.0",
|
|
11
11
|
"@pioneer-platform/pioneer-discovery": "^8.14.1",
|
|
12
12
|
"@pioneer-platform/pioneer-events": "^8.12.0",
|