@aws-solutions-constructs/core 2.0.0-rc.1 → 2.2.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 (235) hide show
  1. package/.jsii +444 -1163
  2. package/index.d.ts +5 -1
  3. package/index.js +6 -2
  4. package/lib/alb-defaults.d.ts +14 -0
  5. package/lib/alb-defaults.js +24 -0
  6. package/lib/alb-helper.d.ts +24 -0
  7. package/lib/alb-helper.js +188 -0
  8. package/lib/apigateway-defaults.d.ts +1 -1
  9. package/lib/apigateway-defaults.js +2 -2
  10. package/lib/apigateway-helper.d.ts +5 -5
  11. package/lib/apigateway-helper.js +24 -16
  12. package/lib/cloudfront-distribution-defaults.d.ts +2 -2
  13. package/lib/cloudfront-distribution-defaults.js +11 -4
  14. package/lib/cloudfront-distribution-helper.d.ts +3 -3
  15. package/lib/cloudfront-distribution-helper.js +7 -7
  16. package/lib/cloudwatch-log-group-defaults.d.ts +1 -1
  17. package/lib/cloudwatch-log-group-defaults.js +2 -2
  18. package/lib/cloudwatch-log-group-helper.d.ts +1 -1
  19. package/lib/cloudwatch-log-group-helper.js +2 -2
  20. package/lib/cognito-defaults.d.ts +1 -1
  21. package/lib/cognito-defaults.js +2 -2
  22. package/lib/cognito-helper.d.ts +1 -1
  23. package/lib/cognito-helper.js +2 -2
  24. package/lib/dynamodb-table-defaults.d.ts +1 -1
  25. package/lib/dynamodb-table-defaults.js +2 -2
  26. package/lib/dynamodb-table-helper.d.ts +1 -1
  27. package/lib/dynamodb-table-helper.js +2 -2
  28. package/lib/elasticsearch-defaults.d.ts +1 -1
  29. package/lib/elasticsearch-defaults.js +2 -2
  30. package/lib/elasticsearch-helper.d.ts +1 -1
  31. package/lib/elasticsearch-helper.js +2 -2
  32. package/lib/eventbridge-helper.d.ts +1 -1
  33. package/lib/eventbridge-helper.js +2 -2
  34. package/lib/events-rule-defaults.d.ts +1 -1
  35. package/lib/events-rule-defaults.js +2 -2
  36. package/lib/fargate-defaults.d.ts +26 -0
  37. package/lib/fargate-defaults.js +57 -0
  38. package/lib/fargate-helper.d.ts +17 -0
  39. package/lib/fargate-helper.js +158 -0
  40. package/lib/glue-database-defaults.d.ts +1 -1
  41. package/lib/glue-database-defaults.js +2 -2
  42. package/lib/glue-database-helper.d.ts +2 -2
  43. package/lib/glue-database-helper.js +2 -2
  44. package/lib/glue-job-defaults.d.ts +1 -1
  45. package/lib/glue-job-defaults.js +2 -2
  46. package/lib/glue-job-helper.d.ts +4 -4
  47. package/lib/glue-job-helper.js +3 -3
  48. package/lib/glue-table-defaults.d.ts +1 -1
  49. package/lib/glue-table-defaults.js +2 -2
  50. package/lib/glue-table-helper.d.ts +2 -2
  51. package/lib/glue-table-helper.js +2 -2
  52. package/lib/input-validation.d.ts +9 -1
  53. package/lib/input-validation.js +22 -3
  54. package/lib/iot-topic-rule-defaults.d.ts +1 -1
  55. package/lib/iot-topic-rule-defaults.js +2 -2
  56. package/lib/kinesis-analytics-defaults.d.ts +1 -1
  57. package/lib/kinesis-analytics-defaults.js +2 -2
  58. package/lib/kinesis-analytics-helper.d.ts +1 -1
  59. package/lib/kinesis-analytics-helper.js +2 -2
  60. package/lib/kinesis-firehose-s3-defaults.d.ts +1 -1
  61. package/lib/kinesis-firehose-s3-defaults.js +2 -2
  62. package/lib/kinesis-streams-defaults.d.ts +1 -1
  63. package/lib/kinesis-streams-defaults.js +2 -2
  64. package/lib/kinesis-streams-helper.d.ts +1 -1
  65. package/lib/kinesis-streams-helper.js +2 -2
  66. package/lib/kms-defaults.d.ts +1 -1
  67. package/lib/kms-defaults.js +2 -2
  68. package/lib/kms-helper.d.ts +1 -1
  69. package/lib/kms-helper.js +2 -2
  70. package/lib/lambda-defaults.d.ts +1 -1
  71. package/lib/lambda-defaults.js +2 -2
  72. package/lib/lambda-event-source-mapping-defaults.d.ts +2 -2
  73. package/lib/lambda-event-source-mapping-defaults.js +2 -2
  74. package/lib/lambda-helper.d.ts +1 -1
  75. package/lib/lambda-helper.js +4 -4
  76. package/lib/mediastore-defaults.d.ts +1 -1
  77. package/lib/mediastore-defaults.js +2 -2
  78. package/lib/mediastore-helper.d.ts +1 -1
  79. package/lib/mediastore-helper.js +2 -2
  80. package/lib/override-warning-service.d.ts +1 -1
  81. package/lib/override-warning-service.js +2 -2
  82. package/lib/s3-bucket-defaults.d.ts +2 -1
  83. package/lib/s3-bucket-defaults.js +14 -3
  84. package/lib/s3-bucket-helper.d.ts +12 -3
  85. package/lib/s3-bucket-helper.js +39 -59
  86. package/lib/sagemaker-defaults.d.ts +1 -1
  87. package/lib/sagemaker-defaults.js +2 -2
  88. package/lib/sagemaker-helper.d.ts +1 -1
  89. package/lib/sagemaker-helper.js +2 -2
  90. package/lib/secretsmanager-defaults.d.ts +1 -1
  91. package/lib/secretsmanager-defaults.js +2 -2
  92. package/lib/secretsmanager-helper.d.ts +1 -1
  93. package/lib/secretsmanager-helper.js +2 -2
  94. package/lib/security-group-helper.d.ts +2 -2
  95. package/lib/security-group-helper.js +2 -2
  96. package/lib/sns-defaults.d.ts +1 -1
  97. package/lib/sns-defaults.js +2 -2
  98. package/lib/sns-helper.d.ts +1 -1
  99. package/lib/sns-helper.js +2 -2
  100. package/lib/sqs-defaults.d.ts +1 -1
  101. package/lib/sqs-defaults.js +2 -2
  102. package/lib/sqs-helper.d.ts +1 -1
  103. package/lib/sqs-helper.js +2 -2
  104. package/lib/ssm-string-parameter-helper.d.ts +1 -1
  105. package/lib/ssm-string-parameter-helper.js +2 -2
  106. package/lib/step-function-defaults.d.ts +1 -1
  107. package/lib/step-function-defaults.js +2 -2
  108. package/lib/step-function-helper.d.ts +1 -1
  109. package/lib/step-function-helper.js +2 -2
  110. package/lib/utils.d.ts +13 -1
  111. package/lib/utils.js +25 -3
  112. package/lib/vpc-defaults.d.ts +5 -1
  113. package/lib/vpc-defaults.js +19 -3
  114. package/lib/vpc-helper.d.ts +4 -2
  115. package/lib/vpc-helper.js +14 -2
  116. package/lib/waf-defaults.d.ts +1 -1
  117. package/lib/waf-defaults.js +2 -2
  118. package/lib/waf-helper.d.ts +2 -2
  119. package/lib/waf-helper.js +2 -2
  120. package/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  121. package/node_modules/emoji-regex/README.md +73 -0
  122. package/node_modules/emoji-regex/es2015/index.js +6 -0
  123. package/node_modules/emoji-regex/es2015/text.js +6 -0
  124. package/node_modules/emoji-regex/index.d.ts +23 -0
  125. package/node_modules/emoji-regex/index.js +6 -0
  126. package/node_modules/emoji-regex/package.json +50 -0
  127. package/node_modules/emoji-regex/text.js +6 -0
  128. package/node_modules/signal-exit/index.js +30 -8
  129. package/node_modules/signal-exit/package.json +7 -5
  130. package/node_modules/wide-align/LICENSE +0 -0
  131. package/node_modules/wide-align/README.md +0 -0
  132. package/node_modules/wide-align/align.js +0 -0
  133. package/node_modules/wide-align/node_modules/ansi-regex/index.d.ts +37 -0
  134. package/node_modules/wide-align/node_modules/ansi-regex/index.js +4 -4
  135. package/node_modules/wide-align/node_modules/ansi-regex/package.json +53 -51
  136. package/node_modules/wide-align/node_modules/ansi-regex/readme.md +35 -3
  137. package/node_modules/wide-align/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
  138. package/node_modules/wide-align/node_modules/is-fullwidth-code-point/index.js +25 -21
  139. package/node_modules/wide-align/node_modules/is-fullwidth-code-point/license +4 -16
  140. package/node_modules/wide-align/node_modules/is-fullwidth-code-point/package.json +40 -43
  141. package/node_modules/wide-align/node_modules/is-fullwidth-code-point/readme.md +6 -6
  142. package/node_modules/wide-align/node_modules/string-width/index.d.ts +29 -0
  143. package/node_modules/wide-align/node_modules/string-width/index.js +16 -5
  144. package/node_modules/wide-align/node_modules/string-width/package.json +11 -10
  145. package/node_modules/wide-align/node_modules/string-width/readme.md +15 -7
  146. package/node_modules/wide-align/node_modules/strip-ansi/index.d.ts +17 -0
  147. package/node_modules/wide-align/node_modules/strip-ansi/index.js +1 -1
  148. package/node_modules/wide-align/node_modules/strip-ansi/package.json +52 -50
  149. package/node_modules/wide-align/node_modules/strip-ansi/readme.md +12 -5
  150. package/node_modules/wide-align/package.json +5 -5
  151. package/package.json +8 -10
  152. package/test/alb-helper.test.d.ts +13 -0
  153. package/test/alb-helper.test.js +407 -0
  154. package/test/apigateway-helper.test.d.ts +1 -1
  155. package/test/apigateway-helper.test.js +16 -9
  156. package/test/cloudfront-distribution-api-gateway-helper.test.d.ts +1 -1
  157. package/test/cloudfront-distribution-api-gateway-helper.test.js +5 -5
  158. package/test/cloudfront-distribution-mediastore-helper.test.d.ts +1 -1
  159. package/test/cloudfront-distribution-mediastore-helper.test.js +2 -2
  160. package/test/cloudfront-distribution-s3-helper.test.d.ts +1 -1
  161. package/test/cloudfront-distribution-s3-helper.test.js +45 -15
  162. package/test/cloudwatch-log-group-helper.test.d.ts +1 -1
  163. package/test/cloudwatch-log-group-helper.test.js +2 -2
  164. package/test/congnito-helper.test.d.ts +1 -1
  165. package/test/congnito-helper.test.js +2 -2
  166. package/test/dynamo-table.test.d.ts +1 -1
  167. package/test/dynamo-table.test.js +2 -2
  168. package/test/elasticsearch-helper.test.d.ts +1 -1
  169. package/test/elasticsearch-helper.test.js +2 -2
  170. package/test/eventbridge-helper.test.d.ts +1 -1
  171. package/test/eventbridge-helper.test.js +9 -5
  172. package/test/events-rule.test.d.ts +1 -1
  173. package/test/events-rule.test.js +2 -2
  174. package/test/fargate-helper.test.d.ts +13 -0
  175. package/test/fargate-helper.test.js +316 -0
  176. package/test/glue-job-helper.test.d.ts +1 -1
  177. package/test/glue-job-helper.test.js +12 -8
  178. package/test/glue-table-helper.test.d.ts +1 -1
  179. package/test/glue-table-helper.test.js +2 -2
  180. package/test/input-validation.test.d.ts +1 -1
  181. package/test/input-validation.test.js +55 -2
  182. package/test/iot-rule.test.d.ts +1 -1
  183. package/test/iot-rule.test.js +2 -2
  184. package/test/kinesis-analytics.test.d.ts +1 -1
  185. package/test/kinesis-analytics.test.js +2 -2
  186. package/test/kinesis-firehose-s3-defaults.test.d.ts +1 -1
  187. package/test/kinesis-firehose-s3-defaults.test.js +2 -2
  188. package/test/kinesis-streams-defaults.test.d.ts +1 -1
  189. package/test/kinesis-streams-defaults.test.js +2 -2
  190. package/test/kinesis-streams-helper.test.d.ts +1 -1
  191. package/test/kinesis-streams-helper.test.js +2 -2
  192. package/test/kms-helper.test.d.ts +1 -1
  193. package/test/kms-helper.test.js +2 -2
  194. package/test/lambda-event-source.test.d.ts +1 -1
  195. package/test/lambda-event-source.test.js +2 -2
  196. package/test/lambda-helper.test.d.ts +1 -1
  197. package/test/lambda-helper.test.js +15 -15
  198. package/test/mediastore-helper.test.d.ts +1 -1
  199. package/test/mediastore-helper.test.js +2 -2
  200. package/test/override-warning-service.test.d.ts +1 -1
  201. package/test/override-warning-service.test.js +2 -2
  202. package/test/s3-bucket-helper.test.d.ts +1 -1
  203. package/test/s3-bucket-helper.test.js +31 -13
  204. package/test/s3-bucket.test.d.ts +1 -1
  205. package/test/s3-bucket.test.js +204 -2
  206. package/test/sagemaker-helper.test.d.ts +1 -1
  207. package/test/sagemaker-helper.test.js +2 -2
  208. package/test/secretsmanager-helper.test.d.ts +1 -1
  209. package/test/secretsmanager-helper.test.js +2 -2
  210. package/test/security-group-helper.test.d.ts +1 -1
  211. package/test/security-group-helper.test.js +2 -2
  212. package/test/sns-helper.test.d.ts +1 -1
  213. package/test/sns-helper.test.js +2 -2
  214. package/test/sqs-helper.test.d.ts +1 -1
  215. package/test/sqs-helper.test.js +2 -2
  216. package/test/ssm-string-parameter-helper.test.d.ts +1 -1
  217. package/test/ssm-string-parameter-helper.test.js +2 -2
  218. package/test/step-function-helper.test.d.ts +1 -1
  219. package/test/step-function-helper.test.js +2 -2
  220. package/test/test-helper.d.ts +7 -2
  221. package/test/test-helper.js +25 -4
  222. package/test/utils.test.d.ts +1 -1
  223. package/test/utils.test.js +64 -2
  224. package/test/vpc-helper.test.d.ts +1 -1
  225. package/test/vpc-helper.test.js +9 -16
  226. package/test/waf-helper.test.d.ts +1 -1
  227. package/test/waf-helper.test.js +2 -2
  228. package/node_modules/@types/deep-diff/LICENSE +0 -21
  229. package/node_modules/@types/deep-diff/README.md +0 -16
  230. package/node_modules/@types/deep-diff/index.d.ts +0 -60
  231. package/node_modules/@types/deep-diff/package.json +0 -25
  232. package/node_modules/@types/npmlog/LICENSE +0 -21
  233. package/node_modules/@types/npmlog/README.md +0 -16
  234. package/node_modules/@types/npmlog/index.d.ts +0 -78
  235. package/node_modules/@types/npmlog/package.json +0 -35
