repository-provider 32.6.9 → 32.6.10

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
@@ -71,6 +71,7 @@ console.log(await readme.getString());
71
71
  * [priority\_attribute](#priority_attribute)
72
72
  * [BaseObject](#baseobject)
73
73
  * [Parameters](#parameters-8)
74
+ * [Properties](#properties-1)
74
75
  * [updateAttributes](#updateattributes)
75
76
  * [Parameters](#parameters-9)
76
77
  * [update](#update)
@@ -86,44 +87,60 @@ console.log(await readme.getString());
86
87
  * [attributes](#attributes)
87
88
  * [writableAttributes](#writableattributes)
88
89
  * [attributeMapping](#attributemapping)
90
+ * [BaseObject](#baseobject-1)
91
+ * [Parameters](#parameters-11)
92
+ * [updateAttributes](#updateattributes-1)
93
+ * [Parameters](#parameters-12)
94
+ * [update](#update-1)
95
+ * [toString](#tostring-1)
96
+ * [displayName](#displayname-1)
97
+ * [fullName](#fullname-1)
98
+ * [fullCondensedName](#fullcondensedname-1)
99
+ * [isWritable](#iswritable-1)
100
+ * [equals](#equals-1)
101
+ * [Parameters](#parameters-13)
102
+ * [type](#type-1)
103
+ * [collectionName](#collectionname-1)
104
+ * [attributes](#attributes-1)
105
+ * [writableAttributes](#writableattributes-1)
106
+ * [attributeMapping](#attributemapping-1)
89
107
  * [MessageDestination](#messagedestination)
90
- * [Properties](#properties-1)
91
- * [BaseProvider](#baseprovider)
92
108
  * [Properties](#properties-2)
93
- * [equals](#equals-1)
94
- * [Parameters](#parameters-11)
109
+ * [BaseProvider](#baseprovider)
110
+ * [Properties](#properties-3)
111
+ * [equals](#equals-2)
112
+ * [Parameters](#parameters-14)
95
113
  * [repositoryBases](#repositorybases)
114
+ * [supportsBase](#supportsbase)
115
+ * [Parameters](#parameters-15)
96
116
  * [normalizeRepositoryName](#normalizerepositoryname)
97
- * [Parameters](#parameters-12)
117
+ * [Parameters](#parameters-16)
98
118
  * [normalizeGroupName](#normalizegroupname)
99
- * [Parameters](#parameters-13)
119
+ * [Parameters](#parameters-17)
100
120
  * [areRepositoryNamesCaseSensitive](#arerepositorynamescasesensitive)
101
121
  * [areGroupNamesCaseSensitive](#aregroupnamescasesensitive)
102
- * [supportsBase](#supportsbase)
103
- * [Parameters](#parameters-14)
104
122
  * [parseName](#parsename)
105
- * [Parameters](#parameters-15)
123
+ * [Parameters](#parameters-18)
106
124
  * [createRepository](#createrepository)
107
- * [Parameters](#parameters-16)
125
+ * [Parameters](#parameters-19)
108
126
  * [list](#list)
109
- * [Parameters](#parameters-17)
127
+ * [Parameters](#parameters-20)
110
128
  * [projects](#projects)
111
- * [Parameters](#parameters-18)
129
+ * [Parameters](#parameters-21)
112
130
  * [milestones](#milestones)
113
- * [Parameters](#parameters-19)
131
+ * [Parameters](#parameters-22)
114
132
  * [repositories](#repositories)
115
- * [Parameters](#parameters-20)
133
+ * [Parameters](#parameters-23)
116
134
  * [branches](#branches)
117
- * [Parameters](#parameters-21)
135
+ * [Parameters](#parameters-24)
118
136
  * [tags](#tags)
119
- * [Parameters](#parameters-22)
137
+ * [Parameters](#parameters-25)
120
138
  * [hooks](#hooks)
121
- * [Parameters](#parameters-23)
139
+ * [Parameters](#parameters-26)
122
140
  * [pullRequests](#pullrequests)
123
- * [Parameters](#parameters-24)
141
+ * [Parameters](#parameters-27)
124
142
  * [name](#name)
125
143
  * [provider](#provider)
126
- * [url](#url)
127
144
  * [toJSON](#tojson)
128
145
  * [repositoryGroupClass](#repositorygroupclass)
129
146
  * [hookClass](#hookclass)
@@ -134,78 +151,78 @@ console.log(await readme.getString());
134
151
  * [pullRequestClass](#pullrequestclass)
135
152
  * [instanceIdentifier](#instanceidentifier)
136
153
  * [optionsFromEnvironment](#optionsfromenvironment)
137
- * [Parameters](#parameters-25)
154
+ * [Parameters](#parameters-28)
138
155
  * [areOptionsSufficcient](#areoptionssufficcient)
139
- * [Parameters](#parameters-26)
156
+ * [Parameters](#parameters-29)
140
157
  * [initialize](#initialize)
141
- * [Parameters](#parameters-27)
158
+ * [Parameters](#parameters-30)
142
159
  * [name](#name-1)
143
160
  * [messageDestination](#messagedestination-1)
144
161
  * [Branch](#branch)
145
- * [Parameters](#parameters-28)
146
- * [Properties](#properties-3)
147
- * [url](#url-1)
162
+ * [Parameters](#parameters-31)
163
+ * [Properties](#properties-4)
164
+ * [url](#url)
148
165
  * [refType](#reftype)
149
- * [isWritable](#iswritable-1)
166
+ * [isWritable](#iswritable-2)
150
167
  * [isDefault](#isdefault)
151
168
  * [delete](#delete)
152
169
  * [commit](#commit)
153
- * [Parameters](#parameters-29)
170
+ * [Parameters](#parameters-32)
154
171
  * [commitIntoPullRequest](#commitintopullrequest)
155
- * [Parameters](#parameters-30)
172
+ * [Parameters](#parameters-33)
156
173
  * [removeEntries](#removeentries)
157
- * [Parameters](#parameters-31)
174
+ * [Parameters](#parameters-34)
158
175
  * [createPullRequest](#createpullrequest)
159
- * [Parameters](#parameters-32)
176
+ * [Parameters](#parameters-35)
160
177
  * [createBranch](#createbranch)
161
- * [Parameters](#parameters-33)
178
+ * [Parameters](#parameters-36)
162
179
  * [CommitResult](#commitresult)
163
- * [Properties](#properties-4)
164
- * [Commit](#commit-1)
165
- * [Parameters](#parameters-34)
166
180
  * [Properties](#properties-5)
181
+ * [Commit](#commit-1)
182
+ * [Parameters](#parameters-37)
183
+ * [Properties](#properties-6)
167
184
  * [Hook](#hook)
168
185
  * [Issue](#issue)
169
186
  * [Milestone](#milestone)
170
187
  * [MultiGroupProvider](#multigroupprovider)
171
188
  * [repository](#repository)
172
- * [Parameters](#parameters-35)
189
+ * [Parameters](#parameters-38)
173
190
  * [branch](#branch-1)
174
- * [Parameters](#parameters-36)
191
+ * [Parameters](#parameters-39)
175
192
  * [repositoryGroup](#repositorygroup)
176
- * [Parameters](#parameters-37)
193
+ * [Parameters](#parameters-40)
177
194
  * [repositoryGroups](#repositorygroups)
178
- * [Parameters](#parameters-38)
195
+ * [Parameters](#parameters-41)
179
196
  * [createRepositoryGroup](#createrepositorygroup)
180
- * [Parameters](#parameters-39)
197
+ * [Parameters](#parameters-42)
181
198
  * [addRepositoryGroup](#addrepositorygroup)
182
- * [Parameters](#parameters-40)
199
+ * [Parameters](#parameters-43)
183
200
  * [NamedObject](#namedobject)
184
- * [Parameters](#parameters-41)
185
- * [Properties](#properties-6)
186
- * [equals](#equals-2)
187
- * [Parameters](#parameters-42)
201
+ * [Parameters](#parameters-44)
202
+ * [Properties](#properties-7)
203
+ * [equals](#equals-3)
204
+ * [Parameters](#parameters-45)
188
205
  * [toJSON](#tojson-1)
189
206
  * [OwnedObject](#ownedobject)
190
- * [Parameters](#parameters-43)
207
+ * [Parameters](#parameters-46)
191
208
  * [delete](#delete-1)
192
- * [equals](#equals-3)
193
- * [Parameters](#parameters-44)
209
+ * [equals](#equals-4)
210
+ * [Parameters](#parameters-47)
194
211
  * [api](#api)
195
- * [url](#url-2)
212
+ * [url](#url-1)
196
213
  * [provider](#provider-1)
197
214
  * [identifier](#identifier)
198
- * [fullName](#fullname-1)
215
+ * [fullName](#fullname-2)
199
216
  * [trace](#trace)
200
- * [Parameters](#parameters-45)
217
+ * [Parameters](#parameters-48)
201
218
  * [info](#info)
202
- * [Parameters](#parameters-46)
219
+ * [Parameters](#parameters-49)
203
220
  * [warn](#warn)
204
- * [Parameters](#parameters-47)
221
+ * [Parameters](#parameters-50)
205
222
  * [error](#error)
206
- * [Parameters](#parameters-48)
223
+ * [Parameters](#parameters-51)
207
224
  * [debug](#debug)
208
- * [Parameters](#parameters-49)
225
+ * [Parameters](#parameters-52)
209
226
  * [repositoryClass](#repositoryclass-1)
210
227
  * [pullRequestClass](#pullrequestclass-1)
211
228
  * [branchClass](#branchclass-1)
@@ -216,72 +233,72 @@ console.log(await readme.getString());
216
233
  * [deleteMethodName](#deletemethodname)
217
234
  * [Project](#project)
218
235
  * [PullRequest](#pullrequest)
219
- * [Parameters](#parameters-50)
220
- * [Properties](#properties-7)
221
- * [fullName](#fullname-2)
222
- * [url](#url-3)
236
+ * [Parameters](#parameters-53)
237
+ * [Properties](#properties-8)
238
+ * [fullName](#fullname-3)
239
+ * [url](#url-2)
223
240
  * [repository](#repository-1)
224
241
  * [delete](#delete-2)
225
242
  * [merge](#merge)
226
- * [Parameters](#parameters-51)
243
+ * [Parameters](#parameters-54)
227
244
  * [decline](#decline)
228
245
  * [reviews](#reviews)
229
246
  * [identifier](#identifier-1)
230
247
  * [defaultListStates](#defaultliststates)
231
248
  * [validMergeMethods](#validmergemethods)
232
249
  * [list](#list-1)
233
- * [Parameters](#parameters-52)
250
+ * [Parameters](#parameters-55)
234
251
  * [open](#open)
235
- * [Parameters](#parameters-53)
252
+ * [Parameters](#parameters-56)
236
253
  * [state](#state)
237
254
  * [locked](#locked)
238
255
  * [merged](#merged)
239
256
  * [draft](#draft)
240
257
  * [ContentEntry](#contententry)
241
- * [Properties](#properties-8)
258
+ * [Properties](#properties-9)
242
259
  * [Ref](#ref)
243
260
  * [ref](#ref-1)
244
261
  * [refId](#refid)
245
262
  * [entries](#entries)
246
- * [Parameters](#parameters-54)
263
+ * [Parameters](#parameters-57)
247
264
  * [asyncIterator](#asynciterator)
248
265
  * [maybeEntry](#maybeentry)
249
- * [Parameters](#parameters-55)
266
+ * [Parameters](#parameters-58)
250
267
  * [entry](#entry)
251
- * [Parameters](#parameters-56)
268
+ * [Parameters](#parameters-59)
252
269
  * [repository](#repository-2)
253
- * [fullName](#fullname-3)
254
- * [fullCondensedName](#fullcondensedname-1)
255
- * [toString](#tostring-1)
270
+ * [fullName](#fullname-4)
271
+ * [fullCondensedName](#fullcondensedname-2)
272
+ * [toString](#tostring-2)
256
273
  * [issuesURL](#issuesurl)
257
274
  * [homePageURL](#homepageurl)
258
275
  * [isLocked](#islocked)
259
276
  * [isArchived](#isarchived)
260
277
  * [isDisabled](#isdisabled)
261
278
  * [isProtected](#isprotected)
262
- * [attributes](#attributes-1)
279
+ * [attributes](#attributes-2)
263
280
  * [isProtected](#isprotected-1)
264
281
  * [RepositoryGroup](#repositorygroup-1)
265
- * [Parameters](#parameters-57)
266
- * [Properties](#properties-9)
267
- * [attributeMapping](#attributemapping-1)
268
- * [type](#type-1)
282
+ * [Parameters](#parameters-60)
283
+ * [Properties](#properties-10)
284
+ * [attributeMapping](#attributemapping-2)
285
+ * [type](#type-2)
269
286
  * [homePageURL](#homepageurl-1)
270
287
  * [RepositoryOwner](#repositoryowner)
271
- * [Parameters](#parameters-58)
288
+ * [Parameters](#parameters-61)
272
289
  * [Repository](#repository-3)
273
- * [Parameters](#parameters-59)
274
- * [Properties](#properties-10)
275
- * [fullName](#fullname-4)
290
+ * [Parameters](#parameters-62)
291
+ * [Properties](#properties-11)
292
+ * [fullName](#fullname-5)
276
293
  * [slug](#slug)
277
294
  * [entry](#entry-1)
278
- * [Parameters](#parameters-60)
295
+ * [Parameters](#parameters-63)
279
296
  * [entries](#entries-1)
280
- * [Parameters](#parameters-61)
297
+ * [Parameters](#parameters-64)
281
298
  * [maybeEntry](#maybeentry-1)
282
- * [Parameters](#parameters-62)
299
+ * [Parameters](#parameters-65)
283
300
  * [commits](#commits)
284
- * [Parameters](#parameters-63)
301
+ * [Parameters](#parameters-66)
285
302
  * [cloneURL](#cloneurl)
286
303
  * [issuesURL](#issuesurl-1)
287
304
  * [homePageURL](#homepageurl-2)
@@ -292,61 +309,61 @@ console.log(await readme.getString());
292
309
  * [delete](#delete-3)
293
310
  * [defaultBranch](#defaultbranch)
294
311
  * [branch](#branch-2)
295
- * [Parameters](#parameters-64)
312
+ * [Parameters](#parameters-67)
296
313
  * [hasBranches](#hasbranches)
297
314
  * [branches](#branches-1)
298
- * [Parameters](#parameters-65)
315
+ * [Parameters](#parameters-68)
299
316
  * [createBranch](#createbranch-1)
300
- * [Parameters](#parameters-66)
317
+ * [Parameters](#parameters-69)
301
318
  * [addBranch](#addbranch)
302
- * [Parameters](#parameters-67)
319
+ * [Parameters](#parameters-70)
303
320
  * [deleteBranch](#deletebranch)
304
- * [Parameters](#parameters-68)
321
+ * [Parameters](#parameters-71)
305
322
  * [tag](#tag)
306
- * [Parameters](#parameters-69)
323
+ * [Parameters](#parameters-72)
307
324
  * [tags](#tags-1)
308
- * [Parameters](#parameters-70)
325
+ * [Parameters](#parameters-73)
309
326
  * [addTag](#addtag)
310
- * [Parameters](#parameters-71)
327
+ * [Parameters](#parameters-74)
311
328
  * [createPullRequest](#createpullrequest-1)
312
- * [Parameters](#parameters-72)
329
+ * [Parameters](#parameters-75)
313
330
  * [addPullRequest](#addpullrequest)
314
- * [Parameters](#parameters-73)
331
+ * [Parameters](#parameters-76)
315
332
  * [pullRequests](#pullrequests-1)
316
333
  * [pullRequest](#pullrequest-1)
317
- * [Parameters](#parameters-74)
334
+ * [Parameters](#parameters-77)
318
335
  * [deletePullRequest](#deletepullrequest)
319
- * [Parameters](#parameters-75)
336
+ * [Parameters](#parameters-78)
320
337
  * [addHook](#addhook)
321
- * [Parameters](#parameters-76)
338
+ * [Parameters](#parameters-79)
322
339
  * [createHook](#createhook)
323
- * [Parameters](#parameters-77)
340
+ * [Parameters](#parameters-80)
324
341
  * [hooks](#hooks-1)
325
342
  * [hook](#hook-1)
326
- * [Parameters](#parameters-78)
327
- * [type](#type-2)
343
+ * [Parameters](#parameters-81)
344
+ * [type](#type-3)
328
345
  * [refId](#refid-1)
329
- * [Parameters](#parameters-79)
330
- * [attributes](#attributes-2)
346
+ * [Parameters](#parameters-82)
347
+ * [attributes](#attributes-3)
331
348
  * [defaultBranchName](#defaultbranchname)
332
349
  * [Review](#review)
333
350
  * [SingleGroupProvider](#singlegroupprovider)
334
351
  * [repository](#repository-4)
335
- * [Parameters](#parameters-80)
352
+ * [Parameters](#parameters-83)
336
353
  * [repositoryGroup](#repositorygroup-2)
337
- * [Parameters](#parameters-81)
354
+ * [Parameters](#parameters-84)
338
355
  * [repositoryGroups](#repositorygroups-1)
339
- * [Parameters](#parameters-82)
356
+ * [Parameters](#parameters-85)
340
357
  * [Tag](#tag-1)
341
358
  * [refType](#reftype-1)
342
359
  * [asArray](#asarray)
343
- * [Parameters](#parameters-83)
360
+ * [Parameters](#parameters-86)
344
361
  * [stripBaseName](#stripbasename)
345
- * [Parameters](#parameters-84)
362
+ * [Parameters](#parameters-87)
346
363
  * [stripBaseNames](#stripbasenames)
347
- * [Parameters](#parameters-85)
364
+ * [Parameters](#parameters-88)
348
365
  * [generateBranchName](#generatebranchname)
349
- * [Parameters](#parameters-86)
366
+ * [Parameters](#parameters-89)
350
367
 
351
368
  ## Application
352
369
 
@@ -507,6 +524,98 @@ this defines the order
507
524
 
508
525
  ### Parameters
509
526
 
527
+ * `options`  
528
+ * `additionalProperties`  
529
+
530
+ ### Properties
531
+
532
+ * `id` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
533
+ * `env` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
534
+
535
+ ### updateAttributes
536
+
537
+ Takes values from options.
538
+
539
+ #### Parameters
540
+
541
+ * `options` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
542
+ * `additionalProperties`  
543
+
544
+ ### update
545
+
546
+ Save object attributes in the backing store.
547
+
548
+ ### toString
549
+
550
+ Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** fullName
551
+
552
+ ### displayName
553
+
554
+ Beautified name use for human displaying only.
555
+
556
+ Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** human readable name
557
+
558
+ ### fullName
559
+
560
+ Complete name in the hierachy.
561
+
562
+ Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
563
+
564
+ ### fullCondensedName
565
+
566
+ Complete name in the hierachy.
567
+
568
+ Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
569
+
570
+ ### isWritable
571
+
572
+ By default cannot be written to.
573
+
574
+ Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** false
575
+
576
+ ### equals
577
+
578
+ Check for equality
579
+
580
+ #### Parameters
581
+
582
+ * `other` **[BaseObject](#baseobject)** 
583
+
584
+ Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true if other is present
585
+
586
+ ### type
587
+
588
+ Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** type we represent
589
+
590
+ ### collectionName
591
+
592
+ Tag -> tags
593
+ Repository -> repositories
594
+
595
+ Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name of the collection holding us in the owner
596
+
597
+ ### attributes
598
+
599
+ Attributes definitions
600
+
601
+ Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
602
+
603
+ ### writableAttributes
604
+
605
+ User modifyable attributes.
606
+
607
+ Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** writable attributes
608
+
609
+ ### attributeMapping
610
+
611
+ Map attributes between external and internal representation.
612
+
613
+ Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
614
+
615
+ ## BaseObject
616
+
617
+ ### Parameters
618
+
510
619
  * `options` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
511
620
  * `additionalProperties` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
512
621
 
@@ -631,6 +740,16 @@ For github something like:
631
740
 
632
741
  Returns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** common base urls of all repositories
633
742
 
743
+ ### supportsBase
744
+
745
+ Does the provider support the base name.
746
+
747
+ #### Parameters
748
+
749
+ * `base` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** to be checked
750
+
751
+ Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true if base is supported or base is undefined
752
+
634
753
  ### normalizeRepositoryName
635
754
 
636
755
  Bring a repository name into its normal form by removing any clutter.
@@ -669,16 +788,6 @@ Overwrite and return false if you want to have case insensitive group lookup
669
788
 
670
789
  Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true
671
790
 
672
- ### supportsBase
673
-
674
- Does the provider support the base name.
675
-
676
- #### Parameters
677
-
678
- * `base` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** to be checked
679
-
680
- Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true if base is supported or base is undefined
681
-
682
791
  ### parseName
683
792
 
684
793
  Parses repository name and tries to split it into
@@ -793,10 +902,6 @@ We are our own provider.
793
902
 
794
903
  Returns **[BaseProvider](#baseprovider)** this
795
904
 
796
- ### url
797
-
798
- Returns **any** url of the provider.
799
-
800
905
  ### toJSON
801
906
 
802
907
  List all defined entries from attributes.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repository-provider",
3
- "version": "32.6.9",
3
+ "version": "32.6.10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -34,15 +34,15 @@
34
34
  },
35
35
  "devDependencies": {
36
36
  "ava": "^5.2.0",
37
- "browser-ava": "^1.3.26",
37
+ "browser-ava": "^1.3.27",
38
38
  "c8": "^7.13.0",
39
39
  "documentation": "^14.0.1",
40
- "repository-provider-test-support": "^2.2.38",
40
+ "repository-provider-test-support": "^2.3.1",
41
41
  "semantic-release": "^20.1.1",
42
- "typescript": "^4.9.5"
42
+ "typescript": "^5.0.2"
43
43
  },
44
44
  "engines": {
45
- "node": ">=16.19.0"
45
+ "node": ">=16.19.1"
46
46
  },
47
47
  "repository": {
48
48
  "type": "git",
@@ -1,14 +1,14 @@
1
1
  import { setAttribute, getAttribute } from "./attribute.mjs";
2
2
 
3
3
  /**
4
- * @typedef {Object} Attribute
4
+ * @typedef {Object} AttributeDefinition
5
5
  *
6
6
  * @property {string} type
7
7
  * @property {boolean} writable
8
8
  * @property {boolean} [private] should the value be shown
9
9
  * @property {string} [depends] name of an attribute we depend on
10
10
  * @property {string} description
11
- * @property {any} [default] the default value
11
+ * @property {any} [default] the default value
12
12
  * @property {Function} [set] set the value
13
13
  * @property {Function} [get] get the value can be used to calculate default values
14
14
  * @property {string|string[]} [env] environment variable use to provide the value
package/src/attribute.mjs CHANGED
@@ -78,7 +78,7 @@ export function setAttribute(object, name, value) {
78
78
  * @returns {any} value associated with the given property name
79
79
  */
80
80
  export function getAttribute(object, name) {
81
- if (object && object[name] !== undefined) {
81
+ if (object?.[name] !== undefined) {
82
82
  return object[name];
83
83
  }
84
84
 
@@ -1,6 +1,6 @@
1
1
  import { definePropertiesFromOptions, mapAttributes } from "./attribute-extras.mjs";
2
2
  import { description_attribute, id_attribute } from "./attributes.mjs";
3
-
3
+
4
4
  /**
5
5
  * @param {Object} options
6
6
  * @param {Object} additionalProperties
@@ -109,8 +109,8 @@ export function RepositoryOwner(base) {
109
109
  * List entities for a given type and pattern.
110
110
  * @param {string} type
111
111
  * @param {string|string[]} patterns
112
- * @param {function} split
113
- * @param {Object} defaultItem
112
+ * @param {function?} split
113
+ * @param {Object?} defaultItem
114
114
  * @return {AsyncIterator<NamedObject>} matching type and pattern
115
115
  */
116
116
  async *list(type, patterns, split, defaultItem) {