repository-provider 37.1.12 → 37.1.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repository-provider",
3
- "version": "37.1.12",
3
+ "version": "37.1.13",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -35,7 +35,7 @@
35
35
  "dependencies": {
36
36
  "content-entry": "^14.2.7",
37
37
  "matching-iterator": "^2.1.8",
38
- "pacc": "^11.2.6"
38
+ "pacc": "^11.3.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "ava": "^8.0.1",
@@ -4,9 +4,10 @@ import {
4
4
  url_attribute,
5
5
  name_attribute_writable,
6
6
  priority_attribute,
7
- object_attribute
7
+ object_attribute,
8
+ asArray
8
9
  } from "pacc";
9
- import { asArray, stripBaseName } from "./util.mjs";
10
+ import { stripBaseName } from "./util.mjs";
10
11
  import { PullRequest } from "./pull-request.mjs";
11
12
  import { RepositoryGroup } from "./repository-group.mjs";
12
13
  import { BaseObject } from "./base-object.mjs";
@@ -1,8 +1,9 @@
1
1
  import { matcher } from "matching-iterator";
2
+ import { asArray } from "pacc";
2
3
  import { Branch } from "./branch.mjs";
3
4
  import { Repository } from "./repository.mjs";
4
5
  import { OwnedObject } from "./owned-object.mjs";
5
- import { asArray, stripBaseName, stripBaseNames } from "./util.mjs";
6
+ import { stripBaseName, stripBaseNames } from "./util.mjs";
6
7
 
7
8
  /**
8
9
  * Mixin to define a class able to handle a collection of repositories.
package/src/util.mjs CHANGED
@@ -1,14 +1,5 @@
1
1
  import { Repository } from "./repository.mjs";
2
2
 
3
- /**
4
- * Convert scalar into an array.
5
- * The value undefined will be represented as an empty array.
6
- * @param {Array|any} value
7
- * @return {Array} value encapsulated in an array
8
- */
9
- export function asArray(value) {
10
- return Array.isArray(value) ? value : value === undefined ? [] : [value];
11
- }
12
3
 
13
4
  /**
14
5
  * Strip repository base name away.