w-web-api 1.0.52 → 1.0.53

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 (84) hide show
  1. package/_gh-pages-deploy/.nojekyll +0 -0
  2. package/_gh-pages-deploy/WWebApi.html +898 -0
  3. package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Bold.eot +0 -0
  4. package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  5. package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Bold.woff +0 -0
  6. package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
  7. package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Regular.eot +0 -0
  8. package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  9. package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Regular.woff +0 -0
  10. package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
  11. package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  12. package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +978 -0
  13. package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  14. package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  15. package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
  16. package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  17. package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +1049 -0
  18. package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  19. package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  20. package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
  21. package/_gh-pages-deploy/index.html +84 -0
  22. package/_gh-pages-deploy/scripts/collapse.js +39 -0
  23. package/_gh-pages-deploy/scripts/commonNav.js +28 -0
  24. package/_gh-pages-deploy/scripts/linenumber.js +25 -0
  25. package/_gh-pages-deploy/scripts/nav.js +12 -0
  26. package/_gh-pages-deploy/scripts/polyfill.js +4 -0
  27. package/_gh-pages-deploy/scripts/prettify/Apache-License-2.0.txt +202 -0
  28. package/_gh-pages-deploy/scripts/prettify/lang-css.js +2 -0
  29. package/_gh-pages-deploy/scripts/prettify/prettify.js +28 -0
  30. package/_gh-pages-deploy/scripts/search.js +99 -0
  31. package/{docs/WWebApi.mjs.html → _gh-pages-deploy/server_WWebApi.mjs.html} +96 -39
  32. package/_gh-pages-deploy/src_components_Common_CheckYesNo.vue.html +187 -0
  33. package/_gh-pages-deploy/styles/jsdoc.css +776 -0
  34. package/_gh-pages-deploy/styles/prettify.css +80 -0
  35. package/dist/css/app.fe69497a.css +1 -0
  36. package/dist/index.tmp +4 -2
  37. package/dist/js/app-legacy.15819aa7.js +1 -0
  38. package/dist/js/app.15819aa7.js +1 -0
  39. package/dist/js/chunk-vendors-legacy.c1a32dd1.js +15 -0
  40. package/dist/js/chunk-vendors.c1a32dd1.js +15 -0
  41. package/dist/w-web-api.umd.js +2 -2
  42. package/dist/w-web-api.umd.js.map +1 -1
  43. package/docs/WWebApi.html +2 -2
  44. package/docs/index.html +1 -1
  45. package/docs/server_WWebApi.mjs.html +1012 -0
  46. package/docs/src_components_Common_CheckYesNo.vue.html +187 -0
  47. package/g.getSettings.mjs +3 -0
  48. package/package.json +15 -11
  49. package/public/index.html +9 -2
  50. package/server/WWebApi.mjs +93 -36
  51. package/server/procApis.mjs +62 -0
  52. package/server/procLang.mjs +386 -0
  53. package/server/procProxy.mjs +120 -0
  54. package/server/srLog.mjs +30 -0
  55. package/server/staLogs/staEvent.mjs +129 -0
  56. package/server/staLogs/test_staEvent.mjs +132 -0
  57. package/settings.json +14 -0
  58. package/src/App.vue +11 -7
  59. package/src/assets/scalar-ui.css +113 -0
  60. package/src/components/Common/CheckYes.vue +102 -0
  61. package/src/components/Common/CheckYesNo.vue +115 -0
  62. package/src/components/Common/LoadingWinBar.vue +114 -0
  63. package/src/components/Layout.vue +8 -7
  64. package/src/components/LayoutContent.vue +308 -333
  65. package/src/components/LayoutContentEdit.vue +577 -0
  66. package/src/components/LayoutContentStats.vue +485 -0
  67. package/src/components/LayoutContentTest.vue +799 -0
  68. package/src/components/MdPanel.vue +80 -58
  69. package/src/main.js +8 -0
  70. package/src/plugins/mUI.mjs +19 -4
  71. package/src/schema/tables/apis.mjs +30 -0
  72. package/srv.mjs +47 -19
  73. package/tableTags.json +1 -1
  74. package/.github/workflows/ci-test.yml +0 -24
  75. package/.vscode/launch.json +0 -18
  76. package/db/wapis/apis/data.mdb +0 -0
  77. package/db/wapis/apis/lock.mdb +0 -0
  78. package/dist/css/app.b5cf2ef5.css +0 -1
  79. package/dist/js/app-legacy.927b5679.js +0 -1
  80. package/dist/js/app.927b5679.js +0 -1
  81. package/dist/js/chunk-vendors-legacy.ffb0c6c5.js +0 -13
  82. package/dist/js/chunk-vendors.ffb0c6c5.js +0 -13
  83. package/tableTags-web-api.json +0 -1
  84. package/test/all.test.mjs +0 -10