@@ -1,45 +1,42 @@
1
1
  {
2
- "name": "is-fullwidth-code-point",
3
- "version": "2.0.0",
4
- "description": "Check if the character represented by a given Unicode code point is fullwidth",
5
- "license": "MIT",
6
- "repository": "sindresorhus/is-fullwidth-code-point",
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
- "fullwidth",
23
- "full-width",
24
- "full",
25
- "width",
26
- "unicode",
27
- "character",
28
- "char",
29
- "string",
30
- "str",
31
- "codepoint",
32
- "code",
33
- "point",
34
- "is",
35
- "detect",
36
- "check"
37
- ],
38
- "devDependencies": {
39
- "ava": "*",
40
- "xo": "*"
41
- },
42
- "xo": {
43
- "esnext": true
44
- }
2
+ "name": "is-fullwidth-code-point",
3
+ "version": "3.0.0",
4
+ "description": "Check if the character represented by a given Unicode code point is fullwidth",
5
+ "license": "MIT",
6
+ "repository": "sindresorhus/is-fullwidth-code-point",
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-check"
17
+ },
18
+ "files": [
19
+ "index.js",
20
+ "index.d.ts"
21
+ ],
22
+ "keywords": [
23
+ "fullwidth",
24
+ "full-width",
25
+ "full",
26
+ "width",
27
+ "unicode",
28
+ "character",
29
+ "string",
30
+ "codepoint",
31
+ "code",
32
+ "point",
33
+ "is",
34
+ "detect",
35
+ "check"
36
+ ],
37
+ "devDependencies": {
38
+ "ava": "^1.3.1",
39
+ "tsd-check": "^0.5.0",
40
+ "xo": "^0.24.0"
41
+ }
45
42
  }
