@stacksjs/utils 0.59.4 → 0.59.6

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.js CHANGED
@@ -107,17 +107,17 @@ import os from "os";
107
107
  import fs from "fs/promises";
108
108
  import path2 from "path";
109
109
  import {italic} from "@stacksjs/cli";
110
- import {log as log2} from "@stacksjs/logging";
110
+ import {log} from "@stacksjs/logging";
111
111
  async function findStacksProjects(dir, options) {
112
112
  dir = dir || os.homedir();
113
113
  if (!options?.quiet) {
114
- log2.info(`Searching for Stacks projects in: ${italic(dir)}`);
115
- log2.info(`This may take a few moments...`);
114
+ log.info(`Searching for Stacks projects in: ${italic(dir)}`);
115
+ log.info(`This may take a few moments...`);
116
116
  console.log("");
117
117
  console.log(italic(" Please note, while Stacks is searching for projects on your machine,"));
118
118
  console.log(italic(" you may be asked for permissions to scan certain directories."));
119
119
  console.log("");
120
- log2.debug(`Excluding directories: ${excludePatterns.join(", ")}`);
120
+ log.debug(`Excluding directories: ${excludePatterns.join(", ")}`);
121
121
  }
122
122
  const foundProjects = await searchDirectory(dir);
123
123
  if (!foundProjects)
@@ -205,12 +205,13 @@ function isTruthy(v) {
205
205
  import {hashPaths} from "@stacksjs/storage";
206
206
  import {path as p2} from "@stacksjs/path";
207
207
  import {config as config2} from "@stacksjs/config";
208
+ import {log as log2} from "@stacksjs/logging";
208
209
  function originRequestFunctionHash() {
209
210
  try {
210
211
  return hashPaths(p2.cloudPath("src/edge"));
211
212
  } catch (error) {
212
- log.error("Are we in a Docker container? Failed to hash paths. Error below:");
213
- log.error(error);
213
+ log2.error("Are we in a Docker container? Failed to hash paths. Error below:");
214
+ log2.error(error);
214
215
  return;
215
216
  }
216
217
  }
@@ -899,7 +900,7 @@ function prettyBytes(number, options) {
899
900
  return prefix + numberString + separator + unit;
900
901
  }
901
902
  // package.json
902
- var version = "0.59.4";
903
+ var version = "0.59.6";
903
904
  export {
904
905
  wordChar,
905
906
  wordBoundary,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/utils",
3
3
  "type": "module",
4
- "version": "0.59.4",
4
+ "version": "0.59.6",
5
5
  "description": "The Stacks helper functions.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
package/src/hash.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { hashPaths } from '@stacksjs/storage'
2
2
  import { path as p } from '@stacksjs/path'
3
3
  import { config } from '@stacksjs/config'
4
+ import { log } from '@stacksjs/logging'
4
5
 
5
6
  export function originRequestFunctionHash() {
6
7
  try {