@arkenv/nextjs 1.0.0-alpha.1 → 1.0.0-alpha.11

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.
Files changed (155) hide show
  1. package/LICENSE +3 -0
  2. package/README.md +3 -1
  3. package/dist/arkenv-internal-QxkUlA5J.cjs +2 -0
  4. package/dist/arkenv-internal-QxkUlA5J.cjs.map +1 -0
  5. package/dist/arkenv-internal-Ws3srax6.js +2 -0
  6. package/dist/arkenv-internal-Ws3srax6.js.map +1 -0
  7. package/dist/auto-extend-CYzZnEvT.cjs +2 -0
  8. package/dist/auto-extend-CYzZnEvT.cjs.map +1 -0
  9. package/dist/auto-extend-DjiqIbgM.js +2 -0
  10. package/dist/auto-extend-DjiqIbgM.js.map +1 -0
  11. package/dist/client.cjs +1 -1
  12. package/dist/client.cjs.map +1 -1
  13. package/dist/client.d.cts +12 -9
  14. package/dist/client.d.cts.map +1 -1
  15. package/dist/client.d.ts +12 -9
  16. package/dist/client.d.ts.map +1 -1
  17. package/dist/client.js +1 -1
  18. package/dist/client.js.map +1 -1
  19. package/dist/config/index.cjs +1 -0
  20. package/dist/config/index.d.cts +2 -0
  21. package/dist/config/index.d.ts +2 -0
  22. package/dist/config/index.js +1 -0
  23. package/dist/config-Bnir9dSk.js +97 -0
  24. package/dist/config-Bnir9dSk.js.map +1 -0
  25. package/dist/config-CU-9fwxw.cjs +97 -0
  26. package/dist/config-CU-9fwxw.cjs.map +1 -0
  27. package/dist/dist-Bof1Std7.cjs +2 -0
  28. package/dist/dist-Bof1Std7.cjs.map +1 -0
  29. package/dist/dist-DimRGXOV.js +2 -0
  30. package/dist/dist-DimRGXOV.js.map +1 -0
  31. package/dist/empty-client-env.cjs +2 -0
  32. package/dist/empty-client-env.cjs.map +1 -0
  33. package/dist/empty-client-env.d.cts +10 -0
  34. package/dist/empty-client-env.d.cts.map +1 -0
  35. package/dist/empty-client-env.d.ts +10 -0
  36. package/dist/empty-client-env.d.ts.map +1 -0
  37. package/dist/empty-client-env.js +2 -0
  38. package/dist/empty-client-env.js.map +1 -0
  39. package/dist/{index-C6bpQ5GU.d.cts → index-BS1wAitS.d.cts} +96 -33
  40. package/dist/index-BS1wAitS.d.cts.map +1 -0
  41. package/dist/index-CL9MPCBA.d.cts +169 -0
  42. package/dist/index-CL9MPCBA.d.cts.map +1 -0
  43. package/dist/{index-Bn3pRiJy.d.ts → index-Cq_qJ68V.d.ts} +96 -33
  44. package/dist/index-Cq_qJ68V.d.ts.map +1 -0
  45. package/dist/index-DLwzgCyF.d.ts +169 -0
  46. package/dist/index-DLwzgCyF.d.ts.map +1 -0
  47. package/dist/index.cjs +1 -1
  48. package/dist/index.cjs.map +1 -1
  49. package/dist/index.d.cts +38 -10
  50. package/dist/index.d.cts.map +1 -1
  51. package/dist/index.d.ts +38 -10
  52. package/dist/index.d.ts.map +1 -1
  53. package/dist/index.js +1 -1
  54. package/dist/index.js.map +1 -1
  55. package/dist/mock-server-only.cjs +2 -0
  56. package/dist/mock-server-only.cjs.map +1 -0
  57. package/dist/mock-server-only.d.cts +1 -0
  58. package/dist/mock-server-only.d.ts +1 -0
  59. package/dist/mock-server-only.js +2 -0
  60. package/dist/mock-server-only.js.map +1 -0
  61. package/dist/react-server.cjs +1 -1
  62. package/dist/react-server.cjs.map +1 -1
  63. package/dist/react-server.d.cts +31 -10
  64. package/dist/react-server.d.cts.map +1 -1
  65. package/dist/react-server.d.ts +31 -10
  66. package/dist/react-server.d.ts.map +1 -1
  67. package/dist/react-server.js +1 -1
  68. package/dist/react-server.js.map +1 -1
  69. package/dist/script-BBfmzIh4.cjs +2 -0
  70. package/dist/script-BBfmzIh4.cjs.map +1 -0
  71. package/dist/script-BHFJ0MU_.d.cts +21 -0
  72. package/dist/script-BHFJ0MU_.d.cts.map +1 -0
  73. package/dist/script-CZOPkAw3.js +2 -0
  74. package/dist/script-CZOPkAw3.js.map +1 -0
  75. package/dist/script-Cy9x6rp9.d.ts +21 -0
  76. package/dist/script-Cy9x6rp9.d.ts.map +1 -0
  77. package/dist/server.cjs +1 -1
  78. package/dist/server.cjs.map +1 -1
  79. package/dist/server.d.cts +34 -12
  80. package/dist/server.d.cts.map +1 -1
  81. package/dist/server.d.ts +34 -12
  82. package/dist/server.d.ts.map +1 -1
  83. package/dist/server.js +1 -1
  84. package/dist/server.js.map +1 -1
  85. package/dist/standard/client.cjs +2 -0
  86. package/dist/standard/client.cjs.map +1 -0
  87. package/dist/standard/client.d.cts +30 -0
  88. package/dist/standard/client.d.cts.map +1 -0
  89. package/dist/standard/client.d.ts +30 -0
  90. package/dist/standard/client.d.ts.map +1 -0
  91. package/dist/standard/client.js +2 -0
  92. package/dist/standard/client.js.map +1 -0
  93. package/dist/standard/config.cjs +2 -0
  94. package/dist/standard/config.cjs.map +1 -0
  95. package/dist/standard/config.d.cts +14 -0
  96. package/dist/standard/config.d.cts.map +1 -0
  97. package/dist/standard/config.d.ts +14 -0
  98. package/dist/standard/config.d.ts.map +1 -0
  99. package/dist/standard/config.js +2 -0
  100. package/dist/standard/config.js.map +1 -0
  101. package/dist/standard/index.cjs +2 -0
  102. package/dist/standard/index.cjs.map +1 -0
  103. package/dist/standard/index.d.cts +35 -0
  104. package/dist/standard/index.d.cts.map +1 -0
  105. package/dist/standard/index.d.ts +35 -0
  106. package/dist/standard/index.d.ts.map +1 -0
  107. package/dist/standard/index.js +2 -0
  108. package/dist/standard/index.js.map +1 -0
  109. package/dist/standard/server.cjs +2 -0
  110. package/dist/standard/server.cjs.map +1 -0
  111. package/dist/standard/server.d.cts +38 -0
  112. package/dist/standard/server.d.cts.map +1 -0
  113. package/dist/standard/server.d.ts +39 -0
  114. package/dist/standard/server.d.ts.map +1 -0
  115. package/dist/standard/server.js +2 -0
  116. package/dist/standard/server.js.map +1 -0
  117. package/dist/standard/shared.cjs +2 -0
  118. package/dist/standard/shared.cjs.map +1 -0
  119. package/dist/standard/shared.d.cts +13 -0
  120. package/dist/standard/shared.d.cts.map +1 -0
  121. package/dist/standard/shared.d.ts +13 -0
  122. package/dist/standard/shared.d.ts.map +1 -0
  123. package/dist/standard/shared.js +2 -0
  124. package/dist/standard/shared.js.map +1 -0
  125. package/dist/strict-client-env-CHDTZoLe.js +6 -0
  126. package/dist/strict-client-env-CHDTZoLe.js.map +1 -0
  127. package/dist/strict-client-env-MouPnkRr.cjs +6 -0
  128. package/dist/strict-client-env-MouPnkRr.cjs.map +1 -0
  129. package/dist/{types-BN4fEChy.d.ts → types-BfMBbrMm.d.ts} +2 -2
  130. package/dist/{types-BN4fEChy.d.ts.map → types-BfMBbrMm.d.ts.map} +1 -1
  131. package/dist/{types-DBqiLw5v.d.cts → types-BlRHnQwj.d.cts} +2 -2
  132. package/dist/{types-DBqiLw5v.d.cts.map → types-BlRHnQwj.d.cts.map} +1 -1
  133. package/package.json +74 -30
  134. package/dist/arkenv-internal-DA4LpI3t.cjs +0 -2
  135. package/dist/arkenv-internal-DA4LpI3t.cjs.map +0 -1
  136. package/dist/arkenv-internal-cagrxXTM.js +0 -2
  137. package/dist/arkenv-internal-cagrxXTM.js.map +0 -1
  138. package/dist/config.cjs +0 -76
  139. package/dist/config.cjs.map +0 -1
  140. package/dist/config.d.cts +0 -107
  141. package/dist/config.d.cts.map +0 -1
  142. package/dist/config.d.ts +0 -107
  143. package/dist/config.d.ts.map +0 -1
  144. package/dist/config.js +0 -76
  145. package/dist/config.js.map +0 -1
  146. package/dist/index-Bn3pRiJy.d.ts.map +0 -1
  147. package/dist/index-C6bpQ5GU.d.cts.map +0 -1
  148. package/dist/shared.cjs +0 -2
  149. package/dist/shared.cjs.map +0 -1
  150. package/dist/shared.d.cts +0 -16
  151. package/dist/shared.d.cts.map +0 -1
  152. package/dist/shared.d.ts +0 -16
  153. package/dist/shared.d.ts.map +0 -1
  154. package/dist/shared.js +0 -2
  155. package/dist/shared.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,21 +1,49 @@
1
- import { t as SchemaShape } from "./index-Bn3pRiJy.js";
2
- import { EnvSchema, Infer, Infer as Infer$1, type } from "arkenv";
1
+ import { a as $, t as SchemaShape } from "./index-Cq_qJ68V.js";
2
+ import { t as MergeExtends } from "./types-BfMBbrMm.js";
3
+ import { n as ArkEnvScriptProps, t as ArkEnvScript } from "./script-Cy9x6rp9.js";
4
+ import { EnvSchema, Infer } from "@arkenv/core";
5
+ import { distill, type } from "arktype";
3
6
 
4
7
  //#region src/index.d.ts
5
8
  /**
6
- * Create a validated, type-safe environment configuration for Next.js applications (Client-side / SSR entry point).
7
- *
8
- * @param options The environment validation configuration options
9
- * @returns A validated, readonly environment variables object wrapped in a security proxy
10
- * @throws An error if any client-side variable is not prefixed with `NEXT_PUBLIC_`
11
- * @throws An error if any client or shared variable is missing from `runtimeEnv`
9
+ * Extract keys from a schema type that are visible on the client:
10
+ * - Keys prefixed with `NEXT_PUBLIC_`
11
+ * - `NODE_ENV` (implicitly shared by Next.js)
12
+ * - Keys listed in `exposeToClient`
13
+ */
14
+ type ClientVisibleKeys<TSchema extends SchemaShape, TExpose extends keyof TSchema> = { [K in keyof TSchema]: K extends `NEXT_PUBLIC_${string}` ? K : K extends "NODE_ENV" ? K : K extends TExpose ? K : never }[keyof TSchema];
15
+ /**
16
+ * Create a validated, typesafe environment configuration for Next.js applications (Client-side / SSR entry point).
17
+ */
18
+ declare function arkenv<const TSchema extends SchemaShape & {
19
+ runtimeEnv?: never;
20
+ } = {}, const TExpose extends keyof TSchema = never, const TExtends extends readonly unknown[] = []>(schema: EnvSchema<TSchema>, options?: {
21
+ /**
22
+ * Custom environment variables to expose to the client bundle.
23
+ * By default, variables prefixed with `NEXT_PUBLIC_` and `NODE_ENV` are exposed automatically.
24
+ * Use this option to expose custom variables that do not have the `NEXT_PUBLIC_` prefix.
25
+ */
26
+ exposeToClient?: readonly TExpose[];
27
+ /**
28
+ * @deprecated Use `exposeToClient` instead
29
+ */
30
+ expose?: readonly TExpose[];
31
+ /**
32
+ * @deprecated Use `exposeToClient` instead
33
+ */
34
+ shared?: readonly TExpose[];
35
+ extends?: [...TExtends];
36
+ runtimeEnv?: Record<string, unknown>;
37
+ }): Readonly<Pick<distill.Out<type.infer<TSchema, $>>, Extract<keyof distill.Out<type.infer<TSchema, $>>, ClientVisibleKeys<TSchema, TExpose>>> & MergeExtends<TExtends>>;
38
+ /**
39
+ * @deprecated Use the unified flat layout signature instead: `arkenv(schema, options)`
12
40
  */