@@ -0,0 +1,898 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+
5
+ <meta charset="utf-8">
6
+ <title>WWebApi - Documentation</title>
7
+
8
+
9
+ <script src="scripts/prettify/prettify.js"></script>
10
+ <script src="scripts/prettify/lang-css.js"></script>
11
+ <!--[if lt IE 9]>
12
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13
+ <![endif]-->
14
+ <link type="text/css" rel="stylesheet" href="styles/prettify.css">
15
+ <link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
16
+ <script src="scripts/nav.js" defer></script>
17
+
18
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
19
+ </head>
20
+ <body>
21
+
22
+ <input type="checkbox" id="nav-trigger" class="nav-trigger" />
23
+ <label for="nav-trigger" class="navicon-button x">
24
+ <div class="navicon"></div>
25
+ </label>
26
+
27
+ <label for="nav-trigger" class="overlay"></label>
28
+
29
+ <nav >
30
+
31
+
32
+ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="WWebApi.html">WWebApi</a></li></ul>
33
+
34
+ </nav>
35
+
36
+ <div id="main">
37
+
38
+ <h1 class="page-title">WWebApi</h1>
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+ <section>
47
+
48
+ <header>
49
+
50
+ <h2>
51
+
52
+ WWebApi
53
+
54
+ </h2>
55
+
56
+
57
+ </header>
58
+
59
+ <article>
60
+
61
+ <div class="container-overview">
62
+
63
+
64
+
65
+
66
+
67
+ <h4 class="name" id="WWebApi"><span class="type-signature"></span>new WWebApi<span class="signature">(WOrm, url, db, getUserByToken, verifyClientUser, verifyAppUser, opt<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Object}</span></h4>
68
+
69
+
70
+
71
+
72
+
73
+
74
+ <dl class="details">
75
+
76
+ <dt class="tag-description">Description:</dt>
77
+ <dd class="tag-description"><ul class="dummy"><li><p>API伺服器</p></li></ul></dd>
78
+
79
+
80
+
81
+ <dt class="tag-source">Source:</dt>
82
+ <dd class="tag-source"><ul class="dummy"><li>
83
+ <a href="server_WWebApi.mjs.html">server/WWebApi.mjs</a>, <a href="server_WWebApi.mjs.html#line136">line 136</a>
84
+ </li></ul></dd>
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+ </dl>
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+ <h5 class="h5-examples">Example</h5>
129
+
130
+ <pre class="prettyprint"><code>import WOrm from 'w-orm-lmdb/src/WOrmLmdb.mjs'
131
  useCheckUser: false,
1
132
  getUserById: null,
2
133
  useExcludeWhenNotAdmin: false,
3
134
  serverPort: 11005,
4
135
  subfolder: '', //mapi
5
136
  urlRedirect: 'https://www.google.com/', //本機測試時得先編譯, 再瀏覽: http://localhost:11005/
6
137
  webName: {
7
138
  'eng': 'API Service',
8
139
  'cht': 'API管理系統',
9
140
  },
10
141
  webDescription: {
11
142
  'eng': 'A web service package as methods to send requests to and receive responses from an API.',
12
143
  'cht': 'A web service package as methods to send requests to and receive responses from an API.',
13
144
  },
14
145
  webLogo: 'data:image/svg+xml;base64,...',
