repository-provider 32.6.7 → 32.6.8
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 +2 -2
- package/src/attribute-extras.mjs +1 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repository-provider",
|
|
3
|
-
"version": "32.6.
|
|
3
|
+
"version": "32.6.8",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"browser-ava": "^1.3.25",
|
|
38
38
|
"c8": "^7.13.0",
|
|
39
39
|
"documentation": "^14.0.1",
|
|
40
|
-
"repository-provider-test-support": "^2.2.
|
|
40
|
+
"repository-provider-test-support": "^2.2.37",
|
|
41
41
|
"semantic-release": "^20.1.1",
|
|
42
42
|
"typescript": "^4.9.5"
|
|
43
43
|
},
|
package/src/attribute-extras.mjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
import { setAttribute, getAttribute } from "./attribute.mjs";
|
|
3
2
|
|
|
4
3
|
/**
|
|
@@ -155,11 +154,7 @@ export function optionJSON(
|
|
|
155
154
|
? Object.keys(attributes).reduce((a, c) => {
|
|
156
155
|
const value = object[c];
|
|
157
156
|
if (value !== undefined && !(value instanceof Function)) {
|
|
158
|
-
|
|
159
|
-
a[c] = [...value];
|
|
160
|
-
} else {
|
|
161
|
-
a[c] = value;
|
|
162
|
-
}
|
|
157
|
+
a[c] = value instanceof Set ? [...value] : value;
|
|
163
158
|
}
|
|
164
159
|
return a;
|
|
165
160
|
}, initial)
|