@simplysm/core-common 14.0.1 → 14.0.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simplysm/core-common",
3
- "version": "14.0.1",
3
+ "version": "14.0.5",
4
4
  "description": "심플리즘 패키지 - 코어 (common)",
5
5
  "author": "심플리즘",
6
6
  "license": "Apache-2.0",
@@ -14,7 +14,8 @@
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [
16
16
  "dist",
17
- "src"
17
+ "src",
18
+ "docs"
18
19
  ],
19
20
  "sideEffects": [
20
21
  "./src/extensions/arr-ext.ts",
@@ -26,6 +27,9 @@
26
27
  "./dist/extensions/set-ext.js",
27
28
  "./dist/index.js"
28
29
  ],
30
+ "devDependencies": {
31
+ "@types/node": "^20.19.37"
32
+ },
29
33
  "dependencies": {
30
34
  "@zip.js/zip.js": "^2.8.23",
31
35
  "consola": "^3.4.2",
package/src/env.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  declare const process: { env: { DEV?: string; VER?: string; [key: string]: string | undefined } };
2
2
 
3
3
  declare global {
4
+ interface ImportMetaEnv extends Record<string, unknown> {}
4
5
  interface ImportMeta {
5
- env?: Record<string, unknown>;
6
+ readonly env: ImportMetaEnv;
6
7
  }
7
8
  }
8
9
 
@@ -14,7 +15,7 @@ export function parseBoolEnv(value: unknown): boolean {
14
15
  return ["true", "1", "yes", "on"].includes(String(value ?? "").toLowerCase());
15
16
  }
16
17
 
17
- const _metaEnv: Record<string, unknown> = import.meta.env ?? {};
18
+ const _metaEnv: Record<string, unknown> = { ...import.meta.env };
18
19
  const _processEnv: Record<string, unknown> = typeof process !== "undefined" ? process.env : {};
19
20
  const _raw: Record<string, unknown> = { ..._metaEnv, ..._processEnv };
20
21