@aws-cdk/alexa-ask
Advanced tools
Comparing version 1.197.0 to 1.198.0
@@ -10,3 +10,3 @@ "use strict"; | ||
// See: docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-resource-specification.html | ||
// @cfn2ts:meta@ {"generated":"2023-03-14T15:30:29.032Z","fingerprint":"2dwrtRGOhnf4dD8R89CmQD6rmDF0lC3GJ/BYKEZOP1k="} | ||
// @cfn2ts:meta@ {"generated":"2023-03-22T18:42:11.660Z","fingerprint":"3rpB9ZA5BphDy86cNAAKWhvgH6Pi+Kpf4jo3w3PHy8k="} | ||
/* eslint-disable max-len */ // This is generated code - line lengths are difficult to control | ||
@@ -147,3 +147,3 @@ const cdk = require("@aws-cdk/core"); | ||
_a = JSII_RTTI_SYMBOL_1; | ||
CfnSkill[_a] = { fqn: "@aws-cdk/alexa-ask.CfnSkill", version: "1.197.0" }; | ||
CfnSkill[_a] = { fqn: "@aws-cdk/alexa-ask.CfnSkill", version: "1.198.0" }; | ||
/** | ||
@@ -323,2 +323,2 @@ * The CloudFormation resource type name for this resource class. | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNrLmdlbmVyYXRlZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImFzay5nZW5lcmF0ZWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEsK0VBQStFO0FBQy9FLCtEQUErRDtBQUMvRCw4RkFBOEY7QUFDOUYsc0hBQXNIO0FBRXRILDRCQUE0QixDQUFDLGlFQUFpRTtBQUU5RixxQ0FBcUM7QUFDckMsZ0VBQWdFO0FBa0NoRTs7Ozs7O0dBTUc7QUFDSCxTQUFTLHNCQUFzQixDQUFDLFVBQWU7SUFDM0MsSUFBSSxDQUFDLEdBQUcsQ0FBQyxVQUFVLENBQUMsVUFBVSxDQUFDLEVBQUU7UUFBRSxPQUFPLEdBQUcsQ0FBQyxrQkFBa0IsQ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lvbihwcm9wZXJ0aWVzLk92ZXJyaWRlcykgOiB1bmRlZmluZWQpO1xuICAgIHJldC5hZGRQcm9wZXJ0eVJlc3VsdCgnczNCdWNrZXQnLCAnUzNCdWNrZXQnLCBjZm5fcGFyc2UuRnJvbUNsb3VkRm9ybWF0aW9uLmdldFN0cmluZyhwcm9wZXJ0aWVzLlMzQnVja2V0KSk7XG4gICAgcmV0LmFkZFByb3BlcnR5UmVzdWx0KCdzM0J1Y2tldFJvbGUnLCAnUzNCdWNrZXRSb2xlJywgcHJvcGVydGllcy5TM0J1Y2tldFJvbGUgIT0gbnVsbCA/IGNmbl9wYXJzZS5Gcm9tQ2xvdWRGb3JtYXRpb24uZ2V0U3RyaW5nKHByb3BlcnRpZXMuUzNCdWNrZXRSb2xlKSA6IHVuZGVmaW5lZCk7XG4gICAgcmV0LmFkZFByb3BlcnR5UmVzdWx0KCdzM0tleScsICdTM0tleScsIGNmbl9wYXJzZS5Gcm9tQ2xvdWRGb3JtYXRpb24uZ2V0U3RyaW5nKHByb3BlcnRpZXMuUzNLZXkpKTtcbiAgICByZXQuYWRkUHJvcGVydHlSZXN1bHQoJ3MzT2JqZWN0VmVyc2lvbicsICdTM09iamVjdFZlcnNpb24nLCBwcm9wZXJ0aWVzLlMzT2JqZWN0VmVyc2lvbiAhPSBudWxsID8gY2ZuX3BhcnNlLkZyb21DbG91ZEZvcm1hdGlvbi5nZXRTdHJpbmcocHJvcGVydGllcy5TM09iamVjdFZlcnNpb24pIDogdW5kZWZpbmVkKTtcbiAgICByZXQuYWRkVW5yZWNvZ25pemVkUHJvcGVydGllc0FzRXh0cmEocHJvcGVydGllcyk7XG4gICAgcmV0dXJuIHJldDtcbn1cbiJdfQ== |
{ | ||
"name": "@aws-cdk/alexa-ask", | ||
"version": "1.197.0", | ||
"version": "1.198.0", | ||
"description": "The CDK Construct Library for Alexa::ASK", | ||
@@ -83,14 +83,14 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@aws-cdk/assertions": "1.197.0", | ||
"@aws-cdk/cdk-build-tools": "1.197.0", | ||
"@aws-cdk/cfn2ts": "1.197.0", | ||
"@aws-cdk/pkglint": "1.197.0", | ||
"@aws-cdk/assertions": "1.198.0", | ||
"@aws-cdk/cdk-build-tools": "1.198.0", | ||
"@aws-cdk/cfn2ts": "1.198.0", | ||
"@aws-cdk/pkglint": "1.198.0", | ||
"@types/jest": "^27.5.2" | ||
}, | ||
"dependencies": { | ||
"@aws-cdk/core": "1.197.0", | ||
"@aws-cdk/core": "1.198.0", | ||
"constructs": "^3.3.69" | ||
}, | ||
"peerDependencies": { | ||
"@aws-cdk/core": "1.197.0", | ||
"@aws-cdk/core": "1.198.0", | ||
"constructs": "^3.3.69" | ||
@@ -97,0 +97,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
+ Added@aws-cdk/cloud-assembly-schema@1.198.0(transitive)
+ Added@aws-cdk/core@1.198.0(transitive)
+ Added@aws-cdk/cx-api@1.198.0(transitive)
+ Added@aws-cdk/region-info@1.198.0(transitive)
- Removed@aws-cdk/cloud-assembly-schema@1.197.0(transitive)
- Removed@aws-cdk/core@1.197.0(transitive)
- Removed@aws-cdk/cx-api@1.197.0(transitive)
- Removed@aws-cdk/region-info@1.197.0(transitive)
Updated@aws-cdk/core@1.198.0