13
41
  declare function arkenv<const TServer extends SchemaShape = {}, const TClient extends SchemaShape = {}, const TShared extends SchemaShape = {}>(options: {
14
42
  server?: EnvSchema<TServer>;
15
43
  client?: EnvSchema<TClient> & { [K in keyof TClient]: K extends `NEXT_PUBLIC_${string}` ? unknown : never };
16
44
  shared?: EnvSchema<TShared>;
17
45
  runtimeEnv: Record<keyof TClient | keyof TShared, unknown> & Record<string, unknown>;
18
- }): Readonly<Infer$1<TServer & TClient & TShared>>;
46
+ }): Readonly<Infer<TServer & TClient & TShared>>;
19
47
  //#endregion
20
- export { type Infer, arkenv, arkenv as default, type };
48
+ export { ArkEnvScript, type ArkEnvScriptProps, arkenv, arkenv as default };
21
49
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;AAYA;;;;;;iBAAgB,MAAA,uBACO,WAAA,6BACA,WAAA,6BACA,WAAA,MAAA,CACrB,OAAA;EACD,MAAA,GAAS,SAAA,CAAU,OAAA;EACnB,MAAA,GAAS,SAAA,CAAU,OAAA,kBACN,OAAA,GAAU,CAAA;EAEvB,MAAA,GAAS,SAAA,CAAU,OAAA;EACnB,UAAA,EAAY,MAAA,OAAa,OAAA,SAAgB,OAAA,aACxC,MAAA;AAAA,IACE,QAAA,CAAS,OAAA,CAAM,OAAA,GAAU,OAAA,GAAU,OAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;;AAM4C;;;;KAQvC,iBAAA,iBACY,WAAA,wBACM,OAAA,kBAEV,OAAA,GAAU,CAAA,mCACnB,CAAA,GACA,CAAA,sBACC,CAAA,GACA,CAAA,SAAU,OAAA,GACT,CAAA,iBAEE,OAAA;;;;iBAKQ,MAAA,uBACO,WAAA;EAAgB,UAAA;AAAA,oCACV,OAAA,yDAAA,CAG5B,MAAA,EAAQ,SAAA,CAAU,OAAA,GAClB,OAAA;EAXO;;;;;EAiBN,cAAA,YAA0B,OAAA;EA1BL;;;EA8BrB,MAAA,YAAkB,OAAA;EA3BhB;;;EA+BF,MAAA,YAAkB,OAAA;EAClB,OAAA,OAAc,QAAA;EACd,UAAA,GAAa,MAAA;AAAA,IAEZ,QAAA,CACF,IAAA,CACC,OAAA,CAAQ,GAAA,CAAI,IAAA,CAAG,KAAA,CAAM,OAAA,EAAS,CAAA,IAC9B,OAAA,OACO,OAAA,CAAQ,GAAA,CAAI,IAAA,CAAG,KAAA,CAAM,OAAA,EAAS,CAAA,IACpC,iBAAA,CAAkB,OAAA,EAAS,OAAA,MAG5B,YAAA,CAAa,QAAA;;;AAhCf;iBAsCgB,MAAA,uBACO,WAAA,6BACA,WAAA,6BACA,WAAA,MAAA,CACrB,OAAA;EACD,MAAA,GAAS,SAAA,CAAU,OAAA;EACnB,MAAA,GAAS,SAAA,CAAU,OAAA,kBACN,OAAA,GAAU,CAAA;EAEvB,MAAA,GAAS,SAAA,CAAU,OAAA;EACnB,UAAA,EAAY,MAAA,OAAa,OAAA,SAAgB,OAAA,aACxC,MAAA;AAAA,IACE,QAAA,CAAS,KAAA,CAAM,OAAA,GAAU,OAAA,GAAU,OAAA"}
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import{t as e}from"./arkenv-internal-cagrxXTM.js";import{type as t}from"arkenv";function n(t){return e(t,!1)}export{n as arkenv,n as default,t as type};
1
+ import{t as e}from"./arkenv-internal-Ws3srax6.js";import{t}from"./script-CZOPkAw3.js";import{arkenv as n,getSchemaKeys as r}from"@arkenv/core";function i(t,i){return t&&typeof t==`object`&&(`runtimeEnv`in t||`server`in t||`client`in t||`shared`in t)?e(t,!1,void 0,n,r):e(t,i,{isServer:!1},n,r)}export{t as ArkEnvScript,i as arkenv,i as default};
2
2
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import type { SchemaShape } from \"@repo/types\";\nimport type { EnvSchema, Infer } from \"arkenv\";\nimport { arkenvInternal } from \"./arkenv-internal\";\n\n/**\n * Create a validated, type-safe environment configuration for Next.js applications (Client-side / SSR entry point).\n *\n * @param options The environment validation configuration options\n * @returns A validated, readonly environment variables object wrapped in a security proxy\n * @throws An error if any client-side variable is not prefixed with `NEXT_PUBLIC_`\n * @throws An error if any client or shared variable is missing from `runtimeEnv`\n */\nexport function arkenv<\n\tconst TServer extends SchemaShape = {},\n\tconst TClient extends SchemaShape = {},\n\tconst TShared extends SchemaShape = {},\n>(options: {\n\tserver?: EnvSchema<TServer>;\n\tclient?: EnvSchema<TClient> & {\n\t\t[K in keyof TClient]: K extends `NEXT_PUBLIC_${string}` ? unknown : never;\n\t};\n\tshared?: EnvSchema<TShared>;\n\truntimeEnv: Record<keyof TClient | keyof TShared, unknown> &\n\t\tRecord<string, unknown>;\n}): Readonly<Infer<TServer & TClient & TShared>> {\n\ttype ReturnType = Readonly<Infer<TServer & TClient & TShared>>;\n\treturn arkenvInternal(options, false) as ReturnType;\n}\n\nexport type { Infer } from \"arkenv\";\nexport { type } from \"arkenv\";\n\n/**\n * ArkEnv's Next.js integration export\n *\n * {@link https://arkenv.js.org | ArkEnv} is a typesafe environment variables validator from editor to runtime.\n */\nexport default arkenv;\n"],"mappings":"gFAYA,SAAgB,EAId,EAQ+C,CAEhD,OAAO,EAAe,EAAS,GAAM"}
1
+ {"version":3,"file":"index.js","names":["coreArkenv"],"sources":["../src/index.ts"],"sourcesContent":["import type { EnvSchema, Infer } from \"@arkenv/core\";\nimport { arkenv as coreArkenv, getSchemaKeys } from \"@arkenv/core\";\nimport type { $ } from \"@repo/scope\";\nimport type { SchemaShape } from \"@repo/types\";\nimport type { type as at, distill } from \"arktype\";\nimport { arkenvInternal } from \"./arkenv-internal\";\nimport type { MergeExtends } from \"./types\";\n\n/**\n * Extract keys from a schema type that are visible on the client:\n * - Keys prefixed with `NEXT_PUBLIC_`\n * - `NODE_ENV` (implicitly shared by Next.js)\n * - Keys listed in `exposeToClient`\n */\ntype ClientVisibleKeys<\n\tTSchema extends SchemaShape,\n\tTExpose extends keyof TSchema,\n> = {\n\t[K in keyof TSchema]: K extends `NEXT_PUBLIC_${string}`\n\t\t? K\n\t\t: K extends \"NODE_ENV\"\n\t\t\t? K\n\t\t\t: K extends TExpose\n\t\t\t\t? K\n\t\t\t\t: never;\n}[keyof TSchema];\n\n/**\n * Create a validated, typesafe environment configuration for Next.js applications (Client-side / SSR entry point).\n */\nexport function arkenv<\n\tconst TSchema extends SchemaShape & { runtimeEnv?: never } = {},\n\tconst TExpose extends keyof TSchema = never,\n\tconst TExtends extends readonly unknown[] = [],\n>(\n\tschema: EnvSchema<TSchema>,\n\toptions?: {\n\t\t/**\n\t\t * Custom environment variables to expose to the client bundle.\n\t\t * By default, variables prefixed with `NEXT_PUBLIC_` and `NODE_ENV` are exposed automatically.\n\t\t * Use this option to expose custom variables that do not have the `NEXT_PUBLIC_` prefix.\n\t\t */\n\t\texposeToClient?: readonly TExpose[];\n\t\t/**\n\t\t * @deprecated Use `exposeToClient` instead\n\t\t */\n\t\texpose?: readonly TExpose[];\n\t\t/**\n\t\t * @deprecated Use `exposeToClient` instead\n\t\t */\n\t\tshared?: readonly TExpose[];\n\t\textends?: [...TExtends];\n\t\truntimeEnv?: Record<string, unknown>;\n\t},\n): Readonly<\n\tPick<\n\t\tdistill.Out<at.infer<TSchema, $>>,\n\t\tExtract<\n\t\t\tkeyof distill.Out<at.infer<TSchema, $>>,\n\t\t\tClientVisibleKeys<TSchema, TExpose>\n\t\t>\n\t> &\n\t\tMergeExtends<TExtends>\n>;\n\n/**\n * @deprecated Use the unified flat layout signature instead: `arkenv(schema, options)`\n */\nexport function arkenv<\n\tconst TServer extends SchemaShape = {},\n\tconst TClient extends SchemaShape = {},\n\tconst TShared extends SchemaShape = {},\n>(options: {\n\tserver?: EnvSchema<TServer>;\n\tclient?: EnvSchema<TClient> & {\n\t\t[K in keyof TClient]: K extends `NEXT_PUBLIC_${string}` ? unknown : never;\n\t};\n\tshared?: EnvSchema<TShared>;\n\truntimeEnv: Record<keyof TClient | keyof TShared, unknown> &\n\t\tRecord<string, unknown>;\n}): Readonly<Infer<TServer & TClient & TShared>>;\n\nexport function arkenv(schemaOrOptions: any, optionsOrIsServer?: any): any {\n\tconst isLegacy =\n\t\tschemaOrOptions &&\n\t\ttypeof schemaOrOptions === \"object\" &&\n\t\t(\"runtimeEnv\" in schemaOrOptions ||\n\t\t\t\"server\" in schemaOrOptions ||\n\t\t\t\"client\" in schemaOrOptions ||\n\t\t\t\"shared\" in schemaOrOptions);\n\n\tif (isLegacy) {\n\t\treturn arkenvInternal(\n\t\t\tschemaOrOptions,\n\t\t\tfalse,\n\t\t\tundefined,\n\t\t\tcoreArkenv,\n\t\t\tgetSchemaKeys,\n\t\t);\n\t}\n\n\treturn arkenvInternal(\n\t\tschemaOrOptions,\n\t\toptionsOrIsServer,\n\t\t{ isServer: false },\n\t\tcoreArkenv,\n\t\tgetSchemaKeys,\n\t);\n}\n\nexport type { ArkEnvScriptProps } from \"./script\";\nexport { ArkEnvScript } from \"./script\";\n\nexport default arkenv;\n"],"mappings":"+IAkFA,SAAgB,EAAO,EAAsB,EAA8B,CAmB1E,OAjBC,GACA,OAAO,GAAoB,WAC1B,eAAgB,GAChB,WAAY,GACZ,WAAY,GACZ,WAAY,GAGN,EACN,EACA,GACA,IAAA,GACAA,EACA,EACA,CAGK,EACN,EACA,EACA,CAAE,SAAU,GAAO,CACnBA,EACA,EACA"}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=mock-server-only.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mock-server-only.cjs","names":[],"sources":["../src/mock-server-only.ts"],"sourcesContent":["/**\n * No-op stub used as a jiti alias for the `server-only` package during build-time validation.\n */\n"],"mappings":""}
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,2 @@
1
+ export{};
2
+ //# sourceMappingURL=mock-server-only.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mock-server-only.js","names":[],"sources":["../src/mock-server-only.ts"],"sourcesContent":["/**\n * No-op stub used as a jiti alias for the `server-only` package during build-time validation.\n */\n"],"mappings":""}
@@ -1,2 +1,2 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`./arkenv-internal-DA4LpI3t.cjs`);require(`./config.cjs`);let t=require(`arkenv`);function n(t){return e.t(t,!0)}exports.arkenv=n,exports.default=n,Object.defineProperty(exports,`type`,{enumerable:!0,get:function(){return t.type}});
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`./config-CU-9fwxw.cjs`);const e=require(`./arkenv-internal-QxkUlA5J.cjs`),t=require(`./script-BBfmzIh4.cjs`);let n=require(`@arkenv/core`);function r(t,r){return t&&typeof t==`object`&&(`runtimeEnv`in t||`server`in t||`client`in t||`shared`in t)?e.t(t,!0,void 0,n.arkenv,n.getSchemaKeys):e.t(t,r,{isServer:!0},n.arkenv,n.getSchemaKeys)}exports.ArkEnvScript=t.t,exports.arkenv=r,exports.default=r;
2
2
  //# sourceMappingURL=react-server.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-server.cjs","names":["arkenv","arkenvInternal"],"sources":["../src/react-server.ts"],"sourcesContent":["import type { SchemaShape } from \"@repo/types\";\nimport type { EnvSchema, Infer } from \"arkenv\";\nimport { arkenvInternal } from \"./arkenv-internal\";\n\n/**\n * Create a validated, type-safe environment configuration for Next.js applications (Server-side RSC entry point).\n *\n * @param options The environment validation configuration options\n * @returns A validated, readonly environment variables object wrapped in a security proxy\n * @throws An error if any client-side variable is not prefixed with `NEXT_PUBLIC_`\n * @throws An error if any client or shared variable is missing from `runtimeEnv`\n */\nexport function arkenv<\n\tconst TServer extends SchemaShape = {},\n\tconst TClient extends SchemaShape = {},\n\tconst TShared extends SchemaShape = {},\n>(options: {\n\tserver?: EnvSchema<TServer>;\n\tclient?: EnvSchema<TClient> & {\n\t\t[K in keyof TClient]: K extends `NEXT_PUBLIC_${string}` ? unknown : never;\n\t};\n\tshared?: EnvSchema<TShared>;\n\truntimeEnv: Record<keyof TClient | keyof TShared, unknown> &\n\t\tRecord<string, unknown>;\n}): Readonly<Infer<TServer & TClient & TShared>> {\n\ttype ReturnType = Readonly<Infer<TServer & TClient & TShared>>;\n\treturn arkenvInternal(options, true) as ReturnType;\n}\n\nexport type { Infer } from \"arkenv\";\nexport { type } from \"arkenv\";\n\n/**\n * ArkEnv's Next.js integration export\n *\n * {@link https://arkenv.js.org | ArkEnv} is a typesafe environment variables validator from editor to runtime.\n */\nexport default arkenv;\n"],"mappings":"iMAYA,SAAgBA,EAId,EAQ+C,CAEhD,OAAOC,EAAAA,EAAe,EAAS,GAAK"}
