@digipair/skill-common 0.82.4 → 0.82.6
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 +3 -3
- package/index.esm.js +3 -3
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -81,13 +81,13 @@ let CommonService = class CommonService {
|
|
|
81
81
|
const text = await fs.promises.readFile(`${path}/${digipair}/schema.json`, 'utf8');
|
|
82
82
|
schema = JSON.parse(text);
|
|
83
83
|
}
|
|
84
|
-
const filesCommon = await fs.promises.readdir(`${path}
|
|
84
|
+
const filesCommon = await fs.promises.readdir(`${path}/common`);
|
|
85
85
|
const files = await fs.promises.readdir(`${path}/${digipair}`);
|
|
86
86
|
const actionsCommon = (await Promise.all(filesCommon.map((file)=>{
|
|
87
87
|
var _exec;
|
|
88
88
|
return (_exec = /^action-(.*)\.json$/.exec(file)) == null ? void 0 : _exec[1];
|
|
89
89
|
}).filter((name)=>name).map(async (name)=>{
|
|
90
|
-
const actionContent = await fs.promises.readFile(`${path}
|
|
90
|
+
const actionContent = await fs.promises.readFile(`${path}/common/action-${name}.json`, 'utf8');
|
|
91
91
|
const { summary, description, metadata } = JSON.parse(actionContent);
|
|
92
92
|
var _metadata_tags, _metadata_parameters;
|
|
93
93
|
return {
|
|
@@ -137,7 +137,7 @@ let CommonService = class CommonService {
|
|
|
137
137
|
var _exec;
|
|
138
138
|
return (_exec = /^trigger-(.*)\.json$/.exec(file)) == null ? void 0 : _exec[1];
|
|
139
139
|
}).filter((name)=>name).map(async (name)=>{
|
|
140
|
-
const triggerContent = await fs.promises.readFile(`${path}
|
|
140
|
+
const triggerContent = await fs.promises.readFile(`${path}/common/trigger-${name}.json`, 'utf8');
|
|
141
141
|
const { summary, description, metadata } = JSON.parse(triggerContent);
|
|
142
142
|
var _metadata_tags, _metadata_parameters;
|
|
143
143
|
return {
|
package/index.esm.js
CHANGED
|
@@ -77,13 +77,13 @@ let CommonService = class CommonService {
|
|
|
77
77
|
const text = await promises.readFile(`${path}/${digipair}/schema.json`, 'utf8');
|
|
78
78
|
schema = JSON.parse(text);
|
|
79
79
|
}
|
|
80
|
-
const filesCommon = await promises.readdir(`${path}
|
|
80
|
+
const filesCommon = await promises.readdir(`${path}/common`);
|
|
81
81
|
const files = await promises.readdir(`${path}/${digipair}`);
|
|
82
82
|
const actionsCommon = (await Promise.all(filesCommon.map((file)=>{
|
|
83
83
|
var _exec;
|
|
84
84
|
return (_exec = /^action-(.*)\.json$/.exec(file)) == null ? void 0 : _exec[1];
|
|
85
85
|
}).filter((name)=>name).map(async (name)=>{
|
|
86
|
-
const actionContent = await promises.readFile(`${path}
|
|
86
|
+
const actionContent = await promises.readFile(`${path}/common/action-${name}.json`, 'utf8');
|
|
87
87
|
const { summary, description, metadata } = JSON.parse(actionContent);
|
|
88
88
|
var _metadata_tags, _metadata_parameters;
|
|
89
89
|
return {
|
|
@@ -133,7 +133,7 @@ let CommonService = class CommonService {
|
|
|
133
133
|
var _exec;
|
|
134
134
|
return (_exec = /^trigger-(.*)\.json$/.exec(file)) == null ? void 0 : _exec[1];
|
|
135
135
|
}).filter((name)=>name).map(async (name)=>{
|
|
136
|
-
const triggerContent = await promises.readFile(`${path}
|
|
136
|
+
const triggerContent = await promises.readFile(`${path}/common/trigger-${name}.json`, 'utf8');
|
|
137
137
|
const { summary, description, metadata } = JSON.parse(triggerContent);
|
|
138
138
|
var _metadata_tags, _metadata_parameters;
|
|
139
139
|
return {
|