opticedge-cloud-utils 1.1.11 → 1.1.12

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/dist/env.d.ts CHANGED
@@ -1 +1 @@
1
- export declare function getEnv(name: string, fallback?: string): string;
1
+ export declare function getEnv(name: string, fallback?: any): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opticedge-cloud-utils",
3
- "version": "1.1.11",
3
+ "version": "1.1.12",
4
4
  "description": "Common utilities for cloud functions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/env.ts CHANGED
@@ -1,4 +1,4 @@
1
- export function getEnv(name: string, fallback?: string): string {
1
+ export function getEnv(name: string, fallback?: any): any {
2
2
  const value = process.env[name]
3
3
  if (!value) {
4
4
  if (fallback !== undefined) return fallback