@digipair/skill-common 0.78.2 → 0.78.4

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
@@ -73,7 +73,7 @@ let CommonService = class CommonService {
73
73
  var _context_privates_EDITOR_PATH;
74
74
  const path = (_context_privates_EDITOR_PATH = (_context_privates = context.privates) == null ? void 0 : _context_privates.EDITOR_PATH) != null ? _context_privates_EDITOR_PATH : process.env['DIGIPAIR_FACTORY_PATH'] ? `${process.env['DIGIPAIR_FACTORY_PATH']}/digipairs` : './factory/digipairs';
75
75
  const { digipair } = params;
76
- let schema;
76
+ let schema = {};
77
77
  const content = await fs.promises.readFile(`${path}/${digipair}/config.json`, 'utf8');
78
78
  const config = JSON.parse(content);
79
79
  // check if schema.json exists
@@ -129,7 +129,7 @@ let CommonService = class CommonService {
129
129
  }, {});
130
130
  return _extends({
131
131
  openapi: '3.0.0',
132
- infos: {
132
+ info: {
133
133
  title: 'digipair:' + digipair,
134
134
  summary: config.name,
135
135
  description: config.description,
package/index.esm.js CHANGED
@@ -69,7 +69,7 @@ let CommonService = class CommonService {
69
69
  var _context_privates_EDITOR_PATH;
70
70
  const path = (_context_privates_EDITOR_PATH = (_context_privates = context.privates) == null ? void 0 : _context_privates.EDITOR_PATH) != null ? _context_privates_EDITOR_PATH : process.env['DIGIPAIR_FACTORY_PATH'] ? `${process.env['DIGIPAIR_FACTORY_PATH']}/digipairs` : './factory/digipairs';
71
71
  const { digipair } = params;
72
- let schema;
72
+ let schema = {};
73
73
  const content = await promises.readFile(`${path}/${digipair}/config.json`, 'utf8');
74
74
  const config = JSON.parse(content);
75
75
  // check if schema.json exists
@@ -125,7 +125,7 @@ let CommonService = class CommonService {
125
125
  }, {});
126
126
  return _extends({
127
127
  openapi: '3.0.0',
128
- infos: {
128
+ info: {
129
129
  title: 'digipair:' + digipair,
130
130
  summary: config.name,
131
131
  description: config.description,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-common",
3
- "version": "0.78.2",
3
+ "version": "0.78.4",
4
4
  "keywords": [
5
5
  "digipair",
6
6
  "service",