repository-provider 32.0.3 → 32.0.6

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,6 +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
- [![minified size](https://badgen.net/bundlephobia/min/repository-provider)](https://bundlephobia.com/result?p=repository-provider)
3
+ [![Open Bundle](https://bundlejs.com/badge-light.svg)](https://bundlejs.com/?q=repository-provider)
4
4
  [![downloads](http://img.shields.io/npm/dm/repository-provider.svg?style=flat-square)](https://npmjs.org/package/repository-provider)
5
5
  [![GitHub Issues](https://img.shields.io/github/issues/arlac77/repository-provider.svg?style=flat-square)](https://github.com/arlac77/repository-provider/issues)
6
6
  [![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Farlac77%2Frepository-provider%2Fbadge\&style=flat)](https://actions-badge.atrox.dev/arlac77/repository-provider/goto)
@@ -852,7 +852,7 @@ Returns **[BaseProvider](#baseprovider)** this
852
852
 
853
853
  ### url
854
854
 
855
- Returns **any** url otf the provider.
855
+ Returns **any** url of the provider.
856
856
 
857
857
  ### toJSON
858
858
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repository-provider",
3
- "version": "32.0.3",
3
+ "version": "32.0.6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -27,21 +27,21 @@
27
27
  "docs": "documentation readme --section=API ./src/**/*.mjs",
28
28
  "lint": "npm run lint:docs && npm run lint:tsc",
29
29
  "lint:docs": "documentation lint ./src/**/*.mjs",
30
- "lint:tsc": "tsc --allowJs --checkJs --noEmit -t es2022 -m node16 ./src/*.mjs"
30
+ "lint:tsc": "tsc --allowJs --checkJs --noEmit -t esnext -m esnext ./src/*.mjs"
31
31
  },
32
32
  "dependencies": {
33
- "matching-iterator": "^2.0.6"
33
+ "matching-iterator": "^2.0.7"
34
34
  },
35
35
  "devDependencies": {
36
- "ava": "^4.3.0",
37
- "c8": "^7.11.3",
36
+ "ava": "^4.3.1",
37
+ "c8": "^7.12.0",
38
38
  "documentation": "^13.2.5",
39
- "repository-provider-test-support": "^2.2.9",
39
+ "repository-provider-test-support": "^2.2.13",
40
40
  "semantic-release": "^19.0.3",
41
41
  "typescript": "^4.7.4"
42
42
  },
43
43
  "engines": {
44
- "node": ">=16.15.1"
44
+ "node": ">=16.16.0"
45
45
  },
46
46
  "repository": {
47
47
  "type": "git",
package/src/attribute.mjs CHANGED
@@ -95,7 +95,7 @@ export function definePropertiesFromOptions(
95
95
  first
96
96
  );
97
97
 
98
- if ((op && op.set) || (property && property.set)) {
98
+ if (op?.set || property?.set) {
99
99
  applyLater[first] = value;
100
100
  } else {
101
101
  properties[first] = Object.assign(
@@ -157,7 +157,7 @@ export class BaseObject {
157
157
  */
158
158
  get api() {
159
159
  // TODO move into owner-object
160
- return this.owner && this.owner.api;
160
+ return this.owner?.api;
161
161
  }
162
162
 
163
163
  /**
@@ -415,7 +415,7 @@ export class BaseProvider extends BaseObject {
415
415
  }
416
416
 
417
417
  /**
418
- * @return url otf the provider.
418
+ * @return url of the provider.
419
419
  */
420
420
  get url() {
421
421
  return "/";
@@ -48,6 +48,7 @@ export class NamedObject extends BaseObject {
48
48
  this.provider.equals(other.provider)
49
49
  );
50
50
  }
51
+
51
52
  /**
52
53
  * @return {string} name with owner name
53
54
  */
@@ -220,14 +220,14 @@ export class PullRequest extends OwnedObject {
220
220
  * @return {Repository} destination repository
221
221
  */
222
222
  get repository() {
223
- return this.owner && this.owner.repository;
223
+ return this.owner?.repository;
224
224
  }
225
225
 
226
226
  /**
227
227
  * @return {BaseProvider}
228
228
  */
229
229
  get provider() {
230
- return this.owner && this.owner.provider;
230
+ return this.owner?.provider;
231
231
  }
232
232
 
233
233
  /**
@@ -245,7 +245,7 @@ export class PullRequest extends OwnedObject {
245
245
  * @return {Promise}
246
246
  */
247
247
  async delete() {
248
- return this.owner && this.owner.deletePullRequest(this.name);
248
+ return this.owner?.deletePullRequest(this.name);
249
249
  }
250
250
 
251
251
  /**