deploy.sh 1.0.0 → 3.0.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 (161) hide show
  1. package/.claude/settings.local.json +36 -0
  2. package/.github/ISSUE_TEMPLATE/bug_report.yml +105 -0
  3. package/.github/ISSUE_TEMPLATE/config.yml +5 -0
  4. package/.github/ISSUE_TEMPLATE/feature_request.yml +56 -0
  5. package/.github/workflows/ci.yml +29 -0
  6. package/.github/workflows/pages.yml +48 -0
  7. package/.oxfmtrc.json +7 -0
  8. package/.oxlintrc.json +11 -0
  9. package/LICENSE +183 -183
  10. package/README.md +99 -11
  11. package/app/actions/deployments.ts +82 -0
  12. package/app/actions/metrics.ts +13 -0
  13. package/app/root.tsx +60 -0
  14. package/app/routes/dashboard/detail/history.tsx +73 -0
  15. package/app/routes/dashboard/detail/layout.tsx +125 -0
  16. package/app/routes/dashboard/detail/logs.tsx +85 -0
  17. package/app/routes/dashboard/detail/overview.tsx +119 -0
  18. package/app/routes/dashboard/detail/requests.tsx +163 -0
  19. package/app/routes/dashboard/detail/resources.tsx +268 -0
  20. package/app/routes/dashboard/detail/shared.tsx +59 -0
  21. package/app/routes/dashboard/index.tsx +360 -0
  22. package/app/routes/dashboard/layout.tsx +30 -0
  23. package/app/routes/docs/architecture.tsx +155 -0
  24. package/app/routes/docs/cli.tsx +122 -0
  25. package/app/routes/docs/deploying.tsx +105 -0
  26. package/app/routes/docs/index.tsx +104 -0
  27. package/app/routes/docs/layout.tsx +58 -0
  28. package/app/routes/home.tsx +134 -0
  29. package/app/routes/root.client.tsx +46 -0
  30. package/app/routes.ts +21 -0
  31. package/app/styles.css +15 -0
  32. package/app/theme.css +134 -0
  33. package/bin/deploy.js +360 -110
  34. package/docs-site/404.html +33 -0
  35. package/docs-site/home.tsx +130 -0
  36. package/docs-site/index.html +35 -0
  37. package/docs-site/layout.tsx +57 -0
  38. package/docs-site/main.tsx +41 -0
  39. package/docs-site/shell.tsx +34 -0
  40. package/docs-site/styles.css +4 -0
  41. package/drizzle.config.js +8 -0
  42. package/examples/docker/Dockerfile +5 -0
  43. package/examples/docker/server.js +18 -0
  44. package/examples/node/package.json +7 -0
  45. package/examples/node/pnpm-lock.yaml +9 -0
  46. package/examples/node/server.js +12 -0
  47. package/examples/static/index.html +48 -0
  48. package/package.json +41 -55
  49. package/public/favicon.ico +0 -0
  50. package/react-router-vite/entry.browser.tsx +49 -0
  51. package/react-router-vite/entry.rsc.single.tsx +7 -0
  52. package/react-router-vite/entry.rsc.tsx +36 -0
  53. package/react-router-vite/entry.ssr.tsx +29 -0
  54. package/react-router-vite/plugin.ts +114 -0
  55. package/react-router-vite/types.d.ts +11 -0
  56. package/react-router.config.ts +5 -0
  57. package/server/api.test.ts +344 -0
  58. package/server/api.ts +445 -0
  59. package/server/docker.ts +268 -0
  60. package/server/index.ts +17 -0
  61. package/server/metrics-collector.ts +29 -0
  62. package/server/schema.ts +56 -0
  63. package/server/store.test.ts +278 -0
  64. package/server/store.ts +398 -0
  65. package/tsconfig.json +21 -0
  66. package/vite.config.ts +45 -0
  67. package/vite.docs.config.ts +31 -0
  68. package/.eslintignore +0 -5
  69. package/.eslintrc +0 -23
  70. package/.travis.yml +0 -9
  71. package/.tryitout +0 -48
  72. package/CHANGELOG.md +0 -56
  73. package/bin/deploy-delete.js +0 -11
  74. package/bin/deploy-deploy.js +0 -31
  75. package/bin/deploy-list.js +0 -32
  76. package/bin/deploy-login.js +0 -39
  77. package/bin/deploy-logout.js +0 -12
  78. package/bin/deploy-logs.js +0 -19
  79. package/bin/deploy-open.js +0 -19
  80. package/bin/deploy-register.js +0 -40
  81. package/bin/deploy-server.js +0 -5
  82. package/bin/deploy-whoami.js +0 -12
  83. package/docs/code/CLI.html +0 -2901
  84. package/docs/code/Deployment.html +0 -2469
  85. package/docs/code/Request.html +0 -906
  86. package/docs/code/User.html +0 -1219
  87. package/docs/code/classifier.js.html +0 -121
  88. package/docs/code/deploy.js.html +0 -122
  89. package/docs/code/fonts/OpenSans-Bold-webfont.eot +0 -0
  90. package/docs/code/fonts/OpenSans-Bold-webfont.svg +0 -1830
  91. package/docs/code/fonts/OpenSans-Bold-webfont.woff +0 -0
  92. package/docs/code/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  93. package/docs/code/fonts/OpenSans-BoldItalic-webfont.svg +0 -1830
  94. package/docs/code/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  95. package/docs/code/fonts/OpenSans-Italic-webfont.eot +0 -0
  96. package/docs/code/fonts/OpenSans-Italic-webfont.svg +0 -1830
  97. package/docs/code/fonts/OpenSans-Italic-webfont.woff +0 -0
  98. package/docs/code/fonts/OpenSans-Light-webfont.eot +0 -0
  99. package/docs/code/fonts/OpenSans-Light-webfont.svg +0 -1831
  100. package/docs/code/fonts/OpenSans-Light-webfont.woff +0 -0
  101. package/docs/code/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  102. package/docs/code/fonts/OpenSans-LightItalic-webfont.svg +0 -1835
  103. package/docs/code/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  104. package/docs/code/fonts/OpenSans-Regular-webfont.eot +0 -0
  105. package/docs/code/fonts/OpenSans-Regular-webfont.svg +0 -1831
  106. package/docs/code/fonts/OpenSans-Regular-webfont.woff +0 -0
  107. package/docs/code/fonts/OpenSans-Semibold-webfont.eot +0 -0
  108. package/docs/code/fonts/OpenSans-Semibold-webfont.svg +0 -1830
  109. package/docs/code/fonts/OpenSans-Semibold-webfont.ttf +0 -0
  110. package/docs/code/fonts/OpenSans-Semibold-webfont.woff +0 -0
  111. package/docs/code/fonts/OpenSans-SemiboldItalic-webfont.eot +0 -0
  112. package/docs/code/fonts/OpenSans-SemiboldItalic-webfont.svg +0 -1830
  113. package/docs/code/fonts/OpenSans-SemiboldItalic-webfont.ttf +0 -0
  114. package/docs/code/fonts/OpenSans-SemiboldItalic-webfont.woff +0 -0
  115. package/docs/code/helpers_cli.js.html +0 -315
  116. package/docs/code/helpers_util.js.html +0 -194
  117. package/docs/code/index.html +0 -66
  118. package/docs/code/models_deployment.js.html +0 -515
  119. package/docs/code/models_request.js.html +0 -158
  120. package/docs/code/models_user.js.html +0 -198
  121. package/docs/code/module-lib_classifier.html +0 -246
  122. package/docs/code/module-lib_deploy.html +0 -350
  123. package/docs/code/module-lib_helpers_util.html +0 -707
  124. package/docs/code/scripts/linenumber.js +0 -25
  125. package/docs/code/scripts/prettify/Apache-License-2.0.txt +0 -202
  126. package/docs/code/scripts/prettify/lang-css.js +0 -2
  127. package/docs/code/scripts/prettify/prettify.js +0 -28
  128. package/docs/code/styles/jsdoc-default.css +0 -692
  129. package/docs/code/styles/prettify-jsdoc.css +0 -111
  130. package/docs/code/styles/prettify-tomorrow.css +0 -132
  131. package/docs/example.gif +0 -0
  132. package/docs/example.mov +0 -0
  133. package/docs/index.html +0 -4463
  134. package/docs/logo.png +0 -0
  135. package/docs/logo.pxm +0 -0
  136. package/docs/logo@2x.png +0 -0
  137. package/docs/main.css +0 -162
  138. package/docs/main.js +0 -53
  139. package/index.js +0 -55
  140. package/jsdoc.json +0 -27
  141. package/lib/classifier.js +0 -61
  142. package/lib/deploy.js +0 -62
  143. package/lib/helpers/cli.js +0 -255
  144. package/lib/helpers/util.js +0 -134
  145. package/lib/models/deployment.js +0 -455
  146. package/lib/models/request.js +0 -98
  147. package/lib/models/user.js +0 -138
  148. package/lib/server.js +0 -165
  149. package/lib/static/not-found.html +0 -30
  150. package/lib/static/page-could-not-load.html +0 -30
  151. package/lib/static/static-server.js +0 -69
  152. package/test/fixtures/docker/Dockerfile +0 -5
  153. package/test/fixtures/docker/index.js +0 -12
  154. package/test/fixtures/node/index.js +0 -8
  155. package/test/fixtures/node/package.json +0 -15
  156. package/test/fixtures/static/index.html +0 -14
  157. package/test/fixtures/static/main.css +0 -7
  158. package/test/fixtures/static/out.gifcd +0 -0
  159. package/test/fixtures/unknown/.gitkeep +0 -0
  160. package/test/lib/classifier.js +0 -51
  161. package/test/lib/helpers/util.js +0 -47
