@powerlines/plugin-env 0.15.158 → 0.15.160
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{automd-generator-DoKLIMuw.mjs → automd-generator-BpvZRK0k.mjs} +2 -2
- package/dist/{automd-generator-DoKLIMuw.mjs.map → automd-generator-BpvZRK0k.mjs.map} +1 -1
- package/dist/{automd-generator-BNg74tyV.cjs → automd-generator-CxG1owAE.cjs} +1 -1
- package/dist/components/docs.cjs +3 -3
- package/dist/components/docs.mjs +3 -3
- package/dist/components/env.cjs +3 -3
- package/dist/components/env.mjs +3 -3
- package/dist/components/index.cjs +5 -5
- package/dist/components/index.mjs +5 -5
- package/dist/{docs-ClXTdyjQ.cjs → docs-E0aCTO7H.cjs} +2 -2
- package/dist/{docs-B4Bd2HuK.mjs → docs-WdCIcQmw.mjs} +3 -3
- package/dist/{docs-B4Bd2HuK.mjs.map → docs-WdCIcQmw.mjs.map} +1 -1
- package/dist/{docs-helper-2fe7M3Th.mjs → docs-helper-BSYSI2cH.mjs} +2 -2
- package/dist/{docs-helper-2fe7M3Th.mjs.map → docs-helper-BSYSI2cH.mjs.map} +1 -1
- package/dist/{docs-helper-4MoQ5-R3.cjs → docs-helper-BWe1dt1m.cjs} +1 -1
- package/dist/{env-iQh74nl2.cjs → env-BSCEigpj.cjs} +1 -1
- package/dist/{env-z7LbFLP0.mjs → env-DqI7dwC-.mjs} +2 -2
- package/dist/{env-z7LbFLP0.mjs.map → env-DqI7dwC-.mjs.map} +1 -1
- package/dist/helpers/automd-generator.cjs +2 -2
- package/dist/helpers/automd-generator.mjs +2 -2
- package/dist/helpers/docs-helper.cjs +2 -2
- package/dist/helpers/docs-helper.mjs +2 -2
- package/dist/helpers/index.cjs +4 -4
- package/dist/helpers/index.mjs +4 -4
- package/dist/helpers/load.cjs +2 -2
- package/dist/helpers/load.mjs +2 -2
- package/dist/helpers/persistence.cjs +2 -2
- package/dist/helpers/persistence.mjs +2 -2
- package/dist/helpers/reflect.cjs +2 -2
- package/dist/helpers/reflect.mjs +2 -2
- package/dist/helpers/template-helpers.cjs +3 -3
- package/dist/helpers/template-helpers.mjs +3 -3
- package/dist/index-Bdi8CvaN.d.cts.map +1 -1
- package/dist/index-Drhzdkqe.d.mts.map +1 -1
- package/dist/index.cjs +25 -36
- package/dist/index.mjs +25 -36
- package/dist/index.mjs.map +1 -1
- package/dist/{join-paths-Bc4rM2TX.cjs → join-paths-B0RBTuuw.cjs} +30 -15
- package/dist/{join-paths-BMg51Ddi.mjs → join-paths-Dd9KxuyL.mjs} +31 -16
- package/dist/join-paths-Dd9KxuyL.mjs.map +1 -0
- package/dist/{load-DPB0maqs.cjs → load-CC_Pu2Om.cjs} +1 -1
- package/dist/{load-Dr5ybfL7.mjs → load-EM4edkA2.mjs} +2 -2
- package/dist/{load-Dr5ybfL7.mjs.map → load-EM4edkA2.mjs.map} +1 -1
- package/dist/{persistence-BsBxs9wt.mjs → persistence-5S3EirDm.mjs} +3 -3
- package/dist/{persistence-BsBxs9wt.mjs.map → persistence-5S3EirDm.mjs.map} +1 -1
- package/dist/{persistence-D_clXRxP.cjs → persistence-DzS7SzMj.cjs} +2 -2
- package/dist/{template-helpers-CCEjhw1B.mjs → template-helpers-Cw8aba1r.mjs} +2 -2
- package/dist/{template-helpers-CCEjhw1B.mjs.map → template-helpers-Cw8aba1r.mjs.map} +1 -1
- package/dist/{template-helpers-YVcwxmoF.cjs → template-helpers-DoFoTIAC.cjs} +1 -1
- package/package.json +16 -16
- package/dist/join-paths-BMg51Ddi.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"join-paths-Dd9KxuyL.mjs","names":[],"sources":["../../../node_modules/.pnpm/@stryke+path@0.26.4/node_modules/@stryke/path/dist/regex.mjs","../../../node_modules/.pnpm/@stryke+path@0.26.4/node_modules/@stryke/path/dist/slash.mjs","../../../node_modules/.pnpm/@stryke+path@0.26.4/node_modules/@stryke/path/dist/is-type.mjs","../../../node_modules/.pnpm/@stryke+path@0.26.4/node_modules/@stryke/path/dist/join-paths.mjs"],"sourcesContent":["//#region src/regex.ts\nconst DRIVE_LETTER_START_REGEX = /^[A-Z]:\\//i;\nconst DRIVE_LETTER_REGEX = /^[A-Z]:$/i;\nconst UNC_REGEX = /^[/\\\\]{2}/;\nconst ABSOLUTE_PATH_REGEX = /^[/\\\\](?![/\\\\])|^[/\\\\]{2}(?!\\.)|^~[/\\\\]|^[A-Z]:[/\\\\]/i;\nconst ROOT_FOLDER_REGEX = /^\\/([A-Z]:)?$/i;\nconst FILE_EXTENSION_REGEX = /\\.[0-9a-z]+$/i;\nconst FULL_FILE_EXTENSION_REGEX = /(\\.d)?\\.[0-9a-z]+(\\.map)?$/i;\nconst PACKAGE_PATH_REGEX = /^@\\w+\\/.*$/;\nconst NPM_SCOPED_PACKAGE_REGEX = /^(?:@[\\w-]+\\/)?[\\w-]+$/;\n\n//#endregion\nexport { ABSOLUTE_PATH_REGEX, DRIVE_LETTER_REGEX, DRIVE_LETTER_START_REGEX, FILE_EXTENSION_REGEX, FULL_FILE_EXTENSION_REGEX, NPM_SCOPED_PACKAGE_REGEX, PACKAGE_PATH_REGEX, ROOT_FOLDER_REGEX, UNC_REGEX };\n//# sourceMappingURL=regex.mjs.map","import { isAbsolutePath } from \"./is-type.mjs\";\n\n//#region src/slash.ts\n/**\n* Replace backslash to slash\n*\n* @param path - The string to replace\n* @returns The string with replaced backslashes\n*/\nfunction slash(path) {\n\tif (path.startsWith(\"\\\\\\\\?\\\\\")) return path;\n\treturn path.replace(/\\\\/g, \"/\");\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*/\nfunction formatSlash(path) {\n\tconst formatted = slash(path);\n\treturn isAbsolutePath(formatted) ? formatted.replace(/\\/+$/g, \"\") : formatted.replace(/^\\.\\//g, \"\").replace(/\\/+$/g, \"\");\n}\n\n//#endregion\nexport { formatSlash, slash };\n//# sourceMappingURL=slash.mjs.map","import { ABSOLUTE_PATH_REGEX, NPM_SCOPED_PACKAGE_REGEX } from \"./regex.mjs\";\nimport { slash } from \"./slash.mjs\";\n\n//#region src/is-type.ts\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*/\nfunction isAbsolutePath(path) {\n\treturn ABSOLUTE_PATH_REGEX.test(slash(path));\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*/\nfunction isAbsolute(path) {\n\treturn isAbsolutePath(path);\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*/\nfunction isRelativePath(path) {\n\treturn !isAbsolutePath(path);\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*/\nfunction isRelative(path) {\n\treturn isRelativePath(path);\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*/\nfunction isNpmScopedPackagePath(path) {\n\treturn NPM_SCOPED_PACKAGE_REGEX.test(slash(path));\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*/\nfunction isNpmScopedPackage(path) {\n\treturn isNpmScopedPackagePath(path);\n}\n\n//#endregion\nexport { isAbsolute, isAbsolutePath, isNpmScopedPackage, isNpmScopedPackagePath, isRelative, isRelativePath };\n//# sourceMappingURL=is-type.mjs.map","import { DRIVE_LETTER_REGEX, DRIVE_LETTER_START_REGEX, UNC_REGEX } from \"./regex.mjs\";\nimport { isAbsolute } from \"./is-type.mjs\";\nimport { slash } from \"./slash.mjs\";\n\n//#region src/join-paths.ts\nfunction normalizeWindowsPath(input = \"\") {\n\tif (!input) return input;\n\treturn input.replace(/\\\\/g, \"/\").replace(DRIVE_LETTER_START_REGEX, (r) => r.toUpperCase());\n}\nfunction correctPaths(path) {\n\tif (!path || path.length === 0) return \".\";\n\tpath = normalizeWindowsPath(path);\n\tconst isUNCPath = path.match(UNC_REGEX);\n\tconst isPathAbsolute = isAbsolute(path);\n\tconst trailingSeparator = path[path.length - 1] === \"/\";\n\tpath = normalizeString(path, !isPathAbsolute);\n\tif (path.length === 0) {\n\t\tif (isPathAbsolute) return \"/\";\n\t\treturn trailingSeparator ? \"./\" : \".\";\n\t}\n\tif (trailingSeparator) path += \"/\";\n\tif (DRIVE_LETTER_REGEX.test(path)) path += \"/\";\n\tif (isUNCPath) {\n\t\tif (!isPathAbsolute) return `//./${path}`;\n\t\treturn `//${path}`;\n\t}\n\treturn isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;\n}\n/**\n* Joins all given path segments together using the platform-specific separator as a delimiter.\n*\n* @remarks\n* Multiple segments can be provided as separate arguments. The resulting path is normalized to remove any redundant or unnecessary segments.\n*\n* @example\n* ```ts\n* import { joinPaths } from 'stryke/path';\n*\n* const fullPath = joinPaths('folder1', 'folder2', '..', 'folder3', 'file.txt');\n* console.log(fullPath); // Output: 'folder1/folder3/file.txt'\n*\n* const absolutePath = joinPaths('/root', 'folder', '.', 'subfolder', 'file.txt');\n* console.log(absolutePath); // Output: '/root/folder/subfolder/file.txt'\n*\n* const windowsPath = joinPaths('C:\\\\', 'Users', 'Public', '..', 'Documents', 'file.txt');\n* console.log(windowsPath); // Output: 'C:/Users/Documents/file.txt'\n*\n* const uncPath = joinPaths('\\\\\\\\Server\\\\Share', 'Folder', 'File.txt');\n* console.log(uncPath); // Output: '//Server/Share/Folder/File.txt'\n* ```\n*\n* @param segments - The path segments to join.\n* @returns The joined and normalized path string.\n*/\nfunction joinPaths(...segments) {\n\tlet result = \"\";\n\tfor (const segment of segments) if (segment && slash(segment).replaceAll(/\\//g, \"\") !== \".\") {\n\t\tif (result) if (slash(segment).replaceAll(/\\//g, \"\") === \"..\") result = slash(result).replace(/\\/+$/, \"\").replace(/\\/*[^/]+$/, \"\");\n\t\telse result = `${slash(result).replace(/\\/+$/, \"\")}/${slash(segment).replace(/^\\/+/, \"\")}`;\n\t\telse if (slash(segment).replaceAll(/\\//g, \"\") !== \"..\") result = segment;\n\t}\n\treturn correctPaths(result);\n}\nconst join = joinPaths;\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, allowAboveRoot) {\n\tlet res = \"\";\n\tlet lastSegmentLength = 0;\n\tlet lastSlash = -1;\n\tlet dots = 0;\n\tlet char = null;\n\tfor (let index = 0; index <= path.length; ++index) {\n\t\tif (index < path.length) char = path[index];\n\t\telse if (char === \"/\") break;\n\t\telse char = \"/\";\n\t\tif (char === \"/\") {\n\t\t\tif (lastSlash === index - 1 || dots === 1) {} else if (dots === 2) {\n\t\t\t\tif (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== \".\" || res[res.length - 2] !== \".\") {\n\t\t\t\t\tif (res.length > 2) {\n\t\t\t\t\t\tconst lastSlashIndex = res.lastIndexOf(\"/\");\n\t\t\t\t\t\tif (lastSlashIndex === -1) {\n\t\t\t\t\t\t\tres = \"\";\n\t\t\t\t\t\t\tlastSegmentLength = 0;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tres = res.slice(0, lastSlashIndex);\n\t\t\t\t\t\t\tlastSegmentLength = res.length - 1 - res.lastIndexOf(\"/\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlastSlash = index;\n\t\t\t\t\t\tdots = 0;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else if (res.length > 0) {\n\t\t\t\t\t\tres = \"\";\n\t\t\t\t\t\tlastSegmentLength = 0;\n\t\t\t\t\t\tlastSlash = index;\n\t\t\t\t\t\tdots = 0;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (allowAboveRoot) {\n\t\t\t\t\tres += res.length > 0 ? \"/..\" : \"..\";\n\t\t\t\t\tlastSegmentLength = 2;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (res.length > 0) res += `/${path.slice(lastSlash + 1, index)}`;\n\t\t\t\telse res = path.slice(lastSlash + 1, index);\n\t\t\t\tlastSegmentLength = index - lastSlash - 1;\n\t\t\t}\n\t\t\tlastSlash = index;\n\t\t\tdots = 0;\n\t\t} else if (char === \".\" && dots !== -1) ++dots;\n\t\telse dots = -1;\n\t}\n\treturn res;\n}\n\n//#endregion\nexport { join, joinPaths };\n//# sourceMappingURL=join-paths.mjs.map"],"x_google_ignoreList":[0,1,2,3],"mappings":";AACA,MAAM,2BAA2B;AACjC,MAAM,qBAAqB;AAC3B,MAAM,YAAY;AAClB,MAAM,sBAAsB;;;;;;;;;;ACK5B,SAAS,MAAM,MAAM;AACpB,KAAI,KAAK,WAAW,UAAU,CAAE,QAAO;AACvC,QAAO,KAAK,QAAQ,OAAO,IAAI;;;;;;;;;;;ACDhC,SAAS,eAAe,MAAM;AAC7B,QAAO,oBAAoB,KAAK,MAAM,KAAK,CAAC;;;;;;;;;;;AAW7C,SAAS,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
|
3
|
-
const require_join_paths = require('./join-paths-
|
|
3
|
+
const require_join_paths = require('./join-paths-B0RBTuuw.cjs');
|
|
4
4
|
const require_source_file_env = require('./source-file-env-4Vdtzc5-.cjs');
|
|
5
5
|
const require_defu = require('./defu-CrqNIh1A.cjs');
|
|
6
6
|
const require_confbox_DnMsyigM = require('./confbox.DnMsyigM-C13n3X-S.cjs');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as __toESM, n as __require, t as __commonJSMin } from "./chunk-CsF2CmBJ.mjs";
|
|
2
2
|
import { n as __ΩEnvPluginOptions, t as __ΩEnvPluginContext } from "./plugin-eBjQJP6x.mjs";
|
|
3
|
-
import { t as joinPaths } from "./join-paths-
|
|
3
|
+
import { t as joinPaths } from "./join-paths-Dd9KxuyL.mjs";
|
|
4
4
|
import { n as removeEnvPrefix } from "./source-file-env-Tj-6qobx.mjs";
|
|
5
5
|
import { a as isAbsolute$1, c as resolve$1, i as extname, n as basename, o as join, r as dirname$1, s as normalize$1, t as defu } from "./defu-DV5Grr85.mjs";
|
|
6
6
|
import { n as x, t as h } from "./confbox.DnMsyigM-V6Wj0LPC.mjs";
|
|
@@ -6576,4 +6576,4 @@ loadEnv$1.__type = [
|
|
|
6576
6576
|
|
|
6577
6577
|
//#endregion
|
|
6578
6578
|
export { loadEnvFromContext as n, loadEnv$1 as t };
|
|
6579
|
-
//# sourceMappingURL=load-
|
|
6579
|
+
//# sourceMappingURL=load-EM4edkA2.mjs.map
|