aws-cdk 2.16.0 → 2.17.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/THIRD_PARTY_LICENSES +24 -24
- package/build-info.json +2 -2
- package/does-not-exist.json +1 -1
- package/lib/bridge.js +99 -59
- package/lib/index.js +4748 -1969
- package/lib/serialize.js +2 -8
- package/lib/setup-sandbox.js +2 -1
- package/lib/util/asset-publishing.js +2 -1
- package/package.json +10 -10
- package/test/integ/cli/cli.integtest.js +2 -2
- package/test/integ/helpers/test-helpers.js +6 -2
package/THIRD_PARTY_LICENSES
CHANGED
|
@@ -357,7 +357,7 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
357
357
|
|
|
358
358
|
----------------
|
|
359
359
|
|
|
360
|
-
** aws-sdk@2.
|
|
360
|
+
** aws-sdk@2.1089.0 - https://www.npmjs.com/package/aws-sdk/v/2.1089.0 | Apache-2.0
|
|
361
361
|
AWS SDK for JavaScript
|
|
362
362
|
Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
363
363
|
|
|
@@ -1388,11 +1388,11 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
1388
1388
|
|
|
1389
1389
|
----------------
|
|
1390
1390
|
|
|
1391
|
-
** raw-body@2.5.
|
|
1391
|
+
** raw-body@2.5.1 - https://www.npmjs.com/package/raw-body/v/2.5.1 | MIT
|
|
1392
1392
|
The MIT License (MIT)
|
|
1393
1393
|
|
|
1394
1394
|
Copyright (c) 2013-2014 Jonathan Ong <me@jongleberry.com>
|
|
1395
|
-
Copyright (c) 2014-
|
|
1395
|
+
Copyright (c) 2014-2022 Douglas Christopher Wilson <doug@somethingdoug.com>
|
|
1396
1396
|
|
|
1397
1397
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1398
1398
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1622,7 +1622,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
1622
1622
|
|
|
1623
1623
|
----------------
|
|
1624
1624
|
|
|
1625
|
-
** vm2@3.9.
|
|
1625
|
+
** vm2@3.9.9 - https://www.npmjs.com/package/vm2/v/3.9.9 | MIT
|
|
1626
1626
|
|
|
1627
1627
|
----------------
|
|
1628
1628
|
|
|
@@ -3262,6 +3262,26 @@ jsii
|
|
|
3262
3262
|
Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3263
3263
|
|
|
3264
3264
|
|
|
3265
|
+
----------------
|
|
3266
|
+
|
|
3267
|
+
** minimatch@5.0.1 - https://www.npmjs.com/package/minimatch/v/5.0.1 | ISC
|
|
3268
|
+
The ISC License
|
|
3269
|
+
|
|
3270
|
+
Copyright (c) 2011-2022 Isaac Z. Schlueter and Contributors
|
|
3271
|
+
|
|
3272
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
3273
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
3274
|
+
copyright notice and this permission notice appear in all copies.
|
|
3275
|
+
|
|
3276
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
3277
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
3278
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
3279
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
3280
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
3281
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
3282
|
+
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
3283
|
+
|
|
3284
|
+
|
|
3265
3285
|
----------------
|
|
3266
3286
|
|
|
3267
3287
|
** brace-expansion@2.0.1 - https://www.npmjs.com/package/brace-expansion/v/2.0.1 | MIT
|
|
@@ -3288,26 +3308,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
3288
3308
|
SOFTWARE.
|
|
3289
3309
|
|
|
3290
3310
|
|
|
3291
|
-
----------------
|
|
3292
|
-
|
|
3293
|
-
** minimatch@5.0.0 - https://www.npmjs.com/package/minimatch/v/5.0.0 | ISC
|
|
3294
|
-
The ISC License
|
|
3295
|
-
|
|
3296
|
-
Copyright (c) 2011-2022 Isaac Z. Schlueter and Contributors
|
|
3297
|
-
|
|
3298
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
3299
|
-
purpose with or without fee is hereby granted, provided that the above
|
|
3300
|
-
copyright notice and this permission notice appear in all copies.
|
|
3301
|
-
|
|
3302
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
3303
|
-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
3304
|
-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
3305
|
-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
3306
|
-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
3307
|
-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
3308
|
-
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
3311
|
----------------
|
|
3312
3312
|
|
|
3313
3313
|
** picomatch@2.3.1 - https://www.npmjs.com/package/picomatch/v/2.3.1 | MIT
|
package/build-info.json
CHANGED
package/does-not-exist.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"expiration":
|
|
1
|
+
{"expiration":1647526455489,"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
|
@@ -311,7 +311,7 @@ function createBridge(otherInit, registerProxy) {
|
|
|
311
311
|
try {
|
|
312
312
|
return otherReflectApply(otherObjectHasOwnProperty, object, [key]) === true;
|
|
313
313
|
} catch (e) { // @other(unsafe)
|
|
314
|
-
throw
|
|
314
|
+
throw thisFromOtherForThrow(e);
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
|
|
@@ -324,7 +324,7 @@ function createBridge(otherInit, registerProxy) {
|
|
|
324
324
|
try {
|
|
325
325
|
ret = otherReflectApply(getter, object, [key]);
|
|
326
326
|
} catch (e) {
|
|
327
|
-
throw
|
|
327
|
+
throw thisFromOtherForThrow(e);
|
|
328
328
|
}
|
|
329
329
|
} else {
|
|
330
330
|
ret = desc.value;
|
|
@@ -338,7 +338,7 @@ function createBridge(otherInit, registerProxy) {
|
|
|
338
338
|
try {
|
|
339
339
|
to[key] = otherFromThis(from[key]);
|
|
340
340
|
} catch (e) { // @other(unsafe)
|
|
341
|
-
throw
|
|
341
|
+
throw thisFromOtherForThrow(e);
|
|
342
342
|
}
|
|
343
343
|
return true;
|
|
344
344
|
}
|
|
@@ -366,7 +366,7 @@ function createBridge(otherInit, registerProxy) {
|
|
|
366
366
|
try {
|
|
367
367
|
keys = otherReflectOwnKeys(object);
|
|
368
368
|
} catch (e) { // @other(unsafe)
|
|
369
|
-
throw
|
|
369
|
+
throw thisFromOtherForThrow(e);
|
|
370
370
|
}
|
|
371
371
|
for (let i = 0; i < keys.length; i++) {
|
|
372
372
|
const key = keys[i]; // @prim
|
|
@@ -374,7 +374,7 @@ function createBridge(otherInit, registerProxy) {
|
|
|
374
374
|
try {
|
|
375
375
|
desc = otherSafeGetOwnPropertyDescriptor(object, key);
|
|
376
376
|
} catch (e) { // @other(unsafe)
|
|
377
|
-
throw
|
|
377
|
+
throw thisFromOtherForThrow(e);
|
|
378
378
|
}
|
|
379
379
|
if (!desc) continue;
|
|
380
380
|
if (!desc.configurable) {
|
|
@@ -440,7 +440,7 @@ function createBridge(otherInit, registerProxy) {
|
|
|
440
440
|
try {
|
|
441
441
|
ret = otherReflectGet(object, key);
|
|
442
442
|
} catch (e) { // @other(unsafe)
|
|
443
|
-
throw
|
|
443
|
+
throw thisFromOtherForThrow(e);
|
|
444
444
|
}
|
|
445
445
|
return this.fromOtherWithContext(ret);
|
|
446
446
|
}
|
|
@@ -455,7 +455,7 @@ function createBridge(otherInit, registerProxy) {
|
|
|
455
455
|
value = otherFromThis(value);
|
|
456
456
|
return otherReflectSet(object, key, value) === true;
|
|
457
457
|
} catch (e) { // @other(unsafe)
|
|
458
|
-
throw
|
|
458
|
+
throw thisFromOtherForThrow(e);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
461
|
|
|
@@ -478,7 +478,7 @@ function createBridge(otherInit, registerProxy) {
|
|
|
478
478
|
args = otherFromThisArguments(args);
|
|
479
479
|
ret = otherReflectApply(object, context, args);
|
|
480
480
|
} catch (e) { // @other(unsafe)
|
|
481
|
-
throw
|
|
481
|
+
throw thisFromOtherForThrow(e);
|
|
482
482
|
}
|
|
483
483
|
return thisFromOther(ret);
|
|
484
484
|
}
|
|
@@ -491,7 +491,7 @@ function createBridge(otherInit, registerProxy) {
|
|
|
491
491
|
args = otherFromThisArguments(args);
|
|
492
492
|
ret = otherReflectConstruct(object, args);
|
|
493
493
|
} catch (e) { // @other(unsafe)
|
|
494
|
-
throw
|
|
494
|
+
throw thisFromOtherForThrow(e);
|
|
495
495
|
}
|
|
496
496
|
return thisFromOtherWithFactory(this.getFactory(), ret, thisFromOther(object));
|
|
497
497
|
}
|
|
@@ -510,7 +510,7 @@ function createBridge(otherInit, registerProxy) {
|
|
|
510
510
|
try {
|
|
511
511
|
desc = otherSafeGetOwnPropertyDescriptor(object, prop);
|
|
512
512
|
} catch (e) { // @other(unsafe)
|
|
513
|
-
throw
|
|
513
|
+
throw thisFromOtherForThrow(e);
|
|
514
514
|
}
|
|
515
515
|
|
|
516
516
|
desc = this.getOwnPropertyDescriptorDesc(target, prop, desc);
|
|
@@ -575,7 +575,7 @@ function createBridge(otherInit, registerProxy) {
|
|
|
575
575
|
otherDesc = otherSafeGetOwnPropertyDescriptor(object, prop);
|
|
576
576
|
}
|
|
577
577
|
} catch (e) { // @other(unsafe)
|
|
578
|
-
throw
|
|
578
|
+
throw thisFromOtherForThrow(e);
|
|
579
579
|
}
|
|
580
580
|
|
|
581
581
|
if (!otherDesc.configurable) {
|
|
@@ -608,7 +608,7 @@ function createBridge(otherInit, registerProxy) {
|
|
|
608
608
|
try {
|
|
609
609
|
return otherReflectDeleteProperty(object, prop) === true;
|
|
610
610
|
} catch (e) { // @other(unsafe)
|
|
611
|
-
throw
|
|
611
|
+
throw thisFromOtherForThrow(e);
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
614
|
|
|
@@ -618,7 +618,7 @@ function createBridge(otherInit, registerProxy) {
|
|
|
618
618
|
try {
|
|
619
619
|
return otherReflectHas(object, key) === true;
|
|
620
620
|
} catch (e) { // @other(unsafe)
|
|
621
|
-
throw
|
|
621
|
+
throw thisFromOtherForThrow(e);
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
624
|
|
|
@@ -628,7 +628,7 @@ function createBridge(otherInit, registerProxy) {
|
|
|
628
628
|
try {
|
|
629
629
|
if (otherReflectIsExtensible(object)) return true;
|
|
630
630
|
} catch (e) { // @other(unsafe)
|
|
631
|
-
throw
|
|
631
|
+
throw thisFromOtherForThrow(e);
|
|
632
632
|
}
|
|
633
633
|
if (thisReflectIsExtensible(target)) {
|
|
634
634
|
this.doPreventExtensions(target, object, this);
|
|
@@ -643,7 +643,7 @@ function createBridge(otherInit, registerProxy) {
|
|
|
643
643
|
try {
|
|
644
644
|
res = otherReflectOwnKeys(object);
|
|
645
645
|
} catch (e) { // @other(unsafe)
|
|
646
|
-
throw
|
|
646
|
+
throw thisFromOtherForThrow(e);
|
|
647
647
|
}
|
|
648
648
|
return thisFromOther(res);
|
|
649
649
|
}
|
|
@@ -654,7 +654,7 @@ function createBridge(otherInit, registerProxy) {
|
|
|
654
654
|
try {
|
|
655
655
|
if (!otherReflectPreventExtensions(object)) return false;
|
|
656
656
|
} catch (e) { // @other(unsafe)
|
|
657
|
-
throw
|
|
657
|
+
throw thisFromOtherForThrow(e);
|
|
658
658
|
}
|
|
659
659
|
if (thisReflectIsExtensible(target)) {
|
|
660
660
|
this.doPreventExtensions(target, object, this);
|
|
@@ -669,7 +669,7 @@ function createBridge(otherInit, registerProxy) {
|
|
|
669
669
|
try {
|
|
670
670
|
res = otherReflectEnumerate(object);
|
|
671
671
|
} catch (e) { // @other(unsafe)
|
|
672
|
-
throw
|
|
672
|
+
throw thisFromOtherForThrow(e);
|
|
673
673
|
}
|
|
674
674
|
return this.fromOtherWithContext(res);
|
|
675
675
|
}
|
|
@@ -817,26 +817,25 @@ function createBridge(otherInit, registerProxy) {
|
|
|
817
817
|
const type = typeof other;
|
|
818
818
|
switch (type) {
|
|
819
819
|
case 'object':
|
|
820
|
-
case 'function':
|
|
821
820
|
if (other === null) {
|
|
822
821
|
return null;
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
while (proto) {
|
|
829
|
-
const mapping = thisReflectApply(thisMapGet, protoMappings, [proto]);
|
|
830
|
-
if (mapping) {
|
|
831
|
-
const mapped = thisReflectApply(thisWeakMapGet, mappingOtherToThis, [other]);
|
|
832
|
-
if (mapped) return mapped;
|
|
833
|
-
return mapping(defaultFactory, other);
|
|
834
|
-
}
|
|
835
|
-
proto = thisReflectGetPrototypeOf(proto);
|
|
836
|
-
}
|
|
822
|
+
}
|
|
823
|
+
// fallthrough
|
|
824
|
+
case 'function':
|
|
825
|
+
let proto = thisReflectGetPrototypeOf(other);
|
|
826
|
+
if (!proto) {
|
|
837
827
|
return other;
|
|
838
828
|
}
|
|
839
|
-
|
|
829
|
+
while (proto) {
|
|
830
|
+
const mapping = thisReflectApply(thisMapGet, protoMappings, [proto]);
|
|
831
|
+
if (mapping) {
|
|
832
|
+
const mapped = thisReflectApply(thisWeakMapGet, mappingOtherToThis, [other]);
|
|
833
|
+
if (mapped) return mapped;
|
|
834
|
+
return mapping(defaultFactory, other);
|
|
835
|
+
}
|
|
836
|
+
proto = thisReflectGetPrototypeOf(proto);
|
|
837
|
+
}
|
|
838
|
+
return other;
|
|
840
839
|
case 'undefined':
|
|
841
840
|
case 'string':
|
|
842
841
|
case 'number':
|
|
@@ -850,42 +849,40 @@ function createBridge(otherInit, registerProxy) {
|
|
|
850
849
|
}
|
|
851
850
|
}
|
|
852
851
|
|
|
853
|
-
function
|
|
852
|
+
function thisFromOtherForThrow(other) {
|
|
854
853
|
for (let loop = 0; loop < 10; loop++) {
|
|
855
854
|
const type = typeof other;
|
|
856
855
|
switch (type) {
|
|
857
856
|
case 'object':
|
|
858
|
-
case 'function':
|
|
859
857
|
if (other === null) {
|
|
860
858
|
return null;
|
|
861
|
-
}
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
859
|
+
}
|
|
860
|
+
// fallthrough
|
|
861
|
+
case 'function':
|
|
862
|
+
const mapped = thisReflectApply(thisWeakMapGet, mappingOtherToThis, [other]);
|
|
863
|
+
if (mapped) return mapped;
|
|
864
|
+
let proto;
|
|
865
|
+
try {
|
|
866
|
+
proto = otherReflectGetPrototypeOf(other);
|
|
867
|
+
} catch (e) { // @other(unsafe)
|
|
868
|
+
other = e;
|
|
869
|
+
break;
|
|
870
|
+
}
|
|
871
|
+
if (!proto) {
|
|
872
|
+
return thisProxyOther(defaultFactory, other, null);
|
|
873
|
+
}
|
|
874
|
+
for (;;) {
|
|
875
|
+
const mapping = thisReflectApply(thisMapGet, protoMappings, [proto]);
|
|
876
|
+
if (mapping) return mapping(defaultFactory, other);
|
|
867
877
|
try {
|
|
868
|
-
proto = otherReflectGetPrototypeOf(
|
|
878
|
+
proto = otherReflectGetPrototypeOf(proto);
|
|
869
879
|
} catch (e) { // @other(unsafe)
|
|
870
880
|
other = e;
|
|
871
881
|
break;
|
|
872
882
|
}
|
|
873
|
-
if (!proto)
|
|
874
|
-
return thisProxyOther(factory, other, null);
|
|
875
|
-
}
|
|
876
|
-
while (proto) {
|
|
877
|
-
const mapping = thisReflectApply(thisMapGet, protoMappings, [proto]);
|
|
878
|
-
if (mapping) return mapping(factory, other);
|
|
879
|
-
try {
|
|
880
|
-
proto = otherReflectGetPrototypeOf(proto);
|
|
881
|
-
} catch (e) { // @other(unsafe)
|
|
882
|
-
other = e;
|
|
883
|
-
break;
|
|
884
|
-
}
|
|
885
|
-
}
|
|
886
|
-
return thisProxyOther(factory, other, thisObjectPrototype);
|
|
883
|
+
if (!proto) return thisProxyOther(defaultFactory, other, thisObjectPrototype);
|
|
887
884
|
}
|
|
888
|
-
|
|
885
|
+
break;
|
|
889
886
|
case 'undefined':
|
|
890
887
|
case 'string':
|
|
891
888
|
case 'number':
|
|
@@ -897,12 +894,55 @@ function createBridge(otherInit, registerProxy) {
|
|
|
897
894
|
default: // new, unknown types can be dangerous
|
|
898
895
|
throw new VMError(`Unknown type '${type}'`);
|
|
899
896
|
}
|
|
900
|
-
factory = defaultFactory;
|
|
901
|
-
proto = undefined;
|
|
902
897
|
}
|
|
903
898
|
throw new VMError('Exception recursion depth');
|
|
904
899
|
}
|
|
905
900
|
|
|
901
|
+
function thisFromOtherWithFactory(factory, other, proto) {
|
|
902
|
+
const type = typeof other;
|
|
903
|
+
switch (type) {
|
|
904
|
+
case 'object':
|
|
905
|
+
if (other === null) {
|
|
906
|
+
return null;
|
|
907
|
+
}
|
|
908
|
+
// fallthrough
|
|
909
|
+
case 'function':
|
|
910
|
+
const mapped = thisReflectApply(thisWeakMapGet, mappingOtherToThis, [other]);
|
|
911
|
+
if (mapped) return mapped;
|
|
912
|
+
if (proto) {
|
|
913
|
+
return thisProxyOther(factory, other, proto);
|
|
914
|
+
}
|
|
915
|
+
try {
|
|
916
|
+
proto = otherReflectGetPrototypeOf(other);
|
|
917
|
+
} catch (e) { // @other(unsafe)
|
|
918
|
+
throw thisFromOtherForThrow(e);
|
|
919
|
+
}
|
|
920
|
+
if (!proto) {
|
|
921
|
+
return thisProxyOther(factory, other, null);
|
|
922
|
+
}
|
|
923
|
+
do {
|
|
924
|
+
const mapping = thisReflectApply(thisMapGet, protoMappings, [proto]);
|
|
925
|
+
if (mapping) return mapping(factory, other);
|
|
926
|
+
try {
|
|
927
|
+
proto = otherReflectGetPrototypeOf(proto);
|
|
928
|
+
} catch (e) { // @other(unsafe)
|
|
929
|
+
throw thisFromOtherForThrow(e);
|
|
930
|
+
}
|
|
931
|
+
} while (proto);
|
|
932
|
+
return thisProxyOther(factory, other, thisObjectPrototype);
|
|
933
|
+
case 'undefined':
|
|
934
|
+
case 'string':
|
|
935
|
+
case 'number':
|
|
936
|
+
case 'boolean':
|
|
937
|
+
case 'symbol':
|
|
938
|
+
case 'bigint':
|
|
939
|
+
return other;
|
|
940
|
+
|
|
941
|
+
default: // new, unknown types can be dangerous
|
|
942
|
+
throw new VMError(`Unknown type '${type}'`);
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
|
|
906
946
|
function thisFromOtherArguments(args) {
|
|
907
947
|
// Note: args@other(safe-array) returns@this(safe-array) throws@this(unsafe)
|
|
908
948
|
const arr = [];
|