@alwatr/env 5.5.27 → 5.5.28

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/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [5.5.28](https://github.com/Alwatr/nanolib/compare/@alwatr/env@5.5.27...@alwatr/env@5.5.28) (2026-02-18)
7
+
8
+ ### 🔗 Dependencies update
9
+
10
+ * update @types/node to version 24.10.13 across multiple packages ([4c6d2a3](https://github.com/Alwatr/nanolib/commit/4c6d2a37ab26b1c86812b2aa38b2eca4ee097cb6))
11
+
6
12
  ## [5.5.27](https://github.com/Alwatr/nanolib/compare/@alwatr/env@5.5.26...@alwatr/env@5.5.27) (2025-12-23)
7
13
 
8
14
  ### 🔗 Dependencies update
package/dist/main.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /** 📦 @alwatr/env v5.5.27 */
2
- __dev_mode__: console.debug("📦 @alwatr/env v5.5.27");
1
+ /** 📦 @alwatr/env v5.5.28 */
2
+ __dev_mode__: console.debug("📦 @alwatr/env v5.5.28");
3
3
  "use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==="object"||typeof from==="function"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:true}),mod);var main_exports={};__export(main_exports,{getEnv:()=>getEnv});module.exports=__toCommonJS(main_exports);var import_platform_info=require("@alwatr/platform-info");function getEnv(option){let value=process.env[option.name];if(value==="")value=void 0;if(import_platform_info.platformInfo.development===true){value??=option.developmentValue??option.defaultValue}else{value??=option.defaultValue}if(value===void 0){throw new Error(`Environment variable "${option.name}" is required.`)}return value}0&&(module.exports={getEnv});
4
4
  //# sourceMappingURL=main.cjs.map
package/dist/main.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /** 📦 @alwatr/env v5.5.27 */
2
- __dev_mode__: console.debug("📦 @alwatr/env v5.5.27");
1
+ /** 📦 @alwatr/env v5.5.28 */
2
+ __dev_mode__: console.debug("📦 @alwatr/env v5.5.28");
3
3
  import{platformInfo}from"@alwatr/platform-info";function getEnv(option){let value=process.env[option.name];if(value==="")value=void 0;if(platformInfo.development===true){value??=option.developmentValue??option.defaultValue}else{value??=option.defaultValue}if(value===void 0){throw new Error(`Environment variable "${option.name}" is required.`)}return value}export{getEnv};
4
4
  //# sourceMappingURL=main.mjs.map
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@alwatr/env",
3
3
  "description": "A tiny and tree-shakable TypeScript library to get environment variables with type-safe and fallback value for development and production.",
4
- "version": "5.5.27",
4
+ "version": "5.5.28",
5
5
  "author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",
6
6
  "bugs": "https://github.com/Alwatr/nanolib/issues",
7
7
  "dependencies": {
8
- "@alwatr/platform-info": "5.5.27"
8
+ "@alwatr/platform-info": "5.5.28"
9
9
  },
10
10
  "devDependencies": {
11
- "@alwatr/nano-build": "6.4.0",
12
- "@alwatr/prettier-config": "6.0.1",
11
+ "@alwatr/nano-build": "6.4.1",
12
+ "@alwatr/prettier-config": "6.0.2",
13
13
  "@alwatr/tsconfig-base": "6.0.4",
14
- "@alwatr/type-helper": "7.0.0",
15
- "@types/node": "^24.10.4",
14
+ "@alwatr/type-helper": "7.0.1",
15
+ "@types/node": "^24.10.13",
16
16
  "typescript": "^5.9.3"
17
17
  },
18
18
  "exports": {
@@ -77,5 +77,5 @@
77
77
  "sideEffects": false,
78
78
  "type": "module",
79
79
  "types": "./dist/main.d.ts",
80
- "gitHead": "35950cd5ceb1ae5a8ba4ac73852d286b7b3cd45f"
80
+ "gitHead": "f9f9ba54b319ce8ccc6968059b222e89f4b5d149"
81
81
  }