1
+ {"version":3,"file":"react-server.cjs","names":["arkenvInternal","coreArkenv","getSchemaKeys"],"sources":["../src/react-server.ts"],"sourcesContent":["import type { EnvSchema, Infer } from \"@arkenv/core\";\nimport { arkenv as coreArkenv, getSchemaKeys } from \"@arkenv/core\";\nimport type { $ } from \"@repo/scope\";\nimport type { SchemaShape } from \"@repo/types\";\nimport type { type as at, distill } from \"arktype\";\nimport { arkenvInternal } from \"./arkenv-internal\";\nimport type { MergeExtends } from \"./types\";\n\n/**\n * Create a validated, typesafe environment configuration for Next.js applications (Server-side RSC entry point).\n */\nexport function arkenv<\n\tconst TSchema extends SchemaShape & { runtimeEnv?: never } = {},\n\tconst TShared extends keyof TSchema = never,\n\tconst TExtends extends readonly unknown[] = [],\n>(\n\tschema: EnvSchema<TSchema>,\n\toptions?: {\n\t\t/**\n\t\t * Custom environment variables to expose to the client bundle.\n\t\t * By default, variables prefixed with `NEXT_PUBLIC_` and `NODE_ENV` are exposed automatically.\n\t\t * Use this option to expose custom variables that do not have the `NEXT_PUBLIC_` prefix.\n\t\t */\n\t\texposeToClient?: readonly TShared[];\n\t\t/**\n\t\t * @deprecated Use `exposeToClient` instead\n\t\t */\n\t\texpose?: readonly TShared[];\n\t\t/**\n\t\t * @deprecated Use `exposeToClient` instead\n\t\t */\n\t\tshared?: readonly TShared[];\n\t\textends?: [...TExtends];\n\t\truntimeEnv?: Record<string, unknown>;\n\t},\n): Readonly<distill.Out<at.infer<TSchema, $>> & MergeExtends<TExtends>>;\n\n/**\n * @deprecated Use the unified flat layout signature instead: `arkenv(schema, options)`\n */\nexport function arkenv<\n\tconst TServer extends SchemaShape = {},\n\tconst TClient extends SchemaShape = {},\n\tconst TShared extends SchemaShape = {},\n>(options: {\n\tserver?: EnvSchema<TServer>;\n\tclient?: EnvSchema<TClient> & {\n\t\t[K in keyof TClient]: K extends `NEXT_PUBLIC_${string}` ? unknown : never;\n\t};\n\tshared?: EnvSchema<TShared>;\n\truntimeEnv: Record<keyof TClient | keyof TShared, unknown> &\n\t\tRecord<string, unknown>;\n}): Readonly<Infer<TServer & TClient & TShared>>;\n\nexport function arkenv(schemaOrOptions: any, optionsOrIsServer?: any): any {\n\tconst isLegacy =\n\t\tschemaOrOptions &&\n\t\ttypeof schemaOrOptions === \"object\" &&\n\t\t(\"runtimeEnv\" in schemaOrOptions ||\n\t\t\t\"server\" in schemaOrOptions ||\n\t\t\t\"client\" in schemaOrOptions ||\n\t\t\t\"shared\" in schemaOrOptions);\n\n\tif (isLegacy) {\n\t\treturn arkenvInternal(\n\t\t\tschemaOrOptions,\n\t\t\ttrue,\n\t\t\tundefined,\n\t\t\tcoreArkenv,\n\t\t\tgetSchemaKeys,\n\t\t);\n\t}\n\n\treturn arkenvInternal(\n\t\tschemaOrOptions,\n\t\toptionsOrIsServer,\n\t\t{ isServer: true },\n\t\tcoreArkenv,\n\t\tgetSchemaKeys,\n\t);\n}\n\nexport type { ArkEnvScriptProps } from \"./script\";\nexport { ArkEnvScript } from \"./script\";\n\nexport default arkenv;\n"],"mappings":"mPAsDA,SAAgB,EAAO,EAAsB,EAA8B,CAmB1E,OAjBC,GACA,OAAO,GAAoB,WAC1B,eAAgB,GAChB,WAAY,GACZ,WAAY,GACZ,WAAY,GAGNA,EAAAA,EACN,EACA,GACA,IAAA,GACAC,EAAAA,OACAC,EAAAA,cACA,CAGKF,EAAAA,EACN,EACA,EACA,CAAE,SAAU,GAAM,CAClBC,EAAAA,OACAC,EAAAA,cACA"}
@@ -1,21 +1,42 @@
1
- import { t as SchemaShape } from "./index-C6bpQ5GU.cjs";
2
- import { EnvSchema, Infer, Infer as Infer$1, type } from "arkenv";
1
+ import { a as $, t as SchemaShape } from "./index-BS1wAitS.cjs";
2
+ import { t as MergeExtends } from "./types-BlRHnQwj.cjs";
3
+ import { n as ArkEnvScriptProps, t as ArkEnvScript } from "./script-BHFJ0MU_.cjs";
4
+ import { EnvSchema, Infer } from "@arkenv/core";
5
+ import { distill, type } from "arktype";
3
6
 
4
7
  //#region src/react-server.d.ts
5
8
  /**
6
- * Create a validated, type-safe environment configuration for Next.js applications (Server-side RSC entry point).
7
- *
8
- * @param options The environment validation configuration options
9
- * @returns A validated, readonly environment variables object wrapped in a security proxy
10
- * @throws An error if any client-side variable is not prefixed with `NEXT_PUBLIC_`
11
- * @throws An error if any client or shared variable is missing from `runtimeEnv`
9
+ * Create a validated, typesafe environment configuration for Next.js applications (Server-side RSC entry point).
10
+ */
11
+ declare function arkenv<const TSchema extends SchemaShape & {
12
+ runtimeEnv?: never;
13
+ } = {}, const TShared extends keyof TSchema = never, const TExtends extends readonly unknown[] = []>(schema: EnvSchema<TSchema>, options?: {
14
+ /**
15
+ * Custom environment variables to expose to the client bundle.
16
+ * By default, variables prefixed with `NEXT_PUBLIC_` and `NODE_ENV` are exposed automatically.
17
+ * Use this option to expose custom variables that do not have the `NEXT_PUBLIC_` prefix.
18
+ */
19
+ exposeToClient?: readonly TShared[];
20
+ /**
21
+ * @deprecated Use `exposeToClient` instead
22
+ */
23
+ expose?: readonly TShared[];
24
+ /**
25
+ * @deprecated Use `exposeToClient` instead
26
+ */
27
+ shared?: readonly TShared[];
28
+ extends?: [...TExtends];
29
+ runtimeEnv?: Record<string, unknown>;
30
+ }): Readonly<distill.Out<type.infer<TSchema, $>> & MergeExtends<TExtends>>;
31
+ /**
32
+ * @deprecated Use the unified flat layout signature instead: `arkenv(schema, options)`
12
33
  */
13
34
  declare function arkenv<const TServer extends SchemaShape = {}, const TClient extends SchemaShape = {}, const TShared extends SchemaShape = {}>(options: {
14
35
  server?: EnvSchema<TServer>;
15
36
  client?: EnvSchema<TClient> & { [K in keyof TClient]: K extends `NEXT_PUBLIC_${string}` ? unknown : never };
16
37
  shared?: EnvSchema<TShared>;
17
38
  runtimeEnv: Record<keyof TClient | keyof TShared, unknown> & Record<string, unknown>;
18
- }): Readonly<Infer$1<TServer & TClient & TShared>>;
39
+ }): Readonly<Infer<TServer & TClient & TShared>>;
19
40
  //#endregion
20
- export { type Infer, arkenv, arkenv as default, type };
41
+ export { ArkEnvScript, type ArkEnvScriptProps, arkenv, arkenv as default };
21
42
  //# sourceMappingURL=react-server.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-server.d.cts","names":[],"sources":["../src/react-server.ts"],"mappings":";;;;;;AAYA;;;;;;iBAAgB,MAAA,uBACO,WAAA,6BACA,WAAA,6BACA,WAAA,MAAA,CACrB,OAAA;EACD,MAAA,GAAS,SAAA,CAAU,OAAA;EACnB,MAAA,GAAS,SAAA,CAAU,OAAA,kBACN,OAAA,GAAU,CAAA;EAEvB,MAAA,GAAS,SAAA,CAAU,OAAA;EACnB,UAAA,EAAY,MAAA,OAAa,OAAA,SAAgB,OAAA,aACxC,MAAA;AAAA,IACE,QAAA,CAAS,OAAA,CAAM,OAAA,GAAU,OAAA,GAAU,OAAA"}
