repository-provider 26.5.0 → 26.6.0

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/README.md CHANGED
@@ -372,8 +372,9 @@ Type: [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Globa
372
372
 
373
373
  * `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
374
374
  * `writable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**
375
- * `private` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**
375
+ * `private` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** should the value be shown
376
376
  * `description` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
377
+ * `default` **any?** the default value
377
378
 
378
379
  ## definePropertiesFromOptions
379
380
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repository-provider",
3
- "version": "26.5.0",
3
+ "version": "26.6.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,9 +36,9 @@
36
36
  "ava": "^4.0.1",
37
37
  "c8": "^7.11.0",
38
38
  "documentation": "^13.2.5",
39
- "repository-provider-test-support": "^1.11.1",
39
+ "repository-provider-test-support": "^1.12.0",
40
40
  "semantic-release": "^19.0.2",
41
- "typescript": "^4.6.0-dev.20220203"
41
+ "typescript": "^4.6.0-dev.20220204"
42
42
  },
43
43
  "engines": {
44
44
  "node": ">=14.18.3"
package/src/attribute.mjs CHANGED
@@ -6,6 +6,7 @@
6
6
  * @property {boolean} [private] should the value be shown
7
7
  * @property {string} description
8
8
  * @property {any} [default] the default value
9
+ * @property {string|string[]} [env] environment variable use to provide the value
9
10
  */
10
11
 
11
12
  /**
@@ -1,5 +1,4 @@
1
1
  import { asArray, stripBaseName } from "./util.mjs";
2
- import { definePropertiesFromOptions } from "./attribute.mjs";
3
2
  import { PullRequest } from "./pull-request.mjs";
4
3
  import { RepositoryGroup } from "./repository-group.mjs";
5
4
  import { Repository } from "./repository.mjs";
@@ -102,7 +101,8 @@ export class BaseProvider extends BaseObject {
102
101
  * Name of the provider
103
102
  */
104
103
  name: {
105
- type: "string"
104
+ type: "string",
105
+ env: ["{{instanceIdentifier}}NAME"]
106
106
  },
107
107
 
108
108
  url: {