15
146
  // return {} //測試無法登入
16
147
  if (token === '{token-for-application}') { //提供外部應用系統作為存取使用者
17
148
  return {
18
149
  id: 'id-for-application',
19
150
  name: 'application',
20
151
  email: 'application@example.com',
21
152
  isAdmin: 'y',
22
153
  }
23
154
  }
24
155
  if (token === 'sys') { //開發階段w-ui-loginout自動給予browser使用者(且位於localhost)的token為sys
25
156
  return {
26
157
  id: 'id-for-admin',
27
158
  name: '測試者',
28
159
  email: 'admin@example.com',
29
160
  isAdmin: 'y',
30
161
  }
31
162
  }
32
163
  console.log('invalid token', token)
33
164
  console.log('於生產環境時得加入SSO等驗證token機制')
34
165
  return {}
35
166
  console.log('verifyClientUser/user', user)
36
167
  // return false //測試無法登入
37
168
  console.log('於生產環境時得加入限制瀏覽器使用者身份機制')
38
169
  return user.isAdmin === 'y' //測試僅系統管理者使用
39
170
  console.log('verifyAppUser/user', user)
40
171
  // return false //測試無法登入
41
172
  console.log('於生產環境時得加入限制應用程式使用者身份機制')
42
173
  return user.isAdmin === 'y' //測試僅系統管理者使用
43
174
  console.log(err)
