@jsii/runtime 1.73.0 → 1.74.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.
- package/package.json +7 -7
- package/webpack/lib/program.js +9 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsii/runtime",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.74.0",
|
|
4
4
|
"description": "jsii runtime kernel process",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
"package": "package-js"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@jsii/kernel": "^1.
|
|
38
|
-
"@jsii/check-node": "1.
|
|
39
|
-
"@jsii/spec": "^1.
|
|
37
|
+
"@jsii/kernel": "^1.74.0",
|
|
38
|
+
"@jsii/check-node": "1.74.0",
|
|
39
|
+
"@jsii/spec": "^1.74.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@scope/jsii-calc-base": "^1.
|
|
43
|
-
"@scope/jsii-calc-lib": "^1.
|
|
44
|
-
"jsii-build-tools": "^1.
|
|
42
|
+
"@scope/jsii-calc-base": "^1.74.0",
|
|
43
|
+
"@scope/jsii-calc-lib": "^1.74.0",
|
|
44
|
+
"jsii-build-tools": "^1.74.0",
|
|
45
45
|
"jsii-calc": "^3.20.120",
|
|
46
46
|
"source-map-loader": "^4.0.1",
|
|
47
47
|
"webpack": "^5.75.0",
|
package/webpack/lib/program.js
CHANGED
|
@@ -14253,7 +14253,7 @@ var __webpack_modules__ = {
|
|
|
14253
14253
|
strictTypesError(it, `type "${t}" not allowed by context "${it.dataTypes.join(",")}"`);
|
|
14254
14254
|
}
|
|
14255
14255
|
}));
|
|
14256
|
-
it
|
|
14256
|
+
narrowSchemaTypes(it, types);
|
|
14257
14257
|
}
|
|
14258
14258
|
function checkMultipleTypes(it, ts) {
|
|
14259
14259
|
if (ts.length > 1 && !(ts.length === 2 && ts.includes("null"))) {
|
|
@@ -14278,6 +14278,13 @@ var __webpack_modules__ = {
|
|
|
14278
14278
|
function includesType(ts, t) {
|
|
14279
14279
|
return ts.includes(t) || t === "integer" && ts.includes("number");
|
|
14280
14280
|
}
|
|
14281
|
+
function narrowSchemaTypes(it, withTypes) {
|
|
14282
|
+
const ts = [];
|
|
14283
|
+
for (const t of it.dataTypes) {
|
|
14284
|
+
if (includesType(withTypes, t)) ts.push(t); else if (withTypes.includes("integer") && t === "number") ts.push("integer");
|
|
14285
|
+
}
|
|
14286
|
+
it.dataTypes = ts;
|
|
14287
|
+
}
|
|
14281
14288
|
function strictTypesError(it, msg) {
|
|
14282
14289
|
const schemaPath = it.schemaEnv.baseId + it.errSchemaPath;
|
|
14283
14290
|
msg += ` at "${schemaPath}" (strictTypes)`;
|
|
@@ -17243,7 +17250,7 @@ var __webpack_modules__ = {
|
|
|
17243
17250
|
},
|
|
17244
17251
|
4147: module => {
|
|
17245
17252
|
"use strict";
|
|
17246
|
-
module.exports = JSON.parse('{"name":"@jsii/runtime","version":"1.
|
|
17253
|
+
module.exports = JSON.parse('{"name":"@jsii/runtime","version":"1.74.0","description":"jsii runtime kernel process","license":"Apache-2.0","author":{"name":"Amazon Web Services","url":"https://aws.amazon.com"},"homepage":"https://github.com/aws/jsii","bugs":{"url":"https://github.com/aws/jsii/issues"},"repository":{"type":"git","url":"https://github.com/aws/jsii.git","directory":"packages/@jsii/runtime"},"engines":{"node":">= 14.6.0"},"main":"lib/index.js","types":"lib/index.d.ts","bin":{"jsii-runtime":"bin/jsii-runtime"},"scripts":{"build":"tsc --build && chmod +x bin/jsii-runtime && npx webpack-cli && npm run lint","watch":"tsc --build -w","lint":"eslint . --ext .js,.ts --ignore-path=.gitignore --ignore-pattern=webpack.config.js","lint:fix":"yarn lint --fix","test":"jest","test:update":"jest -u","package":"package-js"},"dependencies":{"@jsii/kernel":"^1.74.0","@jsii/check-node":"1.74.0","@jsii/spec":"^1.74.0"},"devDependencies":{"@scope/jsii-calc-base":"^1.74.0","@scope/jsii-calc-lib":"^1.74.0","jsii-build-tools":"^1.74.0","jsii-calc":"^3.20.120","source-map-loader":"^4.0.1","webpack":"^5.75.0","webpack-cli":"^5.0.1"}}');
|
|
17247
17254
|
},
|
|
17248
17255
|
5277: module => {
|
|
17249
17256
|
"use strict";
|