@alextheman/utility 4.10.0 → 4.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -5
package/dist/index.cjs
CHANGED
|
@@ -724,7 +724,7 @@ function stringifyDotenv(contents, options) {
|
|
|
724
724
|
let result = "";
|
|
725
725
|
for (const key in contentsCopy) {
|
|
726
726
|
if (/[ \t\r\n]/.test(key)) throw new DataError_default({ [key]: contentsCopy[key] }, "INVALID_KEY", "Environment variables are not allowed to have whitespace.");
|
|
727
|
-
if (quoteStyle === "none") if (/[ \t\r\n]/.test(contentsCopy[key]) || contentsCopy[key].includes("#")) throw new DataError_default({ [key]: contentsCopy[key] }, "INCOMPATIBLE_QUOTE_STYLE", "Cannot use `{ quoteStyle: \"none\" }` when value has whitespace or
|
|
727
|
+
if (quoteStyle === "none") if (/[ \t\r\n]/.test(contentsCopy[key]) || contentsCopy[key].includes("#") || contentsCopy[key].includes("=") || contentsCopy[key].includes("\\")) throw new DataError_default({ [key]: contentsCopy[key] }, "INCOMPATIBLE_QUOTE_STYLE", "Cannot use `{ quoteStyle: \"none\" }` when value has whitespace, #, =, or \\");
|
|
728
728
|
else {
|
|
729
729
|
result += `${key}=${contentsCopy[key]}\n`;
|
|
730
730
|
continue;
|
package/dist/index.js
CHANGED
|
@@ -694,7 +694,7 @@ function stringifyDotenv(contents, options) {
|
|
|
694
694
|
let result = "";
|
|
695
695
|
for (const key in contentsCopy) {
|
|
696
696
|
if (/[ \t\r\n]/.test(key)) throw new DataError_default({ [key]: contentsCopy[key] }, "INVALID_KEY", "Environment variables are not allowed to have whitespace.");
|
|
697
|
-
if (quoteStyle === "none") if (/[ \t\r\n]/.test(contentsCopy[key]) || contentsCopy[key].includes("#")) throw new DataError_default({ [key]: contentsCopy[key] }, "INCOMPATIBLE_QUOTE_STYLE", "Cannot use `{ quoteStyle: \"none\" }` when value has whitespace or
|
|
697
|
+
if (quoteStyle === "none") if (/[ \t\r\n]/.test(contentsCopy[key]) || contentsCopy[key].includes("#") || contentsCopy[key].includes("=") || contentsCopy[key].includes("\\")) throw new DataError_default({ [key]: contentsCopy[key] }, "INCOMPATIBLE_QUOTE_STYLE", "Cannot use `{ quoteStyle: \"none\" }` when value has whitespace, #, =, or \\");
|
|
698
698
|
else {
|
|
699
699
|
result += `${key}=${contentsCopy[key]}\n`;
|
|
700
700
|
continue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alextheman/utility",
|
|
3
|
-
"version": "4.10.
|
|
3
|
+
"version": "4.10.2",
|
|
4
4
|
"description": "Helpful utility functions.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@types/libsodium-wrappers": "^0.7.14",
|
|
26
26
|
"@types/node": "^25.0.9",
|
|
27
27
|
"@typescript-eslint/types": "^8.53.0",
|
|
28
|
-
"alex-c-line": "^1.
|
|
28
|
+
"alex-c-line": "^1.20.0",
|
|
29
29
|
"dotenv-cli": "^11.0.0",
|
|
30
30
|
"eslint": "^9.39.2",
|
|
31
31
|
"globals": "^17.0.0",
|
|
@@ -45,9 +45,7 @@
|
|
|
45
45
|
"build": "tsdown",
|
|
46
46
|
"create-feature-docs": "typedoc",
|
|
47
47
|
"create-local-package": "pnpm run build && rm -f alextheman-utility-*.tgz && pnpm pack",
|
|
48
|
-
"create-release-note
|
|
49
|
-
"create-release-note-minor": "git pull origin main && alex-c-line create-release-note minor",
|
|
50
|
-
"create-release-note-patch": "git pull origin main && alex-c-line create-release-note patch",
|
|
48
|
+
"create-release-note": "bash -c 'git pull origin main && alex-c-line create-release-note-2 $@' --",
|
|
51
49
|
"format": "pnpm run format-prettier && pnpm run format-eslint",
|
|
52
50
|
"format-eslint": "eslint --fix --suppress-all \"package.json\" \"src/**/*.ts\" \"tests/**/*.ts\" && rm -f eslint-suppressions.json",
|
|
53
51
|
"format-prettier": "pnpm run format-prettier-typescript && pnpm run format-prettier-javascript && pnpm run format-prettier-yml",
|