dff-util 1.1.5 → 1.1.6

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.
@@ -15,7 +15,7 @@ export declare const BaseHeaders: {
15
15
  'x-request-id': null;
16
16
  };
17
17
  export declare class Http {
18
- static API_BASE_URL: string | undefined;
18
+ static API_BASE_URL: string;
19
19
  static TOKEN_URL: string;
20
20
  private static RespData;
21
21
  static Get(url: string, params: any, headers: any, type?: RespType): Promise<any>;
package/dist/main/http.js CHANGED
@@ -204,5 +204,5 @@ class Http {
204
204
  }
205
205
  }
206
206
  exports.Http = Http;
207
- Http.API_BASE_URL = process.env.API_BASE_URL;
207
+ Http.API_BASE_URL = "";
208
208
  Http.TOKEN_URL = `/apisix/plugin/jwt/sign`;
package/global.d.ts ADDED
@@ -0,0 +1 @@
1
+ declare var global: typeof globalThis;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "dff-util",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1",
8
8
  "build": "tsc",
9
- "prepublishOnly": "npm run build"
9
+ "pp": "npm run build"
10
10
  },
11
11
  "keywords": [
12
12
  "npm",
package/tsconfig.json CHANGED
@@ -105,6 +105,6 @@
105
105
  // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
106
106
  "skipLibCheck": true /* Skip type checking all .d.ts files. */
107
107
  },
108
- "include": [ "src/**/*", "src/tests/jwt.ts" ],
108
+ "include": [ "src/**/*", "src/tests/jwt.ts", "global.d.ts" ],
109
109
  "exclude": [ "node_modules", "**/*.spec.ts" ]
110
110
  }