1
+ {"version":3,"file":"react-server.d.cts","names":[],"sources":["../src/react-server.ts"],"mappings":";;;;;;;;;AAWA;iBAAgB,MAAA,uBACO,WAAA;EAAgB,UAAA;AAAA,oCACV,OAAA,yDAAA,CAG5B,MAAA,EAAQ,SAAA,CAAU,OAAA,GAClB,OAAA;EAJ4B;;;;;EAU3B,cAAA,YAA0B,OAAA;EASZ;;;EALd,MAAA,YAAkB,OAAA;EAQI;;;EAJtB,MAAA,YAAkB,OAAA;EAClB,OAAA,OAAc,QAAA;EACd,UAAA,GAAa,MAAA;AAAA,IAEZ,QAAA,CAAS,OAAA,CAAQ,GAAA,CAAI,IAAA,CAAG,KAAA,CAAM,OAAA,EAAS,CAAA,KAAM,YAAA,CAAa,QAAA;;;;iBAK7C,MAAA,uBACO,WAAA,6BACA,WAAA,6BACA,WAAA,MAAA,CACrB,OAAA;EACD,MAAA,GAAS,SAAA,CAAU,OAAA;EACnB,MAAA,GAAS,SAAA,CAAU,OAAA,kBACN,OAAA,GAAU,CAAA;EAEvB,MAAA,GAAS,SAAA,CAAU,OAAA;EACnB,UAAA,EAAY,MAAA,OAAa,OAAA,SAAgB,OAAA,aACxC,MAAA;AAAA,IACE,QAAA,CAAS,KAAA,CAAM,OAAA,GAAU,OAAA,GAAU,OAAA"}
@@ -1,21 +1,42 @@
1
- import { t as SchemaShape } from "./index-Bn3pRiJy.js";
2
- import { EnvSchema, Infer, Infer as Infer$1, type } from "arkenv";
1
+ import { a as $, t as SchemaShape } from "./index-Cq_qJ68V.js";
2
+ import { t as MergeExtends } from "./types-BfMBbrMm.js";
3
+ import { n as ArkEnvScriptProps, t as ArkEnvScript } from "./script-Cy9x6rp9.js";
4
+ import { EnvSchema, Infer } from "@arkenv/core";
5
+ import { distill, type } from "arktype";
3
6
 
4
7
  //#region src/react-server.d.ts
5
8
  /**
6
- * Create a validated, type-safe environment configuration for Next.js applications (Server-side RSC entry point).
7
- *
8
- * @param options The environment validation configuration options
9
- * @returns A validated, readonly environment variables object wrapped in a security proxy
10
- * @throws An error if any client-side variable is not prefixed with `NEXT_PUBLIC_`
11
- * @throws An error if any client or shared variable is missing from `runtimeEnv`
9
+ * Create a validated, typesafe environment configuration for Next.js applications (Server-side RSC entry point).
10
+ */
11
+ declare function arkenv<const TSchema extends SchemaShape & {
12
+ runtimeEnv?: never;
13
+ } = {}, const TShared extends keyof TSchema = never, const TExtends extends readonly unknown[] = []>(schema: EnvSchema<TSchema>, options?: {
14
+ /**
15
+ * Custom environment variables to expose to the client bundle.
16
+ * By default, variables prefixed with `NEXT_PUBLIC_` and `NODE_ENV` are exposed automatically.
17
+ * Use this option to expose custom variables that do not have the `NEXT_PUBLIC_` prefix.
18
+ */
19
+ exposeToClient?: readonly TShared[];
20
+ /**
21
+ * @deprecated Use `exposeToClient` instead
22
+ */
23
+ expose?: readonly TShared[];
24
+ /**
25
+ * @deprecated Use `exposeToClient` instead
26
+ */
27
+ shared?: readonly TShared[];
28
+ extends?: [...TExtends];
29
+ runtimeEnv?: Record<string, unknown>;
30
+ }): Readonly<distill.Out<type.infer<TSchema, $>> & MergeExtends<TExtends>>;
31
+ /**
32
+ * @deprecated Use the unified flat layout signature instead: `arkenv(schema, options)`
12
33
  */
13
34
  declare function arkenv<const TServer extends SchemaShape = {}, const TClient extends SchemaShape = {}, const TShared extends SchemaShape = {}>(options: {
14
35
  server?: EnvSchema<TServer>;
15
36
  client?: EnvSchema<TClient> & { [K in keyof TClient]: K extends `NEXT_PUBLIC_${string}` ? unknown : never };
16
37
  shared?: EnvSchema<TShared>;
17
38
  runtimeEnv: Record<keyof TClient | keyof TShared, unknown> & Record<string, unknown>;
18
- }): Readonly<Infer$1<TServer & TClient & TShared>>;
39
+ }): Readonly<Infer<TServer & TClient & TShared>>;
19
40
  //#endregion
20
- export { type Infer, arkenv, arkenv as default, type };
41
+ export { ArkEnvScript, type ArkEnvScriptProps, arkenv, arkenv as default };
21
42
  //# sourceMappingURL=react-server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-server.d.ts","names":[],"sources":["../src/react-server.ts"],"mappings":";;;;;;AAYA;;;;;;iBAAgB,MAAA,uBACO,WAAA,6BACA,WAAA,6BACA,WAAA,MAAA,CACrB,OAAA;EACD,MAAA,GAAS,SAAA,CAAU,OAAA;EACnB,MAAA,GAAS,SAAA,CAAU,OAAA,kBACN,OAAA,GAAU,CAAA;EAEvB,MAAA,GAAS,SAAA,CAAU,OAAA;EACnB,UAAA,EAAY,MAAA,OAAa,OAAA,SAAgB,OAAA,aACxC,MAAA;AAAA,IACE,QAAA,CAAS,OAAA,CAAM,OAAA,GAAU,OAAA,GAAU,OAAA"}
1
+ {"version":3,"file":"react-server.d.ts","names":[],"sources":["../src/react-server.ts"],"mappings":";;;;;;;;;AAWA;iBAAgB,MAAA,uBACO,WAAA;EAAgB,UAAA;AAAA,oCACV,OAAA,yDAAA,CAG5B,MAAA,EAAQ,SAAA,CAAU,OAAA,GAClB,OAAA;EAJ4B;;;;;EAU3B,cAAA,YAA0B,OAAA;EASZ;;;EALd,MAAA,YAAkB,OAAA;EAQI;;;EAJtB,MAAA,YAAkB,OAAA;EAClB,OAAA,OAAc,QAAA;EACd,UAAA,GAAa,MAAA;AAAA,IAEZ,QAAA,CAAS,OAAA,CAAQ,GAAA,CAAI,IAAA,CAAG,KAAA,CAAM,OAAA,EAAS,CAAA,KAAM,YAAA,CAAa,QAAA;;;;iBAK7C,MAAA,uBACO,WAAA,6BACA,WAAA,6BACA,WAAA,MAAA,CACrB,OAAA;EACD,MAAA,GAAS,SAAA,CAAU,OAAA;EACnB,MAAA,GAAS,SAAA,CAAU,OAAA,kBACN,OAAA,GAAU,CAAA;EAEvB,MAAA,GAAS,SAAA,CAAU,OAAA;EACnB,UAAA,EAAY,MAAA,OAAa,OAAA,SAAgB,OAAA,aACxC,MAAA;AAAA,IACE,QAAA,CAAS,KAAA,CAAM,OAAA,GAAU,OAAA,GAAU,OAAA"}
@@ -1,2 +1,2 @@
1
- import{t as e}from"./arkenv-internal-cagrxXTM.js";import{type as t}from"arkenv";function n(t){return e(t,!0)}export{n as arkenv,n as default,t as type};
1
+ import{t as e}from"./arkenv-internal-Ws3srax6.js";import{t}from"./script-CZOPkAw3.js";import{arkenv as n,getSchemaKeys as r}from"@arkenv/core";function i(t,i){return t&&typeof t==`object`&&(`runtimeEnv`in t||`server`in t||`client`in t||`shared`in t)?e(t,!0,void 0,n,r):e(t,i,{isServer:!0},n,r)}export{t as ArkEnvScript,i as arkenv,i as default};
2
2
  //# sourceMappingURL=react-server.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-server.js","names":[],"sources":["../src/react-server.ts"],"sourcesContent":["import type { SchemaShape } from \"@repo/types\";\nimport type { EnvSchema, Infer } from \"arkenv\";\nimport { arkenvInternal } from \"./arkenv-internal\";\n\n/**\n * Create a validated, type-safe environment configuration for Next.js applications (Server-side RSC entry point).\n *\n * @param options The environment validation configuration options\n * @returns A validated, readonly environment variables object wrapped in a security proxy\n * @throws An error if any client-side variable is not prefixed with `NEXT_PUBLIC_`\n * @throws An error if any client or shared variable is missing from `runtimeEnv`\n */\nexport function arkenv<\n\tconst TServer extends SchemaShape = {},\n\tconst TClient extends SchemaShape = {},\n\tconst TShared extends SchemaShape = {},\n>(options: {\n\tserver?: EnvSchema<TServer>;\n\tclient?: EnvSchema<TClient> & {\n\t\t[K in keyof TClient]: K extends `NEXT_PUBLIC_${string}` ? unknown : never;\n\t};\n\tshared?: EnvSchema<TShared>;\n\truntimeEnv: Record<keyof TClient | keyof TShared, unknown> &\n\t\tRecord<string, unknown>;\n}): Readonly<Infer<TServer & TClient & TShared>> {\n\ttype ReturnType = Readonly<Infer<TServer & TClient & TShared>>;\n\treturn arkenvInternal(options, true) as ReturnType;\n}\n\nexport type { Infer } from \"arkenv\";\nexport { type } from \"arkenv\";\n\n/**\n * ArkEnv's Next.js integration export\n *\n * {@link https://arkenv.js.org | ArkEnv} is a typesafe environment variables validator from editor to runtime.\n */\nexport default arkenv;\n"],"mappings":"gFAYA,SAAgB,EAId,EAQ+C,CAEhD,OAAO,EAAe,EAAS,GAAK"}
