aws-cdk 1.164.0 → 1.167.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.
@@ -1,6 +1,6 @@
1
1
  The aws-cdk package includes the following third-party software/licensing:
2
2
 
3
- ** @jsii/check-node@1.60.0 - https://www.npmjs.com/package/@jsii/check-node/v/1.60.0 | Apache-2.0
3
+ ** @jsii/check-node@1.63.2 - https://www.npmjs.com/package/@jsii/check-node/v/1.63.2 | Apache-2.0
4
4
  jsii
5
5
  Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
6
6
 
@@ -37,7 +37,7 @@ THE SOFTWARE.
37
37
 
38
38
  ----------------
39
39
 
40
- ** acorn@8.7.1 - https://www.npmjs.com/package/acorn/v/8.7.1 | MIT
40
+ ** acorn@8.8.0 - https://www.npmjs.com/package/acorn/v/8.8.0 | MIT
41
41
  MIT License
42
42
 
43
43
  Copyright (C) 2012-2022 by various contributors (see AUTHORS)
@@ -268,7 +268,7 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH RE
268
268
 
269
269
  ----------------
270
270
 
271
- ** aws-sdk@2.1151.0 - https://www.npmjs.com/package/aws-sdk/v/2.1151.0 | Apache-2.0
271
+ ** aws-sdk@2.1185.0 - https://www.npmjs.com/package/aws-sdk/v/2.1185.0 | Apache-2.0
272
272
  AWS SDK for JavaScript
273
273
  Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
274
274
 
@@ -1554,6 +1554,10 @@ PERFORMANCE OF THIS SOFTWARE.
1554
1554
 
1555
1555
  ----------------
1556
1556
 
1557
+ ** ip@2.0.0 - https://www.npmjs.com/package/ip/v/2.0.0 | MIT
1558
+
1559
+ ----------------
1560
+
1557
1561
  ** is-binary-path@2.1.0 - https://www.npmjs.com/package/is-binary-path/v/2.1.0 | MIT
1558
1562
  MIT License
1559
1563
 
@@ -2565,7 +2569,7 @@ IN THE SOFTWARE.
2565
2569
 
2566
2570
  ----------------
2567
2571
 
2568
- ** readdir-glob@1.1.1 - https://www.npmjs.com/package/readdir-glob/v/1.1.1 | Apache-2.0
2572
+ ** readdir-glob@1.1.2 - https://www.npmjs.com/package/readdir-glob/v/1.1.2 | Apache-2.0
2569
2573
  Apache License
2570
2574
  Version 2.0, January 2004
2571
2575
  http://www.apache.org/licenses/
@@ -3029,7 +3033,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3029
3033
 
3030
3034
  ----------------
3031
3035
 
3032
- ** socks@2.6.2 - https://www.npmjs.com/package/socks/v/2.6.2 | MIT
3036
+ ** socks@2.7.0 - https://www.npmjs.com/package/socks/v/2.7.0 | MIT
3033
3037
  The MIT License (MIT)
3034
3038
 
3035
3039
  Copyright (c) 2013 Josh Glazebrook
@@ -3528,7 +3532,7 @@ OTHER DEALINGS IN THE SOFTWARE.
3528
3532
 
3529
3533
  ----------------
3530
3534
 
3531
- ** vm2@3.9.9 - https://www.npmjs.com/package/vm2/v/3.9.9 | MIT
3535
+ ** vm2@3.9.10 - https://www.npmjs.com/package/vm2/v/3.9.10 | MIT
3532
3536
 
3533
3537
  ----------------
3534
3538
 
package/build-info.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "comment": "Generated at 2022-07-15T21:25:32Z by generate.sh",
3
- "commit": "c738d93"
2
+ "comment": "Generated at 2022-08-02T19:33:19Z by generate.sh",
3
+ "commit": "b613ba6"
4
4
  }
@@ -1 +1 @@
1
- {"expiration":1657924031304,"notices":[{"title":"Error when building EKS cluster with monocdk import","issueNumber":17061,"overview":"When using monocdk/aws-eks to build a stack containing an EKS cluster, error is thrown about missing lambda-layer-node-proxy-agent/layer/package.json.","components":[{"name":"cli","version":"<1.130.0 >=1.126.0"}],"schemaVersion":"1"}]}
1
+ {"expiration":1659472499120,"notices":[{"title":"Error when building EKS cluster with monocdk import","issueNumber":17061,"overview":"When using monocdk/aws-eks to build a stack containing an EKS cluster, error is thrown about missing lambda-layer-node-proxy-agent/layer/package.json.","components":[{"name":"cli","version":"<1.130.0 >=1.126.0"}],"schemaVersion":"1"}]}
package/lib/bridge.js CHANGED
@@ -102,6 +102,8 @@ const thisErrorCaptureStackTrace = Error.captureStackTrace;
102
102
 
