@ttsc/banner 0.28.1 → 0.28.3
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/driver/banner.go +2 -2
- package/package.json +2 -2
package/driver/banner.go
CHANGED
|
@@ -497,7 +497,7 @@ function recordInput(file) {
|
|
|
497
497
|
const beforeSignature = inputMetadataSignature(file);
|
|
498
498
|
let observed;
|
|
499
499
|
let observedRealpath;
|
|
500
|
-
try { observed = fs.statSync(file).isDirectory() ? crypto.createHash("sha256").update("ttsc:host-input:directory
|
|
500
|
+
try { observed = fs.statSync(file).isDirectory() ? crypto.createHash("sha256").update("ttsc:host-input:directory\0").digest("hex") : crypto.createHash("sha256").update(fs.readFileSync(file)).digest("hex"); }
|
|
501
501
|
catch { observed = null; }
|
|
502
502
|
try { observedRealpath = fs.realpathSync.native(file); }
|
|
503
503
|
catch { observedRealpath = null; }
|
|
@@ -901,7 +901,7 @@ function recordInput(file: string): void {
|
|
|
901
901
|
const beforeSignature = inputMetadataSignature(file);
|
|
902
902
|
let observed: string | null;
|
|
903
903
|
let observedRealpath: string | null;
|
|
904
|
-
try { observed = fs.statSync(file).isDirectory() ? crypto.createHash("sha256").update("ttsc:host-input:directory
|
|
904
|
+
try { observed = fs.statSync(file).isDirectory() ? crypto.createHash("sha256").update("ttsc:host-input:directory\0").digest("hex") : crypto.createHash("sha256").update(fs.readFileSync(file)).digest("hex"); }
|
|
905
905
|
catch { observed = null; }
|
|
906
906
|
try { observedRealpath = fs.realpathSync.native(file); }
|
|
907
907
|
catch { observedRealpath = null; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttsc/banner",
|
|
3
|
-
"version": "0.28.
|
|
3
|
+
"version": "0.28.3",
|
|
4
4
|
"description": "First-party ttsc plugin that adds package-documentation JSDoc banners during emit.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@types/node": "^25.3.0",
|
|
36
36
|
"rimraf": "^6.1.2",
|
|
37
37
|
"typescript": "^7.0.2",
|
|
38
|
-
"ttsc": "0.28.
|
|
38
|
+
"ttsc": "0.28.3"
|
|
39
39
|
},
|
|
40
40
|
"repository": {
|
|
41
41
|
"type": "git",
|