squarecommonblhelper 1.8.0 → 2.0.0

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/README.md CHANGED
@@ -15,6 +15,10 @@ helper for common bl for my projects.
15
15
 
16
16
  ## changelog
17
17
 
18
+ ### v2.0.0
19
+
20
+ - remove UtilsCommonBL
21
+
18
22
  ### v1.8.0
19
23
 
20
24
  - AuthenticationCommonBL:
package/dist/index.d.ts CHANGED
@@ -1,3 +1,2 @@
1
1
  export * from "./greeting.js";
2
- export * from "./utils.js";
3
2
  export * from "./authentication.js";
package/dist/index.js CHANGED
@@ -1,3 +1,2 @@
1
1
  export * from "./greeting.js";
2
- export * from "./utils.js";
3
2
  export * from "./authentication.js";
package/example.js CHANGED
@@ -1,15 +1,8 @@
1
- import {
2
- GreetingCommonBL,
3
- UtilsCommonBL,
4
- AuthenticationCommonBL,
5
- } from "./dist/index.js";
1
+ import { GreetingCommonBL, AuthenticationCommonBL } from "./dist/index.js";
6
2
 
7
3
  let greetingCommonBL = new GreetingCommonBL();
8
4
  console.log(await greetingCommonBL.createGreetingV0(true));
9
5
 
10
- let utilsCommonBL = new UtilsCommonBL();
11
- console.log(await utilsCommonBL.getAppIdV0("test"));
12
-
13
6
  let authenticationCommonBL = new AuthenticationCommonBL();
14
7
  console.log(
15
8
  await authenticationCommonBL.generateAccessTokenV0("dummy_refresh_token")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarecommonblhelper",
3
- "version": "1.8.0",
3
+ "version": "2.0.0",
4
4
  "description": "helper for common bl for my projects.",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
package/dist/utils.d.ts DELETED
@@ -1,10 +0,0 @@
1
- declare class UtilsCommonBL {
2
- private commonBLBaseURL;
3
- constructor(commonBLBaseURL?: string);
4
- getAppIdV0(appName: string): Promise<{
5
- message: string | null;
6
- data?: any;
7
- log?: any;
8
- }>;
9
- }
10
- export { UtilsCommonBL };
package/dist/utils.js DELETED
@@ -1,17 +0,0 @@
1
- import { fetchJSONData } from "squarecommons";
2
- class UtilsCommonBL {
3
- commonBLBaseURL;
4
- constructor(commonBLBaseURL = "http://localhost:10110") {
5
- this.commonBLBaseURL = commonBLBaseURL;
6
- }
7
- async getAppIdV0(appName) {
8
- try {
9
- const data = await fetchJSONData(this.commonBLBaseURL, "get_app_id/v0", "GET", undefined, undefined, { app_name: appName });
10
- return data;
11
- }
12
- catch (error) {
13
- throw error;
14
- }
15
- }
16
- }
17
- export { UtilsCommonBL };