@controlium/utils 1.0.2-alpha.3 → 1.0.2-alpha.4

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.
@@ -1,6 +1,6 @@
1
1
  import { Agent, Headers, ProxyAgent, fetch } from 'undici';
2
2
  import { Log, LogLevels, Utils } from '../index';
3
- export class EAAPIUtils {
3
+ export class APIUtils {
4
4
  /**
5
5
  * Verify if HTTP server listening
6
6
  * @param url
@@ -212,7 +212,7 @@ export class EAAPIUtils {
212
212
  }
213
213
  }
214
214
  // eslint-disable-next-line @typescript-eslint/no-namespace
215
- (function (EAAPIUtils) {
215
+ (function (APIUtils) {
216
216
  /**
217
217
  * Generic Http call methods
218
218
  */
@@ -221,6 +221,6 @@ export class EAAPIUtils {
221
221
  HttpMethods["POST"] = "POST";
222
222
  HttpMethods["GET"] = "GET";
223
223
  HttpMethods["PUT"] = "PUT";
224
- })(HttpMethods = EAAPIUtils.HttpMethods || (EAAPIUtils.HttpMethods = {}));
225
- EAAPIUtils.APPLICATION_JSON = 'application/json';
226
- })(EAAPIUtils || (EAAPIUtils = {}));
224
+ })(HttpMethods = APIUtils.HttpMethods || (APIUtils.HttpMethods = {}));
225
+ APIUtils.APPLICATION_JSON = 'application/json';
226
+ })(APIUtils || (APIUtils = {}));
package/dist/esm/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { Logger } from "./logger/logger";
2
2
  export { Logger, Logger as Log };
3
3
  export const LogLevels = Logger.Levels;
4
+ export { APIUtils } from "./apiUtils/APIUtils";
4
5
  export { JsonUtils } from "./jsonUtils/jsonUtils";
5
6
  export { StringUtils } from "./stringUtils/stringUtils";
6
7
  export { Utils, ExistingFileWriteActions } from "./utils/utils";
@@ -1,4 +1,4 @@
1
- export declare class EAAPIUtils {
1
+ export declare class APIUtils {
2
2
  /**
3
3
  * Verify if HTTP server listening
4
4
  * @param url
@@ -38,14 +38,14 @@ export declare class EAAPIUtils {
38
38
  * @throws Error if there is any fail that results in a Response not being received.
39
39
  * The caller-supplied timeout (or the default 10s) is enforced as a hard failsafe via AbortSignal.
40
40
  */
41
- static performHTTPOperation(httpRequest: EAAPIUtils.HTTPRequest): Promise<EAAPIUtils.HTTPResponse>;
41
+ static performHTTPOperation(httpRequest: APIUtils.HTTPRequest): Promise<APIUtils.HTTPResponse>;
42
42
  private static buildURL;
43
43
  private static buildDispatcher;
44
44
  private static buildHeaders;
45
45
  private static doRequestLogging;
46
46
  private static doResponseLogging;
47
47
  }
48
- export declare namespace EAAPIUtils {
48
+ export declare namespace APIUtils {
49
49
  /**
50
50
  * Generic HTTP call Header items
51
51
  */
@@ -12,6 +12,7 @@ export declare const LogLevels: {
12
12
  readonly NoOutput: 0;
13
13
  };
14
14
  export type { LogLevel, VideoOptions, WriteLineOptions, LogOutputCallbackSignature, } from "./logger/types";
15
+ export { APIUtils } from "./apiUtils/APIUtils";
15
16
  export { JsonUtils } from "./jsonUtils/jsonUtils";
16
17
  export { StringUtils } from "./stringUtils/stringUtils";
17
18
  export { Utils, ExistingFileWriteActions } from "./utils/utils";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@controlium/utils",
3
- "version": "1.0.2-alpha.3",
3
+ "version": "1.0.2-alpha.4",
4
4
  "description": "Shared utilities for Controlium-based projects",
5
5
  "type": "module",
6
6
  "author": "Team Controllium contributors",