@stryke/env 0.20.37 → 0.20.38

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 (159) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/_virtual/rolldown_runtime.cjs +1 -0
  3. package/dist/ci-checks.cjs +1 -1
  4. package/dist/ci-checks.d.cts +19 -2
  5. package/dist/ci-checks.d.cts.map +1 -0
  6. package/dist/ci-checks.d.mts +19 -2
  7. package/dist/ci-checks.d.mts.map +1 -0
  8. package/dist/ci-checks.mjs +2 -1
  9. package/dist/ci-checks.mjs.map +1 -0
  10. package/dist/convert/src/to-array.cjs +1 -0
  11. package/dist/convert/src/to-array.mjs +2 -0
  12. package/dist/convert/src/to-array.mjs.map +1 -0
  13. package/dist/environment-checks.cjs +1 -1
  14. package/dist/environment-checks.d.cts +59 -2
  15. package/dist/environment-checks.d.cts.map +1 -0
  16. package/dist/environment-checks.d.mts +59 -2
  17. package/dist/environment-checks.d.mts.map +1 -0
  18. package/dist/environment-checks.mjs +2 -1
  19. package/dist/environment-checks.mjs.map +1 -0
  20. package/dist/fs/src/exists.cjs +1 -0
  21. package/dist/fs/src/exists.mjs +2 -0
  22. package/dist/fs/src/exists.mjs.map +1 -0
  23. package/dist/fs/src/read-file.cjs +1 -0
  24. package/dist/fs/src/read-file.mjs +2 -0
  25. package/dist/fs/src/read-file.mjs.map +1 -0
  26. package/dist/get-env-paths.cjs +1 -1
  27. package/dist/get-env-paths.d.cts +64 -2
  28. package/dist/get-env-paths.d.cts.map +1 -0
  29. package/dist/get-env-paths.d.mts +64 -2
  30. package/dist/get-env-paths.d.mts.map +1 -0
  31. package/dist/get-env-paths.mjs +2 -1
  32. package/dist/get-env-paths.mjs.map +1 -0
  33. package/dist/index.cjs +1 -1
  34. package/dist/index.d.cts +7 -7
  35. package/dist/index.d.mts +7 -7
  36. package/dist/index.mjs +1 -1
  37. package/dist/load-env.cjs +1 -1
  38. package/dist/load-env.d.cts +61 -2
  39. package/dist/load-env.d.cts.map +1 -0
  40. package/dist/load-env.d.mts +61 -2
  41. package/dist/load-env.d.mts.map +1 -0
  42. package/dist/load-env.mjs +2 -1
  43. package/dist/load-env.mjs.map +1 -0
  44. package/dist/path/src/is-type.cjs +1 -0
  45. package/dist/path/src/is-type.mjs +2 -0
  46. package/dist/path/src/is-type.mjs.map +1 -0
  47. package/dist/path/src/join-paths.cjs +1 -0
  48. package/dist/path/src/join-paths.mjs +2 -0
  49. package/dist/path/src/join-paths.mjs.map +1 -0
  50. package/dist/path/src/regex.cjs +1 -0
  51. package/dist/path/src/regex.mjs +2 -0
  52. package/dist/path/src/regex.mjs.map +1 -0
  53. package/dist/path/src/slash.cjs +1 -0
  54. package/dist/path/src/slash.mjs +2 -0
  55. package/dist/path/src/slash.mjs.map +1 -0
  56. package/dist/providers.cjs +1 -1
  57. package/dist/providers.d.cts +13 -2
  58. package/dist/providers.d.cts.map +1 -0
  59. package/dist/providers.d.mts +13 -2
  60. package/dist/providers.d.mts.map +1 -0
  61. package/dist/providers.mjs +2 -1
  62. package/dist/providers.mjs.map +1 -0
  63. package/dist/runtime-checks.cjs +1 -1
  64. package/dist/runtime-checks.d.cts +51 -2
  65. package/dist/runtime-checks.d.cts.map +1 -0
  66. package/dist/runtime-checks.d.mts +51 -2
  67. package/dist/runtime-checks.d.mts.map +1 -0
  68. package/dist/runtime-checks.mjs +2 -1
  69. package/dist/runtime-checks.mjs.map +1 -0
  70. package/dist/string-format/src/acronyms.cjs +1 -0
  71. package/dist/string-format/src/acronyms.mjs +2 -0
  72. package/dist/string-format/src/acronyms.mjs.map +1 -0
  73. package/dist/string-format/src/articles.cjs +1 -0
  74. package/dist/string-format/src/articles.mjs +2 -0
  75. package/dist/string-format/src/articles.mjs.map +1 -0
  76. package/dist/string-format/src/combine.cjs +1 -0
  77. package/dist/string-format/src/combine.mjs +2 -0
  78. package/dist/string-format/src/combine.mjs.map +1 -0
  79. package/dist/string-format/src/conjunctions.cjs +1 -0
  80. package/dist/string-format/src/conjunctions.mjs +2 -0
  81. package/dist/string-format/src/conjunctions.mjs.map +1 -0
  82. package/dist/string-format/src/decamelize.cjs +1 -0
  83. package/dist/string-format/src/decamelize.mjs +2 -0
  84. package/dist/string-format/src/decamelize.mjs.map +1 -0
  85. package/dist/string-format/src/format-special-cases.cjs +1 -0
  86. package/dist/string-format/src/format-special-cases.mjs +2 -0
  87. package/dist/string-format/src/format-special-cases.mjs.map +1 -0
  88. package/dist/string-format/src/prepositions.cjs +1 -0
  89. package/dist/string-format/src/prepositions.mjs +2 -0
  90. package/dist/string-format/src/prepositions.mjs.map +1 -0
  91. package/dist/string-format/src/special-cases.cjs +1 -0
  92. package/dist/string-format/src/special-cases.mjs +2 -0
  93. package/dist/string-format/src/special-cases.mjs.map +1 -0
  94. package/dist/string-format/src/title-case.cjs +1 -0
  95. package/dist/string-format/src/title-case.mjs +2 -0
  96. package/dist/string-format/src/title-case.mjs.map +1 -0
  97. package/dist/string-format/src/upper-case-first.cjs +1 -0
  98. package/dist/string-format/src/upper-case-first.mjs +2 -0
  99. package/dist/string-format/src/upper-case-first.mjs.map +1 -0
  100. package/dist/types.cjs +1 -1
  101. package/dist/types.d.cts +8 -2
  102. package/dist/types.d.cts.map +1 -0
  103. package/dist/types.d.mts +8 -2
  104. package/dist/types.d.mts.map +1 -0
  105. package/dist/types.mjs +2 -1
  106. package/dist/types.mjs.map +1 -0
  107. package/package.json +7 -7
  108. package/dist/ci-checks-5v7fZL3R.mjs +0 -2
  109. package/dist/ci-checks-5v7fZL3R.mjs.map +0 -1
  110. package/dist/ci-checks-BFAxtIMg.d.mts +0 -19
  111. package/dist/ci-checks-BFAxtIMg.d.mts.map +0 -1
  112. package/dist/ci-checks-ByUPPNOk.d.cts +0 -19
  113. package/dist/ci-checks-ByUPPNOk.d.cts.map +0 -1
  114. package/dist/ci-checks-DRWFr2UM.cjs +0 -1
  115. package/dist/environment-checks-BvXEMk0w.d.mts +0 -59
  116. package/dist/environment-checks-BvXEMk0w.d.mts.map +0 -1
  117. package/dist/environment-checks-CNP6SBWs.mjs +0 -2
  118. package/dist/environment-checks-CNP6SBWs.mjs.map +0 -1
  119. package/dist/environment-checks-TkDPh8QD.d.cts +0 -59
  120. package/dist/environment-checks-TkDPh8QD.d.cts.map +0 -1
  121. package/dist/environment-checks-ghgIrof1.cjs +0 -1
  122. package/dist/get-env-paths-CRQWNX3i.cjs +0 -1
  123. package/dist/get-env-paths-DReLbhw5.d.cts +0 -64
  124. package/dist/get-env-paths-DReLbhw5.d.cts.map +0 -1
  125. package/dist/get-env-paths-DUHBXxwb.mjs +0 -2
  126. package/dist/get-env-paths-DUHBXxwb.mjs.map +0 -1
  127. package/dist/get-env-paths-KTCEsWqe.d.mts +0 -64
  128. package/dist/get-env-paths-KTCEsWqe.d.mts.map +0 -1
  129. package/dist/join-paths-BMFGURJb.cjs +0 -1
  130. package/dist/join-paths-DoUrclq3.mjs +0 -2
  131. package/dist/join-paths-DoUrclq3.mjs.map +0 -1
  132. package/dist/load-env-B_Q4iLSZ.d.mts +0 -61
  133. package/dist/load-env-B_Q4iLSZ.d.mts.map +0 -1
  134. package/dist/load-env-COR_EMlB.cjs +0 -1
  135. package/dist/load-env-DPtGxfd9.d.cts +0 -61
  136. package/dist/load-env-DPtGxfd9.d.cts.map +0 -1
  137. package/dist/load-env-DUjj4KN6.mjs +0 -2
  138. package/dist/load-env-DUjj4KN6.mjs.map +0 -1
  139. package/dist/providers-B2d_hJW2.d.mts +0 -13
  140. package/dist/providers-B2d_hJW2.d.mts.map +0 -1
  141. package/dist/providers-B9xVKxf9.cjs +0 -1
  142. package/dist/providers-BUdbSP8f.mjs +0 -2
  143. package/dist/providers-BUdbSP8f.mjs.map +0 -1
  144. package/dist/providers-YKl7K1Ek.d.cts +0 -13
  145. package/dist/providers-YKl7K1Ek.d.cts.map +0 -1
  146. package/dist/runtime-checks-Bka6c_Kr.d.mts +0 -51
  147. package/dist/runtime-checks-Bka6c_Kr.d.mts.map +0 -1
  148. package/dist/runtime-checks-DGhXcN9g.mjs +0 -2
  149. package/dist/runtime-checks-DGhXcN9g.mjs.map +0 -1
  150. package/dist/runtime-checks-Dc2IKXYE.d.cts +0 -51
  151. package/dist/runtime-checks-Dc2IKXYE.d.cts.map +0 -1
  152. package/dist/runtime-checks-NIf4Bpj9.cjs +0 -1
  153. package/dist/types-2O6mBvGZ.cjs +0 -1
  154. package/dist/types-D7S9q0_s.d.mts +0 -8
  155. package/dist/types-D7S9q0_s.d.mts.map +0 -1
  156. package/dist/types-DJpwQAko.d.cts +0 -8
  157. package/dist/types-DJpwQAko.d.cts.map +0 -1
  158. package/dist/types-ULysAnV9.mjs +0 -2
  159. package/dist/types-ULysAnV9.mjs.map +0 -1