1
+ {"version":3,"file":"react-server.js","names":["coreArkenv"],"sources":["../src/react-server.ts"],"sourcesContent":["import type { EnvSchema, Infer } from \"@arkenv/core\";\nimport { arkenv as coreArkenv, getSchemaKeys } from \"@arkenv/core\";\nimport type { $ } from \"@repo/scope\";\nimport type { SchemaShape } from \"@repo/types\";\nimport type { type as at, distill } from \"arktype\";\nimport { arkenvInternal } from \"./arkenv-internal\";\nimport type { MergeExtends } from \"./types\";\n\n/**\n * Create a validated, typesafe environment configuration for Next.js applications (Server-side RSC entry point).\n */\nexport function arkenv<\n\tconst TSchema extends SchemaShape & { runtimeEnv?: never } = {},\n\tconst TShared extends keyof TSchema = never,\n\tconst TExtends extends readonly unknown[] = [],\n>(\n\tschema: EnvSchema<TSchema>,\n\toptions?: {\n\t\t/**\n\t\t * Custom environment variables to expose to the client bundle.\n\t\t * By default, variables prefixed with `NEXT_PUBLIC_` and `NODE_ENV` are exposed automatically.\n\t\t * Use this option to expose custom variables that do not have the `NEXT_PUBLIC_` prefix.\n\t\t */\n\t\texposeToClient?: readonly TShared[];\n\t\t/**\n\t\t * @deprecated Use `exposeToClient` instead\n\t\t */\n\t\texpose?: readonly TShared[];\n\t\t/**\n\t\t * @deprecated Use `exposeToClient` instead\n\t\t */\n\t\tshared?: readonly TShared[];\n\t\textends?: [...TExtends];\n\t\truntimeEnv?: Record<string, unknown>;\n\t},\n): Readonly<distill.Out<at.infer<TSchema, $>> & MergeExtends<TExtends>>;\n\n/**\n * @deprecated Use the unified flat layout signature instead: `arkenv(schema, options)`\n */\nexport function arkenv<\n\tconst TServer extends SchemaShape = {},\n\tconst TClient extends SchemaShape = {},\n\tconst TShared extends SchemaShape = {},\n>(options: {\n\tserver?: EnvSchema<TServer>;\n\tclient?: EnvSchema<TClient> & {\n\t\t[K in keyof TClient]: K extends `NEXT_PUBLIC_${string}` ? unknown : never;\n\t};\n\tshared?: EnvSchema<TShared>;\n\truntimeEnv: Record<keyof TClient | keyof TShared, unknown> &\n\t\tRecord<string, unknown>;\n}): Readonly<Infer<TServer & TClient & TShared>>;\n\nexport function arkenv(schemaOrOptions: any, optionsOrIsServer?: any): any {\n\tconst isLegacy =\n\t\tschemaOrOptions &&\n\t\ttypeof schemaOrOptions === \"object\" &&\n\t\t(\"runtimeEnv\" in schemaOrOptions ||\n\t\t\t\"server\" in schemaOrOptions ||\n\t\t\t\"client\" in schemaOrOptions ||\n\t\t\t\"shared\" in schemaOrOptions);\n\n\tif (isLegacy) {\n\t\treturn arkenvInternal(\n\t\t\tschemaOrOptions,\n\t\t\ttrue,\n\t\t\tundefined,\n\t\t\tcoreArkenv,\n\t\t\tgetSchemaKeys,\n\t\t);\n\t}\n\n\treturn arkenvInternal(\n\t\tschemaOrOptions,\n\t\toptionsOrIsServer,\n\t\t{ isServer: true },\n\t\tcoreArkenv,\n\t\tgetSchemaKeys,\n\t);\n}\n\nexport type { ArkEnvScriptProps } from \"./script\";\nexport { ArkEnvScript } from \"./script\";\n\nexport default arkenv;\n"],"mappings":"+IAsDA,SAAgB,EAAO,EAAsB,EAA8B,CAmB1E,OAjBC,GACA,OAAO,GAAoB,WAC1B,eAAgB,GAChB,WAAY,GACZ,WAAY,GACZ,WAAY,GAGN,EACN,EACA,GACA,IAAA,GACAA,EACA,EACA,CAGK,EACN,EACA,EACA,CAAE,SAAU,GAAM,CAClBA,EACA,EACA"}
@@ -0,0 +1,2 @@
1
+ require(`./config-CU-9fwxw.cjs`);let e=require(`react/jsx-runtime`);function t({env:t}={}){let n={};if(typeof process<`u`&&process.env)for(let e of Object.keys(process.env))e.startsWith(`NEXT_PUBLIC_`)&&(n[e]=process.env[e]);if(t)for(let e of Object.keys(t))e.startsWith(`NEXT_PUBLIC_`)&&(n[e]=t[e]);return(0,e.jsx)(`script`,{id:`arkenv-script`,dangerouslySetInnerHTML:{__html:`globalThis.__arkenv_env__ = ${JSON.stringify(n).replace(/</g,`\\u003c`)};`}})}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
2
+ //# sourceMappingURL=script-BBfmzIh4.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"script-BBfmzIh4.cjs","names":[],"sources":["../src/script.tsx"],"sourcesContent":["import type React from \"react\";\n\nexport type ArkEnvScriptProps = {\n\t/**\n\t * Optional custom environment variable map. If provided, any keys starting\n\t * with `NEXT_PUBLIC_` will be merged with public keys from `process.env`.\n\t */\n\tenv?: Record<string, string | undefined>;\n};\n\n/**\n * A React Component to serialize and inject NEXT_PUBLIC_* environment variables into the browser\n * during Server-Side Rendering (SSR). Placed in your root layout (layout.tsx), it sets\n * globalThis.__arkenv_env__ to ensure client-side components have access to runtime environment values.\n */\nexport function ArkEnvScript({\n\tenv,\n}: ArkEnvScriptProps = {}): React.ReactElement {\n\tconst publicEnv: Record<string, string | undefined> = {};\n\n\tif (typeof process !== \"undefined\" && process.env) {\n\t\tfor (const key of Object.keys(process.env)) {\n\t\t\tif (key.startsWith(\"NEXT_PUBLIC_\")) {\n\t\t\t\tpublicEnv[key] = process.env[key];\n\t\t\t}\n\t\t}\n\t}\n\n\tif (env) {\n\t\tfor (const key of Object.keys(env)) {\n\t\t\tif (key.startsWith(\"NEXT_PUBLIC_\")) {\n\t\t\t\tpublicEnv[key] = env[key];\n\t\t\t}\n\t\t}\n\t}\n\n\tconst scriptContent = `globalThis.__arkenv_env__ = ${JSON.stringify(publicEnv).replace(/</g, \"\\\\u003c\")};`;\n\n\treturn (\n\t\t<script\n\t\t\tid=\"arkenv-script\"\n\t\t\tdangerouslySetInnerHTML={{ __html: scriptContent }}\n\t\t/>\n\t);\n}\n"],"mappings":"oEAeA,SAAgB,EAAa,CAC5B,OACsB,EAAE,CAAsB,CAC9C,IAAM,EAAgD,EAAE,CAExD,GAAI,OAAO,QAAY,KAAe,QAAQ,QACxC,IAAM,KAAO,OAAO,KAAK,QAAQ,IAAI,CACrC,EAAI,WAAW,eAAe,GACjC,EAAU,GAAO,QAAQ,IAAI,IAKhC,GAAI,MACE,IAAM,KAAO,OAAO,KAAK,EAAI,CAC7B,EAAI,WAAW,eAAe,GACjC,EAAU,GAAO,EAAI,IAOxB,OACC,EAAA,EAAA,KAAC,SAAD,CACC,GAAG,gBACH,wBAAyB,CAAE,OAAQ,+BALgB,KAAK,UAAU,EAAU,CAAC,QAAQ,KAAM,UAAU,CAAC,GAKpD,CACjD,CAAA"}
@@ -0,0 +1,21 @@
1
+ import React from "react";
2
+
3
+ //#region src/script.d.ts
4
+ type ArkEnvScriptProps = {
5
+ /**
6
+ * Optional custom environment variable map. If provided, any keys starting
7
+ * with `NEXT_PUBLIC_` will be merged with public keys from `process.env`.
8
+ */
9
+ env?: Record<string, string | undefined>;
10
+ };
11
+ /**
12
+ * A React Component to serialize and inject NEXT_PUBLIC_* environment variables into the browser
13
+ * during Server-Side Rendering (SSR). Placed in your root layout (layout.tsx), it sets
14
+ * globalThis.__arkenv_env__ to ensure client-side components have access to runtime environment values.
15
+ */
16
+ declare function ArkEnvScript({
17
+ env
18
+ }?: ArkEnvScriptProps): React.ReactElement;
19
+ //#endregion
20
+ export { ArkEnvScriptProps as n, ArkEnvScript as t };
21
+ //# sourceMappingURL=script-BHFJ0MU_.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"script-BHFJ0MU_.d.cts","names":[],"sources":["../src/script.tsx"],"mappings":";;;KAEY,iBAAA;;AAAZ;;;EAKC,GAAA,GAAM,MAAA;AAAA;AAQP;;;;;AAAA,iBAAgB,YAAA,CAAA;EACf;AAAA,IACE,iBAAA,GAAyB,KAAA,CAAM,YAAA"}
@@ -0,0 +1,2 @@
1
+ import{jsx as e}from"react/jsx-runtime";function t({env:t}={}){let n={};if(typeof process<`u`&&process.env)for(let e of Object.keys(process.env))e.startsWith(`NEXT_PUBLIC_`)&&(n[e]=process.env[e]);if(t)for(let e of Object.keys(t))e.startsWith(`NEXT_PUBLIC_`)&&(n[e]=t[e]);return e(`script`,{id:`arkenv-script`,dangerouslySetInnerHTML:{__html:`globalThis.__arkenv_env__ = ${JSON.stringify(n).replace(/</g,`\\u003c`)};`}})}export{t};
2
+ //# sourceMappingURL=script-CZOPkAw3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"script-CZOPkAw3.js","names":[],"sources":["../src/script.tsx"],"sourcesContent":["import type React from \"react\";\n\nexport type ArkEnvScriptProps = {\n\t/**\n\t * Optional custom environment variable map. If provided, any keys starting\n\t * with `NEXT_PUBLIC_` will be merged with public keys from `process.env`.\n\t */\n\tenv?: Record<string, string | undefined>;\n};\n\n/**\n * A React Component to serialize and inject NEXT_PUBLIC_* environment variables into the browser\n * during Server-Side Rendering (SSR). Placed in your root layout (layout.tsx), it sets\n * globalThis.__arkenv_env__ to ensure client-side components have access to runtime environment values.\n */\nexport function ArkEnvScript({\n\tenv,\n}: ArkEnvScriptProps = {}): React.ReactElement {\n\tconst publicEnv: Record<string, string | undefined> = {};\n\n\tif (typeof process !== \"undefined\" && process.env) {\n\t\tfor (const key of Object.keys(process.env)) {\n\t\t\tif (key.startsWith(\"NEXT_PUBLIC_\")) {\n\t\t\t\tpublicEnv[key] = process.env[key];\n\t\t\t}\n\t\t}\n\t}\n\n\tif (env) {\n\t\tfor (const key of Object.keys(env)) {\n\t\t\tif (key.startsWith(\"NEXT_PUBLIC_\")) {\n\t\t\t\tpublicEnv[key] = env[key];\n\t\t\t}\n\t\t}\n\t}\n\n\tconst scriptContent = `globalThis.__arkenv_env__ = ${JSON.stringify(publicEnv).replace(/</g, \"\\\\u003c\")};`;\n\n\treturn (\n\t\t<script\n\t\t\tid=\"arkenv-script\"\n\t\t\tdangerouslySetInnerHTML={{ __html: scriptContent }}\n\t\t/>\n\t);\n}\n"],"mappings":"wCAeA,SAAgB,EAAa,CAC5B,OACsB,EAAE,CAAsB,CAC9C,IAAM,EAAgD,EAAE,CAExD,GAAI,OAAO,QAAY,KAAe,QAAQ,QACxC,IAAM,KAAO,OAAO,KAAK,QAAQ,IAAI,CACrC,EAAI,WAAW,eAAe,GACjC,EAAU,GAAO,QAAQ,IAAI,IAKhC,GAAI,MACE,IAAM,KAAO,OAAO,KAAK,EAAI,CAC7B,EAAI,WAAW,eAAe,GACjC,EAAU,GAAO,EAAI,IAOxB,OACC,EAAC,SAAD,CACC,GAAG,gBACH,wBAAyB,CAAE,OAAQ,+BALgB,KAAK,UAAU,EAAU,CAAC,QAAQ,KAAM,UAAU,CAAC,GAKpD,CACjD,CAAA"}
@@ -0,0 +1,21 @@
1
+ import React from "react";
2
+
3
+ //#region src/script.d.ts
4
+ type ArkEnvScriptProps = {
5
+ /**
6
+ * Optional custom environment variable map. If provided, any keys starting
7
+ * with `NEXT_PUBLIC_` will be merged with public keys from `process.env`.
8
+ */
9
+ env?: Record<string, string | undefined>;
10
+ };
11
+ /**
12
+ * A React Component to serialize and inject NEXT_PUBLIC_* environment variables into the browser
13
+ * during Server-Side Rendering (SSR). Placed in your root layout (layout.tsx), it sets
14
+ * globalThis.__arkenv_env__ to ensure client-side components have access to runtime environment values.
15
+ */
16
+ declare function ArkEnvScript({
17
+ env
18
+ }?: ArkEnvScriptProps): React.ReactElement;
19
+ //#endregion
20
+ export { ArkEnvScriptProps as n, ArkEnvScript as t };
21
+ //# sourceMappingURL=script-Cy9x6rp9.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"script-Cy9x6rp9.d.ts","names":[],"sources":["../src/script.tsx"],"mappings":";;;KAEY,iBAAA;;AAAZ;;;EAKC,GAAA,GAAM,MAAA;AAAA;AAQP;;;;;AAAA,iBAAgB,YAAA,CAAA;EACf;AAAA,IACE,iBAAA,GAAyB,KAAA,CAAM,YAAA"}
package/dist/server.cjs CHANGED
@@ -1,2 +1,2 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`./arkenv-internal-DA4LpI3t.cjs`);require(`./config.cjs`);let t=require(`arkenv`);require(`server-only`);function n(t,n){if(t&&typeof t==`object`&&(`runtimeEnv`in t||`server`in t||`shared`in t)){if(`client`in t)throw Error(`server entry point only accepts 'server' and 'shared' schemas.`);return e.t(t,!0)}return e.t(t,n,{isServer:!0})}exports.arkenv=n,exports.default=n,Object.defineProperty(exports,`type`,{enumerable:!0,get:function(){return t.type}});
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`./config-CU-9fwxw.cjs`);const e=require(`./arkenv-internal-QxkUlA5J.cjs`),t=require(`./strict-client-env-MouPnkRr.cjs`),n=require(`./auto-extend-CYzZnEvT.cjs`);let r=require(`@arkenv/core`);require(`server-only`);let i=require(`#arkenv/client-env`);function a(a,o){if(a&&typeof a==`object`&&(`runtimeEnv`in a||`server`in a||`shared`in a)){if(`client`in a)throw Error(`server entry point only accepts 'server' and 'shared' schemas.`);return e.t(a,!0,void 0,r.arkenv,r.getSchemaKeys)}return e.t(a,n.t(o,()=>t.i(i.env)),{isServer:!0,strictLayout:`server`},r.arkenv,r.getSchemaKeys)}exports.arkenv=a,exports.default=a;
2
2
  //# sourceMappingURL=server.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"server.cjs","names":["arkenv","arkenvInternal"],"sources":["../src/server.ts"],"sourcesContent":["import \"server-only\";\nimport type { $ } from \"@repo/scope\";\nimport type { SchemaShape } from \"@repo/types\";\nimport type { EnvSchema } from \"arkenv\";\nimport type { type as at, distill } from \"arktype\";\nimport { arkenvInternal } from \"./arkenv-internal\";\nimport type { MergeExtends } from \"./types\";\n\n/**\n * Create a validated, type-safe environment configuration for Next.js applications (Server entry point).\n */\nexport function arkenv<\n\tconst TSchema extends SchemaShape = {},\n\tconst TExtends extends readonly unknown[] = [],\n>(\n\tschema: EnvSchema<TSchema>,\n\toptions?: {\n\t\textends?: [...TExtends];\n\t\truntimeEnv?: Record<keyof TSchema | string, unknown>;\n\t},\n): Readonly<distill.Out<at.infer<TSchema, $>> & MergeExtends<TExtends>>;\n\nexport function arkenv<\n\tconst TServer extends SchemaShape = {},\n\tconst TShared extends SchemaShape = {},\n\tconst TExtends extends readonly unknown[] = [],\n>(options: {\n\tserver?: EnvSchema<TServer>;\n\tshared?: EnvSchema<TShared>;\n\textends?: [...TExtends];\n\truntimeEnv?: Record<keyof TShared, unknown> & Record<string, unknown>;\n}): Readonly<\n\tdistill.Out<at.infer<TServer & TShared, $>> & MergeExtends<TExtends>\n>;\n\nexport function arkenv(schemaOrOptions: any, optionsOrIsServer?: any): any {\n\tconst isLegacy =\n\t\tschemaOrOptions &&\n\t\ttypeof schemaOrOptions === \"object\" &&\n\t\t(\"runtimeEnv\" in schemaOrOptions ||\n\t\t\t\"server\" in schemaOrOptions ||\n\t\t\t\"shared\" in schemaOrOptions);\n\n\tif (isLegacy) {\n\t\tif (\"client\" in schemaOrOptions) {\n\t\t\tthrow new Error(\n\t\t\t\t\"server entry point only accepts 'server' and 'shared' schemas.\",\n\t\t\t);\n\t\t}\n\t\treturn arkenvInternal(schemaOrOptions, true);\n\t}\n\n\treturn arkenvInternal(schemaOrOptions, optionsOrIsServer, {\n\t\tisServer: true,\n\t});\n}\n\nexport { type } from \"arkenv\";\n\nexport default arkenv;\n"],"mappings":"wNAmCA,SAAgBA,EAAO,EAAsB,EAA8B,CAQ1E,GANC,GACA,OAAO,GAAoB,WAC1B,eAAgB,GAChB,WAAY,GACZ,WAAY,GAEA,CACb,GAAI,WAAY,EACf,MAAU,MACT,iEACA,CAEF,OAAOC,EAAAA,EAAe,EAAiB,GAAK,CAG7C,OAAOA,EAAAA,EAAe,EAAiB,EAAmB,CACzD,SAAU,GACV,CAAC"}