@@ -1,906 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <title>Request - Documentation</title>
7
-
8
- <script src="scripts/prettify/prettify.js"></script>
9
- <script src="scripts/prettify/lang-css.js"></script>
10
- <!--[if lt IE 9]>
11
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
12
- <![endif]-->
13
- <link type="text/css" rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
14
- <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
15
- <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
16
- </head>
17
- <body>
18
-
19
- <input type="checkbox" id="nav-trigger" class="nav-trigger" />
20
- <label for="nav-trigger" class="navicon-button x">
21
- <div class="navicon"></div>
22
- </label>
23
-
24
- <label for="nav-trigger" class="overlay"></label>
25
-
26
- <nav>
27
- <li class="nav-link nav-home-link"><a href="index.html">Home</a></li><li class="nav-heading">Classes</li><li class="nav-heading"><span class="nav-item-type type-class">C</span><span class="nav-item-name"><a href="CLI.html">CLI</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="CLI.html#.cacheCredentials">cacheCredentials</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="CLI.html#.createBundle">createBundle</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="CLI.html#.deleteDeployment">deleteDeployment</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="CLI.html#.getCredentials">getCredentials</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="CLI.html#.getDeployments">getDeployments</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="CLI.html#.getLogs">getLogs</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="CLI.html#.getUserDetails">getUserDetails</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="CLI.html#.login">login</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="CLI.html#.logout">logout</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="CLI.html#.register">register</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="CLI.html#.removeBundle">removeBundle</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="CLI.html#.uploadBundle">uploadBundle</a></span></li><li class="nav-heading"><span class="nav-item-type type-class">C</span><span class="nav-item-name"><a href="Deployment.html">Deployment</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Deployment.html#.decorate">decorate</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Deployment.html#.del">del</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Deployment.html#.get">get</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Deployment.html#.getAll">getAll</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Deployment.html#.logs">logs</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Deployment.html#.proxy">proxy</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Deployment.html#.remove">remove</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Deployment.html#.start">start</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Deployment.html#.stop">stop</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Deployment.html#.update">update</a></span></li><li class="nav-heading"><span class="nav-item-type type-class">C</span><span class="nav-item-name"><a href="Request.html">Request</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Request.html#.count">count</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Request.html#.del">del</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="Request.html#.log">log</a></span></li><li class="nav-heading"><span class="nav-item-type type-class">C</span><span class="nav-item-name"><a href="User.html">User</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="User.html#.authenticate">authenticate</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="User.html#.authenticateMiddleware">authenticateMiddleware</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="User.html#.login">login</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="User.html#.logout">logout</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="User.html#.register">register</a></span></li><li class="nav-heading">Modules</li><li class="nav-heading"><span class="nav-item-type type-module">M</span><span class="nav-item-name"><a href="module-lib_classifier.html">lib/classifier</a></span></li><li class="nav-heading"><span class="nav-item-type type-module">M</span><span class="nav-item-name"><a href="module-lib_deploy.html">lib/deploy</a></span></li><li class="nav-heading"><span class="nav-item-type type-module">M</span><span class="nav-item-name"><a href="module-lib_helpers_util.html">lib/helpers/util</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="module-lib_helpers_util.html#.mk">mk</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="module-lib_helpers_util.html#~contains">contains</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="module-lib_helpers_util.html#~getPort">getPort</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="module-lib_helpers_util.html#~hash">hash</a></span></li>
28
- </nav>
29
-
30
- <div id="main">
31
-
32
- <h1 class="page-title">Request</h1>
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
- <section>
41
-
42
- <header>
43
-
44
- <h2>
45
- Request
46
- </h2>
47
-
48
-
49
- </header>
50
-
51
- <article>
52
- <div class="container-overview">
53
-
54
-
55
- <div class="section-method">
56
-
57
-
58
-
59
- <h4 class="name" id="Request"><span class="type-signature"></span>new Request<span class="signature">()</span><span class="type-signature"></span></h4>
60
-
61
-
62
-
63
-
64
-
65
- <div class="description">
66
- <p>Request definition</p>
67
- </div>
68
-
69
-
70
-
71
-
72
-
73
- <h5 class="subsection-title">Properties:</h5>
74
-
75
-
76
-
77
- <table class="props">
78
- <thead>
79
- <tr>
80
-
81
- <th>Name</th>
82
-
83
-
84
- <th>Type</th>
85
-
86
-
87
-
88
-
89
-
90
- <th class="last">Description</th>
91
- </tr>
92
- </thead>
93
-
94
- <tbody>
95
-
96
-
97
- <tr>
98
-
99
- <td class="name"><code>subdomain</code></td>
100
-
101
-
102
- <td class="type">
103
-
104
-
105
- <span class="param-type"><code>String</code></span>
106
-
107
-
108
-
109
- </td>
110
-
111
-
112
-
113
-
114
-
115
- <td class="description last"><p>the subdomain of the request</p></td>
116
- </tr>
117
-
118
-
119
-
120
-
121
-
122
- <tr>
123
-
124
- <td class="name"><code>url</code></td>
125
-
126
-
127
- <td class="type">
128
-
129
-
130
- <span class="param-type"><code>String</code></span>
131
-
132
-
133
-
134
- </td>
135
-
136
-
137
-
138
-
139
-
140
- <td class="description last"><p>the url that was being accessed</p></td>
141
- </tr>
142
-
143
-
144
-
145
-
146
-
147
- <tr>
148
-
149
- <td class="name"><code>time</code></td>
150
-
151
-
152
- <td class="type">
153
-
154
-
155
- <span class="param-type"><code>Number</code></span>
156
-
157
-
158
-
159
- </td>
160
-
161
-
162
-
163
-
164
-
165
- <td class="description last"><p>the time it took to access the resource</p></td>
166
- </tr>
167
-
168
-
169
-
170
-
171
-
172
- <tr>
173
-
174
- <td class="name"><code>method</code></td>
175
-
176
-
177
- <td class="type">
178
-
179
-
180
- <span class="param-type"><code>String</code></span>
181
-
182
-
183
-
184
- </td>
185
-
186
-
187
-
188
-
189
-
190
- <td class="description last"><p>the http verb that describes the request</p></td>
191
- </tr>
192
-
193
-
194
-
195
-
196
-
197
- <tr>
198
-
199
- <td class="name"><code>statusCode</code></td>
200
-
201
-
202
- <td class="type">
203
-
204
-
205
- <span class="param-type"><code>String</code></span>
206
-
207
-
208
-
209
- </td>
210
-
211
-
212
-
213
-
214
-
215
- <td class="description last"><p>the statusCode associated with the request</p></td>
216
- </tr>
217
-
218
-
219
-
220
-
221
-
222
- <tr>
223
-
224
- <td class="name"><code>userAgent</code></td>
225
-
226
-
227
- <td class="type">
228
-
229
-
230
- <span class="param-type"><code>String</code></span>
231
-
232
-
233
-
234
- </td>
235
-
236
-
237
-
238
-
239
-
240
- <td class="description last"><p>the userAgent that access the resource</p></td>
241
- </tr>
242
-
243
-
244
-
245
-
246
-
247
- <tr>
248
-
249
- <td class="name"><code>referer</code></td>
250
-
251
-
252
- <td class="type">
253
-
254
-
255
- <span class="param-type"><code>String</code></span>
256
-
257
-
258
-
259
- </td>
260
-
261
-
262
-
263
-
264
-
265
- <td class="description last"><p>the referer that the user was at before accessing the address</p></td>
266
- </tr>
267
-
268
-
269
-
270
-
271
-
272
- <tr>
273
-
274
- <td class="name"><code>acceptLanguage</code></td>
275
-
276
-
277
- <td class="type">
278
-
279
-
280
- <span class="param-type"><code>String</code></span>
281
-
282
-
283
-
284
- </td>
285
-
286
-
287
-
288
-
289
-
290
- <td class="description last"><p>browser based language preferences</p></td>
291
- </tr>
292
-
293
-
294
-
295
-
296
- </tbody>
297
- </table>
298
-
299
-
300
-
301
-
302
- <dl class="details">
303
-
304
-
305
-
306
-
307
-
308
-
309
-
310
-
311
-
312
-
313
-
314
-
315
-
316
-
317
-
318
-
319
-
320
-
321
-
322
-
323
-
324
-
325
-
326
-
327
-
328
-
329
- <dt class="tag-source">Source:</dt>
330
- <dd class="tag-source"><ul class="dummy"><li>
331
- <a href="models_request.js.html">models/request.js</a>, <a href="models_request.js.html#line24">line 24</a>
332
- </li></ul></dd>
333
-
334
-
335
-
336
-
337
-
338
-
339
-
340
- </dl>
341
-
342
-
343
-
344
-
345
-
346
-
347
-
348
-
349
-
350
-
351
-
352
-
353
-
354
-
355
-
356
-
357
-
358
-
359
-
360
-
361
-
362
-
363
-
364
- </div>
365
-
366
- </div>
367
-
368
-
369
-
370
-
371
-
372
-
373
-
374
-
375
-
376
-
377
-
378
-
379
-
380
-
381
- <h3 class="subsection-title">Methods</h3>
382
-
383
-
384
-
385
- <div class="section-method">
386
-
387
-
388
-
389
- <h4 class="name" id=".count"><span class="type-signature">(static) </span>count<span class="signature">(subdomain)</span><span class="type-signature"> &rarr; {Promise}</span></h4>
390
-
391
-
392
-
393
-
394
-
395
- <div class="description">
396
- <p>returns the amount of requests for the specified subdomain</p>
397
- </div>
398
-
399
-
400
-
401
-
402
-
403
- <dl class="details">
404
-
405
-
406
-
407
-
408
-
409
-
410
-
411
-
412
-
413
-
414
-
415
-
416
-
417
-
418
-
419
-
420
-
421
-
422
-
423
-
424
-
425
-
426
-
427
-
428
-
429
-
430
- <dt class="tag-source">Source:</dt>
431
- <dd class="tag-source"><ul class="dummy"><li>
432
- <a href="models_request.js.html">models/request.js</a>, <a href="models_request.js.html#line72">line 72</a>
433
- </li></ul></dd>
434
-
435
-
436
-
437
-
438
-
439
-
440
-
441
- </dl>
442
-
443
-
444
-
445
-
446
-
447
-
448
-
449
-
450
-
451
- <h5>Parameters:</h5>
452
-
453
-
454
- <table class="params">
455
- <thead>
456
- <tr>
457
-
458
- <th>Name</th>
459
-
460
-
461
- <th>Type</th>
462
-
463
-
464
-
465
-
466
-
467
- <th class="last">Description</th>
468
- </tr>
469
- </thead>
470
-
471
- <tbody>
472
-
473
-
474
- <tr>
475
-
476
- <td class="name"><code>subdomain</code></td>
477
-
478
-
479
- <td class="type">
480
-
481
-
482
- <span class="param-type"><code>string</code></span>
483
-
484
-
485
-
486
- </td>
487
-
488
-
489
-
490
-
491
-
492
- <td class="description last">
493
- <p>the subdomain of which to get the count of requests for</p>
494
-
495
- </td>
496
- </tr>
497
-
498
-
499
- </tbody>
500
- </table>
501
-
502
-
503
-
504
-
505
-
506
-
507
-
508
-
509
-
510
-
511
-
512
-
513
-
514
-
515
- <div class="section-returns">
516
- <h5>Returns:</h5>
517
-
518
-
519
-
520
- <dl class="param-type">
521
- <dt>
522
- Type:
523
- </dt>
524
- <dd>
525
-
526
- <span class="param-type"><code>Promise</code></span>
527
-
528
-
529
- </dd>
530
- </dl>
531
-
532
-
533
-
534
- </div>
535
-
536
-
537
-
538
- </div>
539
-
540
-
541
- <div class="section-method">
542
-
543
-
544
-
545
- <h4 class="name" id=".del"><span class="type-signature">(static) </span>del<span class="signature">(subdomain)</span><span class="type-signature"> &rarr; {Promise}</span></h4>
546
-
547
-
548
-
549
-
550
-
551
- <div class="description">
552
- <p>removes all entries associated with a particular subdomain</p>
553
- </div>
554
-
555
-
556
-
557
-
558
-
559
- <dl class="details">
560
-
561
-
562
-
563
-
564
-
565
-
566
-
567
-
568
-
569
-
570
-
571
-
572
-
573
-
574
-
575
-
576
-
577
-
578
-
579
-
580
-
581
-
582
-
583
-
584
-
585
-
586
- <dt class="tag-source">Source:</dt>
587
- <dd class="tag-source"><ul class="dummy"><li>
588
- <a href="models_request.js.html">models/request.js</a>, <a href="models_request.js.html#line84">line 84</a>
589
- </li></ul></dd>
590
-
591
-
592
-
593
-
594
-
595
-
596
-
597
- </dl>
598
-
599
-
600
-
601
-
602
-
603
-
604
-
605
-
606
-
607
- <h5>Parameters:</h5>
608
-
609
-
610
- <table class="params">
611
- <thead>
612
- <tr>
613
-
614
- <th>Name</th>
615
-
616
-
617
- <th>Type</th>
618
-
619
-
620
-
621
-
622
-
623
- <th class="last">Description</th>
624
- </tr>
625
- </thead>
626
-
627
- <tbody>
628
-
629
-
630
- <tr>
631
-
632
- <td class="name"><code>subdomain</code></td>
633
-
634
-
635
- <td class="type">
636
-
637
-
638
- <span class="param-type"><code>String</code></span>
639
-
640
-
641
-
642
- </td>
643
-
644
-
645
-
646
-
647
-
648
- <td class="description last">
649
- <p>the subdomain that the entries are related to</p>
650
-
651
- </td>
652
- </tr>
653
-
654
-
655
- </tbody>
656
- </table>
657
-
658
-
659
-
660
-
661
-
662
-
663
-
664
-
665
-
666
-
667
-
668
-
669
-
670
-
671
- <div class="section-returns">
672
- <h5>Returns:</h5>
673
-
674
-
675
-
676
- <dl class="param-type">
677
- <dt>
678
- Type:
679
- </dt>
680
- <dd>
681
-
682
- <span class="param-type"><code>Promise</code></span>
683
-
684
-
685
- </dd>
686
- </dl>
687
-
688
-
689
-
690
- </div>
691
-
692
-
693
-
694
- </div>
695
-
696
-
697
- <div class="section-method">
698
-
699
-
700
-
701
- <h4 class="name" id=".log"><span class="type-signature">(static) </span>log<span class="signature">(req, res, next)</span><span class="type-signature"></span></h4>
702
-
703
-
704
-
705
-
706
-
707
- <div class="description">
708
- <p>express middleware that logs requests</p>
709
- </div>
710
-
711
-
712
-
713
-
714
-
715
- <dl class="details">
716
-
717
-
718
-
719
-
720
-
721
-
722
-
723
-
724
-
725
-
726
-
727
-
728
-
729
-
730
-
731
-
732
-
733
-
734
-
735
-
736
-
737
-
738
-
739
-
740
-
741
-
742
- <dt class="tag-source">Source:</dt>
743
- <dd class="tag-source"><ul class="dummy"><li>
744
- <a href="models_request.js.html">models/request.js</a>, <a href="models_request.js.html#line37">line 37</a>
745
- </li></ul></dd>
746
-
747
-
748
-
749
-
750
-
751
-
752
-
753
- </dl>
754
-
755
-
756
-
757
-
758
-
759
-
760
-
761
-
762
-
763
- <h5>Parameters:</h5>
764
-
765
-
766
- <table class="params">
767
- <thead>
768
- <tr>
769
-
770
- <th>Name</th>
771
-
772
-
773
- <th>Type</th>
774
-
775
-
776
-
777
-
778
-
779
- <th class="last">Description</th>
780
- </tr>
781
- </thead>
782
-
783
- <tbody>
784
-
785
-
786
- <tr>
787
-
788
- <td class="name"><code>req</code></td>
789
-
790
-
791
- <td class="type">
792
-
793
-
794
- <span class="param-type"><code>Object</code></span>
795
-
796
-
797
-
798
- </td>
799
-
800
-
801
-
802
-
803
-
804
- <td class="description last">
805
- <p>express request object</p>
806
-
807
- </td>
808
- </tr>
809
-
810
-
811
-
812
- <tr>
813
-
814
- <td class="name"><code>res</code></td>
815
-
816
-
817
- <td class="type">
818
-
819
-
820
- <span class="param-type"><code>Object</code></span>
821
-
822
-
823
-
824
- </td>
825
-
826
-
827
-
828
-
829
-
830
- <td class="description last">
831
- <p>express response object</p>
832
-
833
- </td>
834
- </tr>
835
-
836
-
837
-
838
- <tr>
839
-
840
- <td class="name"><code>next</code></td>
841
-
842
-
843
- <td class="type">
844
-
845
-
846
- <span class="param-type"><code>function</code></span>
847
-
848
-
849
-
850
- </td>
851
-
852
-
853
-
854
-
855
-
856
- <td class="description last">
857
- <p>callback function</p>
858
-
859
- </td>
860
- </tr>
861
-
862
-
863
- </tbody>
864
- </table>
865
-
866
-
867
-
868
-
869
-
870
-
871
-
872
-
873
-
874
-
875
-
876
-
877
-
878
-
879
-
880
-
881
- </div>
882
-
883
-
884
-
885
-
886
-
887
-
888
- </article>
889
-
890
- </section>
891
-
892
-
893
-
894
-
895
- </div>
896
-
897
- <br class="clear">
898
-
899
- <footer>
900
- Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> using the Minami theme.
901
- </footer>
902
-
903
- <script>prettyPrint();</script>
904
- <script src="scripts/linenumber.js"></script>
905
- </body>
906
- </html>