alex-c-line 2.4.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/package.json +9 -9
package/dist/index.cjs
CHANGED
|
@@ -43,9 +43,9 @@ let _alextheman_utility_internal = require("@alextheman/utility/internal");
|
|
|
43
43
|
let zod = require("zod");
|
|
44
44
|
zod = __toESM(zod);
|
|
45
45
|
let node_module = require("node:module");
|
|
46
|
+
let _alextheman_utility_node = require("@alextheman/utility/node");
|
|
46
47
|
let gray_matter = require("gray-matter");
|
|
47
48
|
gray_matter = __toESM(gray_matter);
|
|
48
|
-
let _alextheman_utility_node = require("@alextheman/utility/node");
|
|
49
49
|
let axios = require("axios");
|
|
50
50
|
axios = __toESM(axios);
|
|
51
51
|
let supports_color = require("supports-color");
|
|
@@ -774,7 +774,7 @@ function localPackage(program) {
|
|
|
774
774
|
function encryptWithKey(program) {
|
|
775
775
|
program.command("encrypt-with-key").alias("encrypt").description("Encrypt a secret given the public base64 key and the thing you want to encrypt.").argument("<publicKey>", "The public base64 key to encrypt with").argument("<plaintextValue>", "The value to encrypt in plaintext").action(async (publicKey, plaintextValue) => {
|
|
776
776
|
try {
|
|
777
|
-
console.info(await (0,
|
|
777
|
+
console.info(await (0, _alextheman_utility_node.encryptWithKey)(publicKey, plaintextValue));
|
|
778
778
|
} catch {
|
|
779
779
|
program.error(`${errorPrefix} Encryption failed. Please double-check that the given key is a valid base 64 string.`, {
|
|
780
780
|
exitCode: 1,
|
|
@@ -1235,7 +1235,7 @@ function template(program) {
|
|
|
1235
1235
|
//#endregion
|
|
1236
1236
|
//#region package.json
|
|
1237
1237
|
var name = "alex-c-line";
|
|
1238
|
-
var version$1 = "2.4.
|
|
1238
|
+
var version$1 = "2.4.1";
|
|
1239
1239
|
var description = "Command-line tool with commands to streamline the developer workflow.";
|
|
1240
1240
|
//#endregion
|
|
1241
1241
|
//#region src/utility/updates/checkUpdate.ts
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { Command } from "commander";
|
|
4
|
-
import { DataError, ONE_DAY_IN_MILLISECONDS, VersionNumber,
|
|
4
|
+
import { DataError, ONE_DAY_IN_MILLISECONDS, VersionNumber, fillArray, getStringsAndInterpolations, interpolate, isTemplateStringsArray, kebabToCamel, normaliseIndents, omitProperties, parseBoolean, parseVersionType, parseZodSchema, parseZodSchemaAsync, removeDuplicates, removeUndefinedFromObject, stringifyDotenv } from "@alextheman/utility";
|
|
5
5
|
import chalk from "chalk";
|
|
6
6
|
import boxen from "boxen";
|
|
7
7
|
import figlet from "figlet";
|
|
@@ -15,8 +15,8 @@ import { ExecaError, execa } from "execa";
|
|
|
15
15
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
16
16
|
import { DependencyGroup, PackageManager, getDependenciesFromGroup, getExpectedTgzName, getPackageJsonContents, packageJsonNotFoundError } from "@alextheman/utility/internal";
|
|
17
17
|
import z from "zod";
|
|
18
|
+
import { encryptWithKey, parseFilePath } from "@alextheman/utility/node";
|
|
18
19
|
import matter from "gray-matter";
|
|
19
|
-
import { parseFilePath } from "@alextheman/utility/node";
|
|
20
20
|
import axios from "axios";
|
|
21
21
|
import supportsColor from "supports-color";
|
|
22
22
|
import { randomUUID } from "node:crypto";
|
|
@@ -1204,7 +1204,7 @@ function template(program) {
|
|
|
1204
1204
|
//#endregion
|
|
1205
1205
|
//#region package.json
|
|
1206
1206
|
var name = "alex-c-line";
|
|
1207
|
-
var version$1 = "2.4.
|
|
1207
|
+
var version$1 = "2.4.1";
|
|
1208
1208
|
var description = "Command-line tool with commands to streamline the developer workflow.";
|
|
1209
1209
|
//#endregion
|
|
1210
1210
|
//#region src/utility/updates/checkUpdate.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "alex-c-line",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "Command-line tool with commands to streamline the developer workflow.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"templates"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@alextheman/utility": "^5.
|
|
37
|
+
"@alextheman/utility": "^5.9.0",
|
|
38
38
|
"@inquirer/prompts": "^8.3.2",
|
|
39
39
|
"axios": "^1.14.0",
|
|
40
40
|
"boxen": "^8.0.1",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"zod": "^4.3.6"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@alextheman/eslint-plugin": "^5.10.
|
|
56
|
+
"@alextheman/eslint-plugin": "^5.10.4",
|
|
57
57
|
"@commander-js/extra-typings": "^14.0.0",
|
|
58
58
|
"@types/eslint": "^9.6.1",
|
|
59
59
|
"@types/node": "^25.5.0",
|
|
@@ -66,9 +66,9 @@
|
|
|
66
66
|
"prettier": "^3.8.1",
|
|
67
67
|
"tempy": "^3.2.0",
|
|
68
68
|
"ts-node": "^10.9.2",
|
|
69
|
-
"tsdown": "^0.21.
|
|
70
|
-
"typescript": "^
|
|
71
|
-
"typescript-eslint": "^8.
|
|
69
|
+
"tsdown": "^0.21.7",
|
|
70
|
+
"typescript": "^6.0.2",
|
|
71
|
+
"typescript-eslint": "^8.58.0",
|
|
72
72
|
"vite-tsconfig-paths": "^6.1.1",
|
|
73
73
|
"vitest": "^4.1.2"
|
|
74
74
|
},
|
|
@@ -81,18 +81,18 @@
|
|
|
81
81
|
"create-local-package": "pnpm run build && rm -f alex-c-line-*.tgz && pnpm pack",
|
|
82
82
|
"create-release-note": "bash -c 'git pull origin main && pnpm run command template release-note create $@' --",
|
|
83
83
|
"format": "pnpm run format-prettier && pnpm run format-eslint",
|
|
84
|
-
"format-eslint": "eslint --fix --suppress-all \"package.json\" \"src
|
|
84
|
+
"format-eslint": "eslint --fix --suppress-all \"package.json\" \"{src,tests}/**/*.ts\" && rm -f eslint-suppressions.json",
|
|
85
85
|
"format-prettier": "pnpm run format-prettier-typescript && pnpm run format-prettier-javascript && pnpm run format-prettier-yml && pnpm run format-prettier-html",
|
|
86
86
|
"format-prettier-html": "prettier --write \"**/*.html\"",
|
|
87
87
|
"format-prettier-javascript": "prettier --write \"./**/*.js\"",
|
|
88
88
|
"format-prettier-typescript": "prettier --write --parser typescript \"./**/*.ts\"",
|
|
89
89
|
"format-prettier-yml": "prettier --write \"./**/*.{yml,yaml}\"",
|
|
90
90
|
"lint": "pnpm run lint-tsc && pnpm run lint-eslint && pnpm run lint-prettier && pnpm run lint-pre-release",
|
|
91
|
-
"lint-eslint": "eslint \"package.json\" \"src
|
|
91
|
+
"lint-eslint": "eslint \"package.json\" \"{src,tests}/**/*.ts\"",
|
|
92
92
|
"lint-pre-release": "node dist/index.js package-json check --rules no-pre-release-dependencies",
|
|
93
93
|
"lint-prettier": "pnpm run lint-prettier-typescript && pnpm run lint-prettier-javascript && pnpm run lint-prettier-yml && pnpm run lint-prettier-html",
|
|
94
94
|
"lint-prettier-html": "prettier --check \"**/*.html\"",
|
|
95
|
-
"lint-prettier-javascript": "prettier --check \"
|
|
95
|
+
"lint-prettier-javascript": "prettier --check \"./**/*.js\"",
|
|
96
96
|
"lint-prettier-typescript": "prettier --check --parser typescript \"./**/*.ts\"",
|
|
97
97
|
"lint-prettier-yml": "prettier --check \"./**/*.{yml,yaml}\"",
|
|
98
98
|
"lint-tsc": "tsc --noEmit",
|