goblin-desktop 4.0.21 → 4.0.23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "goblin-desktop",
3
- "version": "4.0.21",
3
+ "version": "4.0.23",
4
4
  "description": "Goblin Desktop",
5
5
  "main": "./builders/builders.js",
6
6
  "scripts": {
@@ -5,9 +5,7 @@ const Goblin = require('xcraft-core-goblin');
5
5
  const watt = require('gigawatts');
6
6
  const goblinName = path.basename(module.parent.filename, '.js');
7
7
  const StringBuilder = require('goblin-nabu/lib/string-builder.js');
8
- const xUtils = require('xcraft-core-utils');
9
- const {getFileFilter} = xUtils.files;
10
- const {locks} = require('xcraft-core-utils');
8
+ const locks = require('xcraft-core-utils/lib/locks.js');
11
9
  const desktopLock = locks.getMutex;
12
10
  // Define initial logic values
13
11
  const logicState = {};
@@ -684,6 +682,7 @@ Goblin.registerQuest(goblinName, 'download-file', function (
684
682
  const stream = fs.createReadStream;
685
683
  const routingKey = require('xcraft-core-host').getRoutingKey();
686
684
  if (fs.existsSync(filePath)) {
685
+ const getFileFilter = require('xcraft-core-utils/lib/files.js');
687
686
  let file = stream(filePath);
688
687
  quest.evt(
689
688
  `<${clientSessionId}-${clientWindowId}-download-file-requested>`,