@aws-cdk/aws-autoscaling-common
Advanced tools
Comparing version 1.152.0 to 1.153.0
{ | ||
"version": "2", | ||
"toolVersion": "1.55.1", | ||
"toolVersion": "1.57.0", | ||
"snippets": { | ||
@@ -5,0 +5,0 @@ "cd116e02853a12fc7e5550839fce5b2f564016e9353afe4cb9615d7db2826bd6": { |
@@ -1,2 +0,2 @@ | ||
function _aws_cdk_aws_autoscaling_common_IRandomGenerator(p) { | ||
function _aws_cdk_aws_autoscaling_common_ScalingInterval(p) { | ||
} | ||
@@ -7,3 +7,3 @@ function _aws_cdk_aws_autoscaling_common_CompleteScalingInterval(p) { | ||
} | ||
function _aws_cdk_aws_autoscaling_common_ScalingInterval(p) { | ||
function _aws_cdk_aws_autoscaling_common_IRandomGenerator(p) { | ||
} | ||
@@ -14,5 +14,9 @@ function _aws_cdk_aws_autoscaling_common_ArbitraryIntervals(p) { | ||
visitedObjects.add(p); | ||
if (!visitedObjects.has(p.intervals)) | ||
_aws_cdk_aws_autoscaling_common_ScalingInterval(p.intervals); | ||
visitedObjects.delete(p); | ||
try { | ||
if (!visitedObjects.has(p.intervals)) | ||
_aws_cdk_aws_autoscaling_common_ScalingInterval(p.intervals); | ||
} | ||
finally { | ||
visitedObjects.delete(p); | ||
} | ||
} | ||
@@ -22,3 +26,3 @@ function print(name, deprecationMessage) { | ||
const deprecationMode = ["warn", "fail", "quiet"].includes(deprecated) ? deprecated : "warn"; | ||
const message = `${name} is deprecated.\n ${deprecationMessage}\n This API will be removed in the next major release.`; | ||
const message = `${name} is deprecated.\n ${deprecationMessage.trim()}\n This API will be removed in the next major release.`; | ||
switch (deprecationMode) { | ||
@@ -32,6 +36,26 @@ case "fail": | ||
} | ||
function getPropertyDescriptor(obj, prop) { | ||
const descriptor = Object.getOwnPropertyDescriptor(obj, prop); | ||
if (descriptor) { | ||
return descriptor; | ||
} | ||
const proto = Object.getPrototypeOf(obj); | ||
const prototypeDescriptor = proto && getPropertyDescriptor(proto, prop); | ||
if (prototypeDescriptor) { | ||
return prototypeDescriptor; | ||
} | ||
return {}; | ||
} | ||
const visitedObjects = new Set(); | ||
class DeprecationError extends Error { | ||
constructor(...args) { | ||
super(...args); | ||
Object.defineProperty(this, "name", { | ||
configurable: false, | ||
enumerable: true, | ||
value: "DeprecationError", | ||
writable: false, | ||
}); | ||
} | ||
} | ||
module.exports = { print, _aws_cdk_aws_autoscaling_common_IRandomGenerator, _aws_cdk_aws_autoscaling_common_CompleteScalingInterval, _aws_cdk_aws_autoscaling_common_Alarms, _aws_cdk_aws_autoscaling_common_ScalingInterval, _aws_cdk_aws_autoscaling_common_ArbitraryIntervals }; | ||
module.exports.DeprecationError = DeprecationError; | ||
module.exports = { print, getPropertyDescriptor, DeprecationError, _aws_cdk_aws_autoscaling_common_ScalingInterval, _aws_cdk_aws_autoscaling_common_CompleteScalingInterval, _aws_cdk_aws_autoscaling_common_Alarms, _aws_cdk_aws_autoscaling_common_IRandomGenerator, _aws_cdk_aws_autoscaling_common_ArbitraryIntervals }; |
{ | ||
"name": "@aws-cdk/aws-autoscaling-common", | ||
"version": "1.152.0", | ||
"version": "1.153.0", | ||
"description": "Common implementation package for @aws-cdk/aws-autoscaling and @aws-cdk/aws-applicationautoscaling", | ||
@@ -50,3 +50,3 @@ "main": "lib/index.js", | ||
"test": "cdk-test", | ||
"integ": "cdk-integ", | ||
"integ": "integ-runner", | ||
"pkglint": "pkglint -f", | ||
@@ -75,12 +75,12 @@ "package": "cdk-package", | ||
"devDependencies": { | ||
"@aws-cdk/cdk-build-tools": "1.152.0", | ||
"@aws-cdk/cdk-integ-tools": "1.152.0", | ||
"@aws-cdk/pkglint": "1.152.0", | ||
"@aws-cdk/cdk-build-tools": "1.153.0", | ||
"@aws-cdk/integ-runner": "1.153.0", | ||
"@aws-cdk/pkglint": "1.153.0", | ||
"@types/jest": "^27.4.1", | ||
"fast-check": "^2.23.2", | ||
"fast-check": "^2.24.0", | ||
"jest": "^27.5.1" | ||
}, | ||
"dependencies": { | ||
"@aws-cdk/aws-iam": "1.152.0", | ||
"@aws-cdk/core": "1.152.0", | ||
"@aws-cdk/aws-iam": "1.153.0", | ||
"@aws-cdk/core": "1.153.0", | ||
"constructs": "^3.3.69" | ||
@@ -90,4 +90,4 @@ }, | ||
"peerDependencies": { | ||
"@aws-cdk/aws-iam": "1.152.0", | ||
"@aws-cdk/core": "1.152.0", | ||
"@aws-cdk/aws-iam": "1.153.0", | ||
"@aws-cdk/core": "1.153.0", | ||
"constructs": "^3.3.69" | ||
@@ -94,0 +94,0 @@ }, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
96394
700
+ Added@aws-cdk/aws-iam@1.153.0(transitive)
+ Added@aws-cdk/cloud-assembly-schema@1.153.0(transitive)
+ Added@aws-cdk/core@1.153.0(transitive)
+ Added@aws-cdk/cx-api@1.153.0(transitive)
+ Added@aws-cdk/region-info@1.153.0(transitive)
- Removed@aws-cdk/aws-iam@1.152.0(transitive)
- Removed@aws-cdk/cloud-assembly-schema@1.152.0(transitive)
- Removed@aws-cdk/core@1.152.0(transitive)
- Removed@aws-cdk/cx-api@1.152.0(transitive)
- Removed@aws-cdk/region-info@1.152.0(transitive)
Updated@aws-cdk/aws-iam@1.153.0
Updated@aws-cdk/core@1.153.0