repository-provider 35.2.19 → 35.2.21
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 +14 -4
- package/package.json +2 -2
- package/src/attributes.mjs +1 -1
- package/src/pull-request.mjs +4 -2
- package/types/attributes.d.mts +1 -1
- package/types/pull-request.d.mts +2 -2
package/README.md
CHANGED
|
@@ -62,7 +62,7 @@ console.log(await readme.string);
|
|
|
62
62
|
* [boolean\_attribute](#boolean_attribute)
|
|
63
63
|
* [boolean\_read\_only\_attribute](#boolean_read_only_attribute)
|
|
64
64
|
* [uuid\_attribute](#uuid_attribute)
|
|
65
|
-
* [empty\
|
|
65
|
+
* [empty\_attribute](#empty_attribute)
|
|
66
66
|
* [secret\_attribute](#secret_attribute)
|
|
67
67
|
* [count\_attribute](#count_attribute)
|
|
68
68
|
* [size\_attribute](#size_attribute)
|
|
@@ -296,6 +296,7 @@ console.log(await readme.string);
|
|
|
296
296
|
* [PullRequest](#pullrequest)
|
|
297
297
|
* [Parameters](#parameters-73)
|
|
298
298
|
* [Properties](#properties-7)
|
|
299
|
+
* [source](#source)
|
|
299
300
|
* [fullName](#fullname-3)
|
|
300
301
|
* [url](#url-3)
|
|
301
302
|
* [repository](#repository-1)
|
|
@@ -361,6 +362,7 @@ console.log(await readme.string);
|
|
|
361
362
|
* [Parameters](#parameters-85)
|
|
362
363
|
* [Properties](#properties-9)
|
|
363
364
|
* [slug](#slug-2)
|
|
365
|
+
* [url](#url-4)
|
|
364
366
|
* [entry](#entry-2)
|
|
365
367
|
* [Parameters](#parameters-86)
|
|
366
368
|
* [entries](#entries-2)
|
|
@@ -552,7 +554,7 @@ Type: AttributeDefinition
|
|
|
552
554
|
|
|
553
555
|
Type: AttributeDefinition
|
|
554
556
|
|
|
555
|
-
## empty\
|
|
557
|
+
## empty\_attribute
|
|
556
558
|
|
|
557
559
|
Type: AttributeDefinition
|
|
558
560
|
|
|
@@ -1526,7 +1528,7 @@ Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/
|
|
|
1526
1528
|
|
|
1527
1529
|
Url of home page.
|
|
1528
1530
|
|
|
1529
|
-
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** as provided from the owner
|
|
1531
|
+
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))** as provided from the owner
|
|
1530
1532
|
|
|
1531
1533
|
### issuesURL
|
|
1532
1534
|
|
|
@@ -1675,7 +1677,7 @@ Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/
|
|
|
1675
1677
|
|
|
1676
1678
|
Url of home page.
|
|
1677
1679
|
|
|
1678
|
-
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** as provided from the owner
|
|
1680
|
+
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))** as provided from the owner
|
|
1679
1681
|
|
|
1680
1682
|
### issuesURL
|
|
1681
1683
|
|
|
@@ -1825,6 +1827,10 @@ Abstract pull request.
|
|
|
1825
1827
|
* `locked` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** 
|
|
1826
1828
|
* `url` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
1827
1829
|
|
|
1830
|
+
### source
|
|
1831
|
+
|
|
1832
|
+
Type: [Branch](#branch)
|
|
1833
|
+
|
|
1828
1834
|
### fullName
|
|
1829
1835
|
|
|
1830
1836
|
Name of the PR together with the repository.
|
|
@@ -2206,6 +2212,10 @@ Name of the repo as used in the URL.
|
|
|
2206
2212
|
|
|
2207
2213
|
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
2208
2214
|
|
|
2215
|
+
### url
|
|
2216
|
+
|
|
2217
|
+
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
2218
|
+
|
|
2209
2219
|
### entry
|
|
2210
2220
|
|
|
2211
2221
|
Lookup entries form the head of the default branch.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repository-provider",
|
|
3
|
-
"version": "35.2.
|
|
3
|
+
"version": "35.2.21",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"content-entry": "^11.0.1",
|
|
41
41
|
"matching-iterator": "^2.1.3",
|
|
42
|
-
"pacc": "^3.1.
|
|
42
|
+
"pacc": "^3.1.8"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"ava": "^6.1.3",
|
package/src/attributes.mjs
CHANGED
|
@@ -46,7 +46,7 @@ export const uuid_attribute = {
|
|
|
46
46
|
/**
|
|
47
47
|
* @type {AttributeDefinition}
|
|
48
48
|
*/
|
|
49
|
-
export const
|
|
49
|
+
export const empty_attribute = { ...default_attribute, type: "boolean" };
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
52
|
* @type {AttributeDefinition}
|
package/src/pull-request.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
body_attribute,
|
|
10
10
|
title_attribute,
|
|
11
11
|
boolean_attribute,
|
|
12
|
-
|
|
12
|
+
empty_attribute
|
|
13
13
|
} from "./attributes.mjs";
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -130,10 +130,12 @@ export class PullRequest extends OwnedObject {
|
|
|
130
130
|
*/
|
|
131
131
|
draft: boolean_attribute,
|
|
132
132
|
dry: boolean_attribute,
|
|
133
|
-
empty:
|
|
133
|
+
empty: empty_attribute
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
+
/** @type {Branch} */ source;
|
|
138
|
+
|
|
137
139
|
constructor(source, owner, name, options) {
|
|
138
140
|
let state = "OPEN";
|
|
139
141
|
|
package/types/attributes.d.mts
CHANGED
package/types/pull-request.d.mts
CHANGED
|
@@ -106,7 +106,7 @@ export class PullRequest extends OwnedObject {
|
|
|
106
106
|
name: import("pacc").AttributeDefinition;
|
|
107
107
|
description: import("pacc").AttributeDefinition;
|
|
108
108
|
};
|
|
109
|
-
source:
|
|
109
|
+
/** @type {Branch} */ source: Branch;
|
|
110
110
|
get destination(): any;
|
|
111
111
|
get number(): string;
|
|
112
112
|
get dry(): boolean;
|
|
@@ -136,6 +136,6 @@ export class PullRequest extends OwnedObject {
|
|
|
136
136
|
reviews(): AsyncIterable<Review>;
|
|
137
137
|
}
|
|
138
138
|
import { OwnedObject } from "./owned-object.mjs";
|
|
139
|
+
import { Branch } from "./branch.mjs";
|
|
139
140
|
import { Repository } from "./repository.mjs";
|
|
140
141
|
import { Review } from "./review.mjs";
|
|
141
|
-
import { Branch } from "./branch.mjs";
|