@stacksjs/utils 0.59.6 → 0.59.8
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/hash.d.ts +2 -2
- package/dist/helpers.d.ts +1 -1
- package/dist/index.js +11 -9
- package/package.json +3 -3
- package/src/hash.ts +10 -8
package/dist/hash.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function originRequestFunctionHash():
|
|
2
|
-
export declare
|
|
1
|
+
export declare function originRequestFunctionHash(): any;
|
|
2
|
+
export declare function websiteSourceHash(): any;
|
package/dist/helpers.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { AddressInfo } from 'node:net';
|
|
|
3
3
|
import type { Result } from '@stacksjs/error-handling';
|
|
4
4
|
import type { CliOptions, Manifest, SyncSubprocess } from '@stacksjs/types';
|
|
5
5
|
import type { NpmScript } from '@stacksjs/enums';
|
|
6
|
-
export declare function packageManager(): Promise<
|
|
6
|
+
export declare function packageManager(): Promise<any>;
|
|
7
7
|
export declare function initProject(): Promise<Result<SyncSubprocess, Error>>;
|
|
8
8
|
export declare function ensureProjectIsInitialized(): Promise<boolean>;
|
|
9
9
|
export declare function installIfVersionMismatch(): Promise<void>;
|
package/dist/index.js
CHANGED
|
@@ -215,14 +215,16 @@ function originRequestFunctionHash() {
|
|
|
215
215
|
return;
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
218
|
+
function websiteSourceHash() {
|
|
219
|
+
const docsSrc = [
|
|
220
|
+
p2.projectPath("docs"),
|
|
221
|
+
p2.projectPath("config/docs.ts")
|
|
222
|
+
];
|
|
223
|
+
const websiteSrc = [
|
|
224
|
+
p2.projectPath("resources/views")
|
|
225
|
+
];
|
|
226
|
+
return config2.app.docMode === true ? hashPaths(docsSrc) : hashPaths(websiteSrc);
|
|
227
|
+
}
|
|
226
228
|
// src/helpers.ts
|
|
227
229
|
import {log as log3, runCommand} from "@stacksjs/cli";
|
|
228
230
|
import {err, handleError, ok} from "@stacksjs/error-handling";
|
|
@@ -900,7 +902,7 @@ function prettyBytes(number, options) {
|
|
|
900
902
|
return prefix + numberString + separator + unit;
|
|
901
903
|
}
|
|
902
904
|
// package.json
|
|
903
|
-
var version = "0.59.
|
|
905
|
+
var version = "0.59.8";
|
|
904
906
|
export {
|
|
905
907
|
wordChar,
|
|
906
908
|
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
|
+
"version": "0.59.8",
|
|
5
5
|
"description": "The Stacks helper functions.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"bun-plugin-env": "^0.4.1",
|
|
71
71
|
"bun-plugin-yml": "^0.3.0",
|
|
72
72
|
"export-size": "^0.7.0",
|
|
73
|
-
"yaml": "^2.4.
|
|
73
|
+
"yaml": "^2.4.1"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
76
|
"@dinero.js/currencies": "2.0.0-alpha.14",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"p-limit": "^5.0.0",
|
|
102
102
|
"perfect-debounce": "^1.0.0",
|
|
103
103
|
"pretty-bytes": "^6.1.1",
|
|
104
|
-
"yaml": "^2.4.
|
|
104
|
+
"yaml": "^2.4.1"
|
|
105
105
|
},
|
|
106
106
|
"devDependencies": {
|
|
107
107
|
"@stacksjs/development": "latest",
|
package/src/hash.ts
CHANGED
|
@@ -14,14 +14,16 @@ export function originRequestFunctionHash() {
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
export function websiteSourceHash() {
|
|
18
|
+
const docsSrc = [
|
|
19
|
+
p.projectPath('docs'),
|
|
20
|
+
p.projectPath('config/docs.ts'),
|
|
21
|
+
]
|
|
21
22
|
|
|
22
|
-
const websiteSrc = [
|
|
23
|
-
|
|
23
|
+
const websiteSrc = [
|
|
24
|
+
p.projectPath('resources/views'),
|
|
24
25
|
// p.projectPath('config/app.ts'),
|
|
25
|
-
]
|
|
26
|
+
]
|
|
26
27
|
|
|
27
|
-
|
|
28
|
+
return config.app.docMode === true ? hashPaths(docsSrc) : hashPaths(websiteSrc)
|
|
29
|
+
}
|