@gradientedge/cdk-utils 4.4.3 → 4.4.7

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 (205) hide show
  1. package/app/api-destined-function/node_modules/.yarn-integrity +2 -89
  2. package/app/api-destined-function/package.json +1 -5
  3. package/lerna.json +6 -0
  4. package/package.json +9 -9
  5. package/api-docs/AcmManager.html +0 -622
  6. package/api-docs/AcmProps.html +0 -238
  7. package/api-docs/AlarmProps.html +0 -238
  8. package/api-docs/AlarmStatusWidgetProps.html +0 -238
  9. package/api-docs/ApiDestinationEvent.html +0 -297
  10. package/api-docs/ApiDestinationEventType.html +0 -238
  11. package/api-docs/ApiDestinedLambda.html +0 -297
  12. package/api-docs/ApiDestinedLambdaEnvironment.html +0 -238
  13. package/api-docs/ApiDestinedLambdaType.html +0 -238
  14. package/api-docs/ApiDestinedRestApi.html +0 -297
  15. package/api-docs/ApiDestinedRestApiType.html +0 -238
  16. package/api-docs/ApiManager.html +0 -766
  17. package/api-docs/ApiToEventBridgeTarget.html +0 -1877
  18. package/api-docs/ApiToEventBridgeTarget.jpg +0 -0
  19. package/api-docs/ApiToEventBridgeTargetEventProps.html +0 -238
  20. package/api-docs/ApiToEventBridgeTargetLambdaProps.html +0 -238
  21. package/api-docs/ApiToEventBridgeTargetProps.html +0 -238
  22. package/api-docs/ApiToEventBridgeTargetRestApiProps.html +0 -238
  23. package/api-docs/AppConfigManager.html +0 -1203
  24. package/api-docs/AppConfigProps.html +0 -238
  25. package/api-docs/CloudFrontManager.html +0 -2402
  26. package/api-docs/CloudFrontProps.html +0 -238
  27. package/api-docs/CloudTrailManager.html +0 -637
  28. package/api-docs/CloudTrailProps.html +0 -238
  29. package/api-docs/CloudWatchManager.html +0 -2986
  30. package/api-docs/CloudfrontFunctionProps.html +0 -238
  31. package/api-docs/CodeBuildManager.html +0 -736
  32. package/api-docs/CommonConstruct.html +0 -1299
  33. package/api-docs/CommonStack.html +0 -813
  34. package/api-docs/CommonStackProps.html +0 -238
  35. package/api-docs/DashboardProps.html +0 -238
  36. package/api-docs/DistributionProps.html +0 -238
  37. package/api-docs/DynamodbManager.html +0 -530
  38. package/api-docs/EcrManager.html +0 -530
  39. package/api-docs/EcsClusterProps.html +0 -238
  40. package/api-docs/EcsManager.html +0 -880
  41. package/api-docs/EcsTaskProps.html +0 -238
  42. package/api-docs/EksClusterProps.html +0 -238
  43. package/api-docs/EksManager.html +0 -580
  44. package/api-docs/EventBusProps.html +0 -238
  45. package/api-docs/EventManager.html +0 -1454
  46. package/api-docs/EventRuleProps.html +0 -238
  47. package/api-docs/GraphQLApiLambda.html +0 -1671
  48. package/api-docs/GraphQLApiLambda.jpg +0 -0
  49. package/api-docs/GraphQlApiLambdaEnvironment.html +0 -238
  50. package/api-docs/GraphQlApiLambdaProps.html +0 -238
  51. package/api-docs/GraphWidgetProps.html +0 -238
  52. package/api-docs/HealthCheck.html +0 -238
  53. package/api-docs/IamManager.html +0 -3821
  54. package/api-docs/LambdaEdgeProps.html +0 -238
  55. package/api-docs/LambdaEnvironment.html +0 -238
  56. package/api-docs/LambdaManager.html +0 -2378
  57. package/api-docs/LambdaProps.html +0 -238
  58. package/api-docs/LifecycleRule.html +0 -238
  59. package/api-docs/LogManager.html +0 -955
  60. package/api-docs/LogProps.html +0 -238
  61. package/api-docs/LogQueryWidgetProps.html +0 -238
  62. package/api-docs/MetricFilterProps.html +0 -238
  63. package/api-docs/MetricProps.html +0 -238
  64. package/api-docs/NumericWidgetProps.html +0 -238
  65. package/api-docs/Route53Manager.html +0 -1460
  66. package/api-docs/Route53Props.html +0 -238
  67. package/api-docs/RuleProps.html +0 -238
  68. package/api-docs/S3BucketProps.html +0 -238
  69. package/api-docs/S3Manager.html +0 -1546
  70. package/api-docs/SSMParameterReader.html +0 -431
  71. package/api-docs/SSMParameterReaderProps.html +0 -238
  72. package/api-docs/SecretsManager.html +0 -1140
  73. package/api-docs/SiteWithEcsBackend.html +0 -2391
  74. package/api-docs/SiteWithEcsBackendProps.html +0 -238
  75. package/api-docs/SnsManager.html +0 -780
  76. package/api-docs/SsmManager.html +0 -955
  77. package/api-docs/StaticSite.html +0 -1358
  78. package/api-docs/StaticSiteProps.html +0 -238
  79. package/api-docs/SubscriptionProps.html +0 -238
  80. package/api-docs/TableProps.html +0 -238
  81. package/api-docs/TextWidgetProps.html +0 -238
  82. package/api-docs/VpcManager.html +0 -986
  83. package/api-docs/WafIPSetProps.html +0 -238
  84. package/api-docs/WafManager.html +0 -730
  85. package/api-docs/WafWebACLProps.html +0 -238
  86. package/api-docs/common_construct.ts.html +0 -279
  87. package/api-docs/common_stack.ts.html +0 -303
  88. package/api-docs/construct_api-to-eventbridge-target_api-destination-event.ts.html +0 -175
  89. package/api-docs/construct_api-to-eventbridge-target_api-destined-lambda.ts.html +0 -178
  90. package/api-docs/construct_api-to-eventbridge-target_api-destined-rest-api.ts.html +0 -190
  91. package/api-docs/construct_api-to-eventbridge-target_main.ts.html +0 -751
  92. package/api-docs/construct_graphql-api-lambda_main.ts.html +0 -408
  93. package/api-docs/construct_site-with-ecs-backend_main.ts.html +0 -544
  94. package/api-docs/construct_static-site_main.ts.html +0 -374
  95. package/api-docs/global.html +0 -1530
  96. package/api-docs/index.html +0 -208
  97. package/api-docs/logo.png +0 -0
  98. package/api-docs/manager_aws_acm-manager.ts.html +0 -236
  99. package/api-docs/manager_aws_api-manager.ts.html +0 -260
  100. package/api-docs/manager_aws_app-config-manager.ts.html +0 -310
  101. package/api-docs/manager_aws_cloudfront-manager.ts.html +0 -491
  102. package/api-docs/manager_aws_cloudtrail-manager.ts.html +0 -251
  103. package/api-docs/manager_aws_cloudwatch-manager.ts.html +0 -553
  104. package/api-docs/manager_aws_codebuild-manager.ts.html +0 -240
  105. package/api-docs/manager_aws_dynamodb-manager.ts.html +0 -219
  106. package/api-docs/manager_aws_ecr-manager.ts.html +0 -199
  107. package/api-docs/manager_aws_ecs-manager.ts.html +0 -259
  108. package/api-docs/manager_aws_eks-manager.ts.html +0 -260
  109. package/api-docs/manager_aws_event-manager.ts.html +0 -336
  110. package/api-docs/manager_aws_iam-manager.ts.html +0 -573
  111. package/api-docs/manager_aws_lambda-manager.ts.html +0 -400
  112. package/api-docs/manager_aws_log-manager.ts.html +0 -259
  113. package/api-docs/manager_aws_route53-manager.ts.html +0 -333
  114. package/api-docs/manager_aws_s3-manager.ts.html +0 -361
  115. package/api-docs/manager_aws_secrets-manager.ts.html +0 -274
  116. package/api-docs/manager_aws_sns-manager.ts.html +0 -246
  117. package/api-docs/manager_aws_ssm-manager.ts.html +0 -273
  118. package/api-docs/manager_aws_vpc-manager.ts.html +0 -244
  119. package/api-docs/manager_aws_waf-manager.ts.html +0 -232
  120. package/api-docs/scripts/app.min.js +0 -1
  121. package/api-docs/scripts/linenumber.js +0 -26
  122. package/api-docs/scripts/search.js +0 -39
  123. package/api-docs/styles/app.min.css +0 -1
  124. package/api-docs/styles/iframe.css +0 -13
  125. package/api-docs/styles/prettify-jsdoc.css +0 -111
  126. package/api-docs/styles/prettify-tomorrow.css +0 -132
  127. package/api-docs/styles/reset.css +0 -44
  128. package/api-docs/styles.css +0 -113
  129. package/api-docs/tutorial-Architecture.html +0 -151
  130. package/api-docs/tutorial-Build.html +0 -150
  131. package/api-docs/tutorial-CI-CD.html +0 -154
  132. package/api-docs/tutorial-Development.html +0 -227
  133. package/api-docs/types_aws_index.ts.html +0 -665
  134. package/api-docs/utils_aws_index.ts.html +0 -192
  135. package/api-docs/utils_index.ts.html +0 -227
  136. package/app/api-destined-function/node_modules/balanced-match/LICENSE.md +0 -21
  137. package/app/api-destined-function/node_modules/balanced-match/README.md +0 -97
  138. package/app/api-destined-function/node_modules/balanced-match/index.js +0 -62
  139. package/app/api-destined-function/node_modules/balanced-match/package.json +0 -48
  140. package/app/api-destined-function/node_modules/brace-expansion/LICENSE +0 -21
  141. package/app/api-destined-function/node_modules/brace-expansion/README.md +0 -129
  142. package/app/api-destined-function/node_modules/brace-expansion/index.js +0 -201
  143. package/app/api-destined-function/node_modules/brace-expansion/package.json +0 -47
  144. package/app/api-destined-function/node_modules/concat-map/.travis.yml +0 -4
  145. package/app/api-destined-function/node_modules/concat-map/LICENSE +0 -18
  146. package/app/api-destined-function/node_modules/concat-map/README.markdown +0 -62
  147. package/app/api-destined-function/node_modules/concat-map/example/map.js +0 -6
  148. package/app/api-destined-function/node_modules/concat-map/index.js +0 -13
  149. package/app/api-destined-function/node_modules/concat-map/package.json +0 -43
  150. package/app/api-destined-function/node_modules/fs.realpath/LICENSE +0 -43
  151. package/app/api-destined-function/node_modules/fs.realpath/README.md +0 -33
  152. package/app/api-destined-function/node_modules/fs.realpath/index.js +0 -66
  153. package/app/api-destined-function/node_modules/fs.realpath/old.js +0 -303
  154. package/app/api-destined-function/node_modules/fs.realpath/package.json +0 -26
  155. package/app/api-destined-function/node_modules/glob/LICENSE +0 -21
  156. package/app/api-destined-function/node_modules/glob/README.md +0 -378
  157. package/app/api-destined-function/node_modules/glob/common.js +0 -236
  158. package/app/api-destined-function/node_modules/glob/glob.js +0 -787
  159. package/app/api-destined-function/node_modules/glob/package.json +0 -52
  160. package/app/api-destined-function/node_modules/glob/sync.js +0 -483
  161. package/app/api-destined-function/node_modules/inflight/LICENSE +0 -15
  162. package/app/api-destined-function/node_modules/inflight/README.md +0 -37
  163. package/app/api-destined-function/node_modules/inflight/inflight.js +0 -54
  164. package/app/api-destined-function/node_modules/inflight/package.json +0 -29
  165. package/app/api-destined-function/node_modules/inherits/LICENSE +0 -16
  166. package/app/api-destined-function/node_modules/inherits/README.md +0 -42
  167. package/app/api-destined-function/node_modules/inherits/inherits.js +0 -9
  168. package/app/api-destined-function/node_modules/inherits/inherits_browser.js +0 -27
  169. package/app/api-destined-function/node_modules/inherits/package.json +0 -29
  170. package/app/api-destined-function/node_modules/minimatch/LICENSE +0 -15
  171. package/app/api-destined-function/node_modules/minimatch/README.md +0 -209
  172. package/app/api-destined-function/node_modules/minimatch/minimatch.js +0 -923
  173. package/app/api-destined-function/node_modules/minimatch/package.json +0 -30
  174. package/app/api-destined-function/node_modules/mkdirp/LICENSE +0 -21
  175. package/app/api-destined-function/node_modules/mkdirp/bin/cmd.js +0 -68
  176. package/app/api-destined-function/node_modules/mkdirp/index.js +0 -31
  177. package/app/api-destined-function/node_modules/mkdirp/lib/find-made.js +0 -29
  178. package/app/api-destined-function/node_modules/mkdirp/lib/mkdirp-manual.js +0 -64
  179. package/app/api-destined-function/node_modules/mkdirp/lib/mkdirp-native.js +0 -39
  180. package/app/api-destined-function/node_modules/mkdirp/lib/opts-arg.js +0 -23
  181. package/app/api-destined-function/node_modules/mkdirp/lib/path-arg.js +0 -29
  182. package/app/api-destined-function/node_modules/mkdirp/lib/use-native.js +0 -10
  183. package/app/api-destined-function/node_modules/mkdirp/package.json +0 -44
  184. package/app/api-destined-function/node_modules/mkdirp/readme.markdown +0 -266
  185. package/app/api-destined-function/node_modules/once/LICENSE +0 -15
  186. package/app/api-destined-function/node_modules/once/README.md +0 -79
  187. package/app/api-destined-function/node_modules/once/once.js +0 -42
  188. package/app/api-destined-function/node_modules/once/package.json +0 -33
  189. package/app/api-destined-function/node_modules/path-is-absolute/index.js +0 -20
  190. package/app/api-destined-function/node_modules/path-is-absolute/license +0 -21
  191. package/app/api-destined-function/node_modules/path-is-absolute/package.json +0 -43
  192. package/app/api-destined-function/node_modules/path-is-absolute/readme.md +0 -59
  193. package/app/api-destined-function/node_modules/rimraf/LICENSE +0 -15
  194. package/app/api-destined-function/node_modules/rimraf/README.md +0 -101
  195. package/app/api-destined-function/node_modules/rimraf/bin.js +0 -68
  196. package/app/api-destined-function/node_modules/rimraf/package.json +0 -32
  197. package/app/api-destined-function/node_modules/rimraf/rimraf.js +0 -360
  198. package/app/api-destined-function/node_modules/wrappy/LICENSE +0 -15
  199. package/app/api-destined-function/node_modules/wrappy/README.md +0 -36
  200. package/app/api-destined-function/node_modules/wrappy/package.json +0 -29
  201. package/app/api-destined-function/node_modules/wrappy/wrappy.js +0 -33
  202. package/img/ApiToEventBridgeTarget.jpg +0 -0
  203. package/img/GraphQLApiLambda.jpg +0 -0
  204. package/img/logo.png +0 -0
  205. package/theme/styles.css +0 -113
