@samet-digital/be-oracle-common 1.0.2 → 1.0.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.
@@ -10,7 +10,7 @@ export interface OracleClientLike {
10
10
  /**
11
11
  * Initializes oracle instant client
12
12
  * */
13
- initialize(libDir: string): void;
13
+ initialize(libDir?: string): void;
14
14
  /**
15
15
  * Is oracle instant client already initialized?
16
16
  * */
@@ -17,6 +17,7 @@ class OracleClient {
17
17
  }
18
18
  /** {@inheritDoc} */
19
19
  initialize(libDir) {
20
+ libDir = libDir !== null && libDir !== void 0 ? libDir : process.env.ORA_DIR;
20
21
  if (!this._initialized) {
21
22
  this.native.initOracleClient({ libDir });
22
23
  }
@@ -1 +1,2 @@
1
1
  export * from './oracle-common.config';
2
+ export * from './index.types';
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./oracle-common.config"), exports);
18
+ __exportStar(require("./index.types"), exports);
@@ -1,5 +1,8 @@
1
- import { EnvBase } from "@leyyo/env";
2
- export type OracleCommonConfKeys = keyof OracleCommonConf;
1
+ import type { EnvBase } from "@leyyo/env";
2
+ export declare namespace NodeJS {
3
+ interface ProcessEnv extends OracleCommonConf {
4
+ }
5
+ }
3
6
  export interface OracleCommonConf extends EnvBase {
4
7
  /**
5
8
  * Oracle local client folder
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@samet-digital/be-oracle-common",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Oracle common component",
5
5
  "keywords": [
6
6
  "samet"
@@ -69,7 +69,7 @@
69
69
  "dependencies": {
70
70
  "@leyyo/common": "^1.0.10",
71
71
  "@leyyo/env": "^1.0.2",
72
- "@samet-digital/base-common": "^1.0.2",
72
+ "@samet-digital/be-base-common": "^1.0.7",
73
73
  "oracledb": "^6.8.0"
74
74
  }
75
75
  }