@beseif-solutions/prow-core 0.3.14 → 0.3.16
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.
|
@@ -7,7 +7,6 @@ const lodash_1 = __importDefault(require("lodash"));
|
|
|
7
7
|
class Context {
|
|
8
8
|
constructor() {
|
|
9
9
|
this.resolve = (field, source, data) => {
|
|
10
|
-
console.log(`Resolve for field ${field.key}`, source, data);
|
|
11
10
|
if (lodash_1.default.isNull(source) || lodash_1.default.isUndefined(source)) {
|
|
12
11
|
return source;
|
|
13
12
|
}
|
package/package.json
CHANGED
|
@@ -33,7 +33,7 @@ export type OAuthCredentials<Config extends CredentialsConfig = {}> = CommonCred
|
|
|
33
33
|
}>,
|
|
34
34
|
connect: CoreFunction<{
|
|
35
35
|
credentials: undefined,
|
|
36
|
-
inputs: { redirect: string, code: string },
|
|
36
|
+
inputs: { redirect: string, code: string } & Record<string, any>,
|
|
37
37
|
outputs: {
|
|
38
38
|
username?: string,
|
|
39
39
|
credentials: Config[`credentials`],
|
|
@@ -4,9 +4,6 @@ import { Field } from "./fields";
|
|
|
4
4
|
class Context {
|
|
5
5
|
|
|
6
6
|
public readonly resolve = (field: Field, source: any, data: Record<string, any>) => {
|
|
7
|
-
|
|
8
|
-
console.log(`Resolve for field ${field.key}`, source, data);
|
|
9
|
-
|
|
10
7
|
if (_.isNull(source) || _.isUndefined(source)) { return source; }
|
|
11
8
|
|
|
12
9
|
let serialized = false;
|