1
+ {"version":3,"file":"server.cjs","names":["arkenvInternal","coreArkenv","getSchemaKeys","withAutoExtend","resolveStrictClientEnv","importedClientEnv"],"sources":["../src/server.ts"],"sourcesContent":["import \"server-only\";\nimport type { EnvSchema } from \"@arkenv/core\";\nimport { arkenv as coreArkenv, getSchemaKeys } from \"@arkenv/core\";\nimport type { $ } from \"@repo/scope\";\nimport type { Dict, SchemaShape } from \"@repo/types\";\nimport type { type as at, distill } from \"arktype\";\n// Static import so webpack/Turbopack can resolve the alias at bundle time.\n// Outside strict layout the package `imports` map points this at empty-client-env.\nimport { env as importedClientEnv } from \"#arkenv/client-env\";\nimport { arkenvInternal } from \"./arkenv-internal\";\nimport { withAutoExtend } from \"./auto-extend\";\nimport { resolveStrictClientEnv } from \"./strict-client-env\";\nimport type { MergeExtends } from \"./types\";\n\n/**\n * Client env type auto-merged in Next.js strict layout when `extends` is omitted.\n */\ntype AutoClientEnv = typeof import(\"#arkenv/client-env\") extends {\n\tenv: infer E;\n}\n\t? E\n\t: {};\n\n/**\n * Create a validated, typesafe environment configuration for Next.js applications (Server entry point).\n *\n * With `withArkEnv` in strict layout, omitting `extends` includes the client\n * env by default. Any explicit `extends` is used as-is and opts out of that\n * default; pass `extends: []` to include no extended env.\n */\nexport function arkenv<\n\tconst TSchema extends SchemaShape = {},\n\tconst TExtends extends readonly unknown[] = [],\n>(\n\tschema: EnvSchema<TSchema>,\n\toptions: {\n\t\t/**\n\t\t * Explicit envs to extend. Providing this option opts out of the default\n\t\t * strict-layout client merge; use `[]` to include no extended env.\n\t\t */\n\t\textends: [...TExtends];\n\t\truntimeEnv?: Dict<string>;\n\t},\n): Readonly<distill.Out<at.infer<TSchema, $>> & MergeExtends<TExtends>>;\n\nexport function arkenv<const TSchema extends SchemaShape = {}>(\n\tschema: EnvSchema<TSchema>,\n\toptions?: {\n\t\textends?: undefined;\n\t\truntimeEnv?: Dict<string>;\n\t},\n): Readonly<distill.Out<at.infer<TSchema, $>> & AutoClientEnv>;\n\n/**\n * @deprecated Use the unified flat layout signature instead: `arkenv(schema, options)`\n */\nexport function arkenv<\n\tconst TServer extends SchemaShape = {},\n\tconst TShared extends SchemaShape = {},\n\tconst TExtends extends readonly unknown[] = [],\n>(options: {\n\tserver?: EnvSchema<TServer>;\n\tshared?: EnvSchema<TShared>;\n\textends?: [...TExtends];\n\truntimeEnv?: Record<keyof TShared, string | undefined> & Dict<string>;\n}): Readonly<\n\tdistill.Out<at.infer<TServer & TShared, $>> & MergeExtends<TExtends>\n>;\n\nexport function arkenv(schemaOrOptions: any, optionsOrIsServer?: any): any {\n\tconst isLegacy =\n\t\tschemaOrOptions &&\n\t\ttypeof schemaOrOptions === \"object\" &&\n\t\t(\"runtimeEnv\" in schemaOrOptions ||\n\t\t\t\"server\" in schemaOrOptions ||\n\t\t\t\"shared\" in schemaOrOptions);\n\n\tif (isLegacy) {\n\t\tif (\"client\" in schemaOrOptions) {\n\t\t\tthrow new Error(\n\t\t\t\t\"server entry point only accepts 'server' and 'shared' schemas.\",\n\t\t\t);\n\t\t}\n\t\treturn arkenvInternal(\n\t\t\tschemaOrOptions,\n\t\t\ttrue,\n\t\t\tundefined,\n\t\t\tcoreArkenv,\n\t\t\tgetSchemaKeys,\n\t\t);\n\t}\n\n\treturn arkenvInternal(\n\t\tschemaOrOptions,\n\t\twithAutoExtend(optionsOrIsServer, () =>\n\t\t\tresolveStrictClientEnv(importedClientEnv),\n\t\t),\n\t\t{ isServer: true, strictLayout: \"server\" },\n\t\tcoreArkenv,\n\t\tgetSchemaKeys,\n\t);\n}\n\nexport default arkenv;\n"],"mappings":"iWAqEA,SAAgB,EAAO,EAAsB,EAA8B,CAQ1E,GANC,GACA,OAAO,GAAoB,WAC1B,eAAgB,GAChB,WAAY,GACZ,WAAY,GAEA,CACb,GAAI,WAAY,EACf,MAAU,MACT,iEACA,CAEF,OAAOA,EAAAA,EACN,EACA,GACA,IAAA,GACAC,EAAAA,OACAC,EAAAA,cACA,CAGF,OAAOF,EAAAA,EACN,EACAG,EAAAA,EAAe,MACdC,EAAAA,EAAuBC,EAAAA,IAAkB,CACzC,CACD,CAAE,SAAU,GAAM,aAAc,SAAU,CAC1CJ,EAAAA,OACAC,EAAAA,cACA"}
package/dist/server.d.cts CHANGED
@@ -1,21 +1,43 @@
1
- import { r as $, t as SchemaShape } from "./index-C6bpQ5GU.cjs";
2
- import { t as MergeExtends } from "./types-DBqiLw5v.cjs";
3
- import { distill, type as type$1 } from "arktype";
4
- import { EnvSchema, type } from "arkenv";
1
+ import { a as $, i as Dict, t as SchemaShape } from "./index-BS1wAitS.cjs";
2
+ import { t as MergeExtends } from "./types-BlRHnQwj.cjs";
3
+ import { EnvSchema } from "@arkenv/core";
4
+ import { distill, type } from "arktype";
5
+ import * as _$_arkenv_client_env0 from "#arkenv/client-env";
5
6
  //#region src/server.d.ts
6
7
  /**
7
- * Create a validated, type-safe environment configuration for Next.js applications (Server entry point).
8
+ * Client env type auto-merged in Next.js strict layout when `extends` is omitted.
9
+ */
10
+ type AutoClientEnv = typeof _$_arkenv_client_env0 extends {
11
+ env: infer E;
12
+ } ? E : {};
13
+ /**
14
+ * Create a validated, typesafe environment configuration for Next.js applications (Server entry point).
15
+ *
16
+ * With `withArkEnv` in strict layout, omitting `extends` includes the client
17
+ * env by default. Any explicit `extends` is used as-is and opts out of that
18
+ * default; pass `extends: []` to include no extended env.
19
+ */
20
+ declare function arkenv<const TSchema extends SchemaShape = {}, const TExtends extends readonly unknown[] = []>(schema: EnvSchema<TSchema>, options: {
21
+ /**
22
+ * Explicit envs to extend. Providing this option opts out of the default
23
+ * strict-layout client merge; use `[]` to include no extended env.
24
+ */
25
+ extends: [...TExtends];
26
+ runtimeEnv?: Dict<string>;
27
+ }): Readonly<distill.Out<type.infer<TSchema, $>> & MergeExtends<TExtends>>;
28
+ declare function arkenv<const TSchema extends SchemaShape = {}>(schema: EnvSchema<TSchema>, options?: {
29
+ extends?: undefined;
30
+ runtimeEnv?: Dict<string>;
31
+ }): Readonly<distill.Out<type.infer<TSchema, $>> & AutoClientEnv>;
32
+ /**
33
+ * @deprecated Use the unified flat layout signature instead: `arkenv(schema, options)`
8
34
  */
9
- declare function arkenv<const TSchema extends SchemaShape = {}, const TExtends extends readonly unknown[] = []>(schema: EnvSchema<TSchema>, options?: {
10
- extends?: [...TExtends];
11
- runtimeEnv?: Record<keyof TSchema | string, unknown>;
12
- }): Readonly<distill.Out<type$1.infer<TSchema, $>> & MergeExtends<TExtends>>;
13
35
  declare function arkenv<const TServer extends SchemaShape = {}, const TShared extends SchemaShape = {}, const TExtends extends readonly unknown[] = []>(options: {
14
36
  server?: EnvSchema<TServer>;
15
37
  shared?: EnvSchema<TShared>;
16
38
  extends?: [...TExtends];
17
- runtimeEnv?: Record<keyof TShared, unknown> & Record<string, unknown>;
18
- }): Readonly<distill.Out<type$1.infer<TServer & TShared, $>> & MergeExtends<TExtends>>;
39
+ runtimeEnv?: Record<keyof TShared, string | undefined> & Dict<string>;
40
+ }): Readonly<distill.Out<type.infer<TServer & TShared, $>> & MergeExtends<TExtends>>;
19
41
  //#endregion
