@aws-solutions-constructs/core 1.123.0 → 1.127.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.
Files changed (65) hide show
  1. package/.jsii +286 -111
  2. package/index.d.ts +2 -0
  3. package/index.js +3 -1
  4. package/lib/alb-defaults.d.ts +14 -0
  5. package/lib/alb-defaults.js +24 -0
  6. package/lib/alb-helper.d.ts +21 -0
  7. package/lib/alb-helper.js +106 -0
  8. package/lib/apigateway-helper.d.ts +4 -4
  9. package/lib/apigateway-helper.js +11 -5
  10. package/lib/cloudfront-distribution-defaults.d.ts +1 -1
  11. package/lib/cloudfront-distribution-defaults.js +10 -3
  12. package/lib/cloudfront-distribution-helper.d.ts +3 -3
  13. package/lib/cloudfront-distribution-helper.js +14 -10
  14. package/lib/glue-job-helper.d.ts +2 -2
  15. package/lib/glue-job-helper.js +2 -2
  16. package/lib/input-validation.d.ts +8 -0
  17. package/lib/input-validation.js +21 -2
  18. package/lib/s3-bucket-defaults.d.ts +1 -0
  19. package/lib/s3-bucket-defaults.js +11 -2
  20. package/lib/s3-bucket-helper.d.ts +18 -3
  21. package/lib/s3-bucket-helper.js +41 -40
  22. package/lib/vpc-defaults.js +2 -2
  23. package/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  24. package/node_modules/emoji-regex/README.md +73 -0
  25. package/node_modules/emoji-regex/es2015/index.js +6 -0
  26. package/node_modules/emoji-regex/es2015/text.js +6 -0
  27. package/node_modules/emoji-regex/index.d.ts +23 -0
  28. package/node_modules/emoji-regex/index.js +6 -0
  29. package/node_modules/emoji-regex/package.json +50 -0
  30. package/node_modules/emoji-regex/text.js +6 -0
  31. package/node_modules/signal-exit/index.js +31 -9
  32. package/node_modules/signal-exit/package.json +7 -5
  33. package/node_modules/wide-align/LICENSE +0 -0
  34. package/node_modules/wide-align/README.md +0 -0
  35. package/node_modules/wide-align/align.js +0 -0
  36. package/node_modules/wide-align/node_modules/ansi-regex/index.d.ts +37 -0
  37. package/node_modules/wide-align/node_modules/ansi-regex/index.js +4 -4
  38. package/node_modules/wide-align/node_modules/ansi-regex/package.json +53 -51
  39. package/node_modules/wide-align/node_modules/ansi-regex/readme.md +35 -3
  40. package/node_modules/wide-align/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
  41. package/node_modules/wide-align/node_modules/is-fullwidth-code-point/index.js +25 -21
  42. package/node_modules/wide-align/node_modules/is-fullwidth-code-point/license +4 -16
  43. package/node_modules/wide-align/node_modules/is-fullwidth-code-point/package.json +40 -43
  44. package/node_modules/wide-align/node_modules/is-fullwidth-code-point/readme.md +6 -6
  45. package/node_modules/wide-align/node_modules/string-width/index.d.ts +29 -0
  46. package/node_modules/wide-align/node_modules/string-width/index.js +16 -5
  47. package/node_modules/wide-align/node_modules/string-width/package.json +11 -10
  48. package/node_modules/wide-align/node_modules/string-width/readme.md +15 -7
  49. package/node_modules/wide-align/node_modules/strip-ansi/index.d.ts +17 -0
  50. package/node_modules/wide-align/node_modules/strip-ansi/index.js +1 -1
  51. package/node_modules/wide-align/node_modules/strip-ansi/package.json +52 -50
  52. package/node_modules/wide-align/node_modules/strip-ansi/readme.md +12 -5
  53. package/node_modules/wide-align/package.json +5 -5
  54. package/package.json +68 -66
  55. package/test/alb-helper.test.d.ts +13 -0
  56. package/test/alb-helper.test.js +321 -0
  57. package/test/apigateway-helper.test.js +8 -1
  58. package/test/cloudfront-distribution-s3-helper.test.js +21 -78
  59. package/test/glue-job-helper.test.js +7 -3
  60. package/test/input-validation.test.js +54 -1
  61. package/test/s3-bucket-helper.test.js +64 -1
  62. package/test/s3-bucket.test.js +10 -1
  63. package/test/vpc-helper.test.js +2 -2
  64. package/test/waf-helper.test.d.ts +13 -0
  65. package/test/waf-helper.test.js +252 -0
