repository-provider 35.0.4 → 35.2.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
@@ -1,5 +1,6 @@
1
1
  [![npm](https://img.shields.io/npm/v/repository-provider.svg)](https://www.npmjs.com/package/repository-provider)
2
2
  [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
3
+ [![Typed with TypeScript](https://flat.badgen.net/badge/icon/Typed?icon=typescript\&label\&labelColor=blue\&color=555555)](https://typescriptlang.org)
3
4
  [![bundlejs](https://deno.bundlejs.com/?q=repository-provider\&badge=detailed)](https://bundlejs.com/?q=repository-provider)
4
5
  [![downloads](http://img.shields.io/npm/dm/repository-provider.svg?style=flat-square)](https://npmjs.org/package/repository-provider)
5
6
  [![GitHub Issues](https://img.shields.io/github/issues/arlac77/repository-provider.svg?style=flat-square)](https://github.com/arlac77/repository-provider/issues)
@@ -64,14 +65,12 @@ console.log(await readme.string);
64
65
  * [priority\_attribute](#priority_attribute)
65
66
  * [BaseObject](#baseobject)
66
67
  * [Parameters](#parameters-5)
68
+ * [Properties](#properties)
67
69
  * [updateAttributes](#updateattributes)
68
70
  * [Parameters](#parameters-6)
69
71
  * [update](#update)
70
72
  * [toString](#tostring)
71
- * [displayName](#displayname)
72
73
  * [fullName](#fullname)
73
- * [fullCondensedName](#fullcondensedname)
74
- * [condensedName](#condensedname)
75
74
  * [isWritable](#iswritable)
76
75
  * [equals](#equals)
77
76
  * [Parameters](#parameters-7)
@@ -81,9 +80,9 @@ console.log(await readme.string);
81
80
  * [writableAttributes](#writableattributes)
82
81
  * [attributeMapping](#attributemapping)
83
82
  * [MessageDestination](#messagedestination)
84
- * [Properties](#properties)
85
- * [BaseProvider](#baseprovider)
86
83
  * [Properties](#properties-1)
84
+ * [BaseProvider](#baseprovider)
85
+ * [Properties](#properties-2)
87
86
  * [equals](#equals-1)
88
87
  * [Parameters](#parameters-8)
89
88
  * [repositoryBases](#repositorybases)
@@ -136,7 +135,7 @@ console.log(await readme.string);
136
135
  * [messageDestination](#messagedestination-1)
137
136
  * [Branch](#branch)
138
137
  * [Parameters](#parameters-25)
139
- * [Properties](#properties-2)
138
+ * [Properties](#properties-3)
140
139
  * [url](#url)
141
140
  * [refType](#reftype)
142
141
  * [isWritable](#iswritable-1)
@@ -153,10 +152,10 @@ console.log(await readme.string);
153
152
  * [createBranch](#createbranch)
154
153
  * [Parameters](#parameters-30)
155
154
  * [CommitResult](#commitresult)
156
- * [Properties](#properties-3)
155
+ * [Properties](#properties-4)
157
156
  * [Commit](#commit-1)
158
157
  * [Parameters](#parameters-31)
159
- * [Properties](#properties-4)
158
+ * [Properties](#properties-5)
160
159
  * [Hook](#hook)
161
160
  * [Issue](#issue)
162
161
  * [Milestone](#milestone)
@@ -175,7 +174,10 @@ console.log(await readme.string);
175
174
  * [Parameters](#parameters-37)
176
175
  * [NamedObject](#namedobject)
177
176
  * [Parameters](#parameters-38)
178
- * [Properties](#properties-5)
177
+ * [Properties](#properties-6)
178
+ * [displayName](#displayname)
179
+ * [condensedName](#condensedname)
180
+ * [fullCondensedName](#fullcondensedname)
179
181
  * [equals](#equals-2)
180
182
  * [Parameters](#parameters-39)
181
183
  * [toJSON](#tojson-1)
@@ -216,7 +218,7 @@ console.log(await readme.string);
216
218
  * [Project](#project)
217
219
  * [PullRequest](#pullrequest)
218
220
  * [Parameters](#parameters-47)
219
- * [Properties](#properties-6)
221
+ * [Properties](#properties-7)
220
222
  * [fullName](#fullname-2)
221
223
  * [url](#url-2)
222
224
  * [repository](#repository-1)
@@ -238,7 +240,7 @@ console.log(await readme.string);
238
240
  * [merged](#merged)
239
241
  * [draft](#draft)
240
242
  * [ContentEntry](#contententry)
241
- * [Properties](#properties-7)
243
+ * [Properties](#properties-8)
242
244
  * [Ref](#ref)
243
245
  * [ref](#ref-1)
244
246
  * [refId](#refid)
@@ -258,7 +260,7 @@ console.log(await readme.string);
258
260
  * [isProtected](#isprotected-1)
259
261
  * [RepositoryGroup](#repositorygroup-1)
260
262
  * [Parameters](#parameters-54)
261
- * [Properties](#properties-8)
263
+ * [Properties](#properties-9)
262
264
  * [attributeMapping](#attributemapping-1)
263
265
  * [type](#type-1)
264
266
  * [homePageURL](#homepageurl-1)
@@ -266,7 +268,7 @@ console.log(await readme.string);
266
268
  * [Parameters](#parameters-55)
267
269
  * [Repository](#repository-3)
268
270
  * [Parameters](#parameters-56)
269
- * [Properties](#properties-9)
271
+ * [Properties](#properties-10)
270
272
  * [slug](#slug-1)
271
273
  * [entry](#entry-1)
272
274
  * [Parameters](#parameters-57)
@@ -329,6 +331,9 @@ console.log(await readme.string);
329
331
  * [Parameters](#parameters-79)
330
332
  * [attributes](#attributes-2)
331
333
  * [defaultBranchName](#defaultbranchname)
334
+ * [branches](#branches-2)
335
+ * [tags](#tags-2)
336
+ * [pullRequests](#pullrequests-2)
332
337
  * [Review](#review)
333
338
  * [SingleGroupProvider](#singlegroupprovider)
334
339
  * [repository](#repository-4)
@@ -467,6 +472,11 @@ Creates an instance of BaseObject.
467
472
  * `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
468
473
  * `additionalProperties` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** 
469
474
 
475
+ ### Properties
476
+
477
+ * `id` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** 
478
+ * `description` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** 
479
+
470
480
  ### updateAttributes
471
481
 
472
482
  Takes values from options.
@@ -484,30 +494,12 @@ Save object attributes in the backing store.
484
494
 
485
495
  Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** fullName
486
496
 
487
- ### displayName
488
-
489
- Beautified name use for human displaying only.
490
-
491
- Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** human readable name
492
-
493
497
  ### fullName
494
498
 
495
499
  Complete name in the hierachy.
496
500
 
497
501
  Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
498
502
 
499
- ### fullCondensedName
500
-
501
- Complete name in the hierachy.
502
-
503
- Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
504
-
505
- ### condensedName
506
-
507
- Name with default parts removed
508
-
509
- Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
510
-
511
503
  ### isWritable
512
504
 
513
505
  By default cannot be written to.
@@ -537,7 +529,7 @@ Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/G
537
529
 
538
530
  ### attributes
539
531
 
540
- Attributes definitions
532
+ Attributes definitions.
541
533
 
542
534
  Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
543
535
 
@@ -703,7 +695,7 @@ List repositories.
703
695
 
704
696
  * `patterns` **([Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)> | [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))?**&#x20;
705
697
 
706
- Returns **AsyncIterator<[Repository](#repository)>** all matching repos of the provider
698
+ Returns **AsyncIterable<[Repository](#repository)>** all matching repos of the provider
707
699
 
708
700
  ### branches
709
701
 
@@ -713,7 +705,7 @@ List branches.
713
705
 
714
706
  * `patterns` **([Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)> | [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))?**&#x20;
715
707
 
716
- Returns **AsyncIterator<[Branch](#branch)>** all matching branches of the provider
708
+ Returns **AsyncIterable<[Branch](#branch)>** all matching branches of the provider
717
709
 
718
710
  ### tags
719
711
 
@@ -723,7 +715,7 @@ List tags.
723
715
 
724
716
  * `patterns` **([Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)> | [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))?**&#x20;
725
717
 
726
- Returns **AsyncIterator<[Tag](#tag)>** all matching tags of the provider
718
+ Returns **AsyncIterable<[Tag](#tag)>** all matching tags of the provider
727
719
 
728
720
  ### hooks
729
721
 
@@ -733,7 +725,7 @@ List hooks.
733
725
 
734
726
  * `patterns` **([Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)> | [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))?**&#x20;
735
727
 
736
- Returns **AsyncIterator<[Hook](#hook)>** all matching hooks of the provider
728
+ Returns **AsyncIterable<[Hook](#hook)>** all matching hooks of the provider
737
729
 
738
730
  ### pullRequests
739
731
 
@@ -743,7 +735,7 @@ List pull requests.
743
735
 
744
736
  * `patterns` **([Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)> | [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))?**&#x20;
745
737
 
746
- Returns **AsyncIterator<[PullRequest](#pullrequest)>** all matching pullRequests of the provider
738
+ Returns **AsyncIterable<[PullRequest](#pullrequest)>** all matching pullRequests of the provider
747
739
 
748
740
  ### name
749
741
 
@@ -893,7 +885,7 @@ Add commits into a pull request.
893
885
 
894
886
  #### Parameters
895
887
 
896
- * `commits` **([Commit](#commit) | AsyncIterator<[Commit](#commit)>)** to be commited
888
+ * `commits` **([Commit](#commit) | AsyncGenerator<[Commit](#commit)>)** to be commited
897
889
  * `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**&#x20;
898
890
 
899
891
  * `options.pullRequestBranch` **([Branch](#branch) | [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))** to commit into
@@ -910,7 +902,7 @@ Remove entries form the branch.
910
902
 
911
903
  #### Parameters
912
904
 
913
- * `entries` **AsyncIterator<[ContentEntry](#contententry)>**&#x20;
905
+ * `entries` **AsyncIterable<[ContentEntry](#contententry)>**&#x20;
914
906
 
915
907
  ### createPullRequest
916
908
 
@@ -1015,7 +1007,7 @@ List groups.
1015
1007
 
1016
1008
  * `patterns` **([Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)> | [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))?**&#x20;
1017
1009
 
1018
- Returns **AsyncIterator<[RepositoryGroup](#repositorygroup)>** all matching repositories groups of the provider
1010
+ Returns **AsyncIterable<[RepositoryGroup](#repositorygroup)>** all matching repositories groups of the provider
1019
1011
 
1020
1012
  ### createRepositoryGroup
1021
1013
 
@@ -1056,6 +1048,24 @@ Object with a name.
1056
1048
 
1057
1049
  * `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**&#x20;
1058
1050
 
1051
+ ### displayName
1052
+
1053
+ Beautified name use for human displaying only.
1054
+
1055
+ Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** human readable name
1056
+
1057
+ ### condensedName
1058
+
1059
+ Name with default parts removed
1060
+
1061
+ Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**&#x20;
1062
+
1063
+ ### fullCondensedName
1064
+
1065
+ Complete name in the hierachy.
1066
+
1067
+ Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**&#x20;
1068
+
1059
1069
  ### equals
1060
1070
 
1061
1071
  Check for equality.
@@ -1209,28 +1219,38 @@ Forwarded to the owner.
1209
1219
 
1210
1220
  By default we use the owners implementation.
1211
1221
 
1212
- Returns **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)** as defined in the owner
1222
+ Returns **[Repository](#repository)** as defined in the owner
1213
1223
 
1214
1224
  ### pullRequestClass
1215
1225
 
1216
1226
  By default we use the owners implementation.
1217
1227
 
1228
+ Returns **[PullRequest](#pullrequest)** as defined in the owner
1229
+
1218
1230
  ### branchClass
1219
1231
 
1220
1232
  By default we use the owners implementation.
1221
1233
 
1234
+ Returns **[Branch](#branch)** as defined in the owner
1235
+
1222
1236
  ### tagClass
1223
1237
 
1224
1238
  By default we use the owners implementation.
1225
1239
 
1240
+ Returns **[Tag](#tag)** as defined in the owner
1241
+
1226
1242
  ### entryClass
1227
1243
 
1228
1244
  By default we use the owners implementation.
1229
1245
 
1246
+ Returns **[ContentEntry](#contententry)** as defined in the owner
1247
+
1230
1248
  ### hookClass
1231
1249
 
1232
1250
  By default we use the owners implementation.
1233
1251
 
1252
+ Returns **[Hook](#hook)** as defined in the owner
1253
+
1234
1254
  ### addMethodName
1235
1255
 
1236
1256
  Method name to be called to register one instance in the owner.
@@ -1317,7 +1337,7 @@ Decline the pull request.
1317
1337
 
1318
1338
  ### reviews
1319
1339
 
1320
- Returns **AsyncIterator<[Review](#review)>**&#x20;
1340
+ Returns **AsyncIterable<[Review](#review)>**&#x20;
1321
1341
 
1322
1342
  ### identifier
1323
1343
 
@@ -1335,10 +1355,14 @@ Returns **[Set](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Glob
1335
1355
 
1336
1356
  possible states
1337
1357
 
1358
+ Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
1359
+
1338
1360
  ### validMergeMethods
1339
1361
 
1340
1362
  All valid merge methods
1341
1363
 
1364
+ Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
1365
+
1342
1366
  Returns **[Set](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** valid merge methods.
1343
1367
 
1344
1368
  ### list
@@ -1355,7 +1379,7 @@ Result will be filtered by source branch, destination branch and states
1355
1379
  * `filter.destination` **[Branch](#branch)??**&#x20;
1356
1380
  * `filter.states` **[Set](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>?**&#x20;
1357
1381
 
1358
- Returns **AsyncIterator<[PullRequest](#pullrequest)>**&#x20;
1382
+ Returns **AsyncIterable<[PullRequest](#pullrequest)>**&#x20;
1359
1383
 
1360
1384
  ### open
1361
1385
 
@@ -1429,13 +1453,13 @@ List entries of the branch.
1429
1453
 
1430
1454
  * `matchingPatterns` **([Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)> | [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))?**&#x20;
1431
1455
 
1432
- Returns **AsyncIterator<[ContentEntry](#contententry)>** all matching entries in the branch
1456
+ Returns **AsyncGenerator<[ContentEntry](#contententry)>** all matching entries in the branch
1433
1457
 
1434
1458
  ### asyncIterator
1435
1459
 
1436
1460
  List all entries of the branch.
1437
1461
 
1438
- Returns **AsyncIterator<[ContentEntry](#contententry)>** all entries in the branch
1462
+ Returns **AsyncGenerator<[ContentEntry](#contententry)>** all entries in the branch
1439
1463
 
1440
1464
  ### maybeEntry
1441
1465
 
@@ -1593,7 +1617,7 @@ List entries of the default branch.
1593
1617
 
1594
1618
  * `patterns` **([Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)> | [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))?**&#x20;
1595
1619
 
1596
- Returns **AsyncIterator<[ContentEntry](#contententry)>** all matching entries in the branch
1620
+ Returns **AsyncIterable<[ContentEntry](#contententry)>** all matching entries in the branch
1597
1621
 
1598
1622
  ### maybeEntry
1599
1623
 
@@ -1613,7 +1637,7 @@ List commits of the default branch.
1613
1637
 
1614
1638
  * `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?**&#x20;
1615
1639
 
1616
- Returns **AsyncIterator<[Commit](#commit)>** all matching commits in the repository
1640
+ Returns **AsyncIterable<[Commit](#commit)>** all matching commits in the repository
1617
1641
 
1618
1642
  ### cloneURL
1619
1643
 
@@ -1625,13 +1649,13 @@ Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/G
1625
1649
 
1626
1650
  The url of issue tracking system.
1627
1651
 
1628
- Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**&#x20;
1652
+ Returns **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))**&#x20;
1629
1653
 
1630
1654
  ### homePageURL
1631
1655
 
1632
1656
  The url of home page.
1633
1657
 
1634
- Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**&#x20;
1658
+ Returns **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))**&#x20;
1635
1659
 
1636
1660
  ### isArchived
1637
1661
 
@@ -1690,7 +1714,7 @@ Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/
1690
1714
 
1691
1715
  * `patterns` **([Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)> | [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))?**&#x20;
1692
1716
 
1693
- Returns **AsyncIterator<[Branch](#branch)>** of all branches
1717
+ Returns **AsyncGenerator<[Branch](#branch)>** of all branches
1694
1718
 
1695
1719
  ### createBranch
1696
1720
 
@@ -1714,7 +1738,7 @@ Internal branch creation does not call repository.initialize()
1714
1738
  * `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** of the new branch
1715
1739
  * `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** to be passed to the branch
1716
1740
 
1717
- Returns **[Branch](#branch)** newly created branch
1741
+ Returns **[Branch](#branch)** newly created branch or already present one for the given name
1718
1742
 
1719
1743
  ### deleteBranch
1720
1744
 
@@ -1742,7 +1766,7 @@ Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/
1742
1766
 
1743
1767
  * `patterns` **([Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)> | [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))?**&#x20;
1744
1768
 
1745
- Returns **AsyncIterator<[Tag](#tag)>** of all tags
1769
+ Returns **AsyncGenerator<[Tag](#tag)>** of all tags
1746
1770
 
1747
1771
  ### addTag
1748
1772
 
@@ -1784,7 +1808,7 @@ Returns **[PullRequest](#pullrequest)**&#x20;
1784
1808
 
1785
1809
  Deliver all [PullRequest](#pullrequest)s.
1786
1810
 
1787
- Returns **AsyncIterator<[PullRequest](#pullrequest)>** of all pull requests
1811
+ Returns **AsyncGenerator<[PullRequest](#pullrequest)>** of all pull requests
1788
1812
 
1789
1813
  ### pullRequest
1790
1814
 
@@ -1829,7 +1853,7 @@ Add a new Hook.
1829
1853
 
1830
1854
  List hooks.
1831
1855
 
1832
- Returns **AsyncIterator<[Hook](#hook)>** all hooks of the repository
1856
+ Returns **AsyncGenerator<[Hook](#hook)>** all hooks of the repository
1833
1857
 
1834
1858
  ### hook
1835
1859
 
@@ -1897,6 +1921,18 @@ The name of the default branch
1897
1921
 
1898
1922
  Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**&#x20;
1899
1923
 
1924
+ ## branches
1925
+
1926
+ Type: [Map](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Map)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), [Branch](#branch)>
1927
+
1928
+ ## tags
1929
+
1930
+ Type: [Map](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Map)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), [Tag](#tag)>
1931
+
1932
+ ## pullRequests
1933
+
1934
+ Type: [Map](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Map)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), [PullRequest](#pullrequest)>
1935
+
1900
1936
  ## Review
1901
1937
 
1902
1938
  **Extends OwnedObject**
@@ -1935,7 +1971,7 @@ List groups.
1935
1971
 
1936
1972
  * `patterns` **([Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)> | [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))**&#x20;
1937
1973
 
1938
- Returns **AsyncIterator<[RepositoryGroup](#repositorygroup)>** always deliver the one and only present group
1974
+ Returns **AsyncIterable<[RepositoryGroup](#repositorygroup)>** always deliver the one and only present group
1939
1975
 
1940
1976
  ## Tag
1941
1977
 
package/package.json CHANGED
@@ -1,13 +1,17 @@
1
1
  {
2
2
  "name": "repository-provider",
3
- "version": "35.0.4",
3
+ "version": "35.2.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
7
7
  },
8
8
  "exports": {
9
- ".": "./src/index.mjs"
9
+ ".": {
10
+ "types": "./types/index.d.mts",
11
+ "default": "./src/index.mjs"
12
+ }
10
13
  },
14
+ "types": "./types/index.d.mts",
11
15
  "description": "abstract interface to git repository providers like github, bitbucket and gitlab",
12
16
  "keywords": [
13
17
  "git",
@@ -21,6 +25,7 @@
21
25
  ],
22
26
  "license": "BSD-2-Clause",
23
27
  "scripts": {
28
+ "prepare": "tsc --allowJs --declaration --emitDeclarationOnly --declarationDir types -t esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs",
24
29
  "test": "npm run test:browser-ava && npm run test:ava",
25
30
  "test:ava": "ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs",
26
31
  "test:browser-ava": "browser-ava --headless --no-keep-open tests/*-ava.mjs tests/*-ava-browser.mjs",
@@ -31,24 +36,24 @@
31
36
  "lint:tsc": "tsc --allowJs --checkJs --noEmit -t esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
32
37
  },
33
38
  "dependencies": {
34
- "matching-iterator": "^2.0.12",
35
- "pacc": "^3.0.0"
39
+ "matching-iterator": "^2.1.3",
40
+ "pacc": "^3.1.1"
36
41
  },
37
42
  "devDependencies": {
38
43
  "ava": "^6.1.1",
39
- "browser-ava": "^2.1.10",
44
+ "browser-ava": "^2.2.0",
40
45
  "c8": "^9.1.0",
41
46
  "documentation": "^14.0.3",
42
- "repository-provider-test-support": "^3.0.3",
43
- "semantic-release": "^23.0.0",
47
+ "repository-provider-test-support": "^3.0.4",
48
+ "semantic-release": "^23.0.2",
44
49
  "typescript": "^5.3.3"
45
50
  },
46
51
  "engines": {
47
- "node": ">=20.11.0"
52
+ "node": ">=20.11.1"
48
53
  },
49
54
  "repository": {
50
55
  "type": "git",
51
- "url": "https://github.com/arlac77/repository-provider"
56
+ "url": "git+https://github.com/arlac77/repository-provider.git"
52
57
  },
53
58
  "bugs": {
54
59
  "url": "https://github.com/arlac77/repository-provider/issues"
@@ -58,7 +63,7 @@
58
63
  "inheritFrom": [
59
64
  "arlac77/template-arlac77-github",
60
65
  "arlac77/template-browser-ava",
61
- "arlac77/template-esm-only",
66
+ "arlac77/template-javascript-component",
62
67
  "arlac77/template-typescript"
63
68
  ]
64
69
  }
@@ -8,6 +8,9 @@ import { description_attribute, id_attribute } from "./attributes.mjs";
8
8
  * Creates an instance of BaseObject.
9
9
  * @param {Object} options
10
10
  * @param {Object} [additionalProperties]
11
+ *
12
+ * @property {string?} id
13
+ * @property {string?} description
11
14
  */
12
15
  export class BaseObject {
13
16
  /**
@@ -29,7 +32,7 @@ export class BaseObject {
29
32
  }
30
33
 
31
34
  /**
32
- * Attributes definitions
35
+ * Attributes definitions.
33
36
  * @return {Object}
34
37
  */
35
38
  static get attributes() {
@@ -347,7 +347,7 @@ export class BaseProvider extends BaseObject {
347
347
  /**
348
348
  * List repositories.
349
349
  * @param {string[]|string} [patterns]
350
- * @return {AsyncIterator<Repository>} all matching repos of the provider
350
+ * @return {AsyncIterable<Repository>} all matching repos of the provider
351
351
  */
352
352
  async *repositories(patterns) {
353
353
  yield* this.list("repositories", patterns);
@@ -356,7 +356,7 @@ export class BaseProvider extends BaseObject {
356
356
  /**
357
357
  * List branches.
358
358
  * @param {string[]|string} [patterns]
359
- * @return {AsyncIterator<Branch>} all matching branches of the provider
359
+ * @return {AsyncIterable<Branch>} all matching branches of the provider
360
360
  */
361
361
  async *branches(patterns) {
362
362
  yield* this.list("branches", patterns);
@@ -365,7 +365,7 @@ export class BaseProvider extends BaseObject {
365
365
  /**
366
366
  * List tags.
367
367
  * @param {string[]|string} [patterns]
368
- * @return {AsyncIterator<Tag>} all matching tags of the provider
368
+ * @return {AsyncIterable<Tag>} all matching tags of the provider
369
369
  */
370
370
  async *tags(patterns) {
371
371
  yield* this.list("tags", patterns);
@@ -374,7 +374,7 @@ export class BaseProvider extends BaseObject {
374
374
  /**
375
375
  * List hooks.
376
376
  * @param {string[]|string} [patterns]
377
- * @return {AsyncIterator<Hook>} all matching hooks of the provider
377
+ * @return {AsyncIterable<Hook>} all matching hooks of the provider
378
378
  */
379
379
  async *hooks(patterns) {
380
380
  yield* this.list("hooks", patterns);
@@ -383,7 +383,7 @@ export class BaseProvider extends BaseObject {
383
383
  /**
384
384
  * List pull requests.
385
385
  * @param {string[]|string} [patterns]
386
- * @return {AsyncIterator<PullRequest>} all matching pullRequests of the provider
386
+ * @return {AsyncIterable<PullRequest>} all matching pullRequests of the provider
387
387
  */
388
388
  async *pullRequests(patterns) {
389
389
  yield* this.list("pullRequests", patterns);
package/src/branch.mjs CHANGED
@@ -2,7 +2,7 @@ import { Ref } from "./ref.mjs";
2
2
  import { PullRequest } from "./pull-request.mjs";
3
3
  import { Repository } from "./repository.mjs";
4
4
  import { RepositoryOwner } from "./repository-owner.mjs";
5
- import { Commit } from "./commit.mjs";
5
+ import { Commit, CommitResult } from "./commit.mjs";
6
6
 
7
7
  /**
8
8
  * @typedef {Object} ContentEntry
@@ -172,7 +172,7 @@ export class Branch extends Ref {
172
172
 
173
173
  /**
174
174
  * Remove entries form the branch.
175
- * @param {AsyncIterator<ContentEntry>} entries
175
+ * @param {AsyncIterable<ContentEntry>} entries
176
176
  */
177
177
  async removeEntries(entries) {}
178
178
 
package/src/commit.mjs CHANGED
@@ -1,14 +1,16 @@
1
-
2
1
  /**
3
- * @typedef {Object} CommitResult
4
2
  * @property {string} ref
5
3
  */
4
+ export class CommitResult {
5
+ ref;
6
6
 
7
- export class User
8
- {
9
-
7
+ constructor(ref) {
8
+ this.ref = ref;
9
+ }
10
10
  }
11
11
 
12
+ export class User {}
13
+
12
14
  /**
13
15
  * @property {Repository} repository
14
16
  * @property {string} message
@@ -17,9 +19,8 @@ export class User
17
19
  * @property {User} committer
18
20
  */
19
21
  export class Commit {
20
-
21
22
  repository;
22
-
23
+
23
24
  constructor(repository) {
24
25
  this.repository = repository;
25
26
  }
@@ -71,7 +71,7 @@ export class MultiGroupProvider extends BaseProvider {
71
71
  /**
72
72
  * List groups.
73
73
  * @param {string[]|string} [patterns]
74
- * @return {AsyncIterator<RepositoryGroup>} all matching repositories groups of the provider
74
+ * @return {AsyncIterable<RepositoryGroup>} all matching repositories groups of the provider
75
75
  */
76
76
  async *repositoryGroups(patterns) {
77
77
  await this.initializeRepositories();