@ttsc/strip 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/config.go +2 -2
- package/package.json +1 -1
package/driver/config.go
CHANGED
|
@@ -355,7 +355,7 @@ function recordInput(file) {
|
|
|
355
355
|
const beforeSignature = inputMetadataSignature(file);
|
|
356
356
|
let observed;
|
|
357
357
|
let observedRealpath;
|
|
358
|
-
try { observed = fs.statSync(file).isDirectory() ? crypto.createHash("sha256").update("ttsc:host-input:directory
|
|
358
|
+
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"); }
|
|
359
359
|
catch { observed = null; }
|
|
360
360
|
try { observedRealpath = fs.realpathSync.native(file); }
|
|
361
361
|
catch { observedRealpath = null; }
|
|
@@ -688,7 +688,7 @@ function recordInput(file: string): void {
|
|
|
688
688
|
const beforeSignature = inputMetadataSignature(file);
|
|
689
689
|
let observed: string | null;
|
|
690
690
|
let observedRealpath: string | null;
|
|
691
|
-
try { observed = fs.statSync(file).isDirectory() ? crypto.createHash("sha256").update("ttsc:host-input:directory
|
|
691
|
+
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"); }
|
|
692
692
|
catch { observed = null; }
|
|
693
693
|
try { observedRealpath = fs.realpathSync.native(file); }
|
|
694
694
|
catch { observedRealpath = null; }
|
package/package.json
CHANGED