repository-provider 35.2.16 → 35.2.18
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 +22 -7
- package/package.json +3 -3
- package/src/base-object.mjs +9 -6
- package/src/named-object.mjs +1 -1
- package/types/base-object.d.mts +8 -6
- package/types/named-object.d.mts +2 -2
- package/types/pull-request.d.mts +1 -1
package/README.md
CHANGED
|
@@ -80,6 +80,8 @@ console.log(await readme.string);
|
|
|
80
80
|
* [BaseObject](#baseobject)
|
|
81
81
|
* [Parameters](#parameters-5)
|
|
82
82
|
* [Properties](#properties)
|
|
83
|
+
* [id](#id)
|
|
84
|
+
* [description](#description)
|
|
83
85
|
* [updateAttributes](#updateattributes)
|
|
84
86
|
* [Parameters](#parameters-6)
|
|
85
87
|
* [update](#update)
|
|
@@ -182,6 +184,7 @@ console.log(await readme.string);
|
|
|
182
184
|
* [MessageDestination](#messagedestination)
|
|
183
185
|
* [Properties](#properties-2)
|
|
184
186
|
* [name](#name-2)
|
|
187
|
+
* [name](#name-3)
|
|
185
188
|
* [messageDestination](#messagedestination-1)
|
|
186
189
|
* [parsedName](#parsedname)
|
|
187
190
|
* [Branch](#branch)
|
|
@@ -634,6 +637,14 @@ Creates an instance of BaseObject.
|
|
|
634
637
|
* `id` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** 
|
|
635
638
|
* `description` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** 
|
|
636
639
|
|
|
640
|
+
### id
|
|
641
|
+
|
|
642
|
+
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
643
|
+
|
|
644
|
+
### description
|
|
645
|
+
|
|
646
|
+
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
647
|
+
|
|
637
648
|
### updateAttributes
|
|
638
649
|
|
|
639
650
|
Takes values from options.
|
|
@@ -1197,16 +1208,20 @@ Type: [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Globa
|
|
|
1197
1208
|
|
|
1198
1209
|
### Properties
|
|
1199
1210
|
|
|
1200
|
-
* `info` **[
|
|
1201
|
-
* `debug` **[
|
|
1202
|
-
* `warn` **[
|
|
1203
|
-
* `error` **[
|
|
1204
|
-
* `trace` **[
|
|
1211
|
+
* `info` **function ([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)): void** 
|
|
1212
|
+
* `debug` **function ([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)): void** 
|
|
1213
|
+
* `warn` **function ([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)): void** 
|
|
1214
|
+
* `error` **function ([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)): void** 
|
|
1215
|
+
* `trace` **function ([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)): void** 
|
|
1205
1216
|
|
|
1206
1217
|
## name
|
|
1207
1218
|
|
|
1208
1219
|
Name of the provider.
|
|
1209
1220
|
|
|
1221
|
+
## name
|
|
1222
|
+
|
|
1223
|
+
Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
1224
|
+
|
|
1210
1225
|
## messageDestination
|
|
1211
1226
|
|
|
1212
1227
|
To forward info/warn and error messages to
|
|
@@ -2608,7 +2623,7 @@ A URL auth component will be removed to.
|
|
|
2608
2623
|
|
|
2609
2624
|
* `name` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))** 
|
|
2610
2625
|
* `repositoryBases` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** all possible bases
|
|
2611
|
-
* `whenFound` **[
|
|
2626
|
+
* `whenFound` **function ([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)): void?** to be called with the found base name
|
|
2612
2627
|
|
|
2613
2628
|
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))** name without base
|
|
2614
2629
|
|
|
@@ -2620,7 +2635,7 @@ Loops over names and executes stripBaseName.
|
|
|
2620
2635
|
|
|
2621
2636
|
* `names` **([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))** 
|
|
2622
2637
|
* `repositoryBases` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** all possible bases
|
|
2623
|
-
* `whenFound` **[
|
|
2638
|
+
* `whenFound` **function ([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)): void?** to be called with the found base name
|
|
2624
2639
|
|
|
2625
2640
|
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)> | [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))** names without base
|
|
2626
2641
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repository-provider",
|
|
3
|
-
"version": "35.2.
|
|
3
|
+
"version": "35.2.18",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"browser-ava": "^2.2.14",
|
|
47
47
|
"c8": "^9.1.0",
|
|
48
48
|
"documentation": "^14.0.3",
|
|
49
|
-
"repository-provider-test-support": "^3.1.
|
|
50
|
-
"semantic-release": "^
|
|
49
|
+
"repository-provider-test-support": "^3.1.5",
|
|
50
|
+
"semantic-release": "^24.0.0",
|
|
51
51
|
"typescript": "^5.4.5"
|
|
52
52
|
},
|
|
53
53
|
"engines": {
|
package/src/base-object.mjs
CHANGED
|
@@ -62,13 +62,16 @@ export class BaseObject {
|
|
|
62
62
|
return {};
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
+
/** @type {string} */ id;
|
|
66
|
+
/** @type {string} */ description;
|
|
67
|
+
|
|
65
68
|
/**
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
* Creates an instance of BaseObject.
|
|
70
|
+
* @param {Object} [options]
|
|
71
|
+
* @param {string} [options.id]
|
|
72
|
+
* @param {string} [options.description]
|
|
73
|
+
* @param {Object} [additionalProperties]
|
|
74
|
+
*/
|
|
72
75
|
constructor(options, additionalProperties) {
|
|
73
76
|
this.updateAttributes(options, additionalProperties);
|
|
74
77
|
}
|
package/src/named-object.mjs
CHANGED
package/types/base-object.d.mts
CHANGED
|
@@ -37,16 +37,18 @@ export class BaseObject {
|
|
|
37
37
|
*/
|
|
38
38
|
static get attributeMapping(): any;
|
|
39
39
|
/**
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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
46
|
constructor(options?: {
|
|
47
47
|
id?: string;
|
|
48
48
|
description?: string;
|
|
49
49
|
}, additionalProperties?: any);
|
|
50
|
+
/** @type {string} */ id: string;
|
|
51
|
+
/** @type {string} */ description: string;
|
|
50
52
|
/**
|
|
51
53
|
* Takes values from options.
|
|
52
54
|
* @param {Object} [options]
|
package/types/named-object.d.mts
CHANGED
|
@@ -16,8 +16,8 @@ export class NamedObject extends BaseObject {
|
|
|
16
16
|
description: import("pacc").AttributeDefinition;
|
|
17
17
|
};
|
|
18
18
|
constructor(name: any, options: any, additionalProperties: any);
|
|
19
|
-
set name(name:
|
|
20
|
-
get name():
|
|
19
|
+
set name(name: string);
|
|
20
|
+
get name(): string;
|
|
21
21
|
/**
|
|
22
22
|
* Beautified name use for human displaying only.
|
|
23
23
|
* @return {string} human readable name
|
package/types/pull-request.d.mts
CHANGED