@@ -1,2 +1,61 @@
1
- import { a as loadServerEnv, i as loadEnvFile, n as loadClientEnv, r as loadEnv, t as getEnvFilesForMode } from "./load-env-DPtGxfd9.cjs";
2
- export { getEnvFilesForMode, loadClientEnv, loadEnv, loadEnvFile, loadServerEnv };
1
+ import { DotenvParseOutput } from "./types.cjs";
2
+
3
+ //#region src/load-env.d.ts
4
+ declare function getEnvFilesForMode(envDir: string, mode?: string): string[];
5
+ /**
6
+ * Load environment variables from a .env file.
7
+ *
8
+ * @param envFile - The path to the .env file.
9
+ * @returns The environment variables.
10
+ */
11
+ declare function loadEnvFile(envFile: string, envDir?: string | string[]): Promise<DotenvParseOutput>;
12
+ /**
13
+ * Load environment variables from .env files.
14
+ *
15
+ * @remarks
16
+ * This function loads environment variables from .env files based on the mode. For the `production` mode, it will load:
17
+ * - `.env`
18
+ * - `.env.local`
19
+ * - `.env.production`
20
+ * - `.env.production.local`
21
+ *
22
+ * @param envDir - The directory/directories to load the environment variables from.
23
+ * @param mode - The mode to load the environment variables for.
24
+ * @param prefix - The prefix or prefixes to use for the environment variables.
25
+ * @returns The environment variables.
26
+ */
27
+ declare function loadEnv(envDir: string | string[], mode?: string, prefix?: string | string[]): Promise<DotenvParseOutput>;
28
+ /**
29
+ * Load environment variables from .env files for a client-side environment.
30
+ *
31
+ * @remarks
32
+ * This function loads environment variables from .env files based on the mode. For the `production` mode, it will load:
33
+ * - `.env`
34
+ * - `.env.local`
35
+ * - `.env.production`
36
+ * - `.env.production.local`
37
+ *
38
+ * @param envDir - The directory/directories to load the environment variables from.
39
+ * @param mode - The mode to load the environment variables for.
40
+ * @param prefix - The prefix or prefixes to use for the environment variables.
41
+ * @returns The environment variables.
42
+ */
43
+ declare function loadClientEnv(envDir: string | string[], mode?: string, prefix?: string | string[]): Promise<DotenvParseOutput>;
44
+ /**
45
+ * Load environment variables from .env files for a server-side environment.
46
+ *
47
+ * @remarks
48
+ * This function loads environment variables from .env files based on the mode. For the `production` mode, it will load:
49
+ * - `.env`
50
+ * - `.env.local`
51
+ * - `.env.production`
52
+ * - `.env.production.local`
53
+ *
54
+ * @param envDir - The directory/directories to load the environment variables from.
55
+ * @param mode - The mode to load the environment variables for.
56
+ * @returns The environment variables.
57
+ */
58
+ declare function loadServerEnv(envDir: string | string[], mode: string): Promise<DotenvParseOutput>;
59
+ //#endregion
60
+ export { getEnvFilesForMode, loadClientEnv, loadEnv, loadEnvFile, loadServerEnv };
61
+ //# sourceMappingURL=load-env.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"load-env.d.cts","names":[],"sources":["../src/load-env.ts"],"sourcesContent":[],"mappings":";;;iBA4BgB,kBAAA;;AAAhB;AAmBA;AAiDA;AAmGA;AAsBA;iBA1KsB,WAAA,+CAGnB,QAAQ;;;;;;;;;;;;;;;;iBA8CW,OAAA,wEAInB,QAAQ;;;;;;;;;;;;;;;;iBA+FW,aAAA,wEAInB,QAAQ;;;;;;;;;;;;;;;iBAkBW,aAAA,2CAGnB,QAAQ"}
@@ -1,2 +1,61 @@
1
- import { a as loadServerEnv, i as loadEnvFile, n as loadClientEnv, r as loadEnv, t as getEnvFilesForMode } from "./load-env-B_Q4iLSZ.mjs";
2
- export { getEnvFilesForMode, loadClientEnv, loadEnv, loadEnvFile, loadServerEnv };
1
+ import { DotenvParseOutput } from "./types.mjs";
2
+
3
+ //#region src/load-env.d.ts
4
+ declare function getEnvFilesForMode(envDir: string, mode?: string): string[];
5
+ /**
6
+ * Load environment variables from a .env file.
7
+ *
8
+ * @param envFile - The path to the .env file.
9
+ * @returns The environment variables.
10
+ */
11
+ declare function loadEnvFile(envFile: string, envDir?: string | string[]): Promise<DotenvParseOutput>;
12
+ /**
13
+ * Load environment variables from .env files.
14
+ *
15
+ * @remarks
16
+ * This function loads environment variables from .env files based on the mode. For the `production` mode, it will load:
17
+ * - `.env`
18
+ * - `.env.local`
19
+ * - `.env.production`
20
+ * - `.env.production.local`
21
+ *
22
+ * @param envDir - The directory/directories to load the environment variables from.
23
+ * @param mode - The mode to load the environment variables for.
24
+ * @param prefix - The prefix or prefixes to use for the environment variables.
25
+ * @returns The environment variables.
26
+ */
27
+ declare function loadEnv(envDir: string | string[], mode?: string, prefix?: string | string[]): Promise<DotenvParseOutput>;
28
+ /**
29
+ * Load environment variables from .env files for a client-side environment.
30
+ *
31
+ * @remarks
32
+ * This function loads environment variables from .env files based on the mode. For the `production` mode, it will load:
33
+ * - `.env`
34
+ * - `.env.local`
35
+ * - `.env.production`
36
+ * - `.env.production.local`
37
+ *
38
+ * @param envDir - The directory/directories to load the environment variables from.
39
+ * @param mode - The mode to load the environment variables for.
40
+ * @param prefix - The prefix or prefixes to use for the environment variables.
41
+ * @returns The environment variables.
42
+ */
43
+ declare function loadClientEnv(envDir: string | string[], mode?: string, prefix?: string | string[]): Promise<DotenvParseOutput>;
44
+ /**
45
+ * Load environment variables from .env files for a server-side environment.
46
+ *
47
+ * @remarks
48
+ * This function loads environment variables from .env files based on the mode. For the `production` mode, it will load:
49
+ * - `.env`
50
+ * - `.env.local`
51
+ * - `.env.production`
52
+ * - `.env.production.local`
53
+ *
54
+ * @param envDir - The directory/directories to load the environment variables from.
55
+ * @param mode - The mode to load the environment variables for.
56
+ * @returns The environment variables.
57
+ */
58
+ declare function loadServerEnv(envDir: string | string[], mode: string): Promise<DotenvParseOutput>;
59
+ //#endregion
60
+ export { getEnvFilesForMode, loadClientEnv, loadEnv, loadEnvFile, loadServerEnv };
61
+ //# sourceMappingURL=load-env.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"load-env.d.mts","names":[],"sources":["../src/load-env.ts"],"sourcesContent":[],"mappings":";;;iBA4BgB,kBAAA;;AAAhB;AAmBA;AAiDA;AAmGA;AAsBA;iBA1KsB,WAAA,+CAGnB,QAAQ;;;;;;;;;;;;;;;;iBA8CW,OAAA,wEAInB,QAAQ;;;;;;;;;;;;;;;;iBA+FW,aAAA,wEAInB,QAAQ;;;;;;;;;;;;;;;iBAkBW,aAAA,2CAGnB,QAAQ"}
package/dist/load-env.mjs CHANGED
@@ -1 +1,2 @@
1
- import{a as e,i as t,n,r,t as i}from"./load-env-DUjj4KN6.mjs";export{i as getEnvFilesForMode,n as loadClientEnv,r as loadEnv,t as loadEnvFile,e as loadServerEnv};
1
+ import{joinPaths as e}from"./path/src/join-paths.mjs";import{toArray as t}from"./convert/src/to-array.mjs";import{existsSync as n}from"./fs/src/exists.mjs";import{readFile as r}from"./fs/src/read-file.mjs";import{ENV_PREFIXES as i}from"./types.mjs";import{parse as a}from"@dotenvx/dotenvx";import o from"defu";function s(t,n=`production`){return[`.env`,`.env.local`,`.env.${n}`,`.env.${n}.local`,`.env.local.${n}`].map(n=>e(t,n))}async function c(t,i=[]){let s=Array.isArray(i)?i:[i];return(await Promise.all((i.length>0?s.map(n=>e(n,t)):[t]).map(async e=>{if(n(e))return r(e)}))).reduce((e,t)=>t?o(a(t,{processEnv:{...process.env},privateKey:process.env.DOTENV_PRIVATE_KEY||process.env.STORM_PRIVATE_KEY}),e):e,{})}async function l(e,n,r){if(n===`local`)throw Error(`"local" cannot be used as a mode name because it conflicts with the .local postfix for .env files.`);let i=t(r).reduce((e,t)=>t?(e.includes(t.endsWith(`_`)?t:`${t}_`)||e.push(t.endsWith(`_`)?t:`${t}_`),e.includes(`${t.endsWith(`_`)?t:`${t}_`}PUBLIC_`)||e.push(`${t.endsWith(`_`)?t:`${t}_`}PUBLIC_`),e):e,[]),a=Array.isArray(e)?e:[e],l={},u=a.reduce((e,t)=>(e.push(...s(t,n).filter(t=>!e.includes(t))),e),[]),d=(await Promise.all(u.map(async e=>c(e)))).reduce((e,t)=>o(t,e),{});if(d.NODE_ENV&&process.env.VITE_USER_NODE_ENV===void 0&&(process.env.VITE_USER_NODE_ENV=JSON.stringify(d.NODE_ENV)),d.BROWSER&&process.env.BROWSER===void 0&&(process.env.BROWSER=JSON.stringify(d.BROWSER)),d.BROWSER_ARGS&&process.env.BROWSER_ARGS===void 0&&(process.env.BROWSER_ARGS=JSON.stringify(d.BROWSER_ARGS)),d=o({...process.env},d),i.length===0)return d;for(let[e,t]of Object.entries(d))i.some(t=>e.startsWith(t))&&(l[e]=String(t));for(let e in process.env)i.some(t=>e.startsWith(t))&&(l[e]=process.env[e]);return l}async function u(e,t,n=i){return l(e,t,n)}async function d(e,t){return l(e,t)}export{s as getEnvFilesForMode,u as loadClientEnv,l as loadEnv,c as loadEnvFile,d as loadServerEnv};
2
+ //# sourceMappingURL=load-env.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"load-env.mjs","names":["envDir","env: DotenvParseOutput","prefix"],"sources":["../src/load-env.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { DotenvPopulateInput } from \"@dotenvx/dotenvx\";\nimport { parse } from \"@dotenvx/dotenvx\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport { existsSync } from \"@stryke/fs/exists\";\nimport { readFile } from \"@stryke/fs/read-file\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport defu from \"defu\";\nimport type { DotenvParseOutput } from \"./types\";\nimport { ENV_PREFIXES } from \"./types\";\n\nexport function getEnvFilesForMode(\n envDir: string,\n mode = \"production\"\n): string[] {\n return [\n /** default file */ \".env\",\n /** local file */ \".env.local\",\n /** mode file */ `.env.${mode}`,\n /** mode local file */ `.env.${mode}.local`,\n /** local mode file */ `.env.local.${mode}`\n ].map(file => joinPaths(envDir, file));\n}\n\n/**\n * Load environment variables from a .env file.\n *\n * @param envFile - The path to the .env file.\n * @returns The environment variables.\n */\nexport async function loadEnvFile(\n envFile: string,\n envDir: string | string[] = []\n): Promise<DotenvParseOutput> {\n const envDirs = Array.isArray(envDir) ? envDir : [envDir];\n\n return (\n await Promise.all(\n (envDir.length > 0\n ? envDirs.map(envDir => joinPaths(envDir, envFile))\n : [envFile]\n ).map(async envFilePath => {\n if (!existsSync(envFilePath)) {\n return undefined;\n }\n\n return readFile(envFilePath);\n })\n )\n ).reduce((ret, envFileContent) => {\n if (!envFileContent) {\n return ret;\n }\n\n const result = parse(envFileContent, {\n processEnv: { ...process.env } as DotenvPopulateInput,\n privateKey:\n process.env.DOTENV_PRIVATE_KEY || process.env.STORM_PRIVATE_KEY\n });\n\n return defu(result, ret);\n }, {});\n}\n\n/**\n * Load environment variables from .env files.\n *\n * @remarks\n * This function loads environment variables from .env files based on the mode. For the `production` mode, it will load:\n * - `.env`\n * - `.env.local`\n * - `.env.production`\n * - `.env.production.local`\n *\n * @param envDir - The directory/directories to load the environment variables from.\n * @param mode - The mode to load the environment variables for.\n * @param prefix - The prefix or prefixes to use for the environment variables.\n * @returns The environment variables.\n */\nexport async function loadEnv(\n envDir: string | string[],\n mode?: string,\n prefix?: string | string[]\n): Promise<DotenvParseOutput> {\n if (mode === \"local\") {\n throw new Error(\n '\"local\" cannot be used as a mode name because it conflicts with ' +\n \"the .local postfix for .env files.\"\n );\n }\n\n const prefixes = toArray(prefix).reduce((ret, pre) => {\n if (!pre) {\n return ret;\n }\n\n if (!ret.includes(pre.endsWith(\"_\") ? pre : `${pre}_`)) {\n ret.push(pre.endsWith(\"_\") ? pre : `${pre}_`);\n }\n if (!ret.includes(`${pre.endsWith(\"_\") ? pre : `${pre}_`}PUBLIC_`)) {\n ret.push(`${pre.endsWith(\"_\") ? pre : `${pre}_`}PUBLIC_`);\n }\n return ret;\n }, [] as string[]);\n const envDirs = Array.isArray(envDir) ? envDir : [envDir];\n\n const env: DotenvParseOutput = {};\n const envFiles = envDirs.reduce((ret, envFilePath) => {\n ret.push(\n ...getEnvFilesForMode(envFilePath, mode).filter(\n envFile => !ret.includes(envFile)\n )\n );\n\n return ret;\n }, [] as string[]);\n\n let envParsed = (\n await Promise.all(\n envFiles.map(async filePath => {\n return loadEnvFile(filePath);\n })\n )\n ).reduce((ret, result) => {\n return defu(result, ret);\n }, {});\n\n // test NODE_ENV override before expand as otherwise process.env.NODE_ENV would override this\n if (envParsed.NODE_ENV && process.env.VITE_USER_NODE_ENV === undefined) {\n process.env.VITE_USER_NODE_ENV = JSON.stringify(envParsed.NODE_ENV);\n }\n // support BROWSER and BROWSER_ARGS env variables\n if (envParsed.BROWSER && process.env.BROWSER === undefined) {\n process.env.BROWSER = JSON.stringify(envParsed.BROWSER);\n }\n if (envParsed.BROWSER_ARGS && process.env.BROWSER_ARGS === undefined) {\n process.env.BROWSER_ARGS = JSON.stringify(envParsed.BROWSER_ARGS);\n }\n\n // let environment variables use each other. make a copy of `process.env` so that we do not mutate the global `process.env`.\n envParsed = defu({ ...process.env }, envParsed);\n if (prefixes.length === 0) {\n return envParsed;\n }\n\n // only keys that start with prefix are exposed to client\n for (const [key, value] of Object.entries(envParsed)) {\n if (prefixes.some(prefix => key.startsWith(prefix))) {\n env[key] = String(value);\n }\n }\n\n // check if there are actual env variables starting with VITE_*\n // these are typically provided inline and should be prioritized\n for (const key in process.env) {\n if (prefixes.some(prefix => key.startsWith(prefix))) {\n env[key] = process.env[key] as string;\n }\n }\n\n return env;\n}\n\n/**\n * Load environment variables from .env files for a client-side environment.\n *\n * @remarks\n * This function loads environment variables from .env files based on the mode. For the `production` mode, it will load:\n * - `.env`\n * - `.env.local`\n * - `.env.production`\n * - `.env.production.local`\n *\n * @param envDir - The directory/directories to load the environment variables from.\n * @param mode - The mode to load the environment variables for.\n * @param prefix - The prefix or prefixes to use for the environment variables.\n * @returns The environment variables.\n */\nexport async function loadClientEnv(\n envDir: string | string[],\n mode?: string,\n prefix: string | string[] = ENV_PREFIXES\n): Promise<DotenvParseOutput> {\n return loadEnv(envDir, mode, prefix);\n}\n\n/**\n * Load environment variables from .env files for a server-side environment.\n *\n * @remarks\n * This function loads environment variables from .env files based on the mode. For the `production` mode, it will load:\n * - `.env`\n * - `.env.local`\n * - `.env.production`\n * - `.env.production.local`\n *\n * @param envDir - The directory/directories to load the environment variables from.\n * @param mode - The mode to load the environment variables for.\n * @returns The environment variables.\n */\nexport async function loadServerEnv(\n envDir: string | string[],\n mode: string\n): Promise<DotenvParseOutput> {\n return loadEnv(envDir, mode);\n}\n"],"mappings":"sTA4BA,SAAgB,EACd,EACA,EAAO,aACG,CACV,MAAO,CACe,OACF,aACD,QAAQ,IACF,QAAQ,EAAK,QACb,cAAc,IACtC,CAAC,IAAI,GAAQ,EAAU,EAAQ,EAAK,CAAC,CASxC,eAAsB,EACpB,EACA,EAA4B,EAAE,CACF,CAC5B,IAAM,EAAU,MAAM,QAAQ,EAAO,CAAG,EAAS,CAAC,EAAO,CAEzD,OACE,MAAM,QAAQ,KACX,EAAO,OAAS,EACb,EAAQ,IAAI,GAAU,EAAUA,EAAQ,EAAQ,CAAC,CACjD,CAAC,EAAQ,EACX,IAAI,KAAM,IAAe,CACpB,KAAW,EAAY,CAI5B,OAAO,EAAS,EAAY,EAC5B,CACH,EACD,QAAQ,EAAK,IACR,EAUE,EANQ,EAAM,EAAgB,CACnC,WAAY,CAAE,GAAG,QAAQ,IAAK,CAC9B,WACE,QAAQ,IAAI,oBAAsB,QAAQ,IAAI,kBACjD,CAAC,CAEkB,EAAI,CATf,EAUR,EAAE,CAAC,CAkBR,eAAsB,EACpB,EACA,EACA,EAC4B,CAC5B,GAAI,IAAS,QACX,MAAU,MACR,qGAED,CAGH,IAAM,EAAW,EAAQ,EAAO,CAAC,QAAQ,EAAK,IACvC,GAIA,EAAI,SAAS,EAAI,SAAS,IAAI,CAAG,EAAM,GAAG,EAAI,GAAG,EACpD,EAAI,KAAK,EAAI,SAAS,IAAI,CAAG,EAAM,GAAG,EAAI,GAAG,CAE1C,EAAI,SAAS,GAAG,EAAI,SAAS,IAAI,CAAG,EAAM,GAAG,EAAI,GAAG,SAAS,EAChE,EAAI,KAAK,GAAG,EAAI,SAAS,IAAI,CAAG,EAAM,GAAG,EAAI,GAAG,SAAS,CAEpD,GATE,EAUR,EAAE,CAAa,CACZ,EAAU,MAAM,QAAQ,EAAO,CAAG,EAAS,CAAC,EAAO,CAEnDC,EAAyB,EAAE,CAC3B,EAAW,EAAQ,QAAQ,EAAK,KACpC,EAAI,KACF,GAAG,EAAmB,EAAa,EAAK,CAAC,OACvC,GAAW,CAAC,EAAI,SAAS,EAAQ,CAClC,CACF,CAEM,GACN,EAAE,CAAa,CAEd,GACF,MAAM,QAAQ,IACZ,EAAS,IAAI,KAAM,IACV,EAAY,EAAS,CAC5B,CACH,EACD,QAAQ,EAAK,IACN,EAAK,EAAQ,EAAI,CACvB,EAAE,CAAC,CAgBN,GAbI,EAAU,UAAY,QAAQ,IAAI,qBAAuB,IAAA,KAC3D,QAAQ,IAAI,mBAAqB,KAAK,UAAU,EAAU,SAAS,EAGjE,EAAU,SAAW,QAAQ,IAAI,UAAY,IAAA,KAC/C,QAAQ,IAAI,QAAU,KAAK,UAAU,EAAU,QAAQ,EAErD,EAAU,cAAgB,QAAQ,IAAI,eAAiB,IAAA,KACzD,QAAQ,IAAI,aAAe,KAAK,UAAU,EAAU,aAAa,EAInE,EAAY,EAAK,CAAE,GAAG,QAAQ,IAAK,CAAE,EAAU,CAC3C,EAAS,SAAW,EACtB,OAAO,EAIT,IAAK,GAAM,CAAC,EAAK,KAAU,OAAO,QAAQ,EAAU,CAC9C,EAAS,KAAK,GAAU,EAAI,WAAWC,EAAO,CAAC,GACjD,EAAI,GAAO,OAAO,EAAM,EAM5B,IAAK,IAAM,KAAO,QAAQ,IACpB,EAAS,KAAK,GAAU,EAAI,WAAWA,EAAO,CAAC,GACjD,EAAI,GAAO,QAAQ,IAAI,IAI3B,OAAO,EAkBT,eAAsB,EACpB,EACA,EACA,EAA4B,EACA,CAC5B,OAAO,EAAQ,EAAQ,EAAM,EAAO,CAiBtC,eAAsB,EACpB,EACA,EAC4B,CAC5B,OAAO,EAAQ,EAAQ,EAAK"}
@@ -0,0 +1 @@
1
+ const e=require(`./regex.cjs`),t=require(`./slash.cjs`);function n(n){return e.ABSOLUTE_PATH_REGEX.test(t.slash(n))}function r(e){return n(e)}exports.isAbsolute=r;
@@ -0,0 +1,2 @@
1
+ import{ABSOLUTE_PATH_REGEX as e}from"./regex.mjs";import{slash as t}from"./slash.mjs";function n(n){return e.test(t(n))}function r(e){return n(e)}export{r as isAbsolute};
2
+ //# sourceMappingURL=is-type.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-type.mjs","names":[],"sources":["../../../../path/src/is-type.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { ABSOLUTE_PATH_REGEX, NPM_SCOPED_PACKAGE_REGEX } from \"./regex\";\nimport { slash } from \"./slash\";\n\n/**\n * Check if the path is an absolute path.\n *\n * @param path - The path to check\n * @returns An indicator specifying if the path is an absolute path\n */\nexport function isAbsolutePath(path: string): boolean {\n return ABSOLUTE_PATH_REGEX.test(slash(path));\n}\n\n/**\n * Check if the path is an absolute path.\n *\n * @remarks\n * This is an alias for {@link isAbsolutePath}.\n *\n * @param path - The path to check\n * @returns An indicator specifying if the path is an absolute path\n */\nexport function isAbsolute(path: string): boolean {\n return isAbsolutePath(path);\n}\n\n/**\n * Check if the path is a relative path.\n *\n * @param path - The path to check\n * @returns An indicator specifying if the path is a relative path\n */\nexport function isRelativePath(path: string): boolean {\n return !isAbsolutePath(path);\n}\n\n/**\n * Check if the path is a relative path.\n *\n * @remarks\n * This is an alias for {@link isRelativePath}.\n *\n * @param path - The path to check\n * @returns An indicator specifying if the path is a relative path\n */\nexport function isRelative(path: string): boolean {\n return isRelativePath(path);\n}\n\n/**\n * Check if the path is a npm package path.\n *\n * @remarks\n * This only checks if the path matches the npm namespace scoped package naming convention such as `@scope/package-name`. This is an alias for {@link isNpmScopedPackage}.\n *\n * @example\n * ```ts\n * isNpmScopedPackage(\"@stryke/path\"); // returns true\n * isNpmScopedPackage(\"lodash\"); // returns false\n * isNpmNamespacePackage(\"./src/index.ts\"); // returns false\n * ```\n *\n * @param path - The path to check\n * @returns An indicator specifying if the path is a npm package path\n */\nexport function isNpmScopedPackagePath(path: string): boolean {\n return NPM_SCOPED_PACKAGE_REGEX.test(slash(path));\n}\n\n/**\n * Check if the path is a npm package path.\n *\n * @remarks\n * This only checks if the path matches the npm namespace scoped package naming convention such as `@scope/package-name`. This is an alias for {@link isNpmScopedPackagePath}.\n *\n * @example\n * ```ts\n * isNpmScopedPackagePath(\"@stryke/path\"); // returns true\n * isNpmScopedPackagePath(\"lodash\"); // returns false\n * isNpmScopedPackagePath(\"./src/index.ts\"); // returns false\n * ```\n *\n * @param path - The path to check\n * @returns An indicator specifying if the path is a npm package path\n */\nexport function isNpmScopedPackage(path: string): boolean {\n return isNpmScopedPackagePath(path);\n}\n"],"mappings":"sFA2BA,SAAgB,EAAe,EAAuB,CACpD,OAAO,EAAoB,KAAK,EAAM,EAAK,CAAC,CAY9C,SAAgB,EAAW,EAAuB,CAChD,OAAO,EAAe,EAAK"}
@@ -0,0 +1 @@
1
+ const e=require(`./regex.cjs`),t=require(`./is-type.cjs`);function n(t=``){return t&&t.replace(/\\/g,`/`).replace(e.DRIVE_LETTER_START_REGEX,e=>e.toUpperCase())}function r(r){if(!r||r.length===0)return`.`;r=n(r);let i=r.match(e.UNC_REGEX),o=t.isAbsolute(r),s=r[r.length-1]===`/`;return r=a(r,!o),r.length===0?o?`/`:s?`./`:`.`:(s&&(r+=`/`),e.DRIVE_LETTER_REGEX.test(r)&&(r+=`/`),i?o?`//${r}`:`//./${r}`:o&&!t.isAbsolute(r)?`/${r}`:r)}function i(...e){let t=``;for(let n of e)if(n)if(t.length>0){let e=t[t.length-1]===`/`,r=n[0]===`/`;e&&r?t+=n.slice(1):t+=e||r?n:`/${n}`}else t+=n;return r(t)}function a(e,t){let n=``,r=0,i=-1,a=0,o=null;for(let s=0;s<=e.length;++s){if(s<e.length)o=e[s];else if(o===`/`)break;else o=`/`;if(o===`/`){if(!(i===s-1||a===1))if(a===2){if(n.length<2||r!==2||n[n.length-1]!==`.`||n[n.length-2]!==`.`){if(n.length>2){let e=n.lastIndexOf(`/`);e===-1?(n=``,r=0):(n=n.slice(0,e),r=n.length-1-n.lastIndexOf(`/`)),i=s,a=0;continue}else if(n.length>0){n=``,r=0,i=s,a=0;continue}}t&&(n+=n.length>0?`/..`:`..`,r=2)}else n.length>0?n+=`/${e.slice(i+1,s)}`:n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===`.`&&a!==-1?++a:a=-1}return n}exports.joinPaths=i;
@@ -0,0 +1,2 @@
1
+ import{DRIVE_LETTER_REGEX as e,DRIVE_LETTER_START_REGEX as t,UNC_REGEX as n}from"./regex.mjs";import{isAbsolute as r}from"./is-type.mjs";function i(e=``){return e&&e.replace(/\\/g,`/`).replace(t,e=>e.toUpperCase())}function a(t){if(!t||t.length===0)return`.`;t=i(t);let a=t.match(n),o=r(t),c=t[t.length-1]===`/`;return t=s(t,!o),t.length===0?o?`/`:c?`./`:`.`:(c&&(t+=`/`),e.test(t)&&(t+=`/`),a?o?`//${t}`:`//./${t}`:o&&!r(t)?`/${t}`:t)}function o(...e){let t=``;for(let n of e)if(n)if(t.length>0){let e=t[t.length-1]===`/`,r=n[0]===`/`;e&&r?t+=n.slice(1):t+=e||r?n:`/${n}`}else t+=n;return a(t)}function s(e,t){let n=``,r=0,i=-1,a=0,o=null;for(let s=0;s<=e.length;++s){if(s<e.length)o=e[s];else if(o===`/`)break;else o=`/`;if(o===`/`){if(!(i===s-1||a===1))if(a===2){if(n.length<2||r!==2||n[n.length-1]!==`.`||n[n.length-2]!==`.`){if(n.length>2){let e=n.lastIndexOf(`/`);e===-1?(n=``,r=0):(n=n.slice(0,e),r=n.length-1-n.lastIndexOf(`/`)),i=s,a=0;continue}else if(n.length>0){n=``,r=0,i=s,a=0;continue}}t&&(n+=n.length>0?`/..`:`..`,r=2)}else n.length>0?n+=`/${e.slice(i+1,s)}`:n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===`.`&&a!==-1?++a:a=-1}return n}export{o as joinPaths};
2
+ //# sourceMappingURL=join-paths.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"join-paths.mjs","names":["char: string | null"],"sources":["../../../../path/src/join-paths.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { isAbsolute } from \"./is-type\";\nimport {\n DRIVE_LETTER_REGEX,\n DRIVE_LETTER_START_REGEX,\n UNC_REGEX\n} from \"./regex\";\n\n// Util to normalize windows paths to posix\nfunction normalizeWindowsPath(input = \"\") {\n if (!input) {\n return input;\n }\n return input\n .replace(/\\\\/g, \"/\")\n .replace(DRIVE_LETTER_START_REGEX, r => r.toUpperCase());\n}\n\nfunction correctPaths(path?: string) {\n if (!path || path.length === 0) {\n return \".\";\n }\n\n // Normalize windows argument\n path = normalizeWindowsPath(path);\n\n const isUNCPath = path.match(UNC_REGEX);\n const isPathAbsolute = isAbsolute(path);\n const trailingSeparator = path[path.length - 1] === \"/\";\n\n // Normalize the path\n path = normalizeString(path, !isPathAbsolute);\n\n if (path.length === 0) {\n if (isPathAbsolute) {\n return \"/\";\n }\n return trailingSeparator ? \"./\" : \".\";\n }\n if (trailingSeparator) {\n path += \"/\";\n }\n if (DRIVE_LETTER_REGEX.test(path)) {\n path += \"/\";\n }\n\n if (isUNCPath) {\n if (!isPathAbsolute) {\n return `//./${path}`;\n }\n return `//${path}`;\n }\n\n return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;\n}\n\n/**\n * Joins all given path segments together using the platform-specific separator as a delimiter.\n * The resulting path is normalized to remove any redundant or unnecessary segments.\n *\n * @param segments - The path segments to join.\n * @returns The joined and normalized path string.\n */\nexport function joinPaths(...segments: string[]): string {\n let path = \"\";\n\n for (const seg of segments) {\n if (!seg) {\n continue;\n }\n if (path.length > 0) {\n const pathTrailing = path[path.length - 1] === \"/\";\n const segLeading = seg[0] === \"/\";\n const both = pathTrailing && segLeading;\n if (both) {\n path += seg.slice(1);\n } else {\n path += pathTrailing || segLeading ? seg : `/${seg}`;\n }\n } else {\n path += seg;\n }\n }\n\n return correctPaths(path);\n}\n\nexport const join = joinPaths;\n\n/**\n * Resolves a string path, resolving '.' and '.' segments and allowing paths above the root.\n *\n * @param path - The path to normalize.\n * @param allowAboveRoot - Whether to allow the resulting path to be above the root directory.\n * @returns the normalized path string.\n */\nfunction normalizeString(path: string, allowAboveRoot: boolean) {\n let res = \"\";\n let lastSegmentLength = 0;\n let lastSlash = -1;\n let dots = 0;\n let char: string | null = null;\n for (let index = 0; index <= path.length; ++index) {\n if (index < path.length) {\n // casted because we know it exists thanks to the length check\n char = path[index] as string;\n } else if (char === \"/\") {\n break;\n } else {\n char = \"/\";\n }\n if (char === \"/\") {\n if (lastSlash === index - 1 || dots === 1) {\n // NOOP\n } else if (dots === 2) {\n if (\n res.length < 2 ||\n lastSegmentLength !== 2 ||\n res[res.length - 1] !== \".\" ||\n res[res.length - 2] !== \".\"\n ) {\n if (res.length > 2) {\n const lastSlashIndex = res.lastIndexOf(\"/\");\n if (lastSlashIndex === -1) {\n res = \"\";\n lastSegmentLength = 0;\n } else {\n res = res.slice(0, lastSlashIndex);\n lastSegmentLength = res.length - 1 - res.lastIndexOf(\"/\");\n }\n lastSlash = index;\n dots = 0;\n continue;\n } else if (res.length > 0) {\n res = \"\";\n lastSegmentLength = 0;\n lastSlash = index;\n dots = 0;\n continue;\n }\n }\n if (allowAboveRoot) {\n res += res.length > 0 ? \"/..\" : \"..\";\n lastSegmentLength = 2;\n }\n } else {\n if (res.length > 0) {\n res += `/${path.slice(lastSlash + 1, index)}`;\n } else {\n res = path.slice(lastSlash + 1, index);\n }\n lastSegmentLength = index - lastSlash - 1;\n }\n lastSlash = index;\n dots = 0;\n } else if (char === \".\" && dots !== -1) {\n ++dots;\n } else {\n dots = -1;\n }\n }\n return res;\n}\n"],"mappings":"yIA0BA,SAAS,EAAqB,EAAQ,GAAI,CAIxC,OAHK,GAGE,EACJ,QAAQ,MAAO,IAAI,CACnB,QAAQ,EAA0B,GAAK,EAAE,aAAa,CAAC,CAG5D,SAAS,EAAa,EAAe,CACnC,GAAI,CAAC,GAAQ,EAAK,SAAW,EAC3B,MAAO,IAIT,EAAO,EAAqB,EAAK,CAEjC,IAAM,EAAY,EAAK,MAAM,EAAU,CACjC,EAAiB,EAAW,EAAK,CACjC,EAAoB,EAAK,EAAK,OAAS,KAAO,IAyBpD,MAtBA,GAAO,EAAgB,EAAM,CAAC,EAAe,CAEzC,EAAK,SAAW,EACd,EACK,IAEF,EAAoB,KAAO,KAEhC,IACF,GAAQ,KAEN,EAAmB,KAAK,EAAK,GAC/B,GAAQ,KAGN,EACG,EAGE,KAAK,IAFH,OAAO,IAKX,GAAkB,CAAC,EAAW,EAAK,CAAG,IAAI,IAAS,GAU5D,SAAgB,EAAU,GAAG,EAA4B,CACvD,IAAI,EAAO,GAEX,IAAK,IAAM,KAAO,EACX,KAGL,GAAI,EAAK,OAAS,EAAG,CACnB,IAAM,EAAe,EAAK,EAAK,OAAS,KAAO,IACzC,EAAa,EAAI,KAAO,IACjB,GAAgB,EAE3B,GAAQ,EAAI,MAAM,EAAE,CAEpB,GAAQ,GAAgB,EAAa,EAAM,IAAI,SAGjD,GAAQ,EAIZ,OAAO,EAAa,EAAK,CAY3B,SAAS,EAAgB,EAAc,EAAyB,CAC9D,IAAI,EAAM,GACN,EAAoB,EACpB,EAAY,GACZ,EAAO,EACPA,EAAsB,KAC1B,IAAK,IAAI,EAAQ,EAAG,GAAS,EAAK,OAAQ,EAAE,EAAO,CACjD,GAAI,EAAQ,EAAK,OAEf,EAAO,EAAK,WACH,IAAS,IAClB,WAEA,EAAO,IAET,GAAI,IAAS,IAAK,CAChB,GAAI,MAAc,EAAQ,GAAK,IAAS,GAAG,GAEhC,IAAS,EAAG,CACrB,GACE,EAAI,OAAS,GACb,IAAsB,GACtB,EAAI,EAAI,OAAS,KAAO,KACxB,EAAI,EAAI,OAAS,KAAO,QAEpB,EAAI,OAAS,EAAG,CAClB,IAAM,EAAiB,EAAI,YAAY,IAAI,CACvC,IAAmB,IACrB,EAAM,GACN,EAAoB,IAEpB,EAAM,EAAI,MAAM,EAAG,EAAe,CAClC,EAAoB,EAAI,OAAS,EAAI,EAAI,YAAY,IAAI,EAE3D,EAAY,EACZ,EAAO,EACP,iBACS,EAAI,OAAS,EAAG,CACzB,EAAM,GACN,EAAoB,EACpB,EAAY,EACZ,EAAO,EACP,UAGA,IACF,GAAO,EAAI,OAAS,EAAI,MAAQ,KAChC,EAAoB,QAGlB,EAAI,OAAS,EACf,GAAO,IAAI,EAAK,MAAM,EAAY,EAAG,EAAM,GAE3C,EAAM,EAAK,MAAM,EAAY,EAAG,EAAM,CAExC,EAAoB,EAAQ,EAAY,EAE1C,EAAY,EACZ,EAAO,OACE,IAAS,KAAO,IAAS,GAClC,EAAE,EAEF,EAAO,GAGX,OAAO"}
@@ -0,0 +1 @@
1
+ const e=/^[A-Z]:\//i,t=/^[A-Z]:$/i,n=/^[/\\]{2}/,r=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^~[/\\]|^[A-Z]:[/\\]/i;exports.ABSOLUTE_PATH_REGEX=r,exports.DRIVE_LETTER_REGEX=t,exports.DRIVE_LETTER_START_REGEX=e,exports.UNC_REGEX=n;
@@ -0,0 +1,2 @@
1
+ const e=/^[A-Z]:\//i,t=/^[A-Z]:$/i,n=/^[/\\]{2}/,r=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^~[/\\]|^[A-Z]:[/\\]/i;export{r as ABSOLUTE_PATH_REGEX,t as DRIVE_LETTER_REGEX,e as DRIVE_LETTER_START_REGEX,n as UNC_REGEX};
2
+ //# sourceMappingURL=regex.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"regex.mjs","names":[],"sources":["../../../../path/src/regex.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport const DRIVE_LETTER_START_REGEX = /^[A-Z]:\\//i;\nexport const DRIVE_LETTER_REGEX = /^[A-Z]:$/i;\n\nexport const UNC_REGEX = /^[/\\\\]{2}/;\n\nexport const ABSOLUTE_PATH_REGEX =\n /^[/\\\\](?![/\\\\])|^[/\\\\]{2}(?!\\.)|^~[/\\\\]|^[A-Z]:[/\\\\]/i;\n\nexport const ROOT_FOLDER_REGEX = /^\\/([A-Z]:)?$/i;\n\nexport const FILE_EXTENSION_REGEX = /\\.[0-9a-z]+$/i;\n\nexport const PACKAGE_PATH_REGEX = /^@\\w+\\/.*$/;\nexport const NPM_SCOPED_PACKAGE_REGEX = /^(?:@[\\w-]+\\/)?[\\w-]+$/;\n"],"mappings":"AAkBA,MAAa,EAA2B,aAC3B,EAAqB,YAErB,EAAY,YAEZ,EACX"}
@@ -0,0 +1 @@
1
+ function e(e){return e.startsWith(`\\\\?\\`)?e:e.replace(/\\/g,`/`)}exports.slash=e;
@@ -0,0 +1,2 @@
1
+ function e(e){return e.startsWith(`\\\\?\\`)?e:e.replace(/\\/g,`/`)}export{e as slash};
2
+ //# sourceMappingURL=slash.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slash.mjs","names":[],"sources":["../../../../path/src/slash.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { isAbsolutePath } from \"./is-type\";\n\n/**\n * Replace backslash to slash\n *\n * @param path - The string to replace\n * @returns The string with replaced backslashes\n */\nexport function slash(path: string) {\n if (path.startsWith(\"\\\\\\\\?\\\\\")) {\n return path;\n }\n\n return path.replace(/\\\\/g, \"/\");\n}\n\n/**\n * Replace backslash to slash and remove unneeded leading and trailing slashes\n *\n * @param path - The string to replace\n * @returns The string with replaced backslashes\n */\nexport function formatSlash(path: string) {\n const formatted = slash(path);\n\n return isAbsolutePath(formatted)\n ? formatted.replace(/\\/+$/g, \"\")\n : formatted.replace(/^\\.\\//g, \"\").replace(/\\/+$/g, \"\");\n}\n"],"mappings":"AA0BA,SAAgB,EAAM,EAAc,CAKlC,OAJI,EAAK,WAAW,UAAU,CACrB,EAGF,EAAK,QAAQ,MAAO,IAAI"}
@@ -1 +1 @@
1
- const e=require(`./providers-B9xVKxf9.cjs`);exports.provider=e.t,exports.providerInfo=e.n;
1
+ const e=[[`APPVEYOR`],[`AWS_AMPLIFY`,`AWS_APP_ID`,{ci:!0}],[`AZURE_PIPELINES`,`SYSTEM_TEAMFOUNDATIONCOLLECTIONURI`],[`AZURE_STATIC`,`INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN`],[`APPCIRCLE`,`AC_APPCIRCLE`],[`BAMBOO`,`bamboo_planKey`],[`BITBUCKET`,`BITBUCKET_COMMIT`],[`BITRISE`,`BITRISE_IO`],[`BUDDY`,`BUDDY_WORKSPACE_ID`],[`BUILDKITE`],[`CIRCLE`,`CIRCLECI`],[`CIRRUS`,`CIRRUS_CI`],[`CLOUDFLARE_PAGES`,`CF_PAGES`,{ci:!0}],[`CODEBUILD`,`CODEBUILD_BUILD_ARN`],[`CODEFRESH`,`CF_BUILD_ID`],[`DRONE`],[`DRONE`,`DRONE_BUILD_EVENT`],[`DSARI`],[`GITHUB_ACTIONS`],[`GITLAB`,`GITLAB_CI`],[`GITLAB`,`CI_MERGE_REQUEST_ID`],[`GOCD`,`GO_PIPELINE_LABEL`],[`LAYERCI`],[`HUDSON`,`HUDSON_URL`],[`JENKINS`,`JENKINS_URL`],[`MAGNUM`],[`NETLIFY`],[`NETLIFY`,`NETLIFY_LOCAL`,{ci:!1}],[`NEVERCODE`],[`RENDER`],[`SAIL`,`SAILCI`],[`SEMAPHORE`],[`SCREWDRIVER`],[`SHIPPABLE`],[`SOLANO`,`TDDIUM`],[`STRIDER`],[`TEAMCITY`,`TEAMCITY_VERSION`],[`TRAVIS`],[`VERCEL`,`NOW_BUILDER`],[`VERCEL`,`VERCEL`,{ci:!1}],[`VERCEL`,`VERCEL_ENV`,{ci:!1}],[`APPCENTER`,`APPCENTER_BUILD_ID`],[`CODESANDBOX`,`CODESANDBOX_SSE`,{ci:!1}],[`STACKBLITZ`],[`STORMKIT`],[`CLEAVR`],[`ZEABUR`],[`CODESPHERE`,`CODESPHERE_APP_ID`,{ci:!0}],[`RAILWAY`,`RAILWAY_PROJECT_ID`],[`RAILWAY`,`RAILWAY_SERVICE_ID`],[`DENO-DEPLOY`,`DENO_DEPLOYMENT_ID`],[`FIREBASE_APP_HOSTING`,`FIREBASE_APP_HOSTING`,{ci:!0}]];function t(){if(process?.env)for(let t of e){let e=t[1]||t[0];if(process?.env[e])return{name:t[0].toLowerCase(),...t[2]}}return process?.env?.SHELL===`/bin/jsh`&&process?.versions?.webcontainer?{name:`stackblitz`,ci:!1}:{name:``,ci:!1}}const n=t(),r=n.name;exports.provider=r,exports.providerInfo=n;
@@ -1,2 +1,13 @@
1
- import { i as providerInfo, n as ProviderName, r as provider, t as ProviderInfo } from "./providers-YKl7K1Ek.cjs";
2
- export { ProviderInfo, ProviderName, provider, providerInfo };
1
+ //#region src/providers.d.ts
2
+ type ProviderName = "" | "appveyor" | "aws_amplify" | "azure_pipelines" | "azure_static" | "appcircle" | "bamboo" | "bitbucket" | "bitrise" | "buddy" | "buildkite" | "circle" | "cirrus" | "cloudflare_pages" | "codebuild" | "codefresh" | "drone" | "drone" | "dsari" | "github_actions" | "gitlab" | "gocd" | "layerci" | "hudson" | "jenkins" | "magnum" | "netlify" | "nevercode" | "render" | "sail" | "semaphore" | "screwdriver" | "shippable" | "solano" | "strider" | "teamcity" | "travis" | "vercel" | "appcenter" | "codesandbox" | "stackblitz" | "stormkit" | "cleavr" | "zeabur" | "codesphere" | "railway" | "deno-deploy" | "firebase_app_hosting";
3
+ interface ProviderInfo {
4
+ name: ProviderName;
5
+ ci?: boolean;
6
+ [meta: string]: any;
7
+ }
8
+ /** Current provider info */
9
+ declare const providerInfo: ProviderInfo;
10
+ declare const provider: ProviderName;
11
+ //#endregion
12
+ export { ProviderInfo, ProviderName, provider, providerInfo };
13
+ //# sourceMappingURL=providers.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"providers.d.cts","names":[],"sources":["../src/providers.ts"],"sourcesContent":[],"mappings":";KAoBY,YAAA;AAAA,UA+GK,YAAA,CA/GO;EA+GP,IAAA,EACT,YADqB;EAmChB,EAAA,CAAA,EAAA,OAAA;EACA,CAAA,IAAA,EAAA,MAA0C,CAAA,EAAA,GAAA;;;cAD1C,cAAY;cACZ,UAAU"}
@@ -1,2 +1,13 @@
1
- import { i as providerInfo, n as ProviderName, r as provider, t as ProviderInfo } from "./providers-B2d_hJW2.mjs";
2
- export { ProviderInfo, ProviderName, provider, providerInfo };
1
+ //#region src/providers.d.ts
2
+ type ProviderName = "" | "appveyor" | "aws_amplify" | "azure_pipelines" | "azure_static" | "appcircle" | "bamboo" | "bitbucket" | "bitrise" | "buddy" | "buildkite" | "circle" | "cirrus" | "cloudflare_pages" | "codebuild" | "codefresh" | "drone" | "drone" | "dsari" | "github_actions" | "gitlab" | "gocd" | "layerci" | "hudson" | "jenkins" | "magnum" | "netlify" | "nevercode" | "render" | "sail" | "semaphore" | "screwdriver" | "shippable" | "solano" | "strider" | "teamcity" | "travis" | "vercel" | "appcenter" | "codesandbox" | "stackblitz" | "stormkit" | "cleavr" | "zeabur" | "codesphere" | "railway" | "deno-deploy" | "firebase_app_hosting";
3
+ interface ProviderInfo {
4
+ name: ProviderName;
5
+ ci?: boolean;
6
+ [meta: string]: any;
7
+ }
8
+ /** Current provider info */
9
+ declare const providerInfo: ProviderInfo;
10
+ declare const provider: ProviderName;
11
+ //#endregion
12
+ export { ProviderInfo, ProviderName, provider, providerInfo };
13
+ //# sourceMappingURL=providers.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"providers.d.mts","names":[],"sources":["../src/providers.ts"],"sourcesContent":[],"mappings":";KAoBY,YAAA;AAAA,UA+GK,YAAA,CA/GO;EA+GP,IAAA,EACT,YADqB;EAmChB,EAAA,CAAA,EAAA,OAAA;EACA,CAAA,IAAA,EAAA,MAA0C,CAAA,EAAA,GAAA;;;cAD1C,cAAY;cACZ,UAAU"}
@@ -1 +1,2 @@
1
- import{n as e,t}from"./providers-BUdbSP8f.mjs";export{t as provider,e as providerInfo};
1
+ const e=[[`APPVEYOR`],[`AWS_AMPLIFY`,`AWS_APP_ID`,{ci:!0}],[`AZURE_PIPELINES`,`SYSTEM_TEAMFOUNDATIONCOLLECTIONURI`],[`AZURE_STATIC`,`INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN`],[`APPCIRCLE`,`AC_APPCIRCLE`],[`BAMBOO`,`bamboo_planKey`],[`BITBUCKET`,`BITBUCKET_COMMIT`],[`BITRISE`,`BITRISE_IO`],[`BUDDY`,`BUDDY_WORKSPACE_ID`],[`BUILDKITE`],[`CIRCLE`,`CIRCLECI`],[`CIRRUS`,`CIRRUS_CI`],[`CLOUDFLARE_PAGES`,`CF_PAGES`,{ci:!0}],[`CODEBUILD`,`CODEBUILD_BUILD_ARN`],[`CODEFRESH`,`CF_BUILD_ID`],[`DRONE`],[`DRONE`,`DRONE_BUILD_EVENT`],[`DSARI`],[`GITHUB_ACTIONS`],[`GITLAB`,`GITLAB_CI`],[`GITLAB`,`CI_MERGE_REQUEST_ID`],[`GOCD`,`GO_PIPELINE_LABEL`],[`LAYERCI`],[`HUDSON`,`HUDSON_URL`],[`JENKINS`,`JENKINS_URL`],[`MAGNUM`],[`NETLIFY`],[`NETLIFY`,`NETLIFY_LOCAL`,{ci:!1}],[`NEVERCODE`],[`RENDER`],[`SAIL`,`SAILCI`],[`SEMAPHORE`],[`SCREWDRIVER`],[`SHIPPABLE`],[`SOLANO`,`TDDIUM`],[`STRIDER`],[`TEAMCITY`,`TEAMCITY_VERSION`],[`TRAVIS`],[`VERCEL`,`NOW_BUILDER`],[`VERCEL`,`VERCEL`,{ci:!1}],[`VERCEL`,`VERCEL_ENV`,{ci:!1}],[`APPCENTER`,`APPCENTER_BUILD_ID`],[`CODESANDBOX`,`CODESANDBOX_SSE`,{ci:!1}],[`STACKBLITZ`],[`STORMKIT`],[`CLEAVR`],[`ZEABUR`],[`CODESPHERE`,`CODESPHERE_APP_ID`,{ci:!0}],[`RAILWAY`,`RAILWAY_PROJECT_ID`],[`RAILWAY`,`RAILWAY_SERVICE_ID`],[`DENO-DEPLOY`,`DENO_DEPLOYMENT_ID`],[`FIREBASE_APP_HOSTING`,`FIREBASE_APP_HOSTING`,{ci:!0}]];function t(){if(process?.env)for(let t of e){let e=t[1]||t[0];if(process?.env[e])return{name:t[0].toLowerCase(),...t[2]}}return process?.env?.SHELL===`/bin/jsh`&&process?.versions?.webcontainer?{name:`stackblitz`,ci:!1}:{name:``,ci:!1}}const n=t(),r=n.name;export{r as provider,n as providerInfo};
2
+ //# sourceMappingURL=providers.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"providers.mjs","names":["providers: InternalProvider[]","provider","provider: ProviderName"],"sources":["../src/providers.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\n// Reference: https://github.com/watson/ci-info/blob/v3.2.0/vendors.json\n\nexport type ProviderName =\n | \"\"\n | \"appveyor\"\n | \"aws_amplify\"\n | \"azure_pipelines\"\n | \"azure_static\"\n | \"appcircle\"\n | \"bamboo\"\n | \"bitbucket\"\n | \"bitrise\"\n | \"buddy\"\n | \"buildkite\"\n | \"circle\"\n | \"cirrus\"\n | \"cloudflare_pages\"\n | \"codebuild\"\n | \"codefresh\"\n | \"drone\"\n | \"drone\"\n | \"dsari\"\n | \"github_actions\"\n | \"gitlab\"\n | \"gocd\"\n | \"layerci\"\n | \"hudson\"\n | \"jenkins\"\n | \"magnum\"\n | \"netlify\"\n | \"nevercode\"\n | \"render\"\n | \"sail\"\n | \"semaphore\"\n | \"screwdriver\"\n | \"shippable\"\n | \"solano\"\n | \"strider\"\n | \"teamcity\"\n | \"travis\"\n | \"vercel\"\n | \"appcenter\"\n | \"codesandbox\"\n | \"stackblitz\"\n | \"stormkit\"\n | \"cleavr\"\n | \"zeabur\"\n | \"codesphere\"\n | \"railway\"\n | \"deno-deploy\"\n | \"firebase_app_hosting\";\n\ntype InternalProvider = [\n providerName: Uppercase<ProviderName>,\n envName?: string,\n meta?: Record<string, any>\n];\n\nconst providers: InternalProvider[] = [\n [\"APPVEYOR\"],\n [\"AWS_AMPLIFY\", \"AWS_APP_ID\", { ci: true }],\n [\"AZURE_PIPELINES\", \"SYSTEM_TEAMFOUNDATIONCOLLECTIONURI\"],\n [\"AZURE_STATIC\", \"INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN\"],\n [\"APPCIRCLE\", \"AC_APPCIRCLE\"],\n [\"BAMBOO\", \"bamboo_planKey\"],\n [\"BITBUCKET\", \"BITBUCKET_COMMIT\"],\n [\"BITRISE\", \"BITRISE_IO\"],\n [\"BUDDY\", \"BUDDY_WORKSPACE_ID\"],\n [\"BUILDKITE\"],\n [\"CIRCLE\", \"CIRCLECI\"],\n [\"CIRRUS\", \"CIRRUS_CI\"],\n [\"CLOUDFLARE_PAGES\", \"CF_PAGES\", { ci: true }],\n [\"CODEBUILD\", \"CODEBUILD_BUILD_ARN\"],\n [\"CODEFRESH\", \"CF_BUILD_ID\"],\n [\"DRONE\"],\n [\"DRONE\", \"DRONE_BUILD_EVENT\"],\n [\"DSARI\"],\n [\"GITHUB_ACTIONS\"],\n [\"GITLAB\", \"GITLAB_CI\"],\n [\"GITLAB\", \"CI_MERGE_REQUEST_ID\"],\n [\"GOCD\", \"GO_PIPELINE_LABEL\"],\n [\"LAYERCI\"],\n [\"HUDSON\", \"HUDSON_URL\"],\n [\"JENKINS\", \"JENKINS_URL\"],\n [\"MAGNUM\"],\n [\"NETLIFY\"],\n [\"NETLIFY\", \"NETLIFY_LOCAL\", { ci: false }],\n [\"NEVERCODE\"],\n [\"RENDER\"],\n [\"SAIL\", \"SAILCI\"],\n [\"SEMAPHORE\"],\n [\"SCREWDRIVER\"],\n [\"SHIPPABLE\"],\n [\"SOLANO\", \"TDDIUM\"],\n [\"STRIDER\"],\n [\"TEAMCITY\", \"TEAMCITY_VERSION\"],\n [\"TRAVIS\"],\n [\"VERCEL\", \"NOW_BUILDER\"],\n [\"VERCEL\", \"VERCEL\", { ci: false }],\n [\"VERCEL\", \"VERCEL_ENV\", { ci: false }],\n [\"APPCENTER\", \"APPCENTER_BUILD_ID\"],\n [\"CODESANDBOX\", \"CODESANDBOX_SSE\", { ci: false }],\n [\"STACKBLITZ\"],\n [\"STORMKIT\"],\n [\"CLEAVR\"],\n [\"ZEABUR\"],\n [\"CODESPHERE\", \"CODESPHERE_APP_ID\", { ci: true }],\n [\"RAILWAY\", \"RAILWAY_PROJECT_ID\"],\n [\"RAILWAY\", \"RAILWAY_SERVICE_ID\"],\n [\"DENO-DEPLOY\", \"DENO_DEPLOYMENT_ID\"],\n [\"FIREBASE_APP_HOSTING\", \"FIREBASE_APP_HOSTING\", { ci: true }]\n];\n\nexport interface ProviderInfo {\n name: ProviderName;\n ci?: boolean;\n [meta: string]: any;\n}\n\nfunction detectProvider(): ProviderInfo {\n // Based on env\n if (process?.env) {\n for (const provider of providers) {\n const envName = provider[1] || provider[0];\n if (process?.env[envName]) {\n return {\n name: provider[0].toLowerCase(),\n ...(provider[2] as any)\n };\n }\n }\n }\n\n // Stackblitz / Webcontainer\n if (process?.env?.SHELL === \"/bin/jsh\" && process?.versions?.webcontainer) {\n return {\n name: \"stackblitz\",\n ci: false\n };\n }\n\n return {\n name: \"\",\n ci: false\n };\n}\n\n/** Current provider info */\nexport const providerInfo = detectProvider();\nexport const provider: ProviderName = providerInfo.name;\n"],"mappings":"AA4EA,MAAMA,EAAgC,CACpC,CAAC,WAAW,CACZ,CAAC,cAAe,aAAc,CAAE,GAAI,GAAM,CAAC,CAC3C,CAAC,kBAAmB,qCAAqC,CACzD,CAAC,eAAgB,wCAAwC,CACzD,CAAC,YAAa,eAAe,CAC7B,CAAC,SAAU,iBAAiB,CAC5B,CAAC,YAAa,mBAAmB,CACjC,CAAC,UAAW,aAAa,CACzB,CAAC,QAAS,qBAAqB,CAC/B,CAAC,YAAY,CACb,CAAC,SAAU,WAAW,CACtB,CAAC,SAAU,YAAY,CACvB,CAAC,mBAAoB,WAAY,CAAE,GAAI,GAAM,CAAC,CAC9C,CAAC,YAAa,sBAAsB,CACpC,CAAC,YAAa,cAAc,CAC5B,CAAC,QAAQ,CACT,CAAC,QAAS,oBAAoB,CAC9B,CAAC,QAAQ,CACT,CAAC,iBAAiB,CAClB,CAAC,SAAU,YAAY,CACvB,CAAC,SAAU,sBAAsB,CACjC,CAAC,OAAQ,oBAAoB,CAC7B,CAAC,UAAU,CACX,CAAC,SAAU,aAAa,CACxB,CAAC,UAAW,cAAc,CAC1B,CAAC,SAAS,CACV,CAAC,UAAU,CACX,CAAC,UAAW,gBAAiB,CAAE,GAAI,GAAO,CAAC,CAC3C,CAAC,YAAY,CACb,CAAC,SAAS,CACV,CAAC,OAAQ,SAAS,CAClB,CAAC,YAAY,CACb,CAAC,cAAc,CACf,CAAC,YAAY,CACb,CAAC,SAAU,SAAS,CACpB,CAAC,UAAU,CACX,CAAC,WAAY,mBAAmB,CAChC,CAAC,SAAS,CACV,CAAC,SAAU,cAAc,CACzB,CAAC,SAAU,SAAU,CAAE,GAAI,GAAO,CAAC,CACnC,CAAC,SAAU,aAAc,CAAE,GAAI,GAAO,CAAC,CACvC,CAAC,YAAa,qBAAqB,CACnC,CAAC,cAAe,kBAAmB,CAAE,GAAI,GAAO,CAAC,CACjD,CAAC,aAAa,CACd,CAAC,WAAW,CACZ,CAAC,SAAS,CACV,CAAC,SAAS,CACV,CAAC,aAAc,oBAAqB,CAAE,GAAI,GAAM,CAAC,CACjD,CAAC,UAAW,qBAAqB,CACjC,CAAC,UAAW,qBAAqB,CACjC,CAAC,cAAe,qBAAqB,CACrC,CAAC,uBAAwB,uBAAwB,CAAE,GAAI,GAAM,CAAC,CAC/D,CAQD,SAAS,GAA+B,CAEtC,GAAI,SAAS,IACX,IAAK,IAAMC,KAAY,EAAW,CAChC,IAAM,EAAUA,EAAS,IAAMA,EAAS,GACxC,GAAI,SAAS,IAAI,GACf,MAAO,CACL,KAAMA,EAAS,GAAG,aAAa,CAC/B,GAAIA,EAAS,GACd,CAaP,OAPI,SAAS,KAAK,QAAU,YAAc,SAAS,UAAU,aACpD,CACL,KAAM,aACN,GAAI,GACL,CAGI,CACL,KAAM,GACN,GAAI,GACL,CAIH,MAAa,EAAe,GAAgB,CAC/BC,EAAyB,EAAa"}
@@ -1 +1 @@
1
- const e=require(`./runtime-checks-NIf4Bpj9.cjs`);exports.isBun=e.t,exports.isDeno=e.n,exports.isEdgeLight=e.r,exports.isFastly=e.i,exports.isNetlify=e.a,exports.isNode=e.o,exports.isRuntimeClient=e.s,exports.isRuntimeServer=e.c,exports.isWorkerd=e.l,exports.runtime=e.u,exports.runtimeInfo=e.d;
1
+ const e=process?.release?.name===`node`,t=!!Bun||!!process?.versions?.bun,n=!!Deno,r=!!fastly,i=!!Netlify,a=!!EdgeRuntime,o=navigator?.userAgent===`Cloudflare-Workers`,s=e||t||n||r||i||a||o,c=!s,l=[[i,`netlify`],[a,`edge-light`],[o,`workerd`],[r,`fastly`],[n,`deno`],[t,`bun`],[e,`node`]];function u(){let e=l.find(e=>e[0]);if(e)return{name:e[1]}}const d=u(),f=d?.name||``;exports.isBun=t,exports.isDeno=n,exports.isEdgeLight=a,exports.isFastly=r,exports.isNetlify=i,exports.isNode=e,exports.isRuntimeClient=c,exports.isRuntimeServer=s,exports.isWorkerd=o,exports.runtime=f,exports.runtimeInfo=d;
@@ -1,2 +1,51 @@
1
- import { a as isEdgeLight, c as isNode, d as isWorkerd, f as runtime, i as isDeno, l as isRuntimeClient, n as RuntimeName, o as isFastly, p as runtimeInfo, r as isBun, s as isNetlify, t as RuntimeInfo, u as isRuntimeServer } from "./runtime-checks-Dc2IKXYE.cjs";
2
- export { RuntimeInfo, RuntimeName, isBun, isDeno, isEdgeLight, isFastly, isNetlify, isNode, isRuntimeClient, isRuntimeServer, isWorkerd, runtime, runtimeInfo };
1
+ //#region src/runtime-checks.d.ts
2
+ type RuntimeName = "workerd" | "deno" | "netlify" | "node" | "bun" | "edge-light" | "fastly" | "";
3
+ interface RuntimeInfo {
4
+ name: RuntimeName;
5
+ }
6
+ /**
7
+ * Indicates if running in Node.js or a Node.js compatible runtime.
8
+ *
9
+ * **Note:** When running code in Bun and Deno with Node.js compatibility mode, `isNode` flag will be also `true`, indicating running in a Node.js compatible runtime.
10
+ *
11
+ * Use `runtime === "node"` if you need strict check for Node.js runtime.
12
+ */
13
+ declare const isNode: boolean;
14
+ /**
15
+ * Indicates if running in Bun runtime.
16
+ */
17
+ declare const isBun: boolean;
18
+ /**
19
+ * Indicates if running in Deno runtime.
20
+ */
21
+ declare const isDeno: boolean;
22
+ /**
23
+ * Indicates if running in Fastly runtime.
24
+ */
25
+ declare const isFastly: boolean;
26
+ /**
27
+ * Indicates if running in Netlify runtime.
28
+ */
29
+ declare const isNetlify: boolean;
30
+ /**
31
+ *
32
+ * Indicates if running in EdgeLight (Vercel Edge) runtime.
33
+ */
34
+ declare const isEdgeLight: boolean;
35
+ /**
36
+ * Indicates if running in Cloudflare Workers runtime.
37
+ */
38
+ declare const isWorkerd: boolean;
39
+ /**
40
+ * Indicates if the code is running on the server-side
41
+ */
42
+ declare const isRuntimeServer: boolean;
43
+ /**
44
+ * Indicates if the code is running in the browser (and not on the server).
45
+ */
46
+ declare const isRuntimeClient: boolean;
47
+ declare const runtimeInfo: RuntimeInfo | undefined;
48
+ declare const runtime: RuntimeName;
49
+ //#endregion
50
+ export { RuntimeInfo, RuntimeName, isBun, isDeno, isEdgeLight, isFastly, isNetlify, isNode, isRuntimeClient, isRuntimeServer, isWorkerd, runtime, runtimeInfo };
51
+ //# sourceMappingURL=runtime-checks.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-checks.d.cts","names":[],"sources":["../src/runtime-checks.ts"],"sourcesContent":[],"mappings":";KAmBY,WAAA;AAAA,UAUK,WAAA,CAVM;EAUN,IAAA,EACT,WADoB;AAW5B;AAKA;AAKA;AAKA;AAKA;AAMA;AAMA;AAKA;AAYa,cAjDA,MAiDkC,EAAA,OAAA;AAwB/C;AAEA;;cAtEa;;;;cAKA;;;;cAKA;;;;cAKA;;;;;cAMA;;;;cAMA;;;;cAKA;;;;cAYA;cAwBA,aAAW;cAEX,SAAS"}
@@ -1,2 +1,51 @@
1
- import { a as isEdgeLight, c as isNode, d as isWorkerd, f as runtime, i as isDeno, l as isRuntimeClient, n as RuntimeName, o as isFastly, p as runtimeInfo, r as isBun, s as isNetlify, t as RuntimeInfo, u as isRuntimeServer } from "./runtime-checks-Bka6c_Kr.mjs";
2
- export { RuntimeInfo, RuntimeName, isBun, isDeno, isEdgeLight, isFastly, isNetlify, isNode, isRuntimeClient, isRuntimeServer, isWorkerd, runtime, runtimeInfo };
1
+ //#region src/runtime-checks.d.ts
2
+ type RuntimeName = "workerd" | "deno" | "netlify" | "node" | "bun" | "edge-light" | "fastly" | "";
3
+ interface RuntimeInfo {
4
+ name: RuntimeName;
5
+ }
6
+ /**
7
+ * Indicates if running in Node.js or a Node.js compatible runtime.
8
+ *
9
+ * **Note:** When running code in Bun and Deno with Node.js compatibility mode, `isNode` flag will be also `true`, indicating running in a Node.js compatible runtime.
10
+ *
11
+ * Use `runtime === "node"` if you need strict check for Node.js runtime.
12
+ */
13
+ declare const isNode: boolean;
14
+ /**
15
+ * Indicates if running in Bun runtime.
16
+ */
17
+ declare const isBun: boolean;
18
+ /**
19
+ * Indicates if running in Deno runtime.
20
+ */
21
+ declare const isDeno: boolean;
22
+ /**
23
+ * Indicates if running in Fastly runtime.
24
+ */
25
+ declare const isFastly: boolean;
26
+ /**
27
+ * Indicates if running in Netlify runtime.
28
+ */
29
+ declare const isNetlify: boolean;
30
+ /**
31
+ *
32
+ * Indicates if running in EdgeLight (Vercel Edge) runtime.
33
+ */
34
+ declare const isEdgeLight: boolean;
35
+ /**
36
+ * Indicates if running in Cloudflare Workers runtime.
37
+ */
38
+ declare const isWorkerd: boolean;
39
+ /**
40
+ * Indicates if the code is running on the server-side
41
+ */
42
+ declare const isRuntimeServer: boolean;
43
+ /**
44
+ * Indicates if the code is running in the browser (and not on the server).
45
+ */
46
+ declare const isRuntimeClient: boolean;
47
+ declare const runtimeInfo: RuntimeInfo | undefined;
48
+ declare const runtime: RuntimeName;
49
+ //#endregion
50
+ export { RuntimeInfo, RuntimeName, isBun, isDeno, isEdgeLight, isFastly, isNetlify, isNode, isRuntimeClient, isRuntimeServer, isWorkerd, runtime, runtimeInfo };
51
+ //# sourceMappingURL=runtime-checks.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-checks.d.mts","names":[],"sources":["../src/runtime-checks.ts"],"sourcesContent":[],"mappings":";KAmBY,WAAA;AAAA,UAUK,WAAA,CAVM;EAUN,IAAA,EACT,WADoB;AAW5B;AAKA;AAKA;AAKA;AAKA;AAMA;AAMA;AAKA;AAYa,cAjDA,MAiDkC,EAAA,OAAA;AAwB/C;AAEA;;cAtEa;;;;cAKA;;;;cAKA;;;;cAKA;;;;;cAMA;;;;cAMA;;;;cAKA;;;;cAYA;cAwBA,aAAW;cAEX,SAAS"}
@@ -1 +1,2 @@
1
- import{a as e,c as t,d as n,i as r,l as i,n as a,o,r as s,s as c,t as l,u}from"./runtime-checks-DGhXcN9g.mjs";export{l as isBun,a as isDeno,s as isEdgeLight,r as isFastly,e as isNetlify,o as isNode,c as isRuntimeClient,t as isRuntimeServer,i as isWorkerd,u as runtime,n as runtimeInfo};
1
+ const e=process?.release?.name===`node`,t=!!Bun||!!process?.versions?.bun,n=!!Deno,r=!!fastly,i=!!Netlify,a=!!EdgeRuntime,o=navigator?.userAgent===`Cloudflare-Workers`,s=e||t||n||r||i||a||o,c=!s,l=[[i,`netlify`],[a,`edge-light`],[o,`workerd`],[r,`fastly`],[n,`deno`],[t,`bun`],[e,`node`]];function u(){let e=l.find(e=>e[0]);if(e)return{name:e[1]}}const d=u(),f=d?.name||``;export{t as isBun,n as isDeno,a as isEdgeLight,r as isFastly,i as isNetlify,e as isNode,c as isRuntimeClient,s as isRuntimeServer,o as isWorkerd,f as runtime,d as runtimeInfo};
2
+ //# sourceMappingURL=runtime-checks.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-checks.mjs","names":["runtimeChecks: [boolean, RuntimeName][]","runtime: RuntimeName"],"sources":["../src/runtime-checks.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\n// https://runtime-keys.proposal.wintercg.org/\nexport type RuntimeName =\n | \"workerd\"\n | \"deno\"\n | \"netlify\"\n | \"node\"\n | \"bun\"\n | \"edge-light\"\n | \"fastly\"\n | \"\";\n\nexport interface RuntimeInfo {\n name: RuntimeName;\n}\n\n/**\n * Indicates if running in Node.js or a Node.js compatible runtime.\n *\n * **Note:** When running code in Bun and Deno with Node.js compatibility mode, `isNode` flag will be also `true`, indicating running in a Node.js compatible runtime.\n *\n * Use `runtime === \"node\"` if you need strict check for Node.js runtime.\n */\nexport const isNode = process?.release?.name === \"node\";\n\n/**\n * Indicates if running in Bun runtime.\n */\nexport const isBun = Boolean(Bun) || Boolean(process?.versions?.bun);\n\n/**\n * Indicates if running in Deno runtime.\n */\nexport const isDeno = Boolean(Deno);\n\n/**\n * Indicates if running in Fastly runtime.\n */\nexport const isFastly = Boolean(fastly);\n\n/**\n * Indicates if running in Netlify runtime.\n */\nexport const isNetlify = Boolean(Netlify);\n\n/**\n *\n * Indicates if running in EdgeLight (Vercel Edge) runtime.\n */\nexport const isEdgeLight = Boolean(EdgeRuntime);\n// https://developers.cloudflare.com/workers/runtime-apis/web-standards/#navigatoruseragent\n\n/**\n * Indicates if running in Cloudflare Workers runtime.\n */\nexport const isWorkerd = navigator?.userAgent === \"Cloudflare-Workers\";\n\n/**\n * Indicates if the code is running on the server-side\n */\nexport const isRuntimeServer =\n isNode ||\n isBun ||\n isDeno ||\n isFastly ||\n isNetlify ||\n isEdgeLight ||\n isWorkerd;\n\n/**\n * Indicates if the code is running in the browser (and not on the server).\n */\nexport const isRuntimeClient = !isRuntimeServer;\n\nconst runtimeChecks: [boolean, RuntimeName][] = [\n [isNetlify, \"netlify\"],\n [isEdgeLight, \"edge-light\"],\n [isWorkerd, \"workerd\"],\n [isFastly, \"fastly\"],\n [isDeno, \"deno\"],\n [isBun, \"bun\"],\n [isNode, \"node\"]\n];\n\nfunction detectRuntime(): RuntimeInfo | undefined {\n const detectedRuntime = runtimeChecks.find(check => check[0]);\n\n if (detectedRuntime) {\n const name = detectedRuntime[1];\n\n return { name };\n }\n\n return undefined;\n}\n\nexport const runtimeInfo = detectRuntime();\n\nexport const runtime: RuntimeName = runtimeInfo?.name || \"\";\n"],"mappings":"AAwCA,MAAa,EAAS,SAAS,SAAS,OAAS,OAKpC,EAAQ,EAAQ,KAAQ,EAAQ,SAAS,UAAU,IAKnD,EAAS,EAAQ,KAKjB,EAAW,EAAQ,OAKnB,EAAY,EAAQ,QAMpB,EAAc,EAAQ,YAMtB,EAAY,WAAW,YAAc,qBAKrC,EACX,GACA,GACA,GACA,GACA,GACA,GACA,EAKW,EAAkB,CAAC,EAE1BA,EAA0C,CAC9C,CAAC,EAAW,UAAU,CACtB,CAAC,EAAa,aAAa,CAC3B,CAAC,EAAW,UAAU,CACtB,CAAC,EAAU,SAAS,CACpB,CAAC,EAAQ,OAAO,CAChB,CAAC,EAAO,MAAM,CACd,CAAC,EAAQ,OAAO,CACjB,CAED,SAAS,GAAyC,CAChD,IAAM,EAAkB,EAAc,KAAK,GAAS,EAAM,GAAG,CAE7D,GAAI,EAGF,MAAO,CAAE,KAFI,EAAgB,GAEd,CAMnB,MAAa,EAAc,GAAe,CAE7BC,EAAuB,GAAa,MAAQ"}
@@ -0,0 +1 @@
1
+ const e={"2D":{description:`Two-Dimensional`,display:`2d`},"3D":{description:`Three-Dimensional`,display:`3d`},"4D":{description:`Four-Dimensional`,display:`4d`},"5G":{description:`Fifth Generation (mobile networks)`},"6G":{description:`Sixth Generation (mobile networks)`},"7G":{description:`Seventh Generation (mobile networks)`},"8G":{description:`Eighth Generation (mobile networks)`},ACID:{description:`Atomicity, Consistency, Isolation, Durability`},AITA:{description:`Am I The Asshole`},AES:{description:`Advanced Encryption Standard`},AI:{description:`Artificial Intelligence`},AJAX:{description:`Asynchronous JavaScript and XML`},API:{description:`Application Programming Interface`},AR:{description:`Augmented Reality`},ASCII:{description:`American Standard Code for Information Interchange`},ATF:{description:`Bureau of Alcohol, Tobacco, Firearms and Explosives`},ATM:{description:`Automated Teller Machine`},B2B:{description:`Business to Business`},B2C:{description:`Business to Consumer`},BATFE:{description:`Bureau of Alcohol, Tobacco, Firearms and Explosives`},BFF:{description:`Best Friends Forever`},BFFS:{description:`Best Friends Forever (plural)`},BI:{description:`Business Intelligence`},BIOS:{description:`Basic Input/Output System`},BGP:{description:`Border Gateway Protocol`},BOM:{description:`Bill of Materials / Byte Order Mark`},BSON:{description:`Binary JSON`},BYOD:{description:`Bring Your Own Device`},C2C:{description:`Consumer to Consumer`},CAGR:{description:`Compound Annual Growth Rate`},CAPTCHA:{description:`Completely Automated Public Turing test to tell Computers and Humans Apart`},CCTV:{description:`Closed-Circuit Television`},CD:{description:`Continuous Delivery / Compact Disc`},CDN:{description:`Content Delivery Network`},CDP:{description:`Customer Data Platform`},CDT:{description:`Central Daylight Time`},CIA:{description:`Central Intelligence Agency`},CI:{description:`Continuous Integration`},"CI/CD":{description:`Continuous Integration/Continuous Delivery`},CIAM:{description:`Customer Identity and Access Management`},CICD:{description:`Continuous Integration Continuous Delivery`,display:`CI/CD`},CLI:{description:`Command Line Interface`},CMDB:{description:`Configuration Management Database`},CORS:{description:`Cross-Origin Resource Sharing`},CPA:{description:`Certified Public Accountant`},CPU:{description:`Central Processing Unit`},CRUD:{description:`Create, Read, Update, Delete`},CSR:{description:`Certificate Signing Request / Corporate Social Responsibility`},CSS:{description:`Cascading Style Sheets`},CST:{description:`Central Standard Time`},CTA:{description:`Call To Action`},CWD:{description:`Current Working Directory`},CX:{description:`Customer Experience`},DAG:{description:`Directed Acyclic Graph`},DBMS:{description:`Database Management System`},DDOS:{description:`Distributed Denial of Service`,display:`DDoS`},DEA:{description:`Drug Enforcement Administration`},DEVENV:{description:`Devenv`,display:`Devenv`},DEVOPS:{description:`Development Operations`,display:`DevOps`},DHS:{description:`Department of Homeland Security`},DIRENV:{description:`DirEnv`,display:`DirEnv`},DNC:{description:`Democratic National Committee / Do Not Call`},DNS:{description:`Domain Name System`},DNSSEC:{description:`Domain Name System Security Extensions`},DOD:{description:`Department of Defense`,display:`DoD`},DOJ:{description:`Department of Justice`,display:`DoJ`},DOM:{description:`Document Object Model`},DOT:{description:`Department of Transportation`,display:`DoT`},DOTENV:{description:`Dotenv (.env)`,display:`Dotenv`},DR:{description:`Disaster Recovery`},DRM:{description:`Digital Rights Management`},DSN:{description:`Data Source Name`},DWH:{description:`Data Warehouse`},E2E:{description:`End to End`},EAI:{description:`Enterprise Application Integration`},EDT:{description:`Eastern Daylight Time`},EEA:{description:`European Economic Area`},EKS:{description:`Elastic Kubernetes Service`},EOF:{description:`End Of File`},EOD:{description:`End Of Day / Explosive Ordnance Disposal`},EPA:{description:`Environmental Protection Agency`},ER:{description:`Emergency Room / Entity Relationship`},EST:{description:`Eastern Standard Time`},ETC:{description:`Et Cetera`},ETL:{description:`Extract, Transform, Load`},EULA:{description:`End User License Agreement`},FAAS:{description:`Function as a Service`,display:`FaaS`},FAQ:{description:`Frequently Asked Questions`,display:`FAQs`},FAQS:{description:`Frequently Asked Questions`},FBI:{description:`Federal Bureau of Investigation`},FCC:{description:`Federal Communications Commission`},FDA:{description:`Food and Drug Administration`},FIDO:{description:`Fast IDentity Online`},FLOTUS:{description:`First Lady of the United States`},FQDN:{description:`Fully Qualified Domain Name`},FTC:{description:`Federal Trade Commission`},FTP:{description:`File Transfer Protocol`},GC:{description:`Garbage Collection`},GCP:{description:`Google Cloud Platform`},GDPR:{description:`General Data Protection Regulation`},GMT:{description:`Greenwich Mean Time`},GOP:{description:`Grand Old Party`},GPU:{description:`Graphics Processing Unit`},GUID:{description:`Globally Unique Identifier`},GUI:{description:`Graphical User Interface`},GZIP:{description:`GNU Zip`},HCI:{description:`Human Computer Interaction / Hyper-Converged Infrastructure`},HDD:{description:`Hard Disk Drive`},HDFS:{description:`Hadoop Distributed File System`},HHS:{description:`Health and Human Services`},HIPAA:{description:`Health Insurance Portability and Accountability Act`},HMAC:{description:`Hash-based Message Authentication Code`},HOTP:{description:`HMAC-based One-Time Password`},HSM:{description:`Hardware Security Module`},HTML:{description:`HyperText Markup Language`},HTTP:{description:`HyperText Transfer Protocol (HTTP)`},"HTTP/2":{description:`HyperText Transfer Protocol Version 2 (HTTP/2)`},"HTTP/2.0":{description:`HyperText Transfer Protocol Version 2 (HTTP/2)`,display:`HTTP2`},"HTTP/3":{description:`HyperText Transfer Protocol Version 3 (HTTP/3)`},"HTTP/3.0":{description:`HyperText Transfer Protocol Version 3 (HTTP/3)`,display:`HTTP3`},HTTP2:{description:`HyperText Transfer Protocol Version 2 (HTTP/2)`,display:`HTTP2`},"HTTP2.0":{description:`HyperText Transfer Protocol Version 2 (HTTP/2)`,display:`HTTP2`},HTTP3:{description:`HyperText Transfer Protocol Version 3 (HTTP/3)`,display:`HTTP3`},"HTTP3.0":{description:`HyperText Transfer Protocol Version 3 (HTTP/3)`,display:`HTTP3`},HTTPS:{description:`HyperText Transfer Protocol Secure (HTTPS)`},"HTTPS/2":{description:`HyperText Transfer Protocol Secure Version 2 (HTTPS/2)`},"HTTPS/2.0":{description:`HyperText Transfer Protocol Secure Version 2 (HTTPS/2)`,display:`HTTPS2`},"HTTPS/3":{description:`HyperText Transfer Protocol Secure Version 3 (HTTPS/3)`},"HTTPS/3.0":{description:`HyperText Transfer Protocol Secure Version 3 (HTTPS/3)`,display:`HTTPS3`},HTTPS2:{description:`HyperText Transfer Protocol Secure Version 2 (HTTPS/2)`,display:`HTTPS2`},"HTTPS2.0":{description:`HyperText Transfer Protocol Secure Version 2 (HTTPS/2)`,display:`HTTPS2`},HTTPS3:{description:`HyperText Transfer Protocol Secure Version 3 (HTTPS/3)`,display:`HTTPS3`},"HTTPS3.0":{description:`HyperText Transfer Protocol Secure Version 3 (HTTPS/3)`,display:`HTTPS3`},IAAS:{description:`Infrastructure as a Service`,display:`IaaS`},IAM:{description:`Identity and Access Management`},IAMM:{description:`Identity and Access Management and Monitoring`},IAMT:{description:`Identity and Access Management Tool`},ID:{description:`Identifier`,display:`Id`},IFTTT:{description:`If This Then That`},IMAP:{description:`Internet Message Access Protocol`},IO:{description:`Input/Output`},IP:{description:`Internet Protocol`},IPFS:{description:`InterPlanetary File System`},IPS:{description:`Intrusion Prevention System`},ISO:{description:`International Organization for Standardization`},IQ:{description:`Intelligence Quotient`,display:`IQ`},IOT:{description:`Internet of Things`,display:`IoT`},JSON:{description:`JavaScript Object Notation`},JSONP:{description:`JSON with Padding`},JWT:{description:`JSON Web Token`},K8S:{description:`Kubernetes`,display:`K8s`},KMS:{description:`Key Management Service`},KPI:{description:`Key Performance Indicator`},KV:{description:`Key Value`},LAN:{description:`Local Area Network`},LHS:{description:`Left Hand Side`},LPGA:{description:`Ladies Professional Golf Association`},LXC:{description:`Linux Containers`},MDT:{description:`Mountain Daylight Time`},MFA:{description:`Multi-Factor Authentication`},ML:{description:`Machine Learning`},MLB:{description:`Major League Baseball`},MLOps:{description:`Machine Learning Operations`},MPA:{description:`Multi-Page Application`},MST:{description:`Mountain Standard Time`},MVC:{description:`Model View Controller`},MVP:{description:`Minimum Viable Product / Most Valuable Player`},NAIA:{description:`National Association of Intercollegiate Athletics`},NAS:{description:`Network Attached Storage`},NASA:{description:`National Aeronautics and Space Administration`},NASCAR:{description:`National Association for Stock Car Auto Racing`},NAT:{description:`Network Address Translation`},NBA:{description:`National Basketball Association`},NCAA:{description:`National Collegiate Athletic Association`},NDA:{description:`Non-Disclosure Agreement`},NFS:{description:`Network File System`},NHL:{description:`National Hockey League`},NIST:{description:`National Institute of Standards and Technology`},NLP:{description:`Natural Language Processing`},NPS:{description:`Net Promoter Score`},NRA:{description:`National Rifle Association`},NSFW:{description:`Not Safe For Work`},NX:{description:`Nx`,display:`Nx`},OCR:{description:`Optical Character Recognition`},OEM:{description:`Original Equipment Manufacturer`},OKR:{description:`Objectives and Key Results`},OLAP:{description:`Online Analytical Processing`},OLTP:{description:`Online Transaction Processing`},OOP:{description:`Object Oriented Programming`},ORM:{description:`Object Relational Mapping`},OS:{description:`Operating System`},OSINT:{description:`Open Source Intelligence`},OSS:{description:`Open Source Software`},OTP:{description:`One-Time Password`},P2P:{description:`Peer to Peer`},PAAS:{description:`Platform as a Service`,display:`PaaS`},PCI:{description:`Payment Card Industry`},PDP:{description:`Policy Decision Point / Product Detail Page`},PDT:{description:`Pacific Daylight Time`},PGA:{description:`Professional Golfers' Association`},POTUS:{description:`President of the United States`},PP:{description:`Pages / PayPal / Percentage Points`},PST:{description:`Pacific Standard Time`},PTO:{description:`Paid Time Off / Power Take-Off`},PKI:{description:`Public Key Infrastructure`},PWA:{description:`Progressive Web App`},PX:{description:`Pixel`},QA:{description:`Quality Assurance`},R2:{description:`R2`},RAID:{description:`Redundant Array of Independent Disks`},RAM:{description:`Random Access Memory`},RDS:{description:`Relational Database Service`},REST:{description:`Representational State Transfer`},RHS:{description:`Right Hand Side`},ROI:{description:`Return on Investment`},RPC:{description:`Remote Procedure Call`},RPA:{description:`Robotic Process Automation`},RSC:{description:`React Server Components`},RSS:{description:`Really Simple Syndication`},RUM:{description:`Real User Monitoring`},S3:{description:`Simple Storage Service (S3)`},SAN:{description:`Storage Area Network`},SASE:{description:`Secure Access Service Edge`},SCOTUS:{description:`Supreme Court of the United States`},SDLC:{description:`Software Development Life Cycle`},SDK:{description:`Software Development Kit`},SEC:{description:`Securities and Exchange Commission`},SEO:{description:`Search Engine Optimization`},SFTP:{description:`SSH File Transfer Protocol / Secure File Transfer Protocol`},SIEM:{description:`Security Information and Event Management`},SLA:{description:`Service Level Agreement`},SMB:{description:`Server Message Block / Small and Medium Business`},SMTP:{description:`Simple Mail Transfer Protocol`},SOAP:{description:`Simple Object Access Protocol`},SOA:{description:`Service Oriented Architecture`},SOC:{description:`Security Operations Center / System on Chip`},SPA:{description:`Single Page Application`},SPDY:{description:`Speedy (pronounced "SPeeDY")`},SPF:{description:`Sender Policy Framework`},SQL:{description:`Structured Query Language`},SRV:{description:`Service`},SRE:{description:`Site Reliability Engineering`},SSH:{description:`Secure Shell`},SSDL:{description:`Secure Software Development Lifecycle`},SSG:{description:`Static Site Generation`},SSR:{description:`Server Side Rendering`},SSO:{description:`Single Sign-On`},SSL:{description:`Secure Sockets Layer`},TDD:{description:`Test Driven Development`},TLD:{description:`Top Level Domain`},TLS:{description:`Transport Layer Security`},"TLS1.3":{description:`Transport Layer Security 1.3`},TOR:{description:`The Onion Router`},TOTP:{description:`Time-based One-Time Password`},TRPC:{description:`TypeScript Remote Procedure Call`},TSA:{description:`Transportation Security Administration`},TTL:{description:`Time To Live`},UDP:{description:`User Datagram Protocol`},UI:{description:`User Interface`},UID:{description:`Unique Identifier`},URI:{description:`Uniform Resource Identifier`},URL:{description:`Uniform Resource Locator`},USOPC:{description:`United States Olympic & Paralympic Committee`},USPS:{description:`United States Postal Service`},USTA:{description:`United States Tennis Association`},UTF:{description:`Unicode Transformation Format`},UTC:{description:`Coordinated Universal Time`},UUID:{description:`Universally Unique Identifier`},UX:{description:`User Experience`},VM:{description:`Virtual Machine`},VLAN:{description:`Virtual Local Area Network`},VPN:{description:`Virtual Private Network`},VPPA:{description:`Video Privacy Protection Act`},VR:{description:`Virtual Reality`},WAF:{description:`Web Application Firewall`},WAN:{description:`Wide Area Network`},WNBA:{description:`Women's National Basketball Association`},WLAN:{description:`Wireless Local Area Network`},WPA:{description:`Wi-Fi Protected Access`},WPA2:{description:`Wi-Fi Protected Access II`},WPA3:{description:`Wi-Fi Protected Access III`},WWW:{description:`World Wide Web`},WYSIWYG:{description:`What You See Is What You Get`},XACML:{description:`eXtensible Access Control Markup Language`},XDG:{description:`Cross-Desktop Group`},XML:{description:`eXtensible Markup Language`},XSRF:{description:`Cross-Site Request Forgery`},XSS:{description:`Cross-Site Scripting`},XR:{description:`Extended Reality`},YAML:{description:`YAML Ain't Markup Language`},YMCA:{description:`Young Men's Christian Association`},YWCA:{description:`Young Women's Christian Association`},ZTA:{description:`Zero Trust Architecture`}},t=Object.fromEntries(Object.entries(e).map(([e,t])=>[e,t.display??e])),n=Object.fromEntries(Object.entries(e).map(([e,t])=>[e,t.description])),r=Object.keys(e);exports.ACRONYMS=e;
@@ -0,0 +1,2 @@
1
+ const e={"2D":{description:`Two-Dimensional`,display:`2d`},"3D":{description:`Three-Dimensional`,display:`3d`},"4D":{description:`Four-Dimensional`,display:`4d`},"5G":{description:`Fifth Generation (mobile networks)`},"6G":{description:`Sixth Generation (mobile networks)`},"7G":{description:`Seventh Generation (mobile networks)`},"8G":{description:`Eighth Generation (mobile networks)`},ACID:{description:`Atomicity, Consistency, Isolation, Durability`},AITA:{description:`Am I The Asshole`},AES:{description:`Advanced Encryption Standard`},AI:{description:`Artificial Intelligence`},AJAX:{description:`Asynchronous JavaScript and XML`},API:{description:`Application Programming Interface`},AR:{description:`Augmented Reality`},ASCII:{description:`American Standard Code for Information Interchange`},ATF:{description:`Bureau of Alcohol, Tobacco, Firearms and Explosives`},ATM:{description:`Automated Teller Machine`},B2B:{description:`Business to Business`},B2C:{description:`Business to Consumer`},BATFE:{description:`Bureau of Alcohol, Tobacco, Firearms and Explosives`},BFF:{description:`Best Friends Forever`},BFFS:{description:`Best Friends Forever (plural)`},BI:{description:`Business Intelligence`},BIOS:{description:`Basic Input/Output System`},BGP:{description:`Border Gateway Protocol`},BOM:{description:`Bill of Materials / Byte Order Mark`},BSON:{description:`Binary JSON`},BYOD:{description:`Bring Your Own Device`},C2C:{description:`Consumer to Consumer`},CAGR:{description:`Compound Annual Growth Rate`},CAPTCHA:{description:`Completely Automated Public Turing test to tell Computers and Humans Apart`},CCTV:{description:`Closed-Circuit Television`},CD:{description:`Continuous Delivery / Compact Disc`},CDN:{description:`Content Delivery Network`},CDP:{description:`Customer Data Platform`},CDT:{description:`Central Daylight Time`},CIA:{description:`Central Intelligence Agency`},CI:{description:`Continuous Integration`},"CI/CD":{description:`Continuous Integration/Continuous Delivery`},CIAM:{description:`Customer Identity and Access Management`},CICD:{description:`Continuous Integration Continuous Delivery`,display:`CI/CD`},CLI:{description:`Command Line Interface`},CMDB:{description:`Configuration Management Database`},CORS:{description:`Cross-Origin Resource Sharing`},CPA:{description:`Certified Public Accountant`},CPU:{description:`Central Processing Unit`},CRUD:{description:`Create, Read, Update, Delete`},CSR:{description:`Certificate Signing Request / Corporate Social Responsibility`},CSS:{description:`Cascading Style Sheets`},CST:{description:`Central Standard Time`},CTA:{description:`Call To Action`},CWD:{description:`Current Working Directory`},CX:{description:`Customer Experience`},DAG:{description:`Directed Acyclic Graph`},DBMS:{description:`Database Management System`},DDOS:{description:`Distributed Denial of Service`,display:`DDoS`},DEA:{description:`Drug Enforcement Administration`},DEVENV:{description:`Devenv`,display:`Devenv`},DEVOPS:{description:`Development Operations`,display:`DevOps`},DHS:{description:`Department of Homeland Security`},DIRENV:{description:`DirEnv`,display:`DirEnv`},DNC:{description:`Democratic National Committee / Do Not Call`},DNS:{description:`Domain Name System`},DNSSEC:{description:`Domain Name System Security Extensions`},DOD:{description:`Department of Defense`,display:`DoD`},DOJ:{description:`Department of Justice`,display:`DoJ`},DOM:{description:`Document Object Model`},DOT:{description:`Department of Transportation`,display:`DoT`},DOTENV:{description:`Dotenv (.env)`,display:`Dotenv`},DR:{description:`Disaster Recovery`},DRM:{description:`Digital Rights Management`},DSN:{description:`Data Source Name`},DWH:{description:`Data Warehouse`},E2E:{description:`End to End`},EAI:{description:`Enterprise Application Integration`},EDT:{description:`Eastern Daylight Time`},EEA:{description:`European Economic Area`},EKS:{description:`Elastic Kubernetes Service`},EOF:{description:`End Of File`},EOD:{description:`End Of Day / Explosive Ordnance Disposal`},EPA:{description:`Environmental Protection Agency`},ER:{description:`Emergency Room / Entity Relationship`},EST:{description:`Eastern Standard Time`},ETC:{description:`Et Cetera`},ETL:{description:`Extract, Transform, Load`},EULA:{description:`End User License Agreement`},FAAS:{description:`Function as a Service`,display:`FaaS`},FAQ:{description:`Frequently Asked Questions`,display:`FAQs`},FAQS:{description:`Frequently Asked Questions`},FBI:{description:`Federal Bureau of Investigation`},FCC:{description:`Federal Communications Commission`},FDA:{description:`Food and Drug Administration`},FIDO:{description:`Fast IDentity Online`},FLOTUS:{description:`First Lady of the United States`},FQDN:{description:`Fully Qualified Domain Name`},FTC:{description:`Federal Trade Commission`},FTP:{description:`File Transfer Protocol`},GC:{description:`Garbage Collection`},GCP:{description:`Google Cloud Platform`},GDPR:{description:`General Data Protection Regulation`},GMT:{description:`Greenwich Mean Time`},GOP:{description:`Grand Old Party`},GPU:{description:`Graphics Processing Unit`},GUID:{description:`Globally Unique Identifier`},GUI:{description:`Graphical User Interface`},GZIP:{description:`GNU Zip`},HCI:{description:`Human Computer Interaction / Hyper-Converged Infrastructure`},HDD:{description:`Hard Disk Drive`},HDFS:{description:`Hadoop Distributed File System`},HHS:{description:`Health and Human Services`},HIPAA:{description:`Health Insurance Portability and Accountability Act`},HMAC:{description:`Hash-based Message Authentication Code`},HOTP:{description:`HMAC-based One-Time Password`},HSM:{description:`Hardware Security Module`},HTML:{description:`HyperText Markup Language`},HTTP:{description:`HyperText Transfer Protocol (HTTP)`},"HTTP/2":{description:`HyperText Transfer Protocol Version 2 (HTTP/2)`},"HTTP/2.0":{description:`HyperText Transfer Protocol Version 2 (HTTP/2)`,display:`HTTP2`},"HTTP/3":{description:`HyperText Transfer Protocol Version 3 (HTTP/3)`},"HTTP/3.0":{description:`HyperText Transfer Protocol Version 3 (HTTP/3)`,display:`HTTP3`},HTTP2:{description:`HyperText Transfer Protocol Version 2 (HTTP/2)`,display:`HTTP2`},"HTTP2.0":{description:`HyperText Transfer Protocol Version 2 (HTTP/2)`,display:`HTTP2`},HTTP3:{description:`HyperText Transfer Protocol Version 3 (HTTP/3)`,display:`HTTP3`},"HTTP3.0":{description:`HyperText Transfer Protocol Version 3 (HTTP/3)`,display:`HTTP3`},HTTPS:{description:`HyperText Transfer Protocol Secure (HTTPS)`},"HTTPS/2":{description:`HyperText Transfer Protocol Secure Version 2 (HTTPS/2)`},"HTTPS/2.0":{description:`HyperText Transfer Protocol Secure Version 2 (HTTPS/2)`,display:`HTTPS2`},"HTTPS/3":{description:`HyperText Transfer Protocol Secure Version 3 (HTTPS/3)`},"HTTPS/3.0":{description:`HyperText Transfer Protocol Secure Version 3 (HTTPS/3)`,display:`HTTPS3`},HTTPS2:{description:`HyperText Transfer Protocol Secure Version 2 (HTTPS/2)`,display:`HTTPS2`},"HTTPS2.0":{description:`HyperText Transfer Protocol Secure Version 2 (HTTPS/2)`,display:`HTTPS2`},HTTPS3:{description:`HyperText Transfer Protocol Secure Version 3 (HTTPS/3)`,display:`HTTPS3`},"HTTPS3.0":{description:`HyperText Transfer Protocol Secure Version 3 (HTTPS/3)`,display:`HTTPS3`},IAAS:{description:`Infrastructure as a Service`,display:`IaaS`},IAM:{description:`Identity and Access Management`},IAMM:{description:`Identity and Access Management and Monitoring`},IAMT:{description:`Identity and Access Management Tool`},ID:{description:`Identifier`,display:`Id`},IFTTT:{description:`If This Then That`},IMAP:{description:`Internet Message Access Protocol`},IO:{description:`Input/Output`},IP:{description:`Internet Protocol`},IPFS:{description:`InterPlanetary File System`},IPS:{description:`Intrusion Prevention System`},ISO:{description:`International Organization for Standardization`},IQ:{description:`Intelligence Quotient`,display:`IQ`},IOT:{description:`Internet of Things`,display:`IoT`},JSON:{description:`JavaScript Object Notation`},JSONP:{description:`JSON with Padding`},JWT:{description:`JSON Web Token`},K8S:{description:`Kubernetes`,display:`K8s`},KMS:{description:`Key Management Service`},KPI:{description:`Key Performance Indicator`},KV:{description:`Key Value`},LAN:{description:`Local Area Network`},LHS:{description:`Left Hand Side`},LPGA:{description:`Ladies Professional Golf Association`},LXC:{description:`Linux Containers`},MDT:{description:`Mountain Daylight Time`},MFA:{description:`Multi-Factor Authentication`},ML:{description:`Machine Learning`},MLB:{description:`Major League Baseball`},MLOps:{description:`Machine Learning Operations`},MPA:{description:`Multi-Page Application`},MST:{description:`Mountain Standard Time`},MVC:{description:`Model View Controller`},MVP:{description:`Minimum Viable Product / Most Valuable Player`},NAIA:{description:`National Association of Intercollegiate Athletics`},NAS:{description:`Network Attached Storage`},NASA:{description:`National Aeronautics and Space Administration`},NASCAR:{description:`National Association for Stock Car Auto Racing`},NAT:{description:`Network Address Translation`},NBA:{description:`National Basketball Association`},NCAA:{description:`National Collegiate Athletic Association`},NDA:{description:`Non-Disclosure Agreement`},NFS:{description:`Network File System`},NHL:{description:`National Hockey League`},NIST:{description:`National Institute of Standards and Technology`},NLP:{description:`Natural Language Processing`},NPS:{description:`Net Promoter Score`},NRA:{description:`National Rifle Association`},NSFW:{description:`Not Safe For Work`},NX:{description:`Nx`,display:`Nx`},OCR:{description:`Optical Character Recognition`},OEM:{description:`Original Equipment Manufacturer`},OKR:{description:`Objectives and Key Results`},OLAP:{description:`Online Analytical Processing`},OLTP:{description:`Online Transaction Processing`},OOP:{description:`Object Oriented Programming`},ORM:{description:`Object Relational Mapping`},OS:{description:`Operating System`},OSINT:{description:`Open Source Intelligence`},OSS:{description:`Open Source Software`},OTP:{description:`One-Time Password`},P2P:{description:`Peer to Peer`},PAAS:{description:`Platform as a Service`,display:`PaaS`},PCI:{description:`Payment Card Industry`},PDP:{description:`Policy Decision Point / Product Detail Page`},PDT:{description:`Pacific Daylight Time`},PGA:{description:`Professional Golfers' Association`},POTUS:{description:`President of the United States`},PP:{description:`Pages / PayPal / Percentage Points`},PST:{description:`Pacific Standard Time`},PTO:{description:`Paid Time Off / Power Take-Off`},PKI:{description:`Public Key Infrastructure`},PWA:{description:`Progressive Web App`},PX:{description:`Pixel`},QA:{description:`Quality Assurance`},R2:{description:`R2`},RAID:{description:`Redundant Array of Independent Disks`},RAM:{description:`Random Access Memory`},RDS:{description:`Relational Database Service`},REST:{description:`Representational State Transfer`},RHS:{description:`Right Hand Side`},ROI:{description:`Return on Investment`},RPC:{description:`Remote Procedure Call`},RPA:{description:`Robotic Process Automation`},RSC:{description:`React Server Components`},RSS:{description:`Really Simple Syndication`},RUM:{description:`Real User Monitoring`},S3:{description:`Simple Storage Service (S3)`},SAN:{description:`Storage Area Network`},SASE:{description:`Secure Access Service Edge`},SCOTUS:{description:`Supreme Court of the United States`},SDLC:{description:`Software Development Life Cycle`},SDK:{description:`Software Development Kit`},SEC:{description:`Securities and Exchange Commission`},SEO:{description:`Search Engine Optimization`},SFTP:{description:`SSH File Transfer Protocol / Secure File Transfer Protocol`},SIEM:{description:`Security Information and Event Management`},SLA:{description:`Service Level Agreement`},SMB:{description:`Server Message Block / Small and Medium Business`},SMTP:{description:`Simple Mail Transfer Protocol`},SOAP:{description:`Simple Object Access Protocol`},SOA:{description:`Service Oriented Architecture`},SOC:{description:`Security Operations Center / System on Chip`},SPA:{description:`Single Page Application`},SPDY:{description:`Speedy (pronounced "SPeeDY")`},SPF:{description:`Sender Policy Framework`},SQL:{description:`Structured Query Language`},SRV:{description:`Service`},SRE:{description:`Site Reliability Engineering`},SSH:{description:`Secure Shell`},SSDL:{description:`Secure Software Development Lifecycle`},SSG:{description:`Static Site Generation`},SSR:{description:`Server Side Rendering`},SSO:{description:`Single Sign-On`},SSL:{description:`Secure Sockets Layer`},TDD:{description:`Test Driven Development`},TLD:{description:`Top Level Domain`},TLS:{description:`Transport Layer Security`},"TLS1.3":{description:`Transport Layer Security 1.3`},TOR:{description:`The Onion Router`},TOTP:{description:`Time-based One-Time Password`},TRPC:{description:`TypeScript Remote Procedure Call`},TSA:{description:`Transportation Security Administration`},TTL:{description:`Time To Live`},UDP:{description:`User Datagram Protocol`},UI:{description:`User Interface`},UID:{description:`Unique Identifier`},URI:{description:`Uniform Resource Identifier`},URL:{description:`Uniform Resource Locator`},USOPC:{description:`United States Olympic & Paralympic Committee`},USPS:{description:`United States Postal Service`},USTA:{description:`United States Tennis Association`},UTF:{description:`Unicode Transformation Format`},UTC:{description:`Coordinated Universal Time`},UUID:{description:`Universally Unique Identifier`},UX:{description:`User Experience`},VM:{description:`Virtual Machine`},VLAN:{description:`Virtual Local Area Network`},VPN:{description:`Virtual Private Network`},VPPA:{description:`Video Privacy Protection Act`},VR:{description:`Virtual Reality`},WAF:{description:`Web Application Firewall`},WAN:{description:`Wide Area Network`},WNBA:{description:`Women's National Basketball Association`},WLAN:{description:`Wireless Local Area Network`},WPA:{description:`Wi-Fi Protected Access`},WPA2:{description:`Wi-Fi Protected Access II`},WPA3:{description:`Wi-Fi Protected Access III`},WWW:{description:`World Wide Web`},WYSIWYG:{description:`What You See Is What You Get`},XACML:{description:`eXtensible Access Control Markup Language`},XDG:{description:`Cross-Desktop Group`},XML:{description:`eXtensible Markup Language`},XSRF:{description:`Cross-Site Request Forgery`},XSS:{description:`Cross-Site Scripting`},XR:{description:`Extended Reality`},YAML:{description:`YAML Ain't Markup Language`},YMCA:{description:`Young Men's Christian Association`},YWCA:{description:`Young Women's Christian Association`},ZTA:{description:`Zero Trust Architecture`}};Object.fromEntries(Object.entries(e).map(([e,t])=>[e,t.display??e])),Object.fromEntries(Object.entries(e).map(([e,t])=>[e,t.description]));export{e as ACRONYMS};
2
+ //# sourceMappingURL=acronyms.mjs.map