componentsjs 6.0.1 → 6.2.0
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.
|
@@ -260,6 +260,11 @@ class GenericsContext {
|
|
|
260
260
|
*/
|
|
261
261
|
bindComponentGenericTypes(component, genericTypeInstances, errorContext, typeTypeValidator) {
|
|
262
262
|
const genericTypeParameters = component.properties.genericTypeParameters;
|
|
263
|
+
// Populate generic type instances with default generic values if applicable
|
|
264
|
+
while (genericTypeInstances.length < genericTypeParameters.length &&
|
|
265
|
+
genericTypeParameters[genericTypeInstances.length].property.default) {
|
|
266
|
+
genericTypeInstances.push(genericTypeParameters[genericTypeInstances.length].property.default);
|
|
267
|
+
}
|
|
263
268
|
// Don't do anything if no generic type instances are passed.
|
|
264
269
|
if (genericTypeInstances.length === 0) {
|
|
265
270
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "componentsjs",
|
|
3
|
-
"version": "6.0
|
|
3
|
+
"version": "6.2.0",
|
|
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"
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"@types/minimist": "^1.2.0",
|
|
40
40
|
"@types/node": "^18.0.0",
|
|
41
41
|
"@types/semver": "^7.3.4",
|
|
42
|
-
"jsonld-context-parser": "^
|
|
42
|
+
"jsonld-context-parser": "^3.0.0",
|
|
43
43
|
"minimist": "^1.2.0",
|
|
44
44
|
"rdf-data-factory": "^1.1.0",
|
|
45
|
-
"rdf-object": "^
|
|
45
|
+
"rdf-object": "^2.0.0",
|
|
46
46
|
"rdf-parse": "^2.0.0",
|
|
47
47
|
"rdf-quad": "^1.5.0",
|
|
48
48
|
"rdf-string": "^1.6.0",
|