goblin-desktop 4.0.19 → 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.
@@ -165,7 +165,7 @@ module.exports = (config) => {
165
165
  {skills: skills ?? []}
166
166
  );
167
167
 
168
- Goblin.registerQuest(goblinName, 'create-hinters', function* (quest, next) {
168
+ Goblin.registerQuest(goblinName, 'create-hinters', function* (quest) {
169
169
  if (!hinters) {
170
170
  return;
171
171
  }
package/eslint.config.js CHANGED
@@ -15,7 +15,10 @@ module.exports = [
15
15
  languageOptions: {
16
16
  parser: babelParser,
17
17
  parserOptions: {
18
- requireConfigFile: false,
18
+ requireConfigFile: false, // Évite de devoir spécifier un fichier de configuration Babel
19
+ babelOptions: {
20
+ presets: ['@babel/preset-react'],
21
+ },
19
22
  ecmaFeatures: {
20
23
  jsx: true,
21
24
  },
@@ -36,7 +39,7 @@ module.exports = [
36
39
  'eqeqeq': 'error',
37
40
  'no-console': 'off',
38
41
  'react/display-name': 'off',
39
- '@babel/no-unused-expressions': 'error',
42
+ '@babel/no-unused-expressions': 'error', // Utilisation de règles spécifiques à Babel
40
43
  'no-unused-vars': [
41
44
  'error',
42
45
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "goblin-desktop",
3
- "version": "4.0.19",
3
+ "version": "4.0.22",
4
4
  "description": "Goblin Desktop",
5
5
  "main": "./builders/builders.js",
6
6
  "scripts": {
@@ -31,7 +31,7 @@
31
31
  "@fortawesome/react-fontawesome": "^0.1.9",
32
32
  "scroll-into-view-if-needed": "^1.4.0",
33
33
  "xcraft-dev-prettier": "^2.0.0",
34
- "xcraft-dev-rules": "^4.4.0"
34
+ "xcraft-dev-rules": "^4.4.2"
35
35
  },
36
36
  "prettier": "xcraft-dev-prettier"
37
37
  }
@@ -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>`,