@code-pushup/core 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.
Files changed (2) hide show
  1. package/index.js +9 -9
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  // packages/core/src/lib/implementation/persist.ts
2
- import { existsSync, mkdirSync } from "fs";
3
- import { stat as stat2, writeFile } from "fs/promises";
4
- import { join as join2 } from "path";
2
+ import { existsSync, mkdirSync } from "node:fs";
3
+ import { stat as stat2, writeFile } from "node:fs/promises";
4
+ import { join as join2 } from "node:path";
5
5
 
6
6
  // packages/utils/src/lib/execute-process.ts
7
- import { spawn } from "child_process";
7
+ import { spawn } from "node:child_process";
8
8
 
9
9
  // packages/utils/src/lib/report.ts
10
- import { join } from "path";
10
+ import { join } from "node:path";
11
11
 
12
12
  // packages/models/src/lib/audit.ts
13
13
  import { z as z2 } from "zod";
@@ -550,11 +550,11 @@ var SCORE_COLOR_RANGE = {
550
550
  // packages/utils/src/lib/file-system.ts
551
551
  import { bundleRequire } from "bundle-require";
552
552
  import chalk from "chalk";
553
- import { mkdir, readFile, readdir, stat } from "fs/promises";
553
+ import { mkdir, readFile, readdir, stat } from "node:fs/promises";
554
554
 
555
555
  // packages/utils/src/lib/formatting.ts
556
556
  function slugify(text) {
557
- return text.trim().toLowerCase().replace(/\s+|\//g, "-").replace(/[^a-z0-9-]/g, "");
557
+ return text.trim().toLowerCase().replace(/\s+|\//g, "-").replace(/[^a-z\d-]/g, "");
558
558
  }
559
559
  function formatBytes(bytes, decimals = 2) {
560
560
  bytes = Math.max(bytes, 0);
@@ -1522,7 +1522,7 @@ function validateCommitData(commitData) {
1522
1522
  import chalk4 from "chalk";
1523
1523
 
1524
1524
  // packages/core/src/lib/implementation/runner.ts
1525
- import { join as join3 } from "path";
1525
+ import { join as join3 } from "node:path";
1526
1526
  async function executeRunnerConfig(cfg, onProgress) {
1527
1527
  const { args, command, outputFile, outputTransform } = cfg;
1528
1528
  const { duration, date } = await executeProcess({
@@ -1633,7 +1633,7 @@ function auditOutputsCorrelateWithPluginOutput(auditOutputs, pluginConfigAudits)
1633
1633
 
1634
1634
  // packages/core/package.json
1635
1635
  var name = "@code-pushup/core";
1636
- var version = "0.8.6";
1636
+ var version = "0.8.7";
1637
1637
 
1638
1638
  // packages/core/src/lib/implementation/collect.ts
1639
1639
  async function collect(options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-pushup/core",
3
- "version": "0.8.6",
3
+ "version": "0.8.7",
4
4
  "dependencies": {
5
5
  "@code-pushup/models": "*",
6
6
  "@code-pushup/utils": "*",