@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,360 +0,0 @@
1
- const assert = require("assert")
2
- const path = require("path")
3
- const fs = require("fs")
4
- let glob = undefined
5
- try {
6
- glob = require("glob")
7
- } catch (_err) {
8
- // treat glob as optional.
9
- }
10
-
11
- const defaultGlobOpts = {
12
- nosort: true,
13
- silent: true
14
- }
15
-
16
- // for EMFILE handling
17
- let timeout = 0
18
-
19
- const isWindows = (process.platform === "win32")
20
-
21
- const defaults = options => {
22
- const methods = [
23
- 'unlink',
24
- 'chmod',
25
- 'stat',
26
- 'lstat',
27
- 'rmdir',
28
- 'readdir'
29
- ]
30
- methods.forEach(m => {
31
- options[m] = options[m] || fs[m]
32
- m = m + 'Sync'
33
- options[m] = options[m] || fs[m]
34
- })
35
-
36
- options.maxBusyTries = options.maxBusyTries || 3
37
- options.emfileWait = options.emfileWait || 1000
38
- if (options.glob === false) {
39
- options.disableGlob = true
40
- }
41
- if (options.disableGlob !== true && glob === undefined) {
42
- throw Error('glob dependency not found, set `options.disableGlob = true` if intentional')
43
- }
44
- options.disableGlob = options.disableGlob || false
45
- options.glob = options.glob || defaultGlobOpts
46
- }
47
-
48
- const rimraf = (p, options, cb) => {
49
- if (typeof options === 'function') {
50
- cb = options
51
- options = {}
52
- }
53
-
54
- assert(p, 'rimraf: missing path')
55
- assert.equal(typeof p, 'string', 'rimraf: path should be a string')
56
- assert.equal(typeof cb, 'function', 'rimraf: callback function required')
57
- assert(options, 'rimraf: invalid options argument provided')
58
- assert.equal(typeof options, 'object', 'rimraf: options should be object')
59
-
60
- defaults(options)
61
-
62
- let busyTries = 0
63
- let errState = null
64
- let n = 0
65
-
66
- const next = (er) => {
67
- errState = errState || er
68
- if (--n === 0)
69
- cb(errState)
70
- }
71
-
72
- const afterGlob = (er, results) => {
73
- if (er)
74
- return cb(er)
75
-
76
- n = results.length
77
- if (n === 0)
78
- return cb()
79
-
80
- results.forEach(p => {
81
- const CB = (er) => {
82
- if (er) {
83
- if ((er.code === "EBUSY" || er.code === "ENOTEMPTY" || er.code === "EPERM") &&
84
- busyTries < options.maxBusyTries) {
85
- busyTries ++
86
- // try again, with the same exact callback as this one.
87
- return setTimeout(() => rimraf_(p, options, CB), busyTries * 100)
88
- }
89
-
90
- // this one won't happen if graceful-fs is used.
91
- if (er.code === "EMFILE" && timeout < options.emfileWait) {
92
- return setTimeout(() => rimraf_(p, options, CB), timeout ++)
93
- }
94
-
95
- // already gone
96
- if (er.code === "ENOENT") er = null
97
- }
98
-
99
- timeout = 0
100
- next(er)
101
- }
102
- rimraf_(p, options, CB)
103
- })
104
- }
105
-
106
- if (options.disableGlob || !glob.hasMagic(p))
107
- return afterGlob(null, [p])
108
-
109
- options.lstat(p, (er, stat) => {
110
- if (!er)
111
- return afterGlob(null, [p])
112
-
113
- glob(p, options.glob, afterGlob)
114
- })
115
-
116
- }
117
-
118
- // Two possible strategies.
119
- // 1. Assume it's a file. unlink it, then do the dir stuff on EPERM or EISDIR
120
- // 2. Assume it's a directory. readdir, then do the file stuff on ENOTDIR
121
- //
122
- // Both result in an extra syscall when you guess wrong. However, there
123
- // are likely far more normal files in the world than directories. This
124
- // is based on the assumption that a the average number of files per
125
- // directory is >= 1.
126
- //
127
- // If anyone ever complains about this, then I guess the strategy could
128
- // be made configurable somehow. But until then, YAGNI.
129
- const rimraf_ = (p, options, cb) => {
130
- assert(p)
131
- assert(options)
132
- assert(typeof cb === 'function')
133
-
134
- // sunos lets the root user unlink directories, which is... weird.
135
- // so we have to lstat here and make sure it's not a dir.
136
- options.lstat(p, (er, st) => {
137
- if (er && er.code === "ENOENT")
138
- return cb(null)
139
-
140
- // Windows can EPERM on stat. Life is suffering.
141
- if (er && er.code === "EPERM" && isWindows)
142
- fixWinEPERM(p, options, er, cb)
143
-
144
- if (st && st.isDirectory())
145
- return rmdir(p, options, er, cb)
146
-
147
- options.unlink(p, er => {
148
- if (er) {
149
- if (er.code === "ENOENT")
150
- return cb(null)
151
- if (er.code === "EPERM")
152
- return (isWindows)
153
- ? fixWinEPERM(p, options, er, cb)
154
- : rmdir(p, options, er, cb)
155
- if (er.code === "EISDIR")
156
- return rmdir(p, options, er, cb)
157
- }
158
- return cb(er)
159
- })
160
- })
161
- }
162
-
163
- const fixWinEPERM = (p, options, er, cb) => {
164
- assert(p)
165
- assert(options)
166
- assert(typeof cb === 'function')
167
-
168
- options.chmod(p, 0o666, er2 => {
169
- if (er2)
170
- cb(er2.code === "ENOENT" ? null : er)
171
- else
172
- options.stat(p, (er3, stats) => {
173
- if (er3)
174
- cb(er3.code === "ENOENT" ? null : er)
175
- else if (stats.isDirectory())
176
- rmdir(p, options, er, cb)
177
- else
178
- options.unlink(p, cb)
179
- })
180
- })
181
- }
182
-
183
- const fixWinEPERMSync = (p, options, er) => {
184
- assert(p)
185
- assert(options)
186
-
187
- try {
188
- options.chmodSync(p, 0o666)
189
- } catch (er2) {
190
- if (er2.code === "ENOENT")
191
- return
192
- else
193
- throw er
194
- }
195
-
196
- let stats
197
- try {
198
- stats = options.statSync(p)
199
- } catch (er3) {
200
- if (er3.code === "ENOENT")
201
- return
202
- else
203
- throw er
204
- }
205
-
206
- if (stats.isDirectory())
207
- rmdirSync(p, options, er)
208
- else
209
- options.unlinkSync(p)
210
- }
211
-
212
- const rmdir = (p, options, originalEr, cb) => {
213
- assert(p)
214
- assert(options)
215
- assert(typeof cb === 'function')
216
-
217
- // try to rmdir first, and only readdir on ENOTEMPTY or EEXIST (SunOS)
218
- // if we guessed wrong, and it's not a directory, then
219
- // raise the original error.
220
- options.rmdir(p, er => {
221
- if (er && (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM"))
222
- rmkids(p, options, cb)
223
- else if (er && er.code === "ENOTDIR")
224
- cb(originalEr)
225
- else
226
- cb(er)
227
- })
228
- }
229
-
230
- const rmkids = (p, options, cb) => {
231
- assert(p)
232
- assert(options)
233
- assert(typeof cb === 'function')
234
-
235
- options.readdir(p, (er, files) => {
236
- if (er)
237
- return cb(er)
238
- let n = files.length
239
- if (n === 0)
240
- return options.rmdir(p, cb)
241
- let errState
242
- files.forEach(f => {
243
- rimraf(path.join(p, f), options, er => {
244
- if (errState)
245
- return
246
- if (er)
247
- return cb(errState = er)
248
- if (--n === 0)
249
- options.rmdir(p, cb)
250
- })
251
- })
252
- })
253
- }
254
-
255
- // this looks simpler, and is strictly *faster*, but will
256
- // tie up the JavaScript thread and fail on excessively
257
- // deep directory trees.
258
- const rimrafSync = (p, options) => {
259
- options = options || {}
260
- defaults(options)
261
-
262
- assert(p, 'rimraf: missing path')
263
- assert.equal(typeof p, 'string', 'rimraf: path should be a string')
264
- assert(options, 'rimraf: missing options')
265
- assert.equal(typeof options, 'object', 'rimraf: options should be object')
266
-
267
- let results
268
-
269
- if (options.disableGlob || !glob.hasMagic(p)) {
270
- results = [p]
271
- } else {
272
- try {
273
- options.lstatSync(p)
274
- results = [p]
275
- } catch (er) {
276
- results = glob.sync(p, options.glob)
277
- }
278
- }
279
-
280
- if (!results.length)
281
- return
282
-
283
- for (let i = 0; i < results.length; i++) {
284
- const p = results[i]
285
-
286
- let st
287
- try {
288
- st = options.lstatSync(p)
289
- } catch (er) {
290
- if (er.code === "ENOENT")
291
- return
292
-
293
- // Windows can EPERM on stat. Life is suffering.
294
- if (er.code === "EPERM" && isWindows)
295
- fixWinEPERMSync(p, options, er)
296
- }
297
-
298
- try {
299
- // sunos lets the root user unlink directories, which is... weird.
300
- if (st && st.isDirectory())
301
- rmdirSync(p, options, null)
302
- else
303
- options.unlinkSync(p)
304
- } catch (er) {
305
- if (er.code === "ENOENT")
306
- return
307
- if (er.code === "EPERM")
308
- return isWindows ? fixWinEPERMSync(p, options, er) : rmdirSync(p, options, er)
309
- if (er.code !== "EISDIR")
310
- throw er
311
-
312
- rmdirSync(p, options, er)
313
- }
314
- }
315
- }
316
-
317
- const rmdirSync = (p, options, originalEr) => {
318
- assert(p)
319
- assert(options)
320
-
321
- try {
322
- options.rmdirSync(p)
323
- } catch (er) {
324
- if (er.code === "ENOENT")
325
- return
326
- if (er.code === "ENOTDIR")
327
- throw originalEr
328
- if (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM")
329
- rmkidsSync(p, options)
330
- }
331
- }
332
-
333
- const rmkidsSync = (p, options) => {
334
- assert(p)
335
- assert(options)
336
- options.readdirSync(p).forEach(f => rimrafSync(path.join(p, f), options))
337
-
338
- // We only end up here once we got ENOTEMPTY at least once, and
339
- // at this point, we are guaranteed to have removed all the kids.
340
- // So, we know that it won't be ENOENT or ENOTDIR or anything else.
341
- // try really hard to delete stuff on windows, because it has a
342
- // PROFOUNDLY annoying habit of not closing handles promptly when
343
- // files are deleted, resulting in spurious ENOTEMPTY errors.
344
- const retries = isWindows ? 100 : 1
345
- let i = 0
346
- do {
347
- let threw = true
348
- try {
349
- const ret = options.rmdirSync(p, options)
350
- threw = false
351
- return ret
352
- } finally {
353
- if (++i < retries && threw)
354
- continue
355
- }
356
- } while (true)
357
- }
358
-
359
- module.exports = rimraf
360
- rimraf.sync = rimrafSync
@@ -1,15 +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.
@@ -1,36 +0,0 @@
1
- # wrappy
2
-
3
- Callback wrapping utility
4
-
5
- ## USAGE
6
-
7
- ```javascript
8
- var wrappy = require("wrappy")
9
-
10
- // var wrapper = wrappy(wrapperFunction)
11
-
12
- // make sure a cb is called only once
13
- // See also: http://npm.im/once for this specific use case
14
- var once = wrappy(function (cb) {
15
- var called = false
16
- return function () {
17
- if (called) return
18
- called = true
19
- return cb.apply(this, arguments)
20
- }
21
- })
22
-
23
- function printBoo () {
24
- console.log('boo')
25
- }
26
- // has some rando property
27
- printBoo.iAmBooPrinter = true
28
-
29
- var onlyPrintOnce = once(printBoo)
30
-
31
- onlyPrintOnce() // prints 'boo'
32
- onlyPrintOnce() // does nothing
33
-
34
- // random property is retained!
35
- assert.equal(onlyPrintOnce.iAmBooPrinter, true)
36
- ```
@@ -1,29 +0,0 @@
1
- {
2
- "name": "wrappy",
3
- "version": "1.0.2",
4
- "description": "Callback wrapping utility",
5
- "main": "wrappy.js",
6
- "files": [
7
- "wrappy.js"
8
- ],
9
- "directories": {
10
- "test": "test"
11
- },
12
- "dependencies": {},
13
- "devDependencies": {
14
- "tap": "^2.3.1"
15
- },
16
- "scripts": {
17
- "test": "tap --coverage test/*.js"
18
- },
19
- "repository": {
20
- "type": "git",
21
- "url": "https://github.com/npm/wrappy"
22
- },
23
- "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
24
- "license": "ISC",
25
- "bugs": {
26
- "url": "https://github.com/npm/wrappy/issues"
27
- },
28
- "homepage": "https://github.com/npm/wrappy"
29
- }
@@ -1,33 +0,0 @@
1
- // Returns a wrapper function that returns a wrapped callback
2
- // The wrapper function should do some stuff, and return a
3
- // presumably different callback function.
4
- // This makes sure that own properties are retained, so that
5
- // decorations and such are not lost along the way.
6
- module.exports = wrappy
7
- function wrappy (fn, cb) {
8
- if (fn && cb) return wrappy(fn)(cb)
9
-
10
- if (typeof fn !== 'function')
11
- throw new TypeError('need wrapper function')
12
-
13
- Object.keys(fn).forEach(function (k) {
14
- wrapper[k] = fn[k]
15
- })
16
-
17
- return wrapper
18
-
19
- function wrapper() {
20
- var args = new Array(arguments.length)
21
- for (var i = 0; i < args.length; i++) {
22
- args[i] = arguments[i]
23
- }
24
- var ret = fn.apply(this, args)
25
- var cb = args[args.length-1]
26
- if (typeof ret === 'function' && ret !== cb) {
27
- Object.keys(cb).forEach(function (k) {
28
- ret[k] = cb[k]
29
- })
30
- }
31
- return ret
32
- }
33
- }
Binary file
Binary file
package/img/logo.png DELETED
Binary file
package/theme/styles.css DELETED
@@ -1,113 +0,0 @@
1
- body {
2
- font-family: Gotham, system-ui;
3
- !important;
4
- color: #fff !important;
5
- }
6
-
7
- h1, h2, h3, h4, h5, h6 p, strong, span {
8
- color: #fff !important;
9
- }
10
-
11
- .table {
12
- background-color: rgb(35, 48, 68);
13
- }
14
-
15
- th, td, code {
16
- color: #fff !important;
17
- }
18
-
19
- .param-type, .tag:not(body) {
20
- background-color: rgb(71, 130, 218);
21
- border-radius: 4px;
22
- }
23
-
24
- a {
25
- color: #00e7eb !important;
26
- }
27
-
28
- .button {
29
- background-color: #4782da;
30
- color: #fff !important;
31
- }
32
-
33
- .mermaid {
34
- background-color: #fff;
35
- }
36
-
37
- .mermaid span {
38
- color: #000 !important;
39
- }
40
-
41
- .top-nav {
42
- background-color: rgb(35, 48, 68);
43
- }
44
-
45
- #main, .core, .content {
46
- background-color: rgb(27, 38, 53) !important;
47
- }
48
-
49
- .sidebar {
50
- width: 450px !important;
51
- border-right: none !important;
52
- }
53
-
54
- .side-nav {
55
- width: 350px !important;
56
- border-left: none !important;
57
- }
58
-
59
- .category h2 {
60
- background: rgb(71, 130, 218);
61
- border-radius: 25px;
62
- color: #fff !important;
63
- padding-left: 10px;
64
- font-weight: bold;
65
- }
66
-
67
- .category h2:before {
68
- content: '⇝';
69
- padding-right: 10px;
70
- }
71
-
72
- .category h3 {
73
- font-weight: bold;
74
- color: #2b74b1;
75
- }
76
-
77
- .sidebar a:hover, .sidebar a.active, .side-nav a:hover, .side-nav a.is-active {
78
- color: #ffdc7d !important;
79
- font-weight: bold;
80
- }
81
-
82
- .logo h1 {
83
- color: #fff;
84
- font-weight: bold;
85
- }
86
-
87
- .link {
88
- color: #fff !important;
89
- font-weight: bold;
90
- }
91
-
92
- .dropdown-content {
93
- background-color: rgb(27, 38, 53) !important;
94
- }
95
-
96
- #search {
97
- background: none;
98
- color: rgb(238, 238, 238);
99
- border-color: #999999;
100
- border-radius: 4px;
101
- }
102
-
103
- #search::placeholder {
104
- color: rgb(238, 238, 238);
105
- }
106
-
107
- .logo .image img {
108
- width: 4% !important;
109
- }
110
-
111
- .logo a {
112
- display: inline-block;
113
- }