@digipair/skill-editor 0.8.17 → 0.8.19

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
@@ -27,10 +27,10 @@ let EditorService = class EditorService {
27
27
  const { path = (_ref = (_context_privates_EDITOR_PATH = context.privates.EDITOR_PATH) != null ? _context_privates_EDITOR_PATH : process.env['DIGIPAIR_AGENTS_PATH']) != null ? _ref : './dist/apps/factory/assets/digipairs', digipair, reasoning } = params;
28
28
  const text = await fs.promises.readFile(`${path}/${digipair}/${reasoning}.json`, 'utf8');
29
29
  const content = JSON.parse(text);
30
- return _extends({
31
- id: reasoning,
32
- digipair
33
- }, content);
30
+ return _extends({}, content, {
31
+ digipair,
32
+ id: reasoning
33
+ });
34
34
  }
35
35
  async setReasoning(params, _pinsSettingsList, context) {
36
36
  var _context_privates_EDITOR_PATH, _ref;
@@ -49,9 +49,9 @@ let EditorService = class EditorService {
49
49
  const { path = (_ref = (_context_privates_EDITOR_PATH = context.privates.EDITOR_PATH) != null ? _context_privates_EDITOR_PATH : process.env['DIGIPAIR_AGENTS_PATH']) != null ? _ref : './dist/apps/factory/assets/digipairs', digipair } = params;
50
50
  const text = await fs.promises.readFile(`${path}/${digipair}/config.json`, 'utf8');
51
51
  const config = JSON.parse(text);
52
- return _extends({
52
+ return _extends({}, config, {
53
53
  id: digipair
54
- }, config);
54
+ });
55
55
  }
56
56
  async setDigipair(params, _pinsSettingsList, context) {
57
57
  var _context_privates_EDITOR_PATH, _ref;
package/index.esm.js CHANGED
@@ -23,10 +23,10 @@ let EditorService = class EditorService {
23
23
  const { path = (_ref = (_context_privates_EDITOR_PATH = context.privates.EDITOR_PATH) != null ? _context_privates_EDITOR_PATH : process.env['DIGIPAIR_AGENTS_PATH']) != null ? _ref : './dist/apps/factory/assets/digipairs', digipair, reasoning } = params;
24
24
  const text = await promises.readFile(`${path}/${digipair}/${reasoning}.json`, 'utf8');
25
25
  const content = JSON.parse(text);
26
- return _extends({
27
- id: reasoning,
28
- digipair
29
- }, content);
26
+ return _extends({}, content, {
27
+ digipair,
28
+ id: reasoning
29
+ });
30
30
  }
31
31
  async setReasoning(params, _pinsSettingsList, context) {
32
32
  var _context_privates_EDITOR_PATH, _ref;
@@ -45,9 +45,9 @@ let EditorService = class EditorService {
45
45
  const { path = (_ref = (_context_privates_EDITOR_PATH = context.privates.EDITOR_PATH) != null ? _context_privates_EDITOR_PATH : process.env['DIGIPAIR_AGENTS_PATH']) != null ? _ref : './dist/apps/factory/assets/digipairs', digipair } = params;
46
46
  const text = await promises.readFile(`${path}/${digipair}/config.json`, 'utf8');
47
47
  const config = JSON.parse(text);
48
- return _extends({
48
+ return _extends({}, config, {
49
49
  id: digipair
50
- }, config);
50
+ });
51
51
  }
52
52
  async setDigipair(params, _pinsSettingsList, context) {
53
53
  var _context_privates_EDITOR_PATH, _ref;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-editor",
3
- "version": "0.8.17",
3
+ "version": "0.8.19",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"
File without changes