@@ -1,48 +0,0 @@
1
- {
2
- "name": "balanced-match",
3
- "description": "Match balanced character pairs, like \"{\" and \"}\"",
4
- "version": "1.0.2",
5
- "repository": {
6
- "type": "git",
7
- "url": "git://github.com/juliangruber/balanced-match.git"
8
- },
9
- "homepage": "https://github.com/juliangruber/balanced-match",
10
- "main": "index.js",
11
- "scripts": {
12
- "test": "tape test/test.js",
13
- "bench": "matcha test/bench.js"
14
- },
15
- "devDependencies": {
16
- "matcha": "^0.7.0",
17
- "tape": "^4.6.0"
18
- },
19
- "keywords": [
20
- "match",
21
- "regexp",
22
- "test",
23
- "balanced",
24
- "parse"
25
- ],
26
- "author": {
27
- "name": "Julian Gruber",
28
- "email": "mail@juliangruber.com",
29
- "url": "http://juliangruber.com"
30
- },
31
- "license": "MIT",
32
- "testling": {
33
- "files": "test/*.js",
34
- "browsers": [
35
- "ie/8..latest",
36
- "firefox/20..latest",
37
- "firefox/nightly",
38
- "chrome/25..latest",
39
- "chrome/canary",
40
- "opera/12..latest",
41
- "opera/next",
42
- "safari/5.1..latest",
43
- "ipad/6.0..latest",
44
- "iphone/6.0..latest",
45
- "android-browser/4.2..latest"
46
- ]
47
- }
48
- }
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2013 Julian Gruber <julian@juliangruber.com>
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,129 +0,0 @@
1
- # brace-expansion
2
-
3
- [Brace expansion](https://www.gnu.org/software/bash/manual/html_node/Brace-Expansion.html),
4
- as known from sh/bash, in JavaScript.
5
-
6
- [![build status](https://secure.travis-ci.org/juliangruber/brace-expansion.svg)](http://travis-ci.org/juliangruber/brace-expansion)
7
- [![downloads](https://img.shields.io/npm/dm/brace-expansion.svg)](https://www.npmjs.org/package/brace-expansion)
8
- [![Greenkeeper badge](https://badges.greenkeeper.io/juliangruber/brace-expansion.svg)](https://greenkeeper.io/)
9
-
10
- [![testling badge](https://ci.testling.com/juliangruber/brace-expansion.png)](https://ci.testling.com/juliangruber/brace-expansion)
11
-
12
- ## Example
13
-
14
- ```js
15
- var expand = require('brace-expansion');
16
-
17
- expand('file-{a,b,c}.jpg')
18
- // => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg']
19
-
20
- expand('-v{,,}')
21
- // => ['-v', '-v', '-v']
22
-
23
- expand('file{0..2}.jpg')
24
- // => ['file0.jpg', 'file1.jpg', 'file2.jpg']
25
-
26
- expand('file-{a..c}.jpg')
27
- // => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg']
28
-
29
- expand('file{2..0}.jpg')
30
- // => ['file2.jpg', 'file1.jpg', 'file0.jpg']
31
-
32
- expand('file{0..4..2}.jpg')
33
- // => ['file0.jpg', 'file2.jpg', 'file4.jpg']
34
-
35
- expand('file-{a..e..2}.jpg')
36
- // => ['file-a.jpg', 'file-c.jpg', 'file-e.jpg']
37
-
38
- expand('file{00..10..5}.jpg')
39
- // => ['file00.jpg', 'file05.jpg', 'file10.jpg']
40
-
41
- expand('{{A..C},{a..c}}')
42
- // => ['A', 'B', 'C', 'a', 'b', 'c']
43
-
44
- expand('ppp{,config,oe{,conf}}')
45
- // => ['ppp', 'pppconfig', 'pppoe', 'pppoeconf']
46
- ```
47
-
48
- ## API
49
-
50
- ```js
51
- var expand = require('brace-expansion');
52
- ```
53
-
54
- ### var expanded = expand(str)
55
-
56
- Return an array of all possible and valid expansions of `str`. If none are
57
- found, `[str]` is returned.
58
-
59
- Valid expansions are:
60
-
61
- ```js
62
- /^(.*,)+(.+)?$/
63
- // {a,b,...}
64
- ```
65
-
66
- A comma separated list of options, like `{a,b}` or `{a,{b,c}}` or `{,a,}`.
67
-
68
- ```js
69
- /^-?\d+\.\.-?\d+(\.\.-?\d+)?$/
70
- // {x..y[..incr]}
71
- ```
72
-
73
- A numeric sequence from `x` to `y` inclusive, with optional increment.
74
- If `x` or `y` start with a leading `0`, all the numbers will be padded
75
- to have equal length. Negative numbers and backwards iteration work too.
76
-
77
- ```js
78
- /^-?\d+\.\.-?\d+(\.\.-?\d+)?$/
79
- // {x..y[..incr]}
80
- ```
81
-
82
- An alphabetic sequence from `x` to `y` inclusive, with optional increment.
83
- `x` and `y` must be exactly one character, and if given, `incr` must be a
84
- number.
85
-
86
- For compatibility reasons, the string `${` is not eligible for brace expansion.
87
-
88
- ## Installation
89
-
90
- With [npm](https://npmjs.org) do:
91
-
92
- ```bash
93
- npm install brace-expansion
94
- ```
95
-
96
- ## Contributors
97
-
98
- - [Julian Gruber](https://github.com/juliangruber)
99
- - [Isaac Z. Schlueter](https://github.com/isaacs)
100
-
101
- ## Sponsors
102
-
103
- This module is proudly supported by my [Sponsors](https://github.com/juliangruber/sponsors)!
104
-
105
- Do you want to support modules like this to improve their quality, stability and weigh in on new features? Then please consider donating to my [Patreon](https://www.patreon.com/juliangruber). Not sure how much of my modules you're using? Try [feross/thanks](https://github.com/feross/thanks)!
106
-
107
- ## License
108
-
109
- (MIT)
110
-
111
- Copyright (c) 2013 Julian Gruber &lt;julian@juliangruber.com&gt;
112
-
113
- Permission is hereby granted, free of charge, to any person obtaining a copy of
114
- this software and associated documentation files (the "Software"), to deal in
115
- the Software without restriction, including without limitation the rights to
116
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
117
- of the Software, and to permit persons to whom the Software is furnished to do
118
- so, subject to the following conditions:
119
-
120
- The above copyright notice and this permission notice shall be included in all
121
- copies or substantial portions of the Software.
122
-
123
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
124
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
125
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
126
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
127
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
128
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
129
- SOFTWARE.
@@ -1,201 +0,0 @@
1
- var concatMap = require('concat-map');
2
- var balanced = require('balanced-match');
3
-
4
- module.exports = expandTop;
5
-
6
- var escSlash = '\0SLASH'+Math.random()+'\0';
7
- var escOpen = '\0OPEN'+Math.random()+'\0';
8
- var escClose = '\0CLOSE'+Math.random()+'\0';
9
- var escComma = '\0COMMA'+Math.random()+'\0';
10
- var escPeriod = '\0PERIOD'+Math.random()+'\0';
11
-
12
- function numeric(str) {
13
- return parseInt(str, 10) == str
14
- ? parseInt(str, 10)
15
- : str.charCodeAt(0);
16
- }
17
-
18
- function escapeBraces(str) {
19
- return str.split('\\\\').join(escSlash)
20
- .split('\\{').join(escOpen)
21
- .split('\\}').join(escClose)
22
- .split('\\,').join(escComma)
23
- .split('\\.').join(escPeriod);
24
- }
25
-
26
- function unescapeBraces(str) {
27
- return str.split(escSlash).join('\\')
28
- .split(escOpen).join('{')
29
- .split(escClose).join('}')
30
- .split(escComma).join(',')
31
- .split(escPeriod).join('.');
32
- }
33
-
34
-
35
- // Basically just str.split(","), but handling cases
36
- // where we have nested braced sections, which should be
37
- // treated as individual members, like {a,{b,c},d}
38
- function parseCommaParts(str) {
39
- if (!str)
40
- return [''];
41
-
42
- var parts = [];
43
- var m = balanced('{', '}', str);
44
-
45
- if (!m)
46
- return str.split(',');
47
-
48
- var pre = m.pre;
49
- var body = m.body;
50
- var post = m.post;
51
- var p = pre.split(',');
52
-
53
- p[p.length-1] += '{' + body + '}';
54
- var postParts = parseCommaParts(post);
55
- if (post.length) {
56
- p[p.length-1] += postParts.shift();
57
- p.push.apply(p, postParts);
58
- }
59
-
60
- parts.push.apply(parts, p);
61
-
62
- return parts;
63
- }
64
-
65
- function expandTop(str) {
66
- if (!str)
67
- return [];
68
-
69
- // I don't know why Bash 4.3 does this, but it does.
70
- // Anything starting with {} will have the first two bytes preserved
71
- // but *only* at the top level, so {},a}b will not expand to anything,
72
- // but a{},b}c will be expanded to [a}c,abc].
73
- // One could argue that this is a bug in Bash, but since the goal of
74
- // this module is to match Bash's rules, we escape a leading {}
75
- if (str.substr(0, 2) === '{}') {
76
- str = '\\{\\}' + str.substr(2);
77
- }
78
-
79
- return expand(escapeBraces(str), true).map(unescapeBraces);
80
- }
81
-
82
- function identity(e) {
83
- return e;
84
- }
85
-
86
- function embrace(str) {
87
- return '{' + str + '}';
88
- }
89
- function isPadded(el) {
90
- return /^-?0\d/.test(el);
91
- }
92
-
93
- function lte(i, y) {
94
- return i <= y;
95
- }
96
- function gte(i, y) {
97
- return i >= y;
98
- }
99
-
100
- function expand(str, isTop) {
101
- var expansions = [];
102
-
103
- var m = balanced('{', '}', str);
104
- if (!m || /\$$/.test(m.pre)) return [str];
105
-
106
- var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
107
- var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
108
- var isSequence = isNumericSequence || isAlphaSequence;
109
- var isOptions = m.body.indexOf(',') >= 0;
110
- if (!isSequence && !isOptions) {
111
- // {a},b}
112
- if (m.post.match(/,.*\}/)) {
113
- str = m.pre + '{' + m.body + escClose + m.post;
114
- return expand(str);
115
- }
116
- return [str];
117
- }
118
-
119
- var n;
120
- if (isSequence) {
121
- n = m.body.split(/\.\./);
122
- } else {
123
- n = parseCommaParts(m.body);
124
- if (n.length === 1) {
125
- // x{{a,b}}y ==> x{a}y x{b}y
126
- n = expand(n[0], false).map(embrace);
127
- if (n.length === 1) {
128
- var post = m.post.length
129
- ? expand(m.post, false)
130
- : [''];
131
- return post.map(function(p) {
132
- return m.pre + n[0] + p;
133
- });
134
- }
135
- }
136
- }
137
-
138
- // at this point, n is the parts, and we know it's not a comma set
139
- // with a single entry.
140
-
141
- // no need to expand pre, since it is guaranteed to be free of brace-sets
142
- var pre = m.pre;
143
- var post = m.post.length
144
- ? expand(m.post, false)
145
- : [''];
146
-
147
- var N;
148
-
149
- if (isSequence) {
150
- var x = numeric(n[0]);
151
- var y = numeric(n[1]);
152
- var width = Math.max(n[0].length, n[1].length)
153
- var incr = n.length == 3
154
- ? Math.abs(numeric(n[2]))
155
- : 1;
156
- var test = lte;
157
- var reverse = y < x;
158
- if (reverse) {
159
- incr *= -1;
160
- test = gte;
161
- }
162
- var pad = n.some(isPadded);
163
-
164
- N = [];
165
-
166
- for (var i = x; test(i, y); i += incr) {
167
- var c;
168
- if (isAlphaSequence) {
169
- c = String.fromCharCode(i);
170
- if (c === '\\')
171
- c = '';
172
- } else {
173
- c = String(i);
174
- if (pad) {
175
- var need = width - c.length;
176
- if (need > 0) {
177
- var z = new Array(need + 1).join('0');
178
- if (i < 0)
179
- c = '-' + z + c.slice(1);
180
- else
181
- c = z + c;
182
- }
183
- }
184
- }
185
- N.push(c);
186
- }
187
- } else {
188
- N = concatMap(n, function(el) { return expand(el, false) });
189
- }
190
-
191
- for (var j = 0; j < N.length; j++) {
192
- for (var k = 0; k < post.length; k++) {
193
- var expansion = pre + N[j] + post[k];
194
- if (!isTop || isSequence || expansion)
195
- expansions.push(expansion);
196
- }
197
- }
198
-
199
- return expansions;
200
- }
201
-
@@ -1,47 +0,0 @@
1
- {
2
- "name": "brace-expansion",
3
- "description": "Brace expansion as known from sh/bash",
4
- "version": "1.1.11",
5
- "repository": {
6
- "type": "git",
7
- "url": "git://github.com/juliangruber/brace-expansion.git"
8
- },
9
- "homepage": "https://github.com/juliangruber/brace-expansion",
10
- "main": "index.js",
11
- "scripts": {
12
- "test": "tape test/*.js",
13
- "gentest": "bash test/generate.sh",
14
- "bench": "matcha test/perf/bench.js"
15
- },
16
- "dependencies": {
17
- "balanced-match": "^1.0.0",
18
- "concat-map": "0.0.1"
19
- },
20
- "devDependencies": {
21
- "matcha": "^0.7.0",
22
- "tape": "^4.6.0"
23
- },
24
- "keywords": [],
25
- "author": {
26
- "name": "Julian Gruber",
27
- "email": "mail@juliangruber.com",
28
- "url": "http://juliangruber.com"
29
- },
30
- "license": "MIT",
31
- "testling": {
32
- "files": "test/*.js",
33
- "browsers": [
34
- "ie/8..latest",
35
- "firefox/20..latest",
36
- "firefox/nightly",
37
- "chrome/25..latest",
38
- "chrome/canary",
39
- "opera/12..latest",
40
- "opera/next",
41
- "safari/5.1..latest",
42
- "ipad/6.0..latest",
43
- "iphone/6.0..latest",
44
- "android-browser/4.2..latest"
45
- ]
46
- }
47
- }
@@ -1,4 +0,0 @@
1
- language: node_js
2
- node_js:
3
- - 0.4
4
- - 0.6
@@ -1,18 +0,0 @@
1
- This software is released under the MIT license:
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy of
4
- this software and associated documentation files (the "Software"), to deal in
5
- the Software without restriction, including without limitation the rights to
6
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
7
- the Software, and to permit persons to whom the Software is furnished to do so,
8
- subject to the following conditions:
9
-
10
- The above copyright notice and this permission notice shall be included in all
11
- copies or substantial portions of the Software.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,62 +0,0 @@
1
- concat-map
2
- ==========
3
-
4
- Concatenative mapdashery.
5
-
6
- [![browser support](http://ci.testling.com/substack/node-concat-map.png)](http://ci.testling.com/substack/node-concat-map)
7
-
8
- [![build status](https://secure.travis-ci.org/substack/node-concat-map.png)](http://travis-ci.org/substack/node-concat-map)
9
-
10
- example
11
- =======
12
-
13
- ``` js
14
- var concatMap = require('concat-map');
15
- var xs = [ 1, 2, 3, 4, 5, 6 ];
16
- var ys = concatMap(xs, function (x) {
17
- return x % 2 ? [ x - 0.1, x, x + 0.1 ] : [];
18
- });
19
- console.dir(ys);
20
- ```
21
-
22
- ***
23
-
24
- ```
25
- [ 0.9, 1, 1.1, 2.9, 3, 3.1, 4.9, 5, 5.1 ]
26
- ```
27
-
28
- methods
29
- =======
30
-
31
- ``` js
32
- var concatMap = require('concat-map')
33
- ```
34
-
35
- concatMap(xs, fn)
36
- -----------------
37
-
38
- Return an array of concatenated elements by calling `fn(x, i)` for each element
39
- `x` and each index `i` in the array `xs`.
40
-
41
- When `fn(x, i)` returns an array, its result will be concatenated with the
42
- result array. If `fn(x, i)` returns anything else, that value will be pushed
43
- onto the end of the result array.
44
-
45
- install
46
- =======
47
-
48
- With [npm](http://npmjs.org) do:
49
-
50
- ```
51
- npm install concat-map
52
- ```
53
-
54
- license
55
- =======
56
-
57
- MIT
58
-
59
- notes
60
- =====
61
-
62
- This module was written while sitting high above the ground in a tree.
@@ -1,6 +0,0 @@
1
- var concatMap = require('../');
2
- var xs = [ 1, 2, 3, 4, 5, 6 ];
3
- var ys = concatMap(xs, function (x) {
4
- return x % 2 ? [ x - 0.1, x, x + 0.1 ] : [];
5
- });
6
- console.dir(ys);
@@ -1,13 +0,0 @@
1
- module.exports = function (xs, fn) {
2
- var res = [];
3
- for (var i = 0; i < xs.length; i++) {
4
- var x = fn(xs[i], i);
5
- if (isArray(x)) res.push.apply(res, x);
6
- else res.push(x);
7
- }
8
- return res;
9
- };
10
-
11
- var isArray = Array.isArray || function (xs) {
12
- return Object.prototype.toString.call(xs) === '[object Array]';
13
- };
@@ -1,43 +0,0 @@
1
- {
2
- "name" : "concat-map",
3
- "description" : "concatenative mapdashery",
4
- "version" : "0.0.1",
5
- "repository" : {
6
- "type" : "git",
7
- "url" : "git://github.com/substack/node-concat-map.git"
8
- },
9
- "main" : "index.js",
10
- "keywords" : [
11
- "concat",
12
- "concatMap",
13
- "map",
14
- "functional",
15
- "higher-order"
16
- ],
17
- "directories" : {
18
- "example" : "example",
19
- "test" : "test"
20
- },
21
- "scripts" : {
22
- "test" : "tape test/*.js"
23
- },
24
- "devDependencies" : {
25
- "tape" : "~2.4.0"
26
- },
27
- "license" : "MIT",
28
- "author" : {
29
- "name" : "James Halliday",
30
- "email" : "mail@substack.net",
31
- "url" : "http://substack.net"
32
- },
33
- "testling" : {
34
- "files" : "test/*.js",
35
- "browsers" : {
36
- "ie" : [ 6, 7, 8, 9 ],
37
- "ff" : [ 3.5, 10, 15.0 ],
38
- "chrome" : [ 10, 22 ],
39
- "safari" : [ 5.1 ],
40
- "opera" : [ 12 ]
41
- }
42
- }
43
- }
@@ -1,43 +0,0 @@
1
- The ISC License
2
-
3
- Copyright (c) Isaac Z. Schlueter and Contributors
4
-
5
- Permission to use, copy, modify, and/or distribute this software for any
6
- purpose with or without fee is hereby granted, provided that the above
7
- copyright notice and this permission notice appear in all copies.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15
- IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16
-
17
- ----
18
-
19
- This library bundles a version of the `fs.realpath` and `fs.realpathSync`
20
- methods from Node.js v0.10 under the terms of the Node.js MIT license.
21
-
22
- Node's license follows, also included at the header of `old.js` which contains
23
- the licensed code:
24
-
25
- Copyright Joyent, Inc. and other Node contributors.
26
-
27
- Permission is hereby granted, free of charge, to any person obtaining a
28
- copy of this software and associated documentation files (the "Software"),
29
- to deal in the Software without restriction, including without limitation
30
- the rights to use, copy, modify, merge, publish, distribute, sublicense,
31
- and/or sell copies of the Software, and to permit persons to whom the
32
- Software is furnished to do so, subject to the following conditions:
33
-
34
- The above copyright notice and this permission notice shall be included in
35
- all copies or substantial portions of the Software.
36
-
37
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
38
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
39
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
40
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
41
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
42
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
43
- DEALINGS IN THE SOFTWARE.
@@ -1,33 +0,0 @@
1
- # fs.realpath
2
-
3
- A backwards-compatible fs.realpath for Node v6 and above
4
-
5
- In Node v6, the JavaScript implementation of fs.realpath was replaced
6
- with a faster (but less resilient) native implementation. That raises
7
- new and platform-specific errors and cannot handle long or excessively
8
- symlink-looping paths.
9
-
10
- This module handles those cases by detecting the new errors and
11
- falling back to the JavaScript implementation. On versions of Node
12
- prior to v6, it has no effect.
13
-
14
- ## USAGE
15
-
16
- ```js
17
- var rp = require('fs.realpath')
18
-
19
- // async version
20
- rp.realpath(someLongAndLoopingPath, function (er, real) {
21
- // the ELOOP was handled, but it was a bit slower
22
- })
23
-
24
- // sync version
25
- var real = rp.realpathSync(someLongAndLoopingPath)
26
-
27
- // monkeypatch at your own risk!
28
- // This replaces the fs.realpath/fs.realpathSync builtins
29
- rp.monkeypatch()
30
-
31
- // un-do the monkeypatching
32
- rp.unmonkeypatch()
33
- ```