@aws-cdk/region-info 2.20.0 → 2.22.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/.jsii +4 -3
- package/.jsii.tabl.json +1 -1
- package/.warnings.jsii.js +25 -5
- package/lib/built-ins.generated.d.ts +1 -1
- package/lib/built-ins.generated.js +2 -2
- package/lib/default.js +6 -2
- package/lib/fact.js +12 -4
- package/lib/region-info.js +1 -1
- package/package.json +5 -4
package/.jsii
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"stability": "stable"
|
|
13
13
|
},
|
|
14
14
|
"homepage": "https://github.com/aws/aws-cdk",
|
|
15
|
-
"jsiiVersion": "1.
|
|
15
|
+
"jsiiVersion": "1.57.0 (build f614666)",
|
|
16
16
|
"keywords": [
|
|
17
17
|
"aws",
|
|
18
18
|
"cdk"
|
|
@@ -57,7 +57,8 @@
|
|
|
57
57
|
},
|
|
58
58
|
"python": {
|
|
59
59
|
"classifiers": [
|
|
60
|
-
"Framework :: AWS CDK"
|
|
60
|
+
"Framework :: AWS CDK",
|
|
61
|
+
"Framework :: AWS CDK :: 2"
|
|
61
62
|
],
|
|
62
63
|
"distName": "aws-cdk.region-info",
|
|
63
64
|
"module": "aws_cdk.region_info"
|
|
@@ -1099,6 +1100,6 @@
|
|
|
1099
1100
|
"symbolId": "lib/region-info:RegionInfo"
|
|
1100
1101
|
}
|
|
1101
1102
|
},
|
|
1102
|
-
"version": "2.
|
|
1103
|
+
"version": "2.22.0",
|
|
1103
1104
|
"fingerprint": "**********"
|
|
1104
1105
|
}
|
package/.jsii.tabl.json
CHANGED
package/.warnings.jsii.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
function _aws_cdk_region_info_Default(p) {
|
|
2
2
|
}
|
|
3
|
+
function _aws_cdk_region_info_Fact(p) {
|
|
4
|
+
}
|
|
3
5
|
function _aws_cdk_region_info_IFact(p) {
|
|
4
6
|
}
|
|
5
7
|
function _aws_cdk_region_info_FactName(p) {
|
|
6
8
|
}
|
|
7
|
-
function _aws_cdk_region_info_Fact(p) {
|
|
8
|
-
}
|
|
9
9
|
function _aws_cdk_region_info_RegionInfo(p) {
|
|
10
10
|
}
|
|
11
11
|
function print(name, deprecationMessage) {
|
|
12
12
|
const deprecated = process.env.JSII_DEPRECATED;
|
|
13
13
|
const deprecationMode = ["warn", "fail", "quiet"].includes(deprecated) ? deprecated : "warn";
|
|
14
|
-
const message = `${name} is deprecated.\n ${deprecationMessage}\n This API will be removed in the next major release.`;
|
|
14
|
+
const message = `${name} is deprecated.\n ${deprecationMessage.trim()}\n This API will be removed in the next major release.`;
|
|
15
15
|
switch (deprecationMode) {
|
|
16
16
|
case "fail":
|
|
17
17
|
throw new DeprecationError(message);
|
|
@@ -20,8 +20,28 @@ function print(name, deprecationMessage) {
|
|
|
20
20
|
break;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
+
function getPropertyDescriptor(obj, prop) {
|
|
24
|
+
const descriptor = Object.getOwnPropertyDescriptor(obj, prop);
|
|
25
|
+
if (descriptor) {
|
|
26
|
+
return descriptor;
|
|
27
|
+
}
|
|
28
|
+
const proto = Object.getPrototypeOf(obj);
|
|
29
|
+
const prototypeDescriptor = proto && getPropertyDescriptor(proto, prop);
|
|
30
|
+
if (prototypeDescriptor) {
|
|
31
|
+
return prototypeDescriptor;
|
|
32
|
+
}
|
|
33
|
+
return {};
|
|
34
|
+
}
|
|
23
35
|
const visitedObjects = new Set();
|
|
24
36
|
class DeprecationError extends Error {
|
|
37
|
+
constructor(...args) {
|
|
38
|
+
super(...args);
|
|
39
|
+
Object.defineProperty(this, "name", {
|
|
40
|
+
configurable: false,
|
|
41
|
+
enumerable: true,
|
|
42
|
+
value: "DeprecationError",
|
|
43
|
+
writable: false,
|
|
44
|
+
});
|
|
45
|
+
}
|
|
25
46
|
}
|
|
26
|
-
module.exports = { print, _aws_cdk_region_info_Default, _aws_cdk_region_info_IFact, _aws_cdk_region_info_FactName,
|
|
27
|
-
module.exports.DeprecationError = DeprecationError;
|
|
47
|
+
module.exports = { print, getPropertyDescriptor, DeprecationError, _aws_cdk_region_info_Default, _aws_cdk_region_info_Fact, _aws_cdk_region_info_IFact, _aws_cdk_region_info_FactName, _aws_cdk_region_info_RegionInfo };
|