@@ -6,7 +6,7 @@
6
6
  ## Install
7
7
 
8
8
  ```
9
- $ npm install --save is-fullwidth-code-point
9
+ $ npm install is-fullwidth-code-point
10
10
  ```
11
11
 
12
12
 
@@ -15,23 +15,23 @@ $ npm install --save is-fullwidth-code-point
15
15
  ```js
16
16
  const isFullwidthCodePoint = require('is-fullwidth-code-point');
17
17
 
18
- isFullwidthCodePoint('谢'.codePointAt());
18
+ isFullwidthCodePoint('谢'.codePointAt(0));
19
19
  //=> true
20
20
 
21
- isFullwidthCodePoint('a'.codePointAt());
21
+ isFullwidthCodePoint('a'.codePointAt(0));
22
22
  //=> false
23
23
  ```
24
24
 
25
25
 
26
26
  ## API
27
27
 
28
- ### isFullwidthCodePoint(input)
28
+ ### isFullwidthCodePoint(codePoint)
29
29
 
30
- #### input
30
+ #### codePoint
31
31
 
32
32
  Type: `number`
33
33
 
34
- [Code point](https://en.wikipedia.org/wiki/Code_point) of a character.
34
+ The [code point](https://en.wikipedia.org/wiki/Code_point) of a character.
35
35
 
36
36
 
37
37
  ## License
@@ -0,0 +1,29 @@
1
+ declare const stringWidth: {
2
+ /**
3
+ Get the visual width of a string - the number of columns required to display it.
4
+
5
+ Some Unicode characters are [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms) and use double the normal width. [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) are stripped and doesn't affect the width.
6
+
7
+ @example
8
+ ```
9
+ import stringWidth = require('string-width');
10
+
11
+ stringWidth('a');
12
+ //=> 1
13
+
14
+ stringWidth('古');
15
+ //=> 2
16
+
17
+ stringWidth('\u001B[1m古\u001B[22m');
18
+ //=> 2
19
+ ```
20
+ */
21
+ (string: string): number;
22
+
23
+ // TODO: remove this in the next major version, refactor the whole definition to:
24
+ // declare function stringWidth(string: string): number;
25
+ // export = stringWidth;
26
+ default: typeof stringWidth;
27
+ }
28
+
29
+ export = stringWidth;
@@ -1,18 +1,25 @@
1
1
  'use strict';
2
2
  const stripAnsi = require('strip-ansi');
3
3
  const isFullwidthCodePoint = require('is-fullwidth-code-point');
4
+ const emojiRegex = require('emoji-regex');
4
5
 
5
- module.exports = str => {
6
- if (typeof str !== 'string' || str.length === 0) {
6
+ const stringWidth = string => {
7
+ if (typeof string !== 'string' || string.length === 0) {
7
8
  return 0;
8
9
  }
9
10
 
10
- str = stripAnsi(str);
11
+ string = stripAnsi(string);
12
+
13
+ if (string.length === 0) {
14
+ return 0;
15
+ }
16
+
17
+ string = string.replace(emojiRegex(), ' ');
11
18
 
12
19
  let width = 0;
13
20
 
14
- for (let i = 0; i < str.length; i++) {
15
- const code = str.codePointAt(i);
21
+ for (let i = 0; i < string.length; i++) {
22
+ const code = string.codePointAt(i);
16
23
 
17
24
  // Ignore control characters
18
25
  if (code <= 0x1F || (code >= 0x7F && code <= 0x9F)) {
@@ -34,3 +41,7 @@ module.exports = str => {
34
41
 
35
42
  return width;
36
43
  };
44
+
45
+ module.exports = stringWidth;
46
+ // TODO: remove this in the next major version
47
+ module.exports.default = stringWidth;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "string-width",
3
- "version": "2.1.1",
3
+ "version": "4.2.3",
4
4
  "description": "Get the visual width of a string - the number of columns required to display it",
5
5
  "license": "MIT",
6
6
  "repository": "sindresorhus/string-width",
@@ -10,19 +10,18 @@
10
10
  "url": "sindresorhus.com"
11
11
  },
12
12
  "engines": {
13
- "node": ">=4"
13
+ "node": ">=8"
14
14
  },
15
15
  "scripts": {
16
- "test": "xo && ava"
16
+ "test": "xo && ava && tsd"
17
17
  },
18
18
  "files": [
19
- "index.js"
19
+ "index.js",
20
+ "index.d.ts"
20
21
  ],
21
22
  "keywords": [
22
23
  "string",
23
- "str",
24
24
  "character",
25
- "char",
26
25
  "unicode",
27
26
  "width",
28
27
  "visual",
@@ -45,11 +44,13 @@
45
44
  "fixed-width"
46
45
  ],
47
46
  "dependencies": {
48
- "is-fullwidth-code-point": "^2.0.0",
49
- "strip-ansi": "^4.0.0"
47
+ "emoji-regex": "^8.0.0",
48
+ "is-fullwidth-code-point": "^3.0.0",
49
+ "strip-ansi": "^6.0.1"
50
50
  },
51
51
  "devDependencies": {
52
- "ava": "*",
53
- "xo": "*"
52
+ "ava": "^1.4.1",
53
+ "tsd": "^0.7.1",
54
+ "xo": "^0.24.0"
54
55
  }
55
56
  }
@@ -1,4 +1,4 @@
1
- # string-width [![Build Status](https://travis-ci.org/sindresorhus/string-width.svg?branch=master)](https://travis-ci.org/sindresorhus/string-width)
1
+ # string-width
2
2
 
3
3
  > Get the visual width of a string - the number of columns required to display it
4
4
 
@@ -19,14 +19,14 @@ $ npm install string-width
19
19
  ```js
20
20
  const stringWidth = require('string-width');
21
21
 
22
+ stringWidth('a');
23
+ //=> 1
24
+
22
25
  stringWidth('古');
23
26
  //=> 2
24
27
 
25
- stringWidth('\u001b[1m古\u001b[22m');
28
+ stringWidth('\u001B[1m古\u001B[22m');
26
29
  //=> 2
27
-
28
- stringWidth('a');
29
- //=> 1
30
30
  ```
31
31
 
32
32
 
@@ -37,6 +37,14 @@ stringWidth('a');
37
37
  - [widest-line](https://github.com/sindresorhus/widest-line) - Get the visual width of the widest line in a string
38
38
 
39
39
 
40
- ## License
40
+ ---
41
41
 
42
- MIT © [Sindre Sorhus](https://sindresorhus.com)
42
+ <div align="center">
43
+ <b>
44
+ <a href="https://tidelift.com/subscription/pkg/npm-string-width?utm_source=npm-string-width&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
45
+ </b>
46
+ <br>
47
+ <sub>
48
+ Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
49
+ </sub>
50
+ </div>
@@ -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": "2.0.0-rc.1",
3
+ "version": "2.2.0",
4
4
  "description": "Core CDK Construct for patterns library",
5
5
  "main": "index.js",
6
6
  "types": "index.ts",
@@ -52,17 +52,17 @@
52
52
  }
53
53
  },
54
54
  "dependencies": {
55
- "@types/deep-diff": "^1.0.0",
56
- "@types/npmlog": "^4.1.2",
57
55
  "deep-diff": "^1.0.2",
58
56
  "deepmerge": "^4.0.0",
59
57
  "npmlog": "^4.1.2"
60
58
  },
61
59
  "devDependencies": {
62
- "@aws-cdk/assert": "2.0.0-rc.23",
63
- "@types/jest": "^26.0.22",
60
+ "@types/deep-diff": "^1.0.0",
61
+ "@types/npmlog": "^4.1.2",
62
+ "@aws-cdk/assert": "2.4.0",
63
+ "@types/jest": "^27.4.0",
64
64
  "@types/node": "^10.3.0",
65
- "aws-cdk-lib": "2.0.0-rc.23",
65
+ "aws-cdk-lib": "2.4.0",
66
66
  "constructs": "^10.0.0"
67
67
  },
68
68
  "jest": {
@@ -82,12 +82,10 @@
82
82
  "bundledDependencies": [
83
83
  "deepmerge",
84
84
  "npmlog",
85
- "@types/npmlog",
86
- "deep-diff",
87
- "@types/deep-diff"
85
+ "deep-diff"
88
86
  ],
89
87
  "peerDependencies": {
90
- "aws-cdk-lib": "^2.0.0-rc.23",
88
+ "aws-cdk-lib": "^2.4.0",
91
89
  "constructs": "^10.0.0"
92
90
  }
93
91
  }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Copyright 2022 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';