@jsii/kernel 1.113.0 → 1.114.1
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/lib/serialization.js +3 -0
- package/package.json +5 -5
package/lib/serialization.js
CHANGED
|
@@ -547,6 +547,9 @@ function serializationType(typeRef, lookup) {
|
|
|
547
547
|
}
|
|
548
548
|
return compoundTypes.sort((l, r) => compareSerializationClasses(l.serializationClass, r.serializationClass));
|
|
549
549
|
}
|
|
550
|
+
if (spec.isIntersectionTypeReference(typeRef.type)) {
|
|
551
|
+
throw new Error(`Intersection types cannot be serialized`);
|
|
552
|
+
}
|
|
550
553
|
// The next part of the conversion is lookup-dependent
|
|
551
554
|
const type = lookup(typeRef.type.fqn);
|
|
552
555
|
if (spec.isEnumType(type)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsii/kernel",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.114.1",
|
|
4
4
|
"description": "kernel for jsii execution environment",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -31,19 +31,19 @@
|
|
|
31
31
|
"package": "package-js"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@jsii/spec": "
|
|
34
|
+
"@jsii/spec": "1.114.1",
|
|
35
35
|
"fs-extra": "^10.1.0",
|
|
36
36
|
"lockfile": "^1.0.4",
|
|
37
37
|
"tar": "^6.2.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@scope/jsii-calc-base": "^1.
|
|
41
|
-
"@scope/jsii-calc-lib": "^1.
|
|
40
|
+
"@scope/jsii-calc-base": "^1.114.1",
|
|
41
|
+
"@scope/jsii-calc-lib": "^1.114.1",
|
|
42
42
|
"@types/fs-extra": "^9.0.13",
|
|
43
43
|
"@types/lockfile": "^1.0.4",
|
|
44
44
|
"@types/tar": "^6.1.13",
|
|
45
45
|
"jest-expect-message": "^1.1.3",
|
|
46
|
-
"jsii-build-tools": "^1.
|
|
46
|
+
"jsii-build-tools": "^1.114.1",
|
|
47
47
|
"jsii-calc": "^3.20.120"
|
|
48
48
|
}
|
|
49
49
|
}
|