repository-provider 31.2.8 → 31.2.9
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 +0 -5
- package/package.json +2 -2
- package/src/ref.mjs +2 -3
package/README.md
CHANGED
|
@@ -328,7 +328,6 @@ console.log(await readme.getString());
|
|
|
328
328
|
* [type](#type-2)
|
|
329
329
|
* [refId](#refid-1)
|
|
330
330
|
* [Parameters](#parameters-78)
|
|
331
|
-
* [toJSON](#tojson-2)
|
|
332
331
|
* [attributes](#attributes-3)
|
|
333
332
|
* [defaultBranchName](#defaultbranchname)
|
|
334
333
|
* [issuesURL](#issuesurl-2)
|
|
@@ -1920,10 +1919,6 @@ Get sha of a ref.
|
|
|
1920
1919
|
|
|
1921
1920
|
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** sha of the ref
|
|
1922
1921
|
|
|
1923
|
-
### toJSON
|
|
1924
|
-
|
|
1925
|
-
Provide name and all defined attributes
|
|
1926
|
-
|
|
1927
1922
|
### attributes
|
|
1928
1923
|
|
|
1929
1924
|
options
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repository-provider",
|
|
3
|
-
"version": "31.2.
|
|
3
|
+
"version": "31.2.9",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"ava": "^4.3.0",
|
|
37
37
|
"c8": "^7.11.3",
|
|
38
38
|
"documentation": "^13.2.5",
|
|
39
|
-
"repository-provider-test-support": "^2.2.
|
|
39
|
+
"repository-provider-test-support": "^2.2.6",
|
|
40
40
|
"semantic-release": "^19.0.3",
|
|
41
41
|
"typescript": "^4.7.4"
|
|
42
42
|
},
|
package/src/ref.mjs
CHANGED
|
@@ -39,11 +39,10 @@ export class Ref extends OwnedObject {
|
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
41
|
* Get sha of a ref.
|
|
42
|
-
* @param {string} ref
|
|
43
42
|
* @return {Promise<string>} sha of the ref
|
|
44
43
|
*/
|
|
45
|
-
async refId(
|
|
46
|
-
return this.owner.refId(ref);
|
|
44
|
+
async refId() {
|
|
45
|
+
return this.owner.refId(this.ref);
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
/**
|