@digipair/skill-editor 0.74.1 → 0.74.3

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/index.cjs.js CHANGED
@@ -15179,7 +15179,7 @@ let EditorService = class EditorService {
15179
15179
  }
15180
15180
  async tools(params, _pinsSettingsList, context) {
15181
15181
  const { language = 'en' } = params;
15182
- const packageFile = require.resolve('./package.json');
15182
+ const packageFile = process.cwd() + '/package.json';
15183
15183
  const infos = require(packageFile);
15184
15184
  const dependencies = Object.keys(infos.dependencies);
15185
15185
  const list = [];
@@ -15197,10 +15197,10 @@ let EditorService = class EditorService {
15197
15197
  const schema = JSON.parse(await promises.readFile(schemasPath, 'utf8'));
15198
15198
  list.push({
15199
15199
  name: dependency,
15200
- summary: schema.infos.summary,
15201
- description: schema.infos.description,
15202
- version: schema.infos.version,
15203
- icon: schema.infos['x-icon']
15200
+ summary: schema.info.summary,
15201
+ description: schema.info.description,
15202
+ version: schema.info.version,
15203
+ icon: schema.info['x-icon']
15204
15204
  });
15205
15205
  }
15206
15206
  } catch (error) {
package/index.esm.js CHANGED
@@ -15175,7 +15175,7 @@ let EditorService = class EditorService {
15175
15175
  }
15176
15176
  async tools(params, _pinsSettingsList, context) {
15177
15177
  const { language = 'en' } = params;
15178
- const packageFile = require.resolve('./package.json');
15178
+ const packageFile = process.cwd() + '/package.json';
15179
15179
  const infos = require(packageFile);
15180
15180
  const dependencies = Object.keys(infos.dependencies);
15181
15181
  const list = [];
@@ -15193,10 +15193,10 @@ let EditorService = class EditorService {
15193
15193
  const schema = JSON.parse(await readFile(schemasPath, 'utf8'));
15194
15194
  list.push({
15195
15195
  name: dependency,
15196
- summary: schema.infos.summary,
15197
- description: schema.infos.description,
15198
- version: schema.infos.version,
15199
- icon: schema.infos['x-icon']
15196
+ summary: schema.info.summary,
15197
+ description: schema.info.description,
15198
+ version: schema.info.version,
15199
+ icon: schema.info['x-icon']
15200
15200
  });
15201
15201
  }
15202
15202
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-editor",
3
- "version": "0.74.1",
3
+ "version": "0.74.3",
4
4
  "keywords": [
5
5
  "digipair",
6
6
  "service",
package/schema.fr.json CHANGED
@@ -396,7 +396,17 @@
396
396
  "tags": ["service"],
397
397
  "summary": "Liste des outils",
398
398
  "descriptions": "Liste des outils disponibles",
399
- "parameters": [],
399
+ "parameters": [
400
+ {
401
+ "name": "language",
402
+ "summary": "Langue",
403
+ "required": true,
404
+ "description": "Langue des outils",
405
+ "schema": {
406
+ "type": "string"
407
+ }
408
+ }
409
+ ],
400
410
  "x-events": []
401
411
  }
402
412
  }
package/schema.json CHANGED
@@ -396,7 +396,17 @@
396
396
  "tags": ["service"],
397
397
  "summary": "List tools",
398
398
  "descriptions": "Lists the available tools",
399
- "parameters": [],
399
+ "parameters": [
400
+ {
401
+ "name": "language",
402
+ "summary": "Language",
403
+ "required": true,
404
+ "description": "Language of the tools",
405
+ "schema": {
406
+ "type": "string"
407
+ }
408
+ }
409
+ ],
400
410
  "x-events": []
401
411
  }
402
412
  }