@alwatr/env 5.5.29 → 5.5.30
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 +4 -0
- package/dist/main.cjs +1 -1
- package/dist/main.mjs +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
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.30](https://github.com/Alwatr/nanolib/compare/@alwatr/env@5.5.29...@alwatr/env@5.5.30) (2026-03-18)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @alwatr/env
|
|
9
|
+
|
|
6
10
|
## [5.5.29](https://github.com/Alwatr/nanolib/compare/@alwatr/env@5.5.28...@alwatr/env@5.5.29) (2026-03-16)
|
|
7
11
|
|
|
8
12
|
### 🔨 Code Refactoring
|
package/dist/main.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/** 📦 @alwatr/env v5.5.
|
|
1
|
+
/** 📦 @alwatr/env v5.5.30 */
|
|
2
2
|
"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});
|
|
3
3
|
//# sourceMappingURL=main.cjs.map
|
package/dist/main.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/** 📦 @alwatr/env v5.5.
|
|
1
|
+
/** 📦 @alwatr/env v5.5.30 */
|
|
2
2
|
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};
|
|
3
3
|
//# sourceMappingURL=main.mjs.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.
|
|
4
|
+
"version": "5.5.30",
|
|
5
5
|
"author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",
|
|
6
6
|
"bugs": "https://github.com/Alwatr/nanolib/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"clean": "rm -rfv dist *.tsbuildinfo",
|
|
69
69
|
"d": "bun run build:es && bun --enable-source-maps --trace-warnings",
|
|
70
70
|
"t": "bun run test",
|
|
71
|
-
"test": "
|
|
71
|
+
"test": "bun test",
|
|
72
72
|
"w": "bun run watch",
|
|
73
73
|
"watch": "bun run watch:ts & bun run watch:es",
|
|
74
74
|
"watch:es": "bun run build:es --watch",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"sideEffects": false,
|
|
78
78
|
"type": "module",
|
|
79
79
|
"types": "./dist/main.d.ts",
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "def1decf8f496f4b0d3d3ab952c346c689c30160"
|
|
81
81
|
}
|