175
+
176
+
177
+
178
+
179
+ <h5 class="h5-parameters">Parameters:</h5>
180
+
181
+
182
+ <table class="params">
183
+ <thead>
184
+ <tr>
185
+
186
+ <th>Name</th>
187
+
188
+
189
+ <th>Type</th>
190
+
191
+
192
+ <th>Attributes</th>
193
+
194
+
195
+
196
+ <th>Default</th>
197
+
198
+
199
+ <th class="last">Description</th>
200
+ </tr>
201
+ </thead>
202
+
203
+ <tbody>
204
+
205
+
206
+ <tr>
207
+
208
+ <td class="name"><code>WOrm</code></td>
209
+
210
+
211
+ <td class="type">
212
+
213
+
214
+ <span class="param-type">function</span>
215
+
216
+
217
+
218
+
219
+ </td>
220
+
221
+
222
+ <td class="attributes">
223
+
224
+
225
+
226
+
227
+
228
+ </td>
229
+
230
+
231
+
232
+ <td class="default">
233
+
234
+ </td>
235
+
236
+
237
+ <td class="description last"><p>輸入資料庫ORM函數</p></td>
238
+ </tr>
239
+
240
+
241
+
242
+ <tr>
243
+
244
+ <td class="name"><code>url</code></td>
245
+
246
+
247
+ <td class="type">
248
+
249
+
250
+ <span class="param-type">String</span>
251
+
252
+
253
+
254
+
255
+ </td>
256
+
257
+
258
+ <td class="attributes">
259
+
260
+
261
+
262
+
263
+
264
+ </td>
265
+
266
+
267
+
268
+ <td class="default">
269
+
270
+ </td>
271
+
272
+
273
+ <td class="description last"><p>輸入資料庫連線字串,例如w-orm-lmdb為'./db',或w-orm-mongodb為'mongodb://username:password@$127.0.0.1:27017'</p></td>
274
+ </tr>
275
+
276
+
277
+
278
+ <tr>
279
+
280
+ <td class="name"><code>db</code></td>
281
+
282
+
283
+ <td class="type">
284
+
285
+
286
+ <span class="param-type">String</span>
287
+
288
+
289
+
290
+
291
+ </td>
292
+
293
+
294
+ <td class="attributes">
295
+
296
+
297
+
298
+
299
+
300
+ </td>
301
+
302
+
303
+
304
+ <td class="default">
305
+
306
+ </td>
307
+
308
+
309
+ <td class="description last"><p>輸入資料庫名稱字串</p></td>
310
+ </tr>
311
+
312
+
313
+
314
+ <tr>
315
+
316
+ <td class="name"><code>getUserByToken</code></td>
317
+
318
+
319
+ <td class="type">
320
+
321
+
322
+ <span class="param-type">function</span>
323
+
324
+
325
+
326
+
327
+ </td>
328
+
329
+
330
+ <td class="attributes">
331
+
332
+
333
+
334
+
335
+
336
+ </td>
337
+
338
+
339
+
340
+ <td class="default">
341
+
342
+ </td>
343
+
344
+
345
+ <td class="description last"><p>輸入處理函數,函數會傳入使用者token,通過此函數處理後並回傳使用者資訊物件,並至少須提供'id'、'email'、'name'、'isAdmin'欄位,且'isAdmin'限輸入'y'或'n',且輸入'y'時會複寫權限系統該使用者之'isAdmin'欄位值</p></td>
346
+ </tr>
347
+
348
+
349
+
350
+ <tr>
351
+
352
+ <td class="name"><code>verifyClientUser</code></td>
353
+
354
+
355
+ <td class="type">
356
+
357
+
358
+ <span class="param-type">function</span>
359
+
360
+
361
+
362
+
363
+ </td>
364
+
365
+
366
+ <td class="attributes">
367
+
368
+
369
+
370
+
371
+
372
+ </td>
373
+
374
+
375
+
376
+ <td class="default">
377
+
378
+ </td>
379
+
380
+
381
+ <td class="description last"><p>輸入驗證瀏覽使用者身份之處理函數,函數會傳入使用者資訊物件,通過此函數識別後回傳布林值,允許使用者回傳true,反之回傳false</p></td>
382
+ </tr>
383
+
384
+
385
+
386
+ <tr>
387
+
388
+ <td class="name"><code>verifyAppUser</code></td>
389
+
390
+
391
+ <td class="type">
392
+
393
+
394
+ <span class="param-type">function</span>
395
+
396
+
397
+
398
+
399
+ </td>
400
+
401
+
402
+ <td class="attributes">
403
+
404
+
405
+
406
+
407
+
408
+ </td>
409
+
410
+
411
+
412
+ <td class="default">
413
+
414
+ </td>
415
+
416
+
417
+ <td class="description last"><p>輸入驗證應用程序使用者身份之處理函數,函數會傳入使用者資訊物件,通過此函數識別後回傳布林值,允許使用者回傳true,反之回傳false</p></td>
418
+ </tr>
419
+
420
+
421
+
422
+ <tr>
423
+
424
+ <td class="name"><code>opt</code></td>
425
+
426
+
427
+ <td class="type">
428
+
429
+
430
+ <span class="param-type">Object</span>
431
+
432
+
433
+
434
+
435
+ </td>
436
+
437
+
438
+ <td class="attributes">
439
+
440
+ &lt;optional><br>
441
+
442
+
443
+
444
+
445
+
446
+ </td>
447
+
448
+
449
+
450
+ <td class="default">
451
+
452
+ <code>{}</code>
453
+
454
+ </td>
455
+
456
+
457
+ <td class="description last"><p>輸入設定物件,預設{}</p>
458
+ <h6>Properties</h6>
459
+
460
+
461
+ <table class="params">
462
+ <thead>
463
+ <tr>
464
+
465
+ <th>Name</th>
466
+
467
+
468
+ <th>Type</th>
469
+
470
+
471
+ <th>Attributes</th>
472
+
473
+
474
+
475
+ <th>Default</th>
476
+
477
+
478
+ <th class="last">Description</th>
479
+ </tr>
480
+ </thead>
481
+
482
+ <tbody>
483
+
484
+
485
+ <tr>
486
+
487
+ <td class="name"><code>serverPort</code></td>
488
+
489
+
490
+ <td class="type">
491
+
492
+
493
+ <span class="param-type">Integer</span>
494
+
495
+
496
+
497
+
498
+ </td>
499
+
500
+
501
+ <td class="attributes">
502
+
503
+ &lt;optional><br>
504
+
505
+
506
+
507
+
508
+
509
+ </td>
510
+
511
+
512
+
513
+ <td class="default">
514
+
515
+ <code>11005</code>
516
+
517
+ </td>
518
+
519
+
520
+ <td class="description last"><p>輸入伺服器通訊port,預設11005</p></td>
521
+ </tr>
522
+
523
+
524
+
525
+ <tr>
526
+
527
+ <td class="name"><code>useCheckUser</code></td>
528
+
529
+
530
+ <td class="type">
531
+
532
+
533
+ <span class="param-type">Boolean</span>
534
+
535
+
536
+
537
+
538
+ </td>
539
+
540
+
541
+ <td class="attributes">
542
+
543
+ &lt;optional><br>
544
+
545
+
546
+
547
+
548
+
549
+ </td>
550
+
551
+
552
+
553
+ <td class="default">
554
+
555
+ <code>false</code>
556
+
557
+ </td>
558
+
559
+
560
+ <td class="description last"><p>輸入是否檢查使用者資訊布林值,預設false</p></td>
561
+ </tr>
562
+
563
+
564
+
565
+ <tr>
566
+
567
+ <td class="name"><code>getUserById</code></td>
568
+
569
+
570
+ <td class="type">
571
+
572
+
573
+ <span class="param-type">function</span>
574
+
575
+
576
+
577
+
578
+ </td>
579
+
580
+
581
+ <td class="attributes">
582
+
583
+ &lt;optional><br>
584
+
585
+
586
+
587
+
588
+
589
+ </td>
590
+
591
+
592
+
593
+ <td class="default">
594
+
595
+ <code>null</code>
596
+
597
+ </td>
598
+
599
+
600
+ <td class="description last"><p>輸入當useCheckUser=true時依照使用者ID取得使用者資訊物件函數,預設null</p></td>
601
+ </tr>
602
+
603
+
604
+
605
+ <tr>
606
+
607
+ <td class="name"><code>useExcludeWhenNotAdmin</code></td>
608
+
609
+
610
+ <td class="type">
611
+
612
+
613
+ <span class="param-type">Boolean</span>
614
+
615
+
616
+
617
+
618
+ </td>
619
+
620
+
621
+ <td class="attributes">
622
+
623
+ &lt;optional><br>
624
+
625
+
626
+
627
+
628
+
629
+ </td>
630
+
631
+
632
+
633
+ <td class="default">
634
+
635
+ <code>false</code>
636
+
637
+ </td>
638
+
639
+
640
+ <td class="description last"><p>輸入使用ORM的select方法時是否自動刪除數據內isActive欄位之布林值,預設false</p></td>
641
+ </tr>
642
+
643
+
644
+
645
+ <tr>
646
+
647
+ <td class="name"><code>webName</code></td>
648
+
649
+
650
+ <td class="type">
651
+
652
+
653
+ <span class="param-type">Object</span>
654
+
655
+
656
+
657
+
658
+ </td>
659
+
660
+
661
+ <td class="attributes">
662
+
663
+ &lt;optional><br>
664
+
665
+
666
+
667
+
668
+
669
+ </td>
670
+
671
+
672
+
673
+ <td class="default">
674
+
675
+ <code>{}</code>
676
+
677
+ </td>
678
+
679
+
680
+ <td class="description last"><p>輸入站台名稱物件,至少包含語系eng與cht鍵的名稱,預設{}</p></td>
681
+ </tr>
682
+
683
+
684
+
685
+ <tr>
686
+
687
+ <td class="name"><code>webDescription</code></td>
688
+
689
+
690
+ <td class="type">
691
+
692
+
693
+ <span class="param-type">Object</span>
694
+
695
+
696
+
697
+
698
+ </td>
699
+
700
+
701
+ <td class="attributes">
702
+
703
+ &lt;optional><br>
704
+
705
+
706
+
707
+
708
+
709
+ </td>
710
+
711
+
712
+
713
+ <td class="default">
714
+
715
+ <code>{}</code>
716
+
717
+ </td>
718
+
719
+
720
+ <td class="description last"><p>輸入站台描述物件,至少包含語系eng與cht鍵的名稱,預設{}</p></td>
721
+ </tr>
722
+
723
+
724
+
725
+ <tr>
726
+
727
+ <td class="name"><code>webLogo</code></td>
728
+
729
+
730
+ <td class="type">
731
+
732
+
733
+ <span class="param-type">String</span>
734
+
735
+
736
+
737
+
738
+ </td>
739
+
740
+
741
+ <td class="attributes">
742
+
743
+ &lt;optional><br>
744
+
745
+
746
+
747
+
748
+
749
+ </td>
750
+
751
+
752
+
753
+ <td class="default">
754
+
755
+ <code>''</code>
756
+
757
+ </td>
758
+
759
+
760
+ <td class="description last"><p>輸入站台logo字串,採base64格式,預設''</p></td>
761
+ </tr>
762
+
763
+
764
+
765
+ <tr>
766
+
767
+ <td class="name"><code>subfolder</code></td>
768
+
769
+
770
+ <td class="type">
771
+
772
+
773
+ <span class="param-type">String</span>
774
+
775
+
776
+
777
+
778
+ </td>
779
+
780
+
781
+ <td class="attributes">
782
+
783
+ &lt;optional><br>
784
+
785
+
786
+
787
+
788
+
789
+ </td>
790
+
791
+
792
+
793
+ <td class="default">
794
+
795
+ <code>''</code>
796
+
797
+ </td>
798
+
799
+
800
+ <td class="description last"><p>輸入站台所在子目錄字串,提供站台位於內網採反向代理進行服務時,故需支援位於子目錄情形,預設''</p></td>
801
+ </tr>
802
+
803
+
804
+
805
+ <tr>
806
+
807
+ <td class="name"><code>urlRedirect</code></td>
808
+
809
+
810
+ <td class="type">
811
+
812
+
813
+ <span class="param-type">String</span>
814
+
815
+
816
+
817
+
818
+ </td>
819
+
820
+
821
+ <td class="attributes">
822
+
823
+ &lt;optional><br>
824
+
825
+
826
+
827
+
828
+
829
+ </td>
830
+
831
+
832
+
833
+ <td class="default">
834
+
835
+ <code>''</code>
836
+
837
+ </td>
838
+
839
+
840
+ <td class="description last"><p>輸入錯誤時自動轉址字串,提供站台例如無法登入或驗證失敗時須自動轉址,預設''</p></td>
841
+ </tr>
842
+
843
+
844
+ </tbody>
845
+ </table>
846
+
847
+ </td>
848
+ </tr>
849
+
850
+
851
+ </tbody>
852
+ </table>
853
+
854
+
855
+
856
+
857
+
858
+
859
+
860
+
861
+
862
+
863
+
864
+
865
+
866
+
867
+
868
+
869
+ <h5 class="h5-returns">Returns:</h5>
870
+
871
+
872
+ <div class="param-desc">
873
+ <p>回傳物件,其內server為hapi伺服器實體,wsrv為w-converhp的伺服器事件物件,wsds為w-serv-webdata的伺服器事件物件,可監聽error事件</p>
874
+ </div>
875
+
876
+
877
+
878
+ <dl class="param-type">
879
+ <dt>
880
+ Type
881
+ </dt>
882
+ <dd>
883
+
884
+ <span class="param-type">Object</span>
885
+
886
+
887
+
888
+ </dd>
889
+ </dl>
890
+
891
+
892
+
893
+
894
+
895
+
896
+ </div>
897
+
898
+
899
+
900
+
901
+
902
+
903
+
904
+
905
+
906
+
907
+
908
+
909
+
910
+
911
+
912
+
913
+
914
+
915
+
916
+
917
+
918
+ </article>
919
+
920
+ </section>
921
+
922
+
923
+
924
+
925
+
926
+
927
+ </div>
928
+
929
+ <br class="clear">
930
+
931
+ <footer>
932
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Mon Jun 22 2026 15:42:09 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
933
+ </footer>
934
+
935
+ <script>prettyPrint();</script>
936
+ <script src="scripts/polyfill.js"></script>
937
+ <script src="scripts/linenumber.js"></script>
938
+
939
+
940
+
941
+ </body>
942
+ </html>