@sfutureapps/db-sdk 0.3.13 → 0.3.14

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.d.mts CHANGED
@@ -30,7 +30,6 @@ type ClientOptions = {
30
30
  declare class HttpClient {
31
31
  private baseUrl;
32
32
  private apiKey?;
33
- private accessToken?;
34
33
  private extraHeaders;
35
34
  private ax;
36
35
  constructor(baseUrl: string, opts?: ClientOptions);
package/dist/index.d.ts CHANGED
@@ -30,7 +30,6 @@ type ClientOptions = {
30
30
  declare class HttpClient {
31
31
  private baseUrl;
32
32
  private apiKey?;
33
- private accessToken?;
34
33
  private extraHeaders;
35
34
  private ax;
36
35
  constructor(baseUrl: string, opts?: ClientOptions);
package/dist/index.js CHANGED
@@ -40,7 +40,6 @@ var HttpClient = class {
40
40
  constructor(baseUrl, opts = {}) {
41
41
  this.baseUrl = baseUrl.replace(/\/+$/, "");
42
42
  this.apiKey = opts.apiKey;
43
- this.accessToken = opts.accessToken;
44
43
  this.extraHeaders = opts.headers ?? {};
45
44
  this.ax = import_axios.default.create({
46
45
  baseURL: this.baseUrl,
@@ -57,8 +56,6 @@ var HttpClient = class {
57
56
  ...config.headers
58
57
  };
59
58
  if (this.apiKey) headers["x-api-key"] = this.apiKey;
60
- const token = this.accessToken?.();
61
- if (token) headers["Authorization"] = `Bearer ${token}`;
62
59
  try {
63
60
  const res = await this.ax.post(path, body, {
64
61
  ...config,
package/dist/index.mjs CHANGED
@@ -4,7 +4,6 @@ var HttpClient = class {
4
4
  constructor(baseUrl, opts = {}) {
5
5
  this.baseUrl = baseUrl.replace(/\/+$/, "");
6
6
  this.apiKey = opts.apiKey;
7
- this.accessToken = opts.accessToken;
8
7
  this.extraHeaders = opts.headers ?? {};
9
8
  this.ax = axios.create({
10
9
  baseURL: this.baseUrl,
@@ -21,8 +20,6 @@ var HttpClient = class {
21
20
  ...config.headers
22
21
  };
23
22
  if (this.apiKey) headers["x-api-key"] = this.apiKey;
24
- const token = this.accessToken?.();
25
- if (token) headers["Authorization"] = `Bearer ${token}`;
26
23
  try {
27
24
  const res = await this.ax.post(path, body, {
28
25
  ...config,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sfutureapps/db-sdk",
3
- "version": "0.3.13",
3
+ "version": "0.3.14",
4
4
  "description": "SfutureApps JS SDK for ThinkPHP DB Gateway (MySQL)",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.cjs",