@@ -0,0 +1,17 @@
1
+ /**
2
+ Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a string.
3
+
4
+ @example
5
+ ```
6
+ import stripAnsi = require('strip-ansi');
7
+
8
+ stripAnsi('\u001B[4mUnicorn\u001B[0m');
9
+ //=> 'Unicorn'
10
+
11
+ stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007');
12
+ //=> 'Click'
13
+ ```
14
+ */
15
+ declare function stripAnsi(string: string): string;
16
+
17
+ export = stripAnsi;
@@ -1,4 +1,4 @@
1
1
  'use strict';
2
2
  const ansiRegex = require('ansi-regex');
3
3
 
4
- module.exports = input => typeof input === 'string' ? input.replace(ansiRegex(), '') : input;
4
+ module.exports = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string;
@@ -1,52 +1,54 @@
1
1
  {
2
- "name": "strip-ansi",
3
- "version": "4.0.0",
4
- "description": "Strip ANSI escape codes",
5
- "license": "MIT",
6
- "repository": "chalk/strip-ansi",
7
- "author": {
8
- "name": "Sindre Sorhus",
9
- "email": "sindresorhus@gmail.com",
10
- "url": "sindresorhus.com"
11
- },
12
- "engines": {
13
- "node": ">=4"
14
- },
15
- "scripts": {
16
- "test": "xo && ava"
17
- },
18
- "files": [
19
- "index.js"
20
- ],
21
- "keywords": [
22
- "strip",
23
- "trim",
24
- "remove",
25
- "ansi",
26
- "styles",
27
- "color",
28
- "colour",
29
- "colors",
30
- "terminal",
31
- "console",
32
- "string",
33
- "tty",
34
- "escape",
35
- "formatting",
36
- "rgb",
37
- "256",
38
- "shell",
39
- "xterm",
40
- "log",
41
- "logging",
42
- "command-line",
43
- "text"
44
- ],
45
- "dependencies": {
46
- "ansi-regex": "^3.0.0"
47
- },
48
- "devDependencies": {
49
- "ava": "*",
50
- "xo": "*"
51
- }
2
+ "name": "strip-ansi",
3
+ "version": "6.0.1",
4
+ "description": "Strip ANSI escape codes from a string",
5
+ "license": "MIT",
6
+ "repository": "chalk/strip-ansi",
7
+ "author": {
8
+ "name": "Sindre Sorhus",
9
+ "email": "sindresorhus@gmail.com",
10
+ "url": "sindresorhus.com"
11
+ },
12
+ "engines": {
13
+ "node": ">=8"
14
+ },
15
+ "scripts": {
16
+ "test": "xo && ava && tsd"
17
+ },
18
+ "files": [
19
+ "index.js",
20
+ "index.d.ts"
21
+ ],
22
+ "keywords": [
23
+ "strip",
24
+ "trim",
25
+ "remove",
26
+ "ansi",
27
+ "styles",
28
+ "color",
29
+ "colour",
30
+ "colors",
31
+ "terminal",
32
+ "console",
33
+ "string",
34
+ "tty",
35
+ "escape",
36
+ "formatting",
37
+ "rgb",
38
+ "256",
39
+ "shell",
40
+ "xterm",
41
+ "log",
42
+ "logging",
43
+ "command-line",
44
+ "text"
45
+ ],
46
+ "dependencies": {
47
+ "ansi-regex": "^5.0.1"
48
+ },
49
+ "devDependencies": {
50
+ "ava": "^2.4.0",
51
+ "tsd": "^0.10.0",
52
+ "xo": "^0.25.3"
53
+ }
52
54
  }
@@ -1,6 +1,6 @@
1
1
  # strip-ansi [![Build Status](https://travis-ci.org/chalk/strip-ansi.svg?branch=master)](https://travis-ci.org/chalk/strip-ansi)
2
2
 
3
- > Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code)
3
+ > Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a string
4
4
 
5
5
 
6
6
  ## Install
@@ -17,12 +17,23 @@ const stripAnsi = require('strip-ansi');
17
17
 
18
18
  stripAnsi('\u001B[4mUnicorn\u001B[0m');
19
19
  //=> 'Unicorn'
