@code-pushup/utils 0.8.6 → 0.8.7
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/index.js +5 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// packages/utils/src/lib/execute-process.ts
|
|
2
|
-
import { spawn } from "child_process";
|
|
2
|
+
import { spawn } from "node:child_process";
|
|
3
3
|
|
|
4
4
|
// packages/utils/src/lib/report.ts
|
|
5
|
-
import { join as join2 } from "path";
|
|
5
|
+
import { join as join2 } from "node:path";
|
|
6
6
|
|
|
7
7
|
// packages/models/src/lib/audit.ts
|
|
8
8
|
import { z as z2 } from "zod";
|
|
@@ -540,12 +540,12 @@ var SCORE_COLOR_RANGE = {
|
|
|
540
540
|
// packages/utils/src/lib/file-system.ts
|
|
541
541
|
import { bundleRequire } from "bundle-require";
|
|
542
542
|
import chalk from "chalk";
|
|
543
|
-
import { mkdir, readFile, readdir, stat } from "fs/promises";
|
|
544
|
-
import { join } from "path";
|
|
543
|
+
import { mkdir, readFile, readdir, stat } from "node:fs/promises";
|
|
544
|
+
import { join } from "node:path";
|
|
545
545
|
|
|
546
546
|
// packages/utils/src/lib/formatting.ts
|
|
547
547
|
function slugify(text) {
|
|
548
|
-
return text.trim().toLowerCase().replace(/\s+|\//g, "-").replace(/[^a-
|
|
548
|
+
return text.trim().toLowerCase().replace(/\s+|\//g, "-").replace(/[^a-z\d-]/g, "");
|
|
549
549
|
}
|
|
550
550
|
function pluralize(text) {
|
|
551
551
|
if (text.endsWith("y")) {
|