repository-provider 32.2.1 → 32.2.3
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 +4 -4
- package/src/attribute.mjs +5 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repository-provider",
|
|
3
|
-
"version": "32.2.
|
|
3
|
+
"version": "32.2.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
"lint:tsc": "tsc --allowJs --checkJs --noEmit -t esnext -m esnext ./src/*.mjs"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"matching-iterator": "^2.0.
|
|
34
|
+
"matching-iterator": "^2.0.10"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"ava": "^5.1.0",
|
|
38
|
-
"browser-ava": "^1.3.
|
|
38
|
+
"browser-ava": "^1.3.5",
|
|
39
39
|
"c8": "^7.12.0",
|
|
40
40
|
"documentation": "^14.0.0",
|
|
41
|
-
"repository-provider-test-support": "^2.2.
|
|
41
|
+
"repository-provider-test-support": "^2.2.19",
|
|
42
42
|
"semantic-release": "^19.0.5",
|
|
43
43
|
"typescript": "^4.8.4"
|
|
44
44
|
},
|
package/src/attribute.mjs
CHANGED
|
@@ -164,20 +164,18 @@ export function setAttribute(object, name, value) {
|
|
|
164
164
|
* @returns {any} value associated with the given property name
|
|
165
165
|
*/
|
|
166
166
|
export function getAttribute(object, name) {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
if (value && value[name] !== undefined) {
|
|
170
|
-
return value[name];
|
|
167
|
+
if (object && object[name] !== undefined) {
|
|
168
|
+
return object[name];
|
|
171
169
|
}
|
|
172
170
|
|
|
173
171
|
for (const p of name.split(/\./)) {
|
|
174
|
-
if (
|
|
172
|
+
if (object === undefined) {
|
|
175
173
|
break;
|
|
176
174
|
}
|
|
177
|
-
|
|
175
|
+
object = object[p];
|
|
178
176
|
}
|
|
179
177
|
|
|
180
|
-
return
|
|
178
|
+
return object;
|
|
181
179
|
}
|
|
182
180
|
|
|
183
181
|
/**
|