@nr1e/commons 0.0.0-snapshot-20251228034217 → 0.0.0-snapshot-20251228040433

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.
@@ -0,0 +1,2 @@
1
+ export declare function getEnv(name: string): string;
2
+ //# sourceMappingURL=env.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env.d.mts","sourceRoot":"","sources":["../../src/os/env.mts"],"names":[],"mappings":"AAAA,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAM3C"}
@@ -0,0 +1,8 @@
1
+ export function getEnv(name) {
2
+ const value = process.env[name];
3
+ if (value === undefined) {
4
+ throw new Error(`Environment variable ${name} is not defined`);
5
+ }
6
+ return value;
7
+ }
8
+ //# sourceMappingURL=env.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env.mjs","sourceRoot":"","sources":["../../src/os/env.mts"],"names":[],"mappings":"AAAA,MAAM,UAAU,MAAM,CAAC,IAAY;IACjC,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAChC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,MAAM,IAAI,KAAK,CAAC,wBAAwB,IAAI,iBAAiB,CAAC,CAAC;IACjE,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './env.mjs';
2
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/os/index.mts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './env.mjs';
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/os/index.mts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nr1e/commons",
3
3
  "description": "Common utilities for TypeScript projects",
4
- "version": "0.0.0-snapshot-20251228034217",
4
+ "version": "0.0.0-snapshot-20251228040433",
5
5
  "type": "module",
6
6
  "author": "NR1E, Inc.",
7
7
  "publishConfig": {
@@ -59,6 +59,10 @@
59
59
  "import": "./dist/oauth/index.mjs",
60
60
  "types": "./dist/oauth/index.d.mts"
61
61
  },
62
+ "./os": {
63
+ "import": "./dist/os/index.mjs",
64
+ "types": "./dist/os/index.d.mts"
65
+ },
62
66
  "./validator": {
63
67
  "import": "./dist/validator/index.mjs",
64
68
  "types": "./dist/validator/index.d.mts"