podverse-helpers 5.1.27-alpha.0 → 5.1.28-alpha.0

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.
@@ -1,2 +1,3 @@
1
1
  export * from './locales';
2
+ export * from './serverEnv';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"}
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./locales"), exports);
18
+ __exportStar(require("./serverEnv"), exports);
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Server environment values used across Podverse projects.
3
+ * These values control environment-specific behavior (e.g., bypassing free trial restrictions in non-production environments).
4
+ */
5
+ export declare const SERVER_ENV_VALUES: readonly ["prod", "beta", "alpha", "local"];
6
+ export type ServerEnv = typeof SERVER_ENV_VALUES[number];
7
+ /**
8
+ * Validates if a string is a valid server environment value.
9
+ */
10
+ export declare const isValidServerEnv: (value: string) => value is ServerEnv;
11
+ //# sourceMappingURL=serverEnv.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverEnv.d.ts","sourceRoot":"","sources":["../../../src/lib/constants/serverEnv.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,iBAAiB,6CAA8C,CAAC;AAE7E,MAAM,MAAM,SAAS,GAAG,OAAO,iBAAiB,CAAC,MAAM,CAAC,CAAC;AAEzD;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,OAAO,MAAM,KAAG,KAAK,IAAI,SAEzD,CAAC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isValidServerEnv = exports.SERVER_ENV_VALUES = void 0;
4
+ /**
5
+ * Server environment values used across Podverse projects.
6
+ * These values control environment-specific behavior (e.g., bypassing free trial restrictions in non-production environments).
7
+ */
8
+ exports.SERVER_ENV_VALUES = ['prod', 'beta', 'alpha', 'local'];
9
+ /**
10
+ * Validates if a string is a valid server environment value.
11
+ */
12
+ const isValidServerEnv = (value) => {
13
+ return exports.SERVER_ENV_VALUES.includes(value);
14
+ };
15
+ exports.isValidServerEnv = isValidServerEnv;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "podverse-helpers",
3
- "version": "5.1.27-alpha.0",
3
+ "version": "5.1.28-alpha.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",