componentsjs 5.4.1 → 5.4.2
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.
|
@@ -17,13 +17,14 @@ class ArgumentConstructorHandlerHash {
|
|
|
17
17
|
if (!entry.property.key) {
|
|
18
18
|
throw new ErrorResourcesContext_1.ErrorResourcesContext(`Missing key in fields entry`, { entry, argument });
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
const key = await argsCreator.getArgumentValues(entry.properties.key, settings);
|
|
21
|
+
if (typeof key !== 'string') {
|
|
22
|
+
throw new ErrorResourcesContext_1.ErrorResourcesContext(`Illegal non-string key (${entry.property.key.value} as ${entry.property.key.type}) in fields entry`, { entry, argument });
|
|
22
23
|
}
|
|
23
24
|
// Recursively get value arg value
|
|
24
25
|
if (entry.property.value) {
|
|
25
26
|
const subValue = await argsCreator.getArgumentValues(entry.properties.value, settings);
|
|
26
|
-
return { key
|
|
27
|
+
return { key, value: subValue };
|
|
27
28
|
}
|
|
28
29
|
// Ignore cases where value may not be set, because params may be optional
|
|
29
30
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "componentsjs",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.2",
|
|
4
4
|
"description": "A semantic dependency injection framework",
|
|
5
5
|
"lsd:contexts": {
|
|
6
6
|
"https://linkedsoftwaredependencies.org/bundles/npm/componentsjs/^5.0.0/components/context.jsonld": "components/context.jsonld"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"jsonld-context-parser": "^2.1.1",
|
|
45
45
|
"minimist": "^1.2.0",
|
|
46
46
|
"rdf-data-factory": "^1.1.0",
|
|
47
|
-
"rdf-object": "^1.
|
|
47
|
+
"rdf-object": "^1.14.0",
|
|
48
48
|
"rdf-parse": "^2.0.0",
|
|
49
49
|
"rdf-quad": "^1.5.0",
|
|
50
50
|
"rdf-string": "^1.6.0",
|