@andersbakken/fisk 4.0.13 → 4.0.15

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.
@@ -7561,7 +7561,8 @@ class ObjectCache extends EventEmitter__default["default"] {
7561
7561
  fs$4.readdirSync(this.dir)
7562
7562
  .map((fileName) => {
7563
7563
  const ret = { path: path__default["default"].join(this.dir, fileName) };
7564
- if (fileName.length === 32) {
7564
+ console.log("shit", fileName, fileName.length, ret);
7565
+ if (fileName.length === 40) {
7565
7566
  try {
7566
7567
  const stat = fs$4.statSync(ret.path);
7567
7568
  if (stat.isFile()) {
@@ -7589,11 +7590,11 @@ class ObjectCache extends EventEmitter__default["default"] {
7589
7590
  }
7590
7591
  loadFile(filePath, fileSize) {
7591
7592
  const fileName = path__default["default"].basename(filePath);
7592
- // console.log("got file", file);
7593
+ console.log("got file", filePath, fileSize);
7593
7594
  let fd;
7594
7595
  let jsonBuffer;
7595
7596
  try {
7596
- if (fileName.length === 32) {
7597
+ if (fileName.length === 40) {
7597
7598
  const headerSizeBuffer = Buffer.allocUnsafe(4);
7598
7599
  fd = fs$4.openSync(filePath, "r");
7599
7600
  const stat = fs$4.statSync(filePath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andersbakken/fisk",
3
- "version": "4.0.13",
3
+ "version": "4.0.15",
4
4
  "description": "Fisk, a distributed compile system",
5
5
  "scripts": {
6
6
  "lint": "eslint . --ext .ts",
@@ -62,7 +62,7 @@
62
62
  "@types/posix": "^4.2.0",
63
63
  "@types/url-parse": "^1.4.8",
64
64
  "@types/ws": "^8.5.3",
65
- "@typescript-eslint/eslint-plugin": "^4.14.2",
65
+ "@typescript-eslint/eslint-plugin": "^4.33.0",
66
66
  "@typescript-eslint/parser": "^4.14.2",
67
67
  "eslint": "^7.19.0",
68
68
  "eslint-plugin-sort-imports-es6-autofix": "^0.5.0",