@stacksjs/utils 0.58.58 → 0.58.59
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 +8 -2
- package/package.json +2 -2
- package/src/hash.ts +10 -1
package/dist/index.js
CHANGED
|
@@ -147,7 +147,13 @@ function isTruthy(v) {
|
|
|
147
147
|
import {hashPaths} from "@stacksjs/storage";
|
|
148
148
|
import {path as p2} from "@stacksjs/path";
|
|
149
149
|
import {config as config2} from "@stacksjs/config";
|
|
150
|
-
var originRequestFunctionHash
|
|
150
|
+
var originRequestFunctionHash;
|
|
151
|
+
try {
|
|
152
|
+
originRequestFunctionHash = hashPaths(p2.cloudPath("src/edge"));
|
|
153
|
+
} catch (error) {
|
|
154
|
+
console.error("Are we in a Docker container? Failed to hash paths:", error);
|
|
155
|
+
originRequestFunctionHash = null;
|
|
156
|
+
}
|
|
151
157
|
var docsSrc = [
|
|
152
158
|
p2.projectPath("docs"),
|
|
153
159
|
p2.projectPath("config/docs.ts")
|
|
@@ -914,7 +920,7 @@ function prettyBytes(number, options) {
|
|
|
914
920
|
return prefix + numberString + separator + unit;
|
|
915
921
|
}
|
|
916
922
|
// package.json
|
|
917
|
-
var version = "0.58.
|
|
923
|
+
var version = "0.58.59";
|
|
918
924
|
export {
|
|
919
925
|
wordChar,
|
|
920
926
|
wordBoundary,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/utils",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.59",
|
|
5
5
|
"description": "The Stacks helper functions.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"build": "bun --bun build.ts",
|
|
50
50
|
"typecheck": "bun --bun tsc --noEmit",
|
|
51
51
|
"prepublishOnly": "bun --bun run build",
|
|
52
|
-
"size": "
|
|
52
|
+
"size": "bun scripts/export-size.ts"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@stacksjs/actions": "latest",
|
package/src/hash.ts
CHANGED
|
@@ -2,7 +2,16 @@ import { hashPaths } from '@stacksjs/storage'
|
|
|
2
2
|
import { path as p } from '@stacksjs/path'
|
|
3
3
|
import { config } from '@stacksjs/config'
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// eslint-disable-next-line import/no-mutable-exports
|
|
6
|
+
let originRequestFunctionHash
|
|
7
|
+
try {
|
|
8
|
+
originRequestFunctionHash = hashPaths(p.cloudPath('src/edge'))
|
|
9
|
+
}
|
|
10
|
+
catch (error) {
|
|
11
|
+
console.error('Are we in a Docker container? Failed to hash paths:', error)
|
|
12
|
+
originRequestFunctionHash = null // or some default/fallback value
|
|
13
|
+
}
|
|
14
|
+
export { originRequestFunctionHash }
|
|
6
15
|
|
|
7
16
|
const docsSrc = [
|
|
8
17
|
p.projectPath('docs'),
|