20
+
21
+ stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007');
22
+ //=> 'Click'
20
23
  ```
21
24
 
22
25
 
26
+ ## strip-ansi for enterprise
27
+
28
+ Available as part of the Tidelift Subscription.
29
+
30
+ The maintainers of strip-ansi and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-strip-ansi?utm_source=npm-strip-ansi&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
31
+
32
+
23
33
  ## Related
24
34
 
25
35
  - [strip-ansi-cli](https://github.com/chalk/strip-ansi-cli) - CLI for this module
36
+ - [strip-ansi-stream](https://github.com/chalk/strip-ansi-stream) - Streaming version of this module
26
37
  - [has-ansi](https://github.com/chalk/has-ansi) - Check if a string has ANSI escape codes
27
38
  - [ansi-regex](https://github.com/chalk/ansi-regex) - Regular expression for matching ANSI escape codes
28
39
  - [chalk](https://github.com/chalk/chalk) - Terminal string styling done right
@@ -33,7 +44,3 @@ stripAnsi('\u001B[4mUnicorn\u001B[0m');
33
44
  - [Sindre Sorhus](https://github.com/sindresorhus)
34
45
  - [Josh Junon](https://github.com/qix-)
35
46
 
36
-
37
- ## License
38
-
39
- MIT
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "wide-align",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "description": "A wide-character aware text alignment function for use on the console or with fixed width fonts.",
5
5
  "main": "align.js",
6
6
  "scripts": {
7
- "test": "tap --coverage test/*.js",
8
- "version": "perl -pi -e 's/^( \"version\": $ENV{npm_config_node_version}\").*?\",/$1abc\",/' package-lock.json ; git add package-lock.json"
7
+ "test": "tap --coverage test/*.js"
9
8
  },
10
9
  "keywords": [
11
10
  "wide",
@@ -21,11 +20,12 @@
21
20
  "type": "git",
22
21
  "url": "https://github.com/iarna/wide-align"
23
22
  },
23
+ "//": "But not version 5 of string-width, as that's ESM only",
24
24
  "dependencies": {
25
- "string-width": "^1.0.2 || 2"
25
+ "string-width": "^1.0.2 || 2 || 3 || 4"
26
26
  },
27
27
  "devDependencies": {
28
- "tap": "10 || 11 || 12"
28
+ "tap": "*"
29
29
  },
30
30
  "files": [
31
31
  "align.js"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-solutions-constructs/core",
3
- "version": "1.123.0",
3
+ "version": "1.127.0",
4
4
  "description": "Core CDK Construct for patterns library",
5
5
  "main": "index.js",
6
6
  "types": "index.ts",
@@ -52,38 +52,40 @@
52
52
  }
53
53
  },
54
54
  "dependencies": {
55
- "@aws-cdk/aws-cloudfront": "1.123.0",
56
- "@aws-cdk/aws-cloudfront-origins": "1.123.0",
57
- "@aws-cdk/aws-dynamodb": "1.123.0",
58
- "@aws-cdk/aws-glue": "1.123.0",
59
- "@aws-cdk/aws-iot": "1.123.0",
60
- "@aws-cdk/aws-kinesis": "1.123.0",
61
- "@aws-cdk/aws-kinesisanalytics": "1.123.0",
62
- "@aws-cdk/aws-kinesisfirehose": "1.123.0",
63
- "@aws-cdk/aws-lambda": "1.123.0",
64
- "@aws-cdk/aws-lambda-event-sources": "1.123.0",
65
- "@aws-cdk/aws-logs": "1.123.0",
66
- "@aws-cdk/aws-s3": "1.123.0",
67
- "@aws-cdk/aws-s3-notifications": "1.123.0",
68
- "@aws-cdk/aws-sns": "1.123.0",
69
- "@aws-cdk/aws-sqs": "1.123.0",
70
- "@aws-cdk/core": "1.123.0",
71
- "@aws-cdk/aws-iam": "1.123.0",
72
- "@aws-cdk/aws-apigateway": "1.123.0",
73
- "@aws-cdk/aws-kms": "1.123.0",
74
- "@aws-cdk/aws-events": "1.123.0",
75
- "@aws-cdk/aws-cognito": "1.123.0",
76
- "@aws-cdk/aws-elasticsearch": "1.123.0",
77
- "@aws-cdk/aws-cloudwatch": "1.123.0",
78
- "@aws-cdk/aws-stepfunctions": "1.123.0",
79
- "@aws-cdk/aws-certificatemanager": "1.123.0",
80
- "@aws-cdk/aws-sagemaker": "1.123.0",
81
- "@aws-cdk/aws-ec2": "1.123.0",
82
- "@aws-cdk/aws-mediastore": "1.123.0",
83
- "@aws-cdk/aws-s3-assets": "1.123.0",
84
- "@aws-cdk/aws-secretsmanager": "1.123.0",
85
- "@aws-cdk/aws-ssm": "1.123.0",
86
- "@aws-cdk/aws-wafv2": "1.123.0",
55
+ "@aws-cdk/aws-cloudfront": "1.127.0",
56
+ "@aws-cdk/aws-cloudfront-origins": "1.127.0",
57
+ "@aws-cdk/aws-dynamodb": "1.127.0",
58
+ "@aws-cdk/aws-elasticloadbalancingv2": "1.127.0",
59
+ "@aws-cdk/aws-elasticloadbalancingv2-targets": "1.127.0",
60
+ "@aws-cdk/aws-glue": "1.127.0",
61
+ "@aws-cdk/aws-iot": "1.127.0",
62
+ "@aws-cdk/aws-kinesis": "1.127.0",
63
+ "@aws-cdk/aws-kinesisanalytics": "1.127.0",
64
+ "@aws-cdk/aws-kinesisfirehose": "1.127.0",
65
+ "@aws-cdk/aws-lambda": "1.127.0",
66
+ "@aws-cdk/aws-lambda-event-sources": "1.127.0",
67
+ "@aws-cdk/aws-logs": "1.127.0",
68
+ "@aws-cdk/aws-s3": "1.127.0",
69
+ "@aws-cdk/aws-s3-notifications": "1.127.0",
70
+ "@aws-cdk/aws-sns": "1.127.0",
71
+ "@aws-cdk/aws-sqs": "1.127.0",
72
+ "@aws-cdk/core": "1.127.0",
73
+ "@aws-cdk/aws-iam": "1.127.0",
74
+ "@aws-cdk/aws-apigateway": "1.127.0",
75
+ "@aws-cdk/aws-kms": "1.127.0",
76
+ "@aws-cdk/aws-events": "1.127.0",
77
+ "@aws-cdk/aws-cognito": "1.127.0",
78
+ "@aws-cdk/aws-elasticsearch": "1.127.0",
79
+ "@aws-cdk/aws-cloudwatch": "1.127.0",
80
+ "@aws-cdk/aws-stepfunctions": "1.127.0",
81
+ "@aws-cdk/aws-certificatemanager": "1.127.0",
82
+ "@aws-cdk/aws-sagemaker": "1.127.0",
83
+ "@aws-cdk/aws-ec2": "1.127.0",
84
+ "@aws-cdk/aws-mediastore": "1.127.0",
85
+ "@aws-cdk/aws-s3-assets": "1.127.0",
86
+ "@aws-cdk/aws-secretsmanager": "1.127.0",
87
+ "@aws-cdk/aws-ssm": "1.127.0",
88
+ "@aws-cdk/aws-wafv2": "1.127.0",
87
89
  "@types/deep-diff": "^1.0.0",
88
90
  "@types/npmlog": "^4.1.2",
89
91
  "deep-diff": "^1.0.2",
@@ -91,7 +93,7 @@
91
93
  "npmlog": "^4.1.2"
92
94
  },
93
95
  "devDependencies": {
94
- "@aws-cdk/assert": "1.123.0",
96
+ "@aws-cdk/assert": "1.127.0",
95
97
  "@types/jest": "^26.0.22",
96
98
  "@types/node": "^10.3.0"
97
99
  },
@@ -117,37 +119,37 @@
117
119
  "@types/deep-diff"
118
120
  ],
119
121
  "peerDependencies": {
120
- "@aws-cdk/aws-cloudfront": "1.123.0",
121
- "@aws-cdk/aws-dynamodb": "1.123.0",
122
- "@aws-cdk/aws-iot": "1.123.0",
123
- "@aws-cdk/aws-kinesis": "1.123.0",
124
- "@aws-cdk/aws-kinesisanalytics": "1.123.0",
125
- "@aws-cdk/aws-kinesisfirehose": "1.123.0",
126
- "@aws-cdk/aws-lambda": "1.123.0",
127
- "@aws-cdk/aws-lambda-event-sources": "1.123.0",
128
- "@aws-cdk/aws-logs": "1.123.0",
129
- "@aws-cdk/aws-s3": "1.123.0",
130
- "@aws-cdk/aws-s3-notifications": "1.123.0",
131
- "@aws-cdk/aws-sns": "1.123.0",
132
- "@aws-cdk/aws-sqs": "1.123.0",
133
- "@aws-cdk/core": "1.123.0",
134
- "@aws-cdk/aws-iam": "1.123.0",
135
- "@aws-cdk/aws-apigateway": "1.123.0",
136
- "@aws-cdk/aws-kms": "1.123.0",
137
- "@aws-cdk/aws-events": "1.123.0",
138
- "@aws-cdk/aws-cognito": "1.123.0",
139
- "@aws-cdk/aws-elasticsearch": "1.123.0",
140
- "@aws-cdk/aws-cloudwatch": "1.123.0",
141
- "@aws-cdk/aws-stepfunctions": "1.123.0",
142
- "@aws-cdk/aws-cloudfront-origins": "1.123.0",
143
- "@aws-cdk/aws-certificatemanager": "1.123.0",
144
- "@aws-cdk/aws-sagemaker": "1.123.0",
145
- "@aws-cdk/aws-ec2": "1.123.0",
146
- "@aws-cdk/aws-mediastore": "1.123.0",
147
- "@aws-cdk/aws-glue": "1.123.0",
148
- "@aws-cdk/aws-s3-assets": "1.123.0",
149
- "@aws-cdk/aws-secretsmanager": "1.123.0",
150
- "@aws-cdk/aws-ssm": "1.123.0",
151
- "@aws-cdk/aws-wafv2": "1.123.0"
122
+ "@aws-cdk/aws-cloudfront": "1.127.0",
123
+ "@aws-cdk/aws-dynamodb": "1.127.0",
124
+ "@aws-cdk/aws-iot": "1.127.0",
125
+ "@aws-cdk/aws-kinesis": "1.127.0",
126
+ "@aws-cdk/aws-kinesisanalytics": "1.127.0",
127
+ "@aws-cdk/aws-kinesisfirehose": "1.127.0",
128
+ "@aws-cdk/aws-lambda": "1.127.0",
129
+ "@aws-cdk/aws-lambda-event-sources": "1.127.0",
130
+ "@aws-cdk/aws-logs": "1.127.0",
131
+ "@aws-cdk/aws-s3": "1.127.0",
132
+ "@aws-cdk/aws-s3-notifications": "1.127.0",
133
+ "@aws-cdk/aws-sns": "1.127.0",
134
+ "@aws-cdk/aws-sqs": "1.127.0",
135
+ "@aws-cdk/core": "1.127.0",
136
+ "@aws-cdk/aws-iam": "1.127.0",
137
+ "@aws-cdk/aws-apigateway": "1.127.0",
138
+ "@aws-cdk/aws-kms": "1.127.0",
139
+ "@aws-cdk/aws-events": "1.127.0",
140
+ "@aws-cdk/aws-cognito": "1.127.0",
141
+ "@aws-cdk/aws-elasticsearch": "1.127.0",
142
+ "@aws-cdk/aws-cloudwatch": "1.127.0",
143
+ "@aws-cdk/aws-stepfunctions": "1.127.0",
144
+ "@aws-cdk/aws-cloudfront-origins": "1.127.0",
145
+ "@aws-cdk/aws-certificatemanager": "1.127.0",
146
+ "@aws-cdk/aws-sagemaker": "1.127.0",
147
+ "@aws-cdk/aws-ec2": "1.127.0",
148
+ "@aws-cdk/aws-mediastore": "1.127.0",
149
+ "@aws-cdk/aws-glue": "1.127.0",
150
+ "@aws-cdk/aws-s3-assets": "1.127.0",
151
+ "@aws-cdk/aws-secretsmanager": "1.127.0",
152
+ "@aws-cdk/aws-ssm": "1.127.0",
153
+ "@aws-cdk/aws-wafv2": "1.127.0"
152
154
  }
153
155
  }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
5
+ * with the License. A copy of the License is located at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
10
+ * OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
11
+ * and limitations under the License.
12
+ */
13
+ import '@aws-cdk/assert/jest';