20
- export { arkenv, arkenv as default, type };
42
+ export { arkenv, arkenv as default };
21
43
  //# sourceMappingURL=server.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.cts","names":[],"sources":["../src/server.ts"],"mappings":";;;;;;AAWA;;iBAAgB,MAAA,uBACO,WAAA,sDAAA,CAGtB,MAAA,EAAQ,SAAA,CAAU,OAAA,GAClB,OAAA;EACC,OAAA,OAAc,QAAA;EACd,UAAA,GAAa,MAAA,OAAa,OAAA;AAAA,IAEzB,QAAA,CAAS,OAAA,CAAQ,GAAA,CAAI,MAAA,CAAG,KAAA,CAAM,OAAA,EAAS,CAAA,KAAM,YAAA,CAAa,QAAA;AAAA,iBAE7C,MAAA,uBACO,WAAA,6BACA,WAAA,sDAAA,CAErB,OAAA;EACD,MAAA,GAAS,SAAA,CAAU,OAAA;EACnB,MAAA,GAAS,SAAA,CAAU,OAAA;EACnB,OAAA,OAAc,QAAA;EACd,UAAA,GAAa,MAAA,OAAa,OAAA,aAAoB,MAAA;AAAA,IAC3C,QAAA,CACH,OAAA,CAAQ,GAAA,CAAI,MAAA,CAAG,KAAA,CAAM,OAAA,GAAU,OAAA,EAAS,CAAA,KAAM,YAAA,CAAa,QAAA"}
1
+ {"version":3,"file":"server.d.cts","names":[],"sources":["../src/server.ts"],"mappings":";;;;;;;;AAY4C;KAKvC,aAAA,UAAa,qBAAA;EACjB,GAAA;AAAA,IAEE,CAAA;;;;;;;AAUH;iBAAgB,MAAA,uBACO,WAAA,sDAAA,CAGtB,MAAA,EAAQ,SAAA,CAAU,OAAA,GAClB,OAAA;EALqB;;;;EAUpB,OAAA,MAAa,QAAA;EACb,UAAA,GAAa,IAAA;AAAA,IAEZ,QAAA,CAAS,OAAA,CAAQ,GAAA,CAAI,IAAA,CAAG,KAAA,CAAM,OAAA,EAAS,CAAA,KAAM,YAAA,CAAa,QAAA;AAAA,iBAE7C,MAAA,uBAA6B,WAAA,MAAA,CAC5C,MAAA,EAAQ,SAAA,CAAU,OAAA,GAClB,OAAA;EACC,OAAA;EACA,UAAA,GAAa,IAAA;AAAA,IAEZ,QAAA,CAAS,OAAA,CAAQ,GAAA,CAAI,IAAA,CAAG,KAAA,CAAM,OAAA,EAAS,CAAA,KAAM,aAAA;;;;iBAKhC,MAAA,uBACO,WAAA,6BACA,WAAA,sDAAA,CAErB,OAAA;EACD,MAAA,GAAS,SAAA,CAAU,OAAA;EACnB,MAAA,GAAS,SAAA,CAAU,OAAA;EACnB,OAAA,OAAc,QAAA;EACd,UAAA,GAAa,MAAA,OAAa,OAAA,wBAA+B,IAAA;AAAA,IACtD,QAAA,CACH,OAAA,CAAQ,GAAA,CAAI,IAAA,CAAG,KAAA,CAAM,OAAA,GAAU,OAAA,EAAS,CAAA,KAAM,YAAA,CAAa,QAAA"}
package/dist/server.d.ts CHANGED
@@ -1,22 +1,44 @@
1
- import { r as $, t as SchemaShape } from "./index-Bn3pRiJy.js";
2
- import { t as MergeExtends } from "./types-BN4fEChy.js";
3
- import { EnvSchema, type } from "arkenv";
4
- import { distill, type as type$1 } from "arktype";
1
+ import { a as $, i as Dict, t as SchemaShape } from "./index-Cq_qJ68V.js";
2
+ import { t as MergeExtends } from "./types-BfMBbrMm.js";
3
+ import { EnvSchema } from "@arkenv/core";
4
+ import * as _$_arkenv_client_env0 from "#arkenv/client-env";
5
+ import { distill, type } from "arktype";
5
6
 
6
7
  //#region src/server.d.ts
7
8
  /**
8
- * Create a validated, type-safe environment configuration for Next.js applications (Server entry point).
9
+ * Client env type auto-merged in Next.js strict layout when `extends` is omitted.
10
+ */
11
+ type AutoClientEnv = typeof _$_arkenv_client_env0 extends {
12
+ env: infer E;
13
+ } ? E : {};
14
+ /**
15
+ * Create a validated, typesafe environment configuration for Next.js applications (Server entry point).
16
+ *
17
+ * With `withArkEnv` in strict layout, omitting `extends` includes the client
18
+ * env by default. Any explicit `extends` is used as-is and opts out of that
19
+ * default; pass `extends: []` to include no extended env.
20
+ */
21
+ declare function arkenv<const TSchema extends SchemaShape = {}, const TExtends extends readonly unknown[] = []>(schema: EnvSchema<TSchema>, options: {
22
+ /**
23
+ * Explicit envs to extend. Providing this option opts out of the default
24
+ * strict-layout client merge; use `[]` to include no extended env.
25
+ */
26
+ extends: [...TExtends];
27
+ runtimeEnv?: Dict<string>;
28
+ }): Readonly<distill.Out<type.infer<TSchema, $>> & MergeExtends<TExtends>>;
29
+ declare function arkenv<const TSchema extends SchemaShape = {}>(schema: EnvSchema<TSchema>, options?: {
30
+ extends?: undefined;
31
+ runtimeEnv?: Dict<string>;
32
+ }): Readonly<distill.Out<type.infer<TSchema, $>> & AutoClientEnv>;
33
+ /**
34
+ * @deprecated Use the unified flat layout signature instead: `arkenv(schema, options)`
9
35
  */
10
- declare function arkenv<const TSchema extends SchemaShape = {}, const TExtends extends readonly unknown[] = []>(schema: EnvSchema<TSchema>, options?: {
11
- extends?: [...TExtends];
12
- runtimeEnv?: Record<keyof TSchema | string, unknown>;
13
- }): Readonly<distill.Out<type$1.infer<TSchema, $>> & MergeExtends<TExtends>>;
14
36
  declare function arkenv<const TServer extends SchemaShape = {}, const TShared extends SchemaShape = {}, const TExtends extends readonly unknown[] = []>(options: {
15
37
  server?: EnvSchema<TServer>;
16
38
  shared?: EnvSchema<TShared>;
17
39
  extends?: [...TExtends];
18
- runtimeEnv?: Record<keyof TShared, unknown> & Record<string, unknown>;
19
- }): Readonly<distill.Out<type$1.infer<TServer & TShared, $>> & MergeExtends<TExtends>>;
40
+ runtimeEnv?: Record<keyof TShared, string | undefined> & Dict<string>;
41
+ }): Readonly<distill.Out<type.infer<TServer & TShared, $>> & MergeExtends<TExtends>>;
20
42
  //#endregion
21
- export { arkenv, arkenv as default, type };
43
+ export { arkenv, arkenv as default };
22
44
  //# sourceMappingURL=server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","names":[],"sources":["../src/server.ts"],"mappings":";;;;;;;AAWA;;iBAAgB,MAAA,uBACO,WAAA,sDAAA,CAGtB,MAAA,EAAQ,SAAA,CAAU,OAAA,GAClB,OAAA;EACC,OAAA,OAAc,QAAA;EACd,UAAA,GAAa,MAAA,OAAa,OAAA;AAAA,IAEzB,QAAA,CAAS,OAAA,CAAQ,GAAA,CAAI,MAAA,CAAG,KAAA,CAAM,OAAA,EAAS,CAAA,KAAM,YAAA,CAAa,QAAA;AAAA,iBAE7C,MAAA,uBACO,WAAA,6BACA,WAAA,sDAAA,CAErB,OAAA;EACD,MAAA,GAAS,SAAA,CAAU,OAAA;EACnB,MAAA,GAAS,SAAA,CAAU,OAAA;EACnB,OAAA,OAAc,QAAA;EACd,UAAA,GAAa,MAAA,OAAa,OAAA,aAAoB,MAAA;AAAA,IAC3C,QAAA,CACH,OAAA,CAAQ,GAAA,CAAI,MAAA,CAAG,KAAA,CAAM,OAAA,GAAU,OAAA,EAAS,CAAA,KAAM,YAAA,CAAa,QAAA"}
1
+ {"version":3,"file":"server.d.ts","names":[],"sources":["../src/server.ts"],"mappings":";;;;;;;;;AAY4C;KAKvC,aAAA,UAAa,qBAAA;EACjB,GAAA;AAAA,IAEE,CAAA;;;;;;;AAUH;iBAAgB,MAAA,uBACO,WAAA,sDAAA,CAGtB,MAAA,EAAQ,SAAA,CAAU,OAAA,GAClB,OAAA;EALqB;;;;EAUpB,OAAA,MAAa,QAAA;EACb,UAAA,GAAa,IAAA;AAAA,IAEZ,QAAA,CAAS,OAAA,CAAQ,GAAA,CAAI,IAAA,CAAG,KAAA,CAAM,OAAA,EAAS,CAAA,KAAM,YAAA,CAAa,QAAA;AAAA,iBAE7C,MAAA,uBAA6B,WAAA,MAAA,CAC5C,MAAA,EAAQ,SAAA,CAAU,OAAA,GAClB,OAAA;EACC,OAAA;EACA,UAAA,GAAa,IAAA;AAAA,IAEZ,QAAA,CAAS,OAAA,CAAQ,GAAA,CAAI,IAAA,CAAG,KAAA,CAAM,OAAA,EAAS,CAAA,KAAM,aAAA;;;;iBAKhC,MAAA,uBACO,WAAA,6BACA,WAAA,sDAAA,CAErB,OAAA;EACD,MAAA,GAAS,SAAA,CAAU,OAAA;EACnB,MAAA,GAAS,SAAA,CAAU,OAAA;EACnB,OAAA,OAAc,QAAA;EACd,UAAA,GAAa,MAAA,OAAa,OAAA,wBAA+B,IAAA;AAAA,IACtD,QAAA,CACH,OAAA,CAAQ,GAAA,CAAI,IAAA,CAAG,KAAA,CAAM,OAAA,GAAU,OAAA,EAAS,CAAA,KAAM,YAAA,CAAa,QAAA"}
package/dist/server.js CHANGED
@@ -1,2 +1,2 @@
1
- import{t as e}from"./arkenv-internal-cagrxXTM.js";import{type as t}from"arkenv";import"server-only";function n(t,n){if(t&&typeof t==`object`&&(`runtimeEnv`in t||`server`in t||`shared`in t)){if(`client`in t)throw Error(`server entry point only accepts 'server' and 'shared' schemas.`);return e(t,!0)}return e(t,n,{isServer:!0})}export{n as arkenv,n as default,t as type};
1
+ import{t as e}from"./arkenv-internal-Ws3srax6.js";import{i as t}from"./strict-client-env-CHDTZoLe.js";import{t as n}from"./auto-extend-DjiqIbgM.js";import{arkenv as r,getSchemaKeys as i}from"@arkenv/core";import"server-only";import{env as a}from"#arkenv/client-env";function o(o,s){if(o&&typeof o==`object`&&(`runtimeEnv`in o||`server`in o||`shared`in o)){if(`client`in o)throw Error(`server entry point only accepts 'server' and 'shared' schemas.`);return e(o,!0,void 0,r,i)}return e(o,n(s,()=>t(a)),{isServer:!0,strictLayout:`server`},r,i)}export{o as arkenv,o as default};
2
2
  //# sourceMappingURL=server.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"server.js","names":[],"sources":["../src/server.ts"],"sourcesContent":["import \"server-only\";\nimport type { $ } from \"@repo/scope\";\nimport type { SchemaShape } from \"@repo/types\";\nimport type { EnvSchema } from \"arkenv\";\nimport type { type as at, distill } from \"arktype\";\nimport { arkenvInternal } from \"./arkenv-internal\";\nimport type { MergeExtends } from \"./types\";\n\n/**\n * Create a validated, type-safe environment configuration for Next.js applications (Server entry point).\n */\nexport function arkenv<\n\tconst TSchema extends SchemaShape = {},\n\tconst TExtends extends readonly unknown[] = [],\n>(\n\tschema: EnvSchema<TSchema>,\n\toptions?: {\n\t\textends?: [...TExtends];\n\t\truntimeEnv?: Record<keyof TSchema | string, unknown>;\n\t},\n): Readonly<distill.Out<at.infer<TSchema, $>> & MergeExtends<TExtends>>;\n\nexport function arkenv<\n\tconst TServer extends SchemaShape = {},\n\tconst TShared extends SchemaShape = {},\n\tconst TExtends extends readonly unknown[] = [],\n>(options: {\n\tserver?: EnvSchema<TServer>;\n\tshared?: EnvSchema<TShared>;\n\textends?: [...TExtends];\n\truntimeEnv?: Record<keyof TShared, unknown> & Record<string, unknown>;\n}): Readonly<\n\tdistill.Out<at.infer<TServer & TShared, $>> & MergeExtends<TExtends>\n>;\n\nexport function arkenv(schemaOrOptions: any, optionsOrIsServer?: any): any {\n\tconst isLegacy =\n\t\tschemaOrOptions &&\n\t\ttypeof schemaOrOptions === \"object\" &&\n\t\t(\"runtimeEnv\" in schemaOrOptions ||\n\t\t\t\"server\" in schemaOrOptions ||\n\t\t\t\"shared\" in schemaOrOptions);\n\n\tif (isLegacy) {\n\t\tif (\"client\" in schemaOrOptions) {\n\t\t\tthrow new Error(\n\t\t\t\t\"server entry point only accepts 'server' and 'shared' schemas.\",\n\t\t\t);\n\t\t}\n\t\treturn arkenvInternal(schemaOrOptions, true);\n\t}\n\n\treturn arkenvInternal(schemaOrOptions, optionsOrIsServer, {\n\t\tisServer: true,\n\t});\n}\n\nexport { type } from \"arkenv\";\n\nexport default arkenv;\n"],"mappings":"oGAmCA,SAAgB,EAAO,EAAsB,EAA8B,CAQ1E,GANC,GACA,OAAO,GAAoB,WAC1B,eAAgB,GAChB,WAAY,GACZ,WAAY,GAEA,CACb,GAAI,WAAY,EACf,MAAU,MACT,iEACA,CAEF,OAAO,EAAe,EAAiB,GAAK,CAG7C,OAAO,EAAe,EAAiB,EAAmB,CACzD,SAAU,GACV,CAAC"}
