@jsii/kernel 1.110.0 → 1.112.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.
Files changed (2) hide show
  1. package/lib/kernel.js +25 -29
  2. package/package.json +5 -5
package/lib/kernel.js CHANGED
@@ -510,18 +510,16 @@ _Kernel_assemblies = new WeakMap(), _Kernel_objects = new WeakMap(), _Kernel_cbs
510
510
  __classPrivateFieldGet(this, _Kernel_instances, "m", _Kernel_debug).call(this, `Skipping override of private property ${override.property}`);
511
511
  return;
512
512
  }
513
- if (!propInfo) {
514
- // We've overriding a property on an object we have NO type information on (probably
515
- // because it's an anonymous object).
516
- // Pretend it's 'prop: any';
517
- //
518
- // FIXME: We could do better type checking during the conversion if JSII clients
519
- // would tell us the intended interface type.
520
- propInfo = {
521
- name: override.property,
522
- type: spec.CANONICAL_ANY,
523
- };
524
- }
513
+ // We've overriding a property on an object we have NO type information on (probably
514
+ // because it's an anonymous object).
515
+ // Pretend it's 'prop: any';
516
+ //
517
+ // FIXME: We could do better type checking during the conversion if JSII clients
518
+ // would tell us the intended interface type.
519
+ propInfo !== null && propInfo !== void 0 ? propInfo : (propInfo = {
520
+ name: override.property,
521
+ type: spec.CANONICAL_ANY,
522
+ });
525
523
  __classPrivateFieldGet(this, _Kernel_instances, "m", _Kernel_defineOverridenProperty).call(this, obj, objref, override, propInfo);
526
524
  }, _Kernel_defineOverridenProperty = function _Kernel_defineOverridenProperty(obj, objref, override, propInfo) {
527
525
  var _a;
@@ -595,23 +593,21 @@ _Kernel_assemblies = new WeakMap(), _Kernel_objects = new WeakMap(), _Kernel_cbs
595
593
  __classPrivateFieldGet(this, _Kernel_instances, "m", _Kernel_debug).call(this, `Skipping override of private method ${override.method}`);
596
594
  return;
597
595
  }
598
- if (!methodInfo) {
599
- // We've overriding a method on an object we have NO type information on (probably
600
- // because it's an anonymous object).
601
- // Pretend it's an (...args: any[]) => any
602
- methodInfo = {
603
- name: override.method,
604
- returns: { type: spec.CANONICAL_ANY },
605
- parameters: [
606
- {
607
- name: 'args',
608
- type: spec.CANONICAL_ANY,
609
- variadic: true,
610
- },
611
- ],
612
- variadic: true,
613
- };
614
- }
596
+ // We've overriding a method on an object we have NO type information on (probably
597
+ // because it's an anonymous object).
598
+ // Pretend it's an (...args: any[]) => any
599
+ methodInfo !== null && methodInfo !== void 0 ? methodInfo : (methodInfo = {
600
+ name: override.method,
601
+ returns: { type: spec.CANONICAL_ANY },
602
+ parameters: [
603
+ {
604
+ name: 'args',
605
+ type: spec.CANONICAL_ANY,
606
+ variadic: true,
607
+ },
608
+ ],
609
+ variadic: true,
610
+ });
615
611
  __classPrivateFieldGet(this, _Kernel_instances, "m", _Kernel_defineOverridenMethod).call(this, obj, objref, override, methodInfo);
616
612
  }, _Kernel_defineOverridenMethod = function _Kernel_defineOverridenMethod(obj, objref, override, methodInfo) {
617
613
  const methodName = override.method;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsii/kernel",
3
- "version": "1.110.0",
3
+ "version": "1.112.0",
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": "^1.110.0",
34
+ "@jsii/spec": "^1.112.0",
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.110.0",
41
- "@scope/jsii-calc-lib": "^1.110.0",
40
+ "@scope/jsii-calc-base": "^1.112.0",
41
+ "@scope/jsii-calc-lib": "^1.112.0",
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.110.0",
46
+ "jsii-build-tools": "^1.112.0",
47
47
  "jsii-calc": "^3.20.120"
48
48
  }
49
49
  }