repository-provider 35.2.11 → 35.2.12

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
@@ -626,9 +626,6 @@ Creates an instance of BaseObject.
626
626
  ### Parameters
627
627
 
628
628
  * `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** 
629
-
630
- * `options.id` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** 
631
- * `options.description` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** 
632
629
  * `additionalProperties` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** 
633
630
 
634
631
  ### Properties
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repository-provider",
3
- "version": "35.2.11",
3
+ "version": "35.2.12",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -36,7 +36,7 @@
36
36
  "lint:tsc": "tsc --allowJs --checkJs --noEmit -t esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
37
37
  },
38
38
  "dependencies": {
39
- "content-entry": "^8.1.2",
39
+ "content-entry": "^9.0.0",
40
40
  "matching-iterator": "^2.1.3",
41
41
  "pacc": "^3.1.5"
42
42
  },
@@ -45,7 +45,7 @@
45
45
  "browser-ava": "^2.2.0",
46
46
  "c8": "^9.1.0",
47
47
  "documentation": "^14.0.3",
48
- "repository-provider-test-support": "^3.1.2",
48
+ "repository-provider-test-support": "^3.1.3",
49
49
  "semantic-release": "^23.0.2",
50
50
  "typescript": "^5.3.3"
51
51
  },
@@ -62,13 +62,20 @@ export class BaseObject {
62
62
  return {};
63
63
  }
64
64
 
65
+ /**
66
+ * Creates an instance of BaseObject.
67
+ * @param {Object} [options]
68
+ * @param {string} [options.id]
69
+ * @param {string} [options.description]
70
+ * @param {Object} [additionalProperties]
71
+ */
65
72
  constructor(options, additionalProperties) {
66
73
  this.updateAttributes(options, additionalProperties);
67
74
  }
68
75
 
69
76
  /**
70
77
  * Takes values from options.
71
- * @param {Object} options
78
+ * @param {Object} [options]
72
79
  * @param {Object} [additionalProperties]
73
80
  */
74
81
  updateAttributes(options, additionalProperties) {
@@ -147,13 +147,14 @@ export class BaseProvider extends BaseObject {
147
147
  * Creates a new provider for a given set of options.
148
148
  * @param {Object} options additional options
149
149
  * @param {string} [options.instanceIdentifier] name of the provider instance
150
+ * @param {string} [options.description]
150
151
  * @param {Object} env taken from process.env
151
152
  * @return {BaseProvider|undefined} newly created provider or undefined if options are not sufficient to construct a provider
152
153
  */
153
- static initialize(options = {}, env) {
154
+ static initialize(options, env) {
154
155
  options = {
155
156
  ...options,
156
- ...this.optionsFromEnvironment(env, options.instanceIdentifier)
157
+ ...this.optionsFromEnvironment(env, options?.instanceIdentifier)
157
158
  };
158
159
 
159
160
  if (this.areOptionsSufficcient(options)) {
@@ -36,13 +36,23 @@ export class BaseObject {
36
36
  * @return {Object}
37
37
  */
38
38
  static get attributeMapping(): any;
39
- constructor(options: any, additionalProperties: any);
39
+ /**
40
+ * Creates an instance of BaseObject.
41
+ * @param {Object} [options]
42
+ * @param {string} [options.id]
43
+ * @param {string} [options.description]
44
+ * @param {Object} [additionalProperties]
45
+ */
46
+ constructor(options?: {
47
+ id?: string;
48
+ description?: string;
49
+ }, additionalProperties?: any);
40
50
  /**
41
51
  * Takes values from options.
42
- * @param {Object} options
52
+ * @param {Object} [options]
43
53
  * @param {Object} [additionalProperties]
44
54
  */
45
- updateAttributes(options: any, additionalProperties?: any): void;
55
+ updateAttributes(options?: any, additionalProperties?: any): void;
46
56
  /**
47
57
  * Save object attributes in the backing store.
48
58
  */
@@ -83,11 +83,13 @@ export class BaseProvider extends BaseObject {
83
83
  * Creates a new provider for a given set of options.
84
84
  * @param {Object} options additional options
85
85
  * @param {string} [options.instanceIdentifier] name of the provider instance
86
+ * @param {string} [options.description]
86
87
  * @param {Object} env taken from process.env
87
88
  * @return {BaseProvider|undefined} newly created provider or undefined if options are not sufficient to construct a provider
88
89
  */
89
90
  static initialize(options: {
90
91
  instanceIdentifier?: string;
92
+ description?: string;
91
93
  }, env: any): BaseProvider | undefined;
92
94
  get priority(): number;
93
95
  /**