@aloma.io/integration-sdk 3.0.0-11 → 3.0.0-13
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.
@@ -17,7 +17,6 @@ export default class RuntimeContext {
|
|
17
17
|
version: data.version,
|
18
18
|
name: `${data.id}/${data.version}`,
|
19
19
|
});
|
20
|
-
console.log('setting config', data.config);
|
21
20
|
const configuration = connector.configure().config(data.config || {});
|
22
21
|
const resolvers = {};
|
23
22
|
const methods = [...data.methods, '__endpoint', '__configQuery', '__default'];
|
@@ -34,6 +33,9 @@ export default class RuntimeContext {
|
|
34
33
|
if (data.options?.endpoint?.enabled) {
|
35
34
|
configuration.endpoint((arg) => controller.__endpoint(arg));
|
36
35
|
}
|
36
|
+
if (data.auth?.oauth) {
|
37
|
+
configuration.oauth(data.auth?.oauth);
|
38
|
+
}
|
37
39
|
configuration.main(async ({ newTask, updateTask, config, oauth, getClient }) => {
|
38
40
|
try {
|
39
41
|
await controller._doStop();
|
package/package.json
CHANGED
@@ -16,8 +16,6 @@ export default class RuntimeContext {
|
|
16
16
|
name: `${data.id}/${data.version}`,
|
17
17
|
});
|
18
18
|
|
19
|
-
console.log('setting config', data.config)
|
20
|
-
|
21
19
|
const configuration = connector.configure().config(data.config || {});
|
22
20
|
|
23
21
|
const resolvers: any = {};
|
@@ -32,15 +30,18 @@ export default class RuntimeContext {
|
|
32
30
|
});
|
33
31
|
|
34
32
|
configuration
|
35
|
-
|
36
33
|
.types(data.types)
|
37
34
|
.resolvers(resolvers);
|
38
35
|
|
39
|
-
|
40
36
|
if (data.options?.endpoint?.enabled)
|
41
37
|
{
|
42
38
|
configuration.endpoint((arg) => controller.__endpoint(arg));
|
43
39
|
}
|
40
|
+
|
41
|
+
if (data.auth?.oauth)
|
42
|
+
{
|
43
|
+
configuration.oauth(data.auth?.oauth);
|
44
|
+
}
|
44
45
|
|
45
46
|
configuration.main(async ({newTask, updateTask, config, oauth, getClient}) => {
|
46
47
|
try {
|