@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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fystack/sdk",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Wallet SDK",
5
5
  "main": "dist/index.cjs",
6
6
  "types": "dist/types/index.d.ts",
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 {