alex-c-line 2.10.2 → 2.10.3

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 CHANGED
@@ -303,13 +303,33 @@ async function findPackageRoot(startDirectory, packageName) {
303
303
  const __filename$3 = (0, node_url.fileURLToPath)(require("url").pathToFileURL(__filename).href);
304
304
  const ALEX_C_LINE_PACKAGE_ROOT = findPackageRoot(node_path.default.dirname(__filename$3), "alex-c-line");
305
305
  //#endregion
306
+ //#region src/utility/licenses/resolveLicense.ts
307
+ function resolveLicense(license) {
308
+ return license.replaceAll(/[()]/g, "").split(/\s+OR\s+/).map((part) => {
309
+ return part.trim();
310
+ });
311
+ }
312
+ //#endregion
313
+ //#region src/utility/licenses/isValidLicense.ts
314
+ function isValidLicense(license, allowedLicenses) {
315
+ return resolveLicense(license).some((license) => {
316
+ return allowedLicenses.includes(license);
317
+ });
318
+ }
319
+ //#endregion
306
320
  //#region src/cli/commands/internal/dependency-audit/helpers/getLicenseCheck.ts
307
321
  const ALLOWED_LICENSES = [
308
322
  "MIT",
323
+ "MIT-0",
309
324
  "ISC",
310
325
  "Apache-2.0",
311
326
  "BSD-2-Clause",
312
- "BSD-3-Clause"
327
+ "BSD-3-Clause",
328
+ "BlueOak-1.0.0",
329
+ "Python-2.0",
330
+ "0BSD",
331
+ "Unlicense",
332
+ "CC0-1.0"
313
333
  ];
314
334
  const pnpmLicensesSchema = zod.default.record(zod.default.string(), zod.default.array(zod.default.object({
315
335
  name: zod.default.string(),
@@ -336,7 +356,7 @@ async function getLicenseCheck(program) {
336
356
  return summaryTableRowTemplate.replace("{{license}}", (0, _alextheman_utility.escapeHTML)(license)).replace("{{count}}", (0, _alextheman_utility.escapeHTML)(data.length.toString()));
337
357
  }).join("\n"));
338
358
  const invalidLicenses = licenseEntries.filter(([license, _]) => {
339
- return !ALLOWED_LICENSES.includes(license);
359
+ return !isValidLicense(license, ALLOWED_LICENSES);
340
360
  });
341
361
  let invalidSummary;
342
362
  if (invalidLicenses.length === 0) invalidSummary = "No licenses requiring review.";
@@ -581,7 +601,7 @@ async function readdirSafe(path) {
581
601
  //#region src/cli/commands/internal/media/generate.ts
582
602
  function internalMediaGenerate(program) {
583
603
  program.command("generate").argument("[target]", "The directory to generate from.", process.cwd()).option("--ignore <ignore>", "Extra directories to ignore as comma-separated list.").option("-r --resolution <resolution>", "The resolution of the rendered scenes, with a comma between width and height.").action(async (target, { ignore, resolution }) => {
584
- const ignored = new Set([
604
+ const ignored = /* @__PURE__ */ new Set([
585
605
  ".git",
586
606
  "node_modules",
587
607
  "__pycache__",
@@ -1423,7 +1443,7 @@ function template(program) {
1423
1443
  //#endregion
1424
1444
  //#region package.json
1425
1445
  var name = "alex-c-line";
1426
- var version$1 = "2.10.2";
1446
+ var version$1 = "2.10.3";
1427
1447
  var description = "Command-line tool with commands to streamline the developer workflow.";
1428
1448
  //#endregion
1429
1449
  //#region src/utility/updates/checkUpdate.ts
package/dist/index.js CHANGED
@@ -272,13 +272,33 @@ async function findPackageRoot(startDirectory, packageName) {
272
272
  const __filename$2 = fileURLToPath(import.meta.url);
273
273
  const ALEX_C_LINE_PACKAGE_ROOT = findPackageRoot(path.dirname(__filename$2), "alex-c-line");
274
274
  //#endregion
275
+ //#region src/utility/licenses/resolveLicense.ts
276
+ function resolveLicense(license) {
277
+ return license.replaceAll(/[()]/g, "").split(/\s+OR\s+/).map((part) => {
278
+ return part.trim();
279
+ });
280
+ }
281
+ //#endregion
282
+ //#region src/utility/licenses/isValidLicense.ts
283
+ function isValidLicense(license, allowedLicenses) {
284
+ return resolveLicense(license).some((license) => {
285
+ return allowedLicenses.includes(license);
286
+ });
287
+ }
288
+ //#endregion
275
289
  //#region src/cli/commands/internal/dependency-audit/helpers/getLicenseCheck.ts
276
290
  const ALLOWED_LICENSES = [
277
291
  "MIT",
292
+ "MIT-0",
278
293
  "ISC",
279
294
  "Apache-2.0",
280
295
  "BSD-2-Clause",
281
- "BSD-3-Clause"
296
+ "BSD-3-Clause",
297
+ "BlueOak-1.0.0",
298
+ "Python-2.0",
299
+ "0BSD",
300
+ "Unlicense",
301
+ "CC0-1.0"
282
302
  ];
283
303
  const pnpmLicensesSchema = z.record(z.string(), z.array(z.object({
284
304
  name: z.string(),
@@ -305,7 +325,7 @@ async function getLicenseCheck(program) {
305
325
  return summaryTableRowTemplate.replace("{{license}}", escapeHTML(license)).replace("{{count}}", escapeHTML(data.length.toString()));
306
326
  }).join("\n"));
307
327
  const invalidLicenses = licenseEntries.filter(([license, _]) => {
308
- return !ALLOWED_LICENSES.includes(license);
328
+ return !isValidLicense(license, ALLOWED_LICENSES);
309
329
  });
310
330
  let invalidSummary;
311
331
  if (invalidLicenses.length === 0) invalidSummary = "No licenses requiring review.";
@@ -550,7 +570,7 @@ async function readdirSafe(path) {
550
570
  //#region src/cli/commands/internal/media/generate.ts
551
571
  function internalMediaGenerate(program) {
552
572
  program.command("generate").argument("[target]", "The directory to generate from.", process.cwd()).option("--ignore <ignore>", "Extra directories to ignore as comma-separated list.").option("-r --resolution <resolution>", "The resolution of the rendered scenes, with a comma between width and height.").action(async (target, { ignore, resolution }) => {
553
- const ignored = new Set([
573
+ const ignored = /* @__PURE__ */ new Set([
554
574
  ".git",
555
575
  "node_modules",
556
576
  "__pycache__",
@@ -1392,7 +1412,7 @@ function template(program) {
1392
1412
  //#endregion
1393
1413
  //#region package.json
1394
1414
  var name = "alex-c-line";
1395
- var version$1 = "2.10.2";
1415
+ var version$1 = "2.10.3";
1396
1416
  var description = "Command-line tool with commands to streamline the developer workflow.";
1397
1417
  //#endregion
1398
1418
  //#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.10.2",
3
+ "version": "2.10.3",
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.22.0",
37
+ "@alextheman/utility": "5.23.0",
38
38
  "@inquirer/prompts": "8.5.2",
39
39
  "axios": "1.18.0",
40
40
  "boxen": "8.0.1",
@@ -66,7 +66,7 @@
66
66
  "prettier": "3.8.4",
67
67
  "tempy": "3.2.0",
68
68
  "ts-node": "10.9.2",
69
- "tsdown": "0.22.2",
69
+ "tsdown": "0.22.3",
70
70
  "typescript": "6.0.3",
71
71
  "typescript-eslint": "8.61.1",
72
72
  "vite": "8.0.16",