@alextheman/utility 1.12.0 → 1.12.1

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/index.cjs CHANGED
@@ -158,7 +158,7 @@ var isMonthlyMultiple_default = isMonthlyMultiple;
158
158
  // src/newEnv.ts
159
159
  var import_zod = require("zod");
160
160
  var envSchema = import_zod.z.enum(["test", "development", "production"]);
161
- function newEnv(data) {
161
+ function newEnv(data = "development") {
162
162
  return envSchema.parse(data);
163
163
  }
164
164
  var newEnv_default = newEnv;
package/dist/index.d.cts CHANGED
@@ -22,7 +22,7 @@ declare const envSchema: z.ZodEnum<{
22
22
  production: "production";
23
23
  }>;
24
24
  type Env = z.infer<typeof envSchema>;
25
- declare function newEnv(data: unknown): Env;
25
+ declare function newEnv(data?: unknown): Env;
26
26
 
27
27
  declare function randomiseArray(array: unknown[]): unknown[];
28
28
 
package/dist/index.d.ts CHANGED
@@ -22,7 +22,7 @@ declare const envSchema: z.ZodEnum<{
22
22
  production: "production";
23
23
  }>;
24
24
  type Env = z.infer<typeof envSchema>;
25
- declare function newEnv(data: unknown): Env;
25
+ declare function newEnv(data?: unknown): Env;
26
26
 
27
27
  declare function randomiseArray(array: unknown[]): unknown[];
28
28
 
package/dist/index.js CHANGED
@@ -120,7 +120,7 @@ var isMonthlyMultiple_default = isMonthlyMultiple;
120
120
  // src/newEnv.ts
121
121
  import { z } from "zod";
122
122
  var envSchema = z.enum(["test", "development", "production"]);
123
- function newEnv(data) {
123
+ function newEnv(data = "development") {
124
124
  return envSchema.parse(data);
125
125
  }
126
126
  var newEnv_default = newEnv;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alextheman/utility",
3
- "version": "1.12.0",
3
+ "version": "1.12.1",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",