1
+ {"version":3,"file":"server.js","names":["coreArkenv","importedClientEnv"],"sources":["../src/server.ts"],"sourcesContent":["import \"server-only\";\nimport type { EnvSchema } from \"@arkenv/core\";\nimport { arkenv as coreArkenv, getSchemaKeys } from \"@arkenv/core\";\nimport type { $ } from \"@repo/scope\";\nimport type { Dict, SchemaShape } from \"@repo/types\";\nimport type { type as at, distill } from \"arktype\";\n// Static import so webpack/Turbopack can resolve the alias at bundle time.\n// Outside strict layout the package `imports` map points this at empty-client-env.\nimport { env as importedClientEnv } from \"#arkenv/client-env\";\nimport { arkenvInternal } from \"./arkenv-internal\";\nimport { withAutoExtend } from \"./auto-extend\";\nimport { resolveStrictClientEnv } from \"./strict-client-env\";\nimport type { MergeExtends } from \"./types\";\n\n/**\n * Client env type auto-merged in Next.js strict layout when `extends` is omitted.\n */\ntype AutoClientEnv = typeof import(\"#arkenv/client-env\") extends {\n\tenv: infer E;\n}\n\t? E\n\t: {};\n\n/**\n * Create a validated, typesafe environment configuration for Next.js applications (Server entry point).\n *\n * With `withArkEnv` in strict layout, omitting `extends` includes the client\n * env by default. Any explicit `extends` is used as-is and opts out of that\n * default; pass `extends: []` to include no extended env.\n */\nexport function arkenv<\n\tconst TSchema extends SchemaShape = {},\n\tconst TExtends extends readonly unknown[] = [],\n>(\n\tschema: EnvSchema<TSchema>,\n\toptions: {\n\t\t/**\n\t\t * Explicit envs to extend. Providing this option opts out of the default\n\t\t * strict-layout client merge; use `[]` to include no extended env.\n\t\t */\n\t\textends: [...TExtends];\n\t\truntimeEnv?: Dict<string>;\n\t},\n): Readonly<distill.Out<at.infer<TSchema, $>> & MergeExtends<TExtends>>;\n\nexport function arkenv<const TSchema extends SchemaShape = {}>(\n\tschema: EnvSchema<TSchema>,\n\toptions?: {\n\t\textends?: undefined;\n\t\truntimeEnv?: Dict<string>;\n\t},\n): Readonly<distill.Out<at.infer<TSchema, $>> & AutoClientEnv>;\n\n/**\n * @deprecated Use the unified flat layout signature instead: `arkenv(schema, options)`\n */\nexport function arkenv<\n\tconst TServer extends SchemaShape = {},\n\tconst TShared extends SchemaShape = {},\n\tconst TExtends extends readonly unknown[] = [],\n>(options: {\n\tserver?: EnvSchema<TServer>;\n\tshared?: EnvSchema<TShared>;\n\textends?: [...TExtends];\n\truntimeEnv?: Record<keyof TShared, string | undefined> & Dict<string>;\n}): Readonly<\n\tdistill.Out<at.infer<TServer & TShared, $>> & MergeExtends<TExtends>\n>;\n\nexport function arkenv(schemaOrOptions: any, optionsOrIsServer?: any): any {\n\tconst isLegacy =\n\t\tschemaOrOptions &&\n\t\ttypeof schemaOrOptions === \"object\" &&\n\t\t(\"runtimeEnv\" in schemaOrOptions ||\n\t\t\t\"server\" in schemaOrOptions ||\n\t\t\t\"shared\" in schemaOrOptions);\n\n\tif (isLegacy) {\n\t\tif (\"client\" in schemaOrOptions) {\n\t\t\tthrow new Error(\n\t\t\t\t\"server entry point only accepts 'server' and 'shared' schemas.\",\n\t\t\t);\n\t\t}\n\t\treturn arkenvInternal(\n\t\t\tschemaOrOptions,\n\t\t\ttrue,\n\t\t\tundefined,\n\t\t\tcoreArkenv,\n\t\t\tgetSchemaKeys,\n\t\t);\n\t}\n\n\treturn arkenvInternal(\n\t\tschemaOrOptions,\n\t\twithAutoExtend(optionsOrIsServer, () =>\n\t\t\tresolveStrictClientEnv(importedClientEnv),\n\t\t),\n\t\t{ isServer: true, strictLayout: \"server\" },\n\t\tcoreArkenv,\n\t\tgetSchemaKeys,\n\t);\n}\n\nexport default arkenv;\n"],"mappings":"0QAqEA,SAAgB,EAAO,EAAsB,EAA8B,CAQ1E,GANC,GACA,OAAO,GAAoB,WAC1B,eAAgB,GAChB,WAAY,GACZ,WAAY,GAEA,CACb,GAAI,WAAY,EACf,MAAU,MACT,iEACA,CAEF,OAAO,EACN,EACA,GACA,IAAA,GACAA,EACA,EACA,CAGF,OAAO,EACN,EACA,EAAe,MACd,EAAuBC,EAAkB,CACzC,CACD,CAAE,SAAU,GAAM,aAAc,SAAU,CAC1CD,EACA,EACA"}
@@ -0,0 +1,2 @@
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../config-CU-9fwxw.cjs`);const e=require(`../arkenv-internal-QxkUlA5J.cjs`);let t=require(`@arkenv/standard`);function n(n,r){if(n&&typeof n==`object`&&(`runtimeEnv`in n||`client`in n||`shared`in n)){if(`server`in n)throw Error(`client entry point only accepts 'client' and 'shared' schemas.`);return e.t(n,!1,void 0,t.arkenv,t.getSchemaKeys)}return e.t(n,r,{isServer:!1},t.arkenv,t.getSchemaKeys)}exports.arkenv=n,exports.default=n;
2
+ //# sourceMappingURL=client.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.cjs","names":["arkenvInternal","coreArkenv","getSchemaKeys"],"sources":["../../src/standard/client.ts"],"sourcesContent":["import { arkenv as coreArkenv, getSchemaKeys } from \"@arkenv/standard\";\nimport type { Dict, StandardSchemaV1 } from \"@repo/types\";\nimport { arkenvInternal } from \"@/arkenv-internal\";\n\n/**\n * Create a validated, typesafe environment configuration for Next.js applications (Client entry point, Standard Mode).\n *\n * @param schema A flat schema of `NEXT_PUBLIC_*` Standard Schema validators\n * @param options Optional extends and runtimeEnv overrides\n * @returns A validated, readonly environment variables object\n */\nexport function arkenv<\n\tconst TSchema extends Record<string, StandardSchemaV1> = {},\n>(\n\tschema: TSchema & {\n\t\t[K in keyof TSchema]: K extends `NEXT_PUBLIC_${string}` ? unknown : never;\n\t},\n\toptions?: {\n\t\textends?: readonly unknown[];\n\t\truntimeEnv: Record<keyof TSchema, string | undefined> & Dict<string>;\n\t},\n): Readonly<{ [K in keyof TSchema]: StandardSchemaV1.InferOutput<TSchema[K]> }>;\n\n/**\n * Create a validated, typesafe environment configuration for Next.js applications using\n * the split client/shared schema pattern (Client entry point, Standard Mode).\n *\n * @param options The environment validation configuration with client and shared schemas\n * @returns A validated, readonly environment variables object\n */\nexport function arkenv<\n\tconst TClient extends Record<string, StandardSchemaV1> = {},\n\tconst TShared extends Record<string, StandardSchemaV1> = {},\n>(options: {\n\tclient?: TClient & {\n\t\t[K in keyof TClient]: K extends `NEXT_PUBLIC_${string}` ? unknown : never;\n\t};\n\tshared?: TShared;\n\textends?: readonly unknown[];\n\truntimeEnv: Record<keyof TClient | keyof TShared, unknown> &\n\t\tRecord<string, unknown>;\n}): Readonly<{\n\t[K in keyof (TClient & TShared)]: StandardSchemaV1.InferOutput<\n\t\t(TClient & TShared)[K]\n\t>;\n}>;\n\nexport function arkenv(schemaOrOptions: any, optionsOrIsServer?: any): any {\n\tconst isLegacy =\n\t\tschemaOrOptions &&\n\t\ttypeof schemaOrOptions === \"object\" &&\n\t\t(\"runtimeEnv\" in schemaOrOptions ||\n\t\t\t\"client\" in schemaOrOptions ||\n\t\t\t\"shared\" in schemaOrOptions);\n\n\tif (isLegacy) {\n\t\tif (\"server\" in schemaOrOptions) {\n\t\t\tthrow new Error(\n\t\t\t\t\"client entry point only accepts 'client' and 'shared' schemas.\",\n\t\t\t);\n\t\t}\n\t\treturn arkenvInternal(\n\t\t\tschemaOrOptions,\n\t\t\tfalse,\n\t\t\tundefined,\n\t\t\tcoreArkenv,\n\t\t\tgetSchemaKeys,\n\t\t);\n\t}\n\n\treturn arkenvInternal(\n\t\tschemaOrOptions,\n\t\toptionsOrIsServer,\n\t\t{ isServer: false },\n\t\tcoreArkenv,\n\t\tgetSchemaKeys,\n\t);\n}\n\nexport default arkenv;\n"],"mappings":"sNA+CA,SAAgB,EAAO,EAAsB,EAA8B,CAQ1E,GANC,GACA,OAAO,GAAoB,WAC1B,eAAgB,GAChB,WAAY,GACZ,WAAY,GAEA,CACb,GAAI,WAAY,EACf,MAAU,MACT,iEACA,CAEF,OAAOA,EAAAA,EACN,EACA,GACA,IAAA,GACAC,EAAAA,OACAC,EAAAA,cACA,CAGF,OAAOF,EAAAA,EACN,EACA,EACA,CAAE,SAAU,GAAO,CACnBC,EAAAA,OACAC,EAAAA,cACA"}