103
103
  const thisSymbolToString = Symbol.prototype.toString;
104
104
  const thisSymbolToStringTag = Symbol.toStringTag;
105
+ const thisSymbolIterator = Symbol.iterator;
106
+ const thisSymbolNodeJSUtilInspectCustom = Symbol.for('nodejs.util.inspect.custom');
105
107
 
106
108
  /**
107
109
  * VMError.
@@ -348,7 +350,11 @@ function createBridge(otherInit, registerProxy) {
348
350
  constructor(object) {
349
351
  // Note: object@other(unsafe) throws@this(unsafe)
350
352
  super();
351
- this.object = object;
353
+ this.objectWrapper = () => object;
354
+ }
355
+
356
+ getObject() {
357
+ return this.objectWrapper();
352
358
  }
353
359
 
354
360
  getFactory() {
@@ -408,7 +414,7 @@ function createBridge(otherInit, registerProxy) {
408
414
 
409
415
  get(target, key, receiver) {
410
416
  // Note: target@this(unsafe) key@prim receiver@this(unsafe) throws@this(unsafe)
411
- const object = this.object; // @other(unsafe)
417
+ const object = this.getObject(); // @other(unsafe)
412
418
  switch (key) {
413
419
  case 'constructor': {
414
420
  const desc = otherSafeGetOwnPropertyDescriptor(object, key);
@@ -447,7 +453,7 @@ function createBridge(otherInit, registerProxy) {
447
453
 
448
454
  set(target, key, value, receiver) {
449
455
  // Note: target@this(unsafe) key@prim value@this(unsafe) receiver@this(unsafe) throws@this(unsafe)
450
- const object = this.object; // @other(unsafe)
456
+ const object = this.getObject(); // @other(unsafe)
451
457
  if (key === '__proto__' && !thisOtherHasOwnProperty(object, key)) {
452
458
  return this.setPrototypeOf(target, value);
453
459
  }
@@ -471,7 +477,7 @@ function createBridge(otherInit, registerProxy) {
471
477
 
472
478
  apply(target, context, args) {
473
479
  // Note: target@this(unsafe) context@this(unsafe) args@this(safe-array) throws@this(unsafe)
474
- const object = this.object; // @other(unsafe)
480
+ const object = this.getObject(); // @other(unsafe)
475
481
  let ret; // @other(unsafe)
476
482
  try {
477
483
  context = otherFromThis(context);
@@ -485,7 +491,7 @@ function createBridge(otherInit, registerProxy) {
485
491
 
486
492
  construct(target, args, newTarget) {
487
493
  // Note: target@this(unsafe) args@this(safe-array) newTarget@this(unsafe) throws@this(unsafe)
488
- const object = this.object; // @other(unsafe)
494
+ const object = this.getObject(); // @other(unsafe)
489
495
  let ret; // @other(unsafe)
490
496
  try {
491
497
  args = otherFromThisArguments(args);
@@ -498,14 +504,14 @@ function createBridge(otherInit, registerProxy) {
498
504
 
499
505
  getOwnPropertyDescriptorDesc(target, prop, desc) {
500
506
  // Note: target@this(unsafe) prop@prim desc@other{safe} throws@this(unsafe)
501
- const object = this.object; // @other(unsafe)
507
+ const object = this.getObject(); // @other(unsafe)
502
508
  if (desc && typeof object === 'function' && (prop === 'arguments' || prop === 'caller' || prop === 'callee')) desc.value = null;
503
509
  return desc;
504
510
  }
505
511
 
506
512
  getOwnPropertyDescriptor(target, prop) {
507
513
  // Note: target@this(unsafe) prop@prim throws@this(unsafe)
508
- const object = this.object; // @other(unsafe)
514
+ const object = this.getObject(); // @other(unsafe)
509
515
  let desc; // @other(safe)
510
516
  try {
511
517
  desc = otherSafeGetOwnPropertyDescriptor(object, prop);
@@ -551,7 +557,7 @@ function createBridge(otherInit, registerProxy) {
551
557
 
552
558
  defineProperty(target, prop, desc) {
553
559
  // Note: target@this(unsafe) prop@prim desc@this(unsafe) throws@this(unsafe)
554
- const object = this.object; // @other(unsafe)
560
+ const object = this.getObject(); // @other(unsafe)
555
561
  if (!thisReflectSetPrototypeOf(desc, null)) throw thisUnexpected();
556
562
 
557
563
  desc = this.definePropertyDesc(target, prop, desc);
@@ -604,7 +610,7 @@ function createBridge(otherInit, registerProxy) {
604
610
 
605
611
  deleteProperty(target, prop) {
606
612
  // Note: target@this(unsafe) prop@prim throws@this(unsafe)
607
- const object = this.object; // @other(unsafe)
613
+ const object = this.getObject(); // @other(unsafe)
608
614
  try {
609
615
  return otherReflectDeleteProperty(object, prop) === true;
610
616
  } catch (e) { // @other(unsafe)
@@ -614,7 +620,7 @@ function createBridge(otherInit, registerProxy) {
614
620
 
615
621
  has(target, key) {
616
622
  // Note: target@this(unsafe) key@prim throws@this(unsafe)
617
- const object = this.object; // @other(unsafe)
623
+ const object = this.getObject(); // @other(unsafe)
618
624
  try {
619
625
  return otherReflectHas(object, key) === true;
620
626
  } catch (e) { // @other(unsafe)
@@ -624,7 +630,7 @@ function createBridge(otherInit, registerProxy) {
624
630
 
625
631
  isExtensible(target) {
626
632
  // Note: target@this(unsafe) throws@this(unsafe)
627
- const object = this.object; // @other(unsafe)
633
+ const object = this.getObject(); // @other(unsafe)
628
634
  try {
629
635
  if (otherReflectIsExtensible(object)) return true;
630
636
  } catch (e) { // @other(unsafe)
@@ -638,7 +644,7 @@ function createBridge(otherInit, registerProxy) {
638
644
 
639
645
  ownKeys(target) {
640
646
  // Note: target@this(unsafe) throws@this(unsafe)
641
- const object = this.object; // @other(unsafe)
647
+ const object = this.getObject(); // @other(unsafe)
642
648
  let res; // @other(unsafe)
643
649
  try {
644
650
  res = otherReflectOwnKeys(object);
@@ -650,7 +656,7 @@ function createBridge(otherInit, registerProxy) {
650
656
 
651
657
  preventExtensions(target) {
652
658
  // Note: target@this(unsafe) throws@this(unsafe)
653
- const object = this.object; // @other(unsafe)
659
+ const object = this.getObject(); // @other(unsafe)
654
660
  try {
655
661
  if (!otherReflectPreventExtensions(object)) return false;
656
662
  } catch (e) { // @other(unsafe)
@@ -664,7 +670,7 @@ function createBridge(otherInit, registerProxy) {
664
670
 
665
671
  enumerate(target) {
666
672
  // Note: target@this(unsafe) throws@this(unsafe)
667
- const object = this.object; // @other(unsafe)
673
+ const object = this.getObject(); // @other(unsafe)
668
674
  let res; // @other(unsafe)
669
675
  try {
670
676
  res = otherReflectEnumerate(object);
@@ -676,6 +682,10 @@ function createBridge(otherInit, registerProxy) {
676
682
 
677
683
  }
678
684
 
685
+ BaseHandler.prototype[thisSymbolNodeJSUtilInspectCustom] = undefined;
686
+ BaseHandler.prototype[thisSymbolToStringTag] = 'VM2 Wrapper';
687
+ BaseHandler.prototype[thisSymbolIterator] = undefined;
688
+
679
689
  function defaultFactory(object) {
680
690
  // Note: other@other(unsafe) returns@this(unsafe) throws@this(unsafe)
681
691
  return new BaseHandler(object);
@@ -773,7 +783,7 @@ function createBridge(otherInit, registerProxy) {
773
783
 
774
784
  get(target, key, receiver) {
775
785
  // Note: target@this(unsafe) key@prim receiver@this(unsafe) throws@this(unsafe)
776
- const object = this.object; // @other(unsafe)
786
+ const object = this.getObject(); // @other(unsafe)
777
787
  const mock = this.mock;
778
788
  if (thisReflectApply(thisObjectHasOwnProperty, mock, key) && !thisOtherHasOwnProperty(object, key)) {
779
789
  return mock[key];