opticore-env-access 1.0.12 → 1.0.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.cjs +3 -2
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -36,7 +36,7 @@ __export(index_exports, {
|
|
|
36
36
|
module.exports = __toCommonJS(index_exports);
|
|
37
37
|
|
|
38
38
|
// node_modules/tsup/assets/cjs_shims.js
|
|
39
|
-
var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src
|
|
39
|
+
var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.tagName.toUpperCase() === "SCRIPT" ? document.currentScript.src : new URL("main.js", document.baseURI).href;
|
|
40
40
|
var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
41
41
|
|
|
42
42
|
// src/config/envPath.config.ts
|
|
@@ -101,7 +101,8 @@ var getEnvironmentValue = (envDir) => {
|
|
|
101
101
|
dataBasePassword: String(envPath.parsed?.DATA_BASE_PASSWORD),
|
|
102
102
|
dataBaseName: String(envPath.parsed?.DATA_BASE_NAME),
|
|
103
103
|
defaultLocal: String(envPath.parsed?.DEFAULT_LOCAL_LANG),
|
|
104
|
-
|
|
104
|
+
localFormatTime: String(envPath.parsed?.LOCAL_FORMAT_TIME),
|
|
105
|
+
protocolTransfer: String(envPath.parsed?.PROTOCOL_TRANSFER),
|
|
105
106
|
logEnv: String(envPath.parsed?.LOG_ENVIRONMENT),
|
|
106
107
|
logFileMaxSize: Number(envPath.parsed?.LOG_ENVIRONMENT_FILE_MAX_SIZE),
|
|
107
108
|
logFileRotate: parseBoolean(envPath.parsed?.LOG_ENVIRONMENT_FILE_ROTATE),
|
package/dist/index.d.cts
CHANGED
|
@@ -25,13 +25,14 @@ interface IEnvVariables {
|
|
|
25
25
|
logLevelSuccess: string;
|
|
26
26
|
logLevelWarning: string;
|
|
27
27
|
logLevelDebug: string;
|
|
28
|
-
|
|
28
|
+
protocolTransfer: string;
|
|
29
29
|
hmrEnabled: boolean;
|
|
30
30
|
hmrWatchPatterns: string[];
|
|
31
31
|
hmrIgnorePatterns: string[];
|
|
32
32
|
hmrDebounceMs: number;
|
|
33
33
|
hmrMaxRestarts: number;
|
|
34
34
|
hmrAutoRestarts: boolean;
|
|
35
|
+
localFormatTime: string;
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
declare const getEnvironmentValue: (envDir: string) => IEnvVariables;
|
package/dist/index.d.ts
CHANGED
|
@@ -25,13 +25,14 @@ interface IEnvVariables {
|
|
|
25
25
|
logLevelSuccess: string;
|
|
26
26
|
logLevelWarning: string;
|
|
27
27
|
logLevelDebug: string;
|
|
28
|
-
|
|
28
|
+
protocolTransfer: string;
|
|
29
29
|
hmrEnabled: boolean;
|
|
30
30
|
hmrWatchPatterns: string[];
|
|
31
31
|
hmrIgnorePatterns: string[];
|
|
32
32
|
hmrDebounceMs: number;
|
|
33
33
|
hmrMaxRestarts: number;
|
|
34
34
|
hmrAutoRestarts: boolean;
|
|
35
|
+
localFormatTime: string;
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
declare const getEnvironmentValue: (envDir: string) => IEnvVariables;
|
package/dist/index.js
CHANGED
|
@@ -60,7 +60,8 @@ var getEnvironmentValue = (envDir) => {
|
|
|
60
60
|
dataBasePassword: String(envPath.parsed?.DATA_BASE_PASSWORD),
|
|
61
61
|
dataBaseName: String(envPath.parsed?.DATA_BASE_NAME),
|
|
62
62
|
defaultLocal: String(envPath.parsed?.DEFAULT_LOCAL_LANG),
|
|
63
|
-
|
|
63
|
+
localFormatTime: String(envPath.parsed?.LOCAL_FORMAT_TIME),
|
|
64
|
+
protocolTransfer: String(envPath.parsed?.PROTOCOL_TRANSFER),
|
|
64
65
|
logEnv: String(envPath.parsed?.LOG_ENVIRONMENT),
|
|
65
66
|
logFileMaxSize: Number(envPath.parsed?.LOG_ENVIRONMENT_FILE_MAX_SIZE),
|
|
66
67
|
logFileRotate: parseBoolean(envPath.parsed?.LOG_ENVIRONMENT_FILE_ROTATE),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opticore-env-access",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "opticore
|
|
3
|
+
"version": "1.0.14",
|
|
4
|
+
"description": "opticore environment access",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"homepage": "https://github.com/guyzoum77/opticore-requests-called-events#readme",
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"dotenv": "^16.5.0",
|
|
31
|
-
"opticore-logger": "^1.0.17",
|
|
32
31
|
"opticore-http-response": "^1.0.3",
|
|
32
|
+
"opticore-logger": "^1.0.23",
|
|
33
33
|
"reflect-metadata": "^0.2.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^22.13.10",
|
|
37
37
|
"tslib": "^2.8.1",
|
|
38
|
-
"
|
|
39
|
-
"
|
|
38
|
+
"tsup": "^8.4.0",
|
|
39
|
+
"typescript": "^5.4.5"
|
|
40
40
|
}
|
|
41
41
|
}
|