goblin-desktop 4.0.21 → 4.0.22
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
|
@@ -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
|
|
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>`,
|