braidfs 0.0.110 → 0.0.112

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/index.js +3 -9
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -299,7 +299,7 @@ async function watch_files() {
299
299
  on('unlink', x => chokidar_handler(x, 'unlink'))
300
300
 
301
301
  async function chokidar_handler(fullpath, event) {
302
- console.log(`file event "${event}": ${fullpath}`)
302
+ // console.log(`file event "${event}": ${fullpath}`)
303
303
 
304
304
  // Make sure the path is within sync_base..
305
305
  if (!fullpath.startsWith(sync_base))
@@ -333,14 +333,8 @@ async function scan_files() {
333
333
  )
334
334
  console.log(`scan files.. `, timestamp)
335
335
 
336
- // this can be removed in the future;
337
- // some debug information about chokidar:
338
- var internal = 'unknown'
339
- for (var k in watch_files?.watcher ?? {}) {
340
- if (k.startsWith('_fsEvents')) internal = "_fsEvents"
341
- if (k.startsWith('_nodeFs')) internal = "_nodeFs"
342
- }
343
- console.log(`chokidar info: FSEvents=${watch_files?.watcher?.options?.useFsEvents}, polling=${watch_files?.watcher?.options?.usePolling}, internal=${internal}`)
336
+ if (watch_files?.watcher?.options?.usePolling)
337
+ console.log('Warning: BAD PERFORMANCE!! Filesystem using polling!')
344
338
 
345
339
  if (await f(sync_base))
346
340
  on_watcher_miss(`scanner picked up a change that the watcher should have gotten`, false)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "braidfs",
3
- "version": "0.0.110",
3
+ "version": "0.0.112",
4
4
  "description": "braid technology synchronizing files and webpages",
5
5
  "author": "Braid Working Group",
6
6
  "repository": "braid-org/braidfs",