repository-provider 28.1.0 → 28.1.1
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/package.json +2 -2
- package/src/base-provider.mjs +7 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repository-provider",
|
|
3
|
-
"version": "28.1.
|
|
3
|
+
"version": "28.1.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"ava": "^4.2.0",
|
|
37
37
|
"c8": "^7.11.2",
|
|
38
38
|
"documentation": "^13.2.5",
|
|
39
|
-
"repository-provider-test-support": "^2.1.
|
|
39
|
+
"repository-provider-test-support": "^2.1.1",
|
|
40
40
|
"semantic-release": "^19.0.2",
|
|
41
41
|
"typescript": "^4.6.3"
|
|
42
42
|
},
|
package/src/base-provider.mjs
CHANGED
|
@@ -31,7 +31,8 @@ export class BaseProvider extends BaseObject {
|
|
|
31
31
|
/**
|
|
32
32
|
* Extract options suitable for the constructor
|
|
33
33
|
* form the given set of environment variables.
|
|
34
|
-
*
|
|
34
|
+
* Object with the detected key value pairs is delivered.
|
|
35
|
+
* @param {Object} env as from process.env
|
|
35
36
|
* @param {string} instanceIdentifier part of variable name.
|
|
36
37
|
* @return {Object} undefined if no suitable environment variables have been found
|
|
37
38
|
*/
|
|
@@ -58,8 +59,11 @@ export class BaseProvider extends BaseObject {
|
|
|
58
59
|
if (options === undefined) {
|
|
59
60
|
options = {};
|
|
60
61
|
}
|
|
61
|
-
|
|
62
|
-
|
|
62
|
+
|
|
63
|
+
if(options[name] === undefined) {
|
|
64
|
+
options[name] = value;
|
|
65
|
+
Object.assign(options, attribute.additionalAttributes);
|
|
66
|
+
}
|
|
63
67
|
break;
|
|
64
68
|
}
|
|
65
69
|
}
|