@ttsc/strip 0.28.2 → 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.
Files changed (2) hide show
  1. package/driver/config.go +2 -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\\0").digest("hex") : crypto.createHash("sha256").update(fs.readFileSync(file)).digest("hex"); }
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\\0").digest("hex") : crypto.createHash("sha256").update(fs.readFileSync(file)).digest("hex"); }
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttsc/strip",
3
- "version": "0.28.2",
3
+ "version": "0.28.3",
4
4
  "description": "First-party ttsc plugin that removes configured calls and statements from emitted JavaScript.",
5
5
  "main": "src/index.cjs",
6
6
  "types": "src/index.d.ts",