@splendidlabz/utils 1.10.4 → 1.10.6

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
@@ -1,5 +1,17 @@
1
1
  # @splendidlabz/utils
2
2
 
3
+ ## 1.10.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Bump
8
+
9
+ ## 1.10.5
10
+
11
+ ### Patch Changes
12
+
13
+ - Fixed `env` in node
14
+
3
15
  ## 1.10.4
4
16
 
5
17
  ### Patch Changes
@@ -22,7 +22,7 @@ __export(env_exports, {
22
22
  module.exports = __toCommonJS(env_exports);
23
23
  const import_meta = {};
24
24
  function env(key) {
25
- return process.env[key] || import_meta.env[key];
25
+ return process.env[key] || import_meta.env?.[key];
26
26
  }
27
27
  // Annotate the CommonJS export names for ESM import in node:
28
28
  0 && (module.exports = {
@@ -1,5 +1,5 @@
1
1
  function env(key) {
2
- return process.env[key] || import.meta.env[key];
2
+ return process.env[key] || import.meta.env?.[key];
3
3
  }
4
4
  export {
5
5
  env
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@splendidlabz/utils",
3
- "version": "1.10.4",
3
+ "version": "1.10.6",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "homepage": "https://splendidlabz.com/docs/utils",
@@ -47,6 +47,7 @@
47
47
  "type-check": "tsc --noEmit",
48
48
  "build": "tsup --config tsup.config.mjs",
49
49
  "build:watch": "tsup --config tsup.config.mjs --watch",
50
+ "dev": "npm run build:watch",
50
51
  "clean": "rm -rf dist",
51
52
  "prepublishOnly": "npm run clean && npm run build"
52
53
  },
package/src/node/env.js CHANGED
@@ -1,3 +1,3 @@
1
1
  export function env(key) {
2
- return process.env[key] || import.meta.env[key]
2
+ return process.env[key] || import.meta.env?.[key]
3
3
  }