@fystack/sdk 0.1.6 → 0.1.7
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 +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/api.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -183,7 +183,7 @@ exports.WalletRole = void 0;
|
|
|
183
183
|
})(exports.WalletRole || (exports.WalletRole = {}));
|
|
184
184
|
|
|
185
185
|
async function composeAPIHeaders(credentials, httpMethod, apiEndpoint, body = {}) {
|
|
186
|
-
if (credentials.apiSecret
|
|
186
|
+
if (!credentials.apiSecret || credentials.apiSecret === '') {
|
|
187
187
|
// If APISecret is not provided, use authToken
|
|
188
188
|
if (credentials.authToken) {
|
|
189
189
|
return {
|
package/dist/index.esm.js
CHANGED
|
@@ -175,7 +175,7 @@ var WalletRole;
|
|
|
175
175
|
})(WalletRole || (WalletRole = {}));
|
|
176
176
|
|
|
177
177
|
async function composeAPIHeaders(credentials, httpMethod, apiEndpoint, body = {}) {
|
|
178
|
-
if (credentials.apiSecret
|
|
178
|
+
if (!credentials.apiSecret || credentials.apiSecret === '') {
|
|
179
179
|
// If APISecret is not provided, use authToken
|
|
180
180
|
if (credentials.authToken) {
|
|
181
181
|
return {
|
package/dist/index.mjs
CHANGED
|
@@ -175,7 +175,7 @@ var WalletRole;
|
|
|
175
175
|
})(WalletRole || (WalletRole = {}));
|
|
176
176
|
|
|
177
177
|
async function composeAPIHeaders(credentials, httpMethod, apiEndpoint, body = {}) {
|
|
178
|
-
if (credentials.apiSecret
|
|
178
|
+
if (!credentials.apiSecret || credentials.apiSecret === '') {
|
|
179
179
|
// If APISecret is not provided, use authToken
|
|
180
180
|
if (credentials.authToken) {
|
|
181
181
|
return {
|
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -71,7 +71,7 @@ async function composeAPIHeaders(
|
|
|
71
71
|
apiEndpoint: string,
|
|
72
72
|
body: Record<string, any> = {}
|
|
73
73
|
): Promise<Record<string, string>> {
|
|
74
|
-
if (credentials.apiSecret
|
|
74
|
+
if (!credentials.apiSecret || credentials.apiSecret === '') {
|
|
75
75
|
// If APISecret is not provided, use authToken
|
|
76
76
|
if (credentials.authToken) {
|
|
77
77
|
return {
|