w-web-api 1.0.4 → 1.0.5

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.
package/docs/WWebApi.html CHANGED
@@ -71,7 +71,7 @@
71
71
 
72
72
  <dt class="tag-source">Source:</dt>
73
73
  <dd class="tag-source"><ul class="dummy"><li>
74
- <a href="WWebApi.mjs.html">WWebApi.mjs</a>, <a href="WWebApi.mjs.html#line66">line 66</a>
74
+ <a href="WWebApi.mjs.html">WWebApi.mjs</a>, <a href="WWebApi.mjs.html#line64">line 64</a>
75
75
  </li></ul></dd>
76
76
 
77
77
 
@@ -124,7 +124,7 @@
124
124
 
125
125
  <h5>Example</h5>
126
126
 
127
- <pre class="prettyprint"><code>import WOrm from 'w-orm-mongodb/src/WOrmMongodb.mjs' //自行選擇引用ORM, 使用Mongodb測試
128
127
  getUserById: null,
129
128
  bCheckUser: false,
130
129
  bExcludeWhenNotAdmin: false,
131
130
  serverPort: 11005,
132
131
  webName: {
133
132
  'eng': 'API Service',
134
133
  'cht': 'API管理系統'
135
134
  },
136
135
  .catch((err) => {
137
136
  console.log(err)
138
137
  })</code></pre>
138
+ <pre class="prettyprint"><code>import WOrm from 'w-orm-mongodb/src/WOrmMongodb.mjs' //自行選擇引用ORM, 使用Mongodb測試
139
139
  getUserById: null,
140
140
  bCheckUser: false,
141
141
  bExcludeWhenNotAdmin: false,
142
142
  serverPort: 11005,
143
143
  webName: {
144
144
  'eng': 'API Service',
145
145
  'cht': 'API管理系統'
146
146
  },
147
147
  .catch((err) => {
148
148
  console.log(err)
149
149
  })</code></pre>
150
150
 
151
151
 
152
152
 
@@ -604,7 +604,7 @@
604
604
  <br class="clear">
605
605
 
606
606
  <footer>
607
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Apr 14 2022 13:52:10 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
607
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Apr 14 2022 14:36:03 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
608
608
  </footer>
609
609
 
610
610
  <script>prettyPrint();</script>
@@ -78,7 +78,6 @@ import WServOrm from 'w-serv-orm/src/WServOrm.mjs'
78
78
  * import getSettings from './server/getSettings.mjs'
79
79
  * import WWebApi from './server/WWebApi.mjs'
80
80
  *
81
- *
82
81
  * //st
83
82
  * let st = getSettings()
84
83
  *
@@ -105,7 +104,6 @@ import WServOrm from 'w-serv-orm/src/WServOrm.mjs'
105
104
  * console.log(err)
106
105
  * })
107
106
  *
108
- *
109
107
  */
110
108
  async function WWebApi(url, db, WOrm, opt = {}) {
111
109
 
@@ -247,6 +245,7 @@ async function WWebApi(url, db, WOrm, opt = {}) {
247
245
  if (fsIsFolder(npmPathStaticFiles)) {
248
246
  pathStaticFiles = npmPathStaticFiles
249
247
  }
248
+ // console.log('pathStaticFiles', pathStaticFiles)
250
249
 
251
250
 
252
251
  //apis
@@ -347,6 +346,7 @@ async function WWebApi(url, db, WOrm, opt = {}) {
347
346
  },
348
347
  hookBefores: null,
349
348
  hookAfters: null,
349
+ fnTableTags: 'tableTags-web-api.json',
350
350
  })
351
351
 
352
352
 
@@ -369,7 +369,7 @@ export default WWebApi
369
369
  <br class="clear">
370
370
 
371
371
  <footer>
372
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Apr 14 2022 13:52:10 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
372
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Apr 14 2022 14:36:02 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
373
373
  </footer>
374
374
 
375
375
  <script>prettyPrint();</script>
package/docs/index.html CHANGED
@@ -68,7 +68,7 @@
68
68
  <br class="clear">
69
69
 
70
70
  <footer>
71
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Apr 14 2022 13:52:10 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
71
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Apr 14 2022 14:36:03 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
72
72
  </footer>
73
73
 
74
74
  <script>prettyPrint();</script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "w-web-api",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "main": "dist/w-web-api.umd.js",
5
5
  "dependencies": {
6
6
  "@mdi/js": "^6.6.96",
@@ -9,7 +9,7 @@
9
9
  "w-component-vue": "^2.2.6",
10
10
  "w-data-collector": "^1.0.13",
11
11
  "w-orm-mongodb": "^1.1.26",
12
- "w-serv-hapi": "^1.0.5",
12
+ "w-serv-hapi": "^1.0.6",
13
13
  "w-serv-orm": "^1.0.0",
14
14
  "wsemi": "^1.6.55"
15
15
  },
@@ -66,16 +66,9 @@
66
66
  "url": "https://github.com/yuda-lyu/w-web-api"
67
67
  },
68
68
  "keywords": [
69
- "lodash",
70
- "color",
71
- "crypto",
72
- "fuzzy",
73
- "xss",
74
- "xlsx",
75
- "tool",
76
- "package ",
77
- "browser",
78
- "developer"
69
+ "web",
70
+ "service",
71
+ "api"
79
72
  ],
80
73
  "author": "yuda-lyu(semisphere)",
81
74
  "license": "MIT"
@@ -34,7 +34,6 @@ import WServOrm from 'w-serv-orm/src/WServOrm.mjs'
34
34
  * import getSettings from './server/getSettings.mjs'
35
35
  * import WWebApi from './server/WWebApi.mjs'
36
36
  *
37
- *
38
37
  * //st
39
38
  * let st = getSettings()
40
39
  *
@@ -61,7 +60,6 @@ import WServOrm from 'w-serv-orm/src/WServOrm.mjs'
61
60
  * console.log(err)
62
61
  * })
63
62
  *
64
- *
65
63
  */
66
64
  async function WWebApi(url, db, WOrm, opt = {}) {
67
65
 
@@ -203,6 +201,7 @@ async function WWebApi(url, db, WOrm, opt = {}) {
203
201
  if (fsIsFolder(npmPathStaticFiles)) {
204
202
  pathStaticFiles = npmPathStaticFiles
205
203
  }
204
+ // console.log('pathStaticFiles', pathStaticFiles)
206
205
 
207
206
 
208
207
  //apis
@@ -303,6 +302,7 @@ async function WWebApi(url, db, WOrm, opt = {}) {
303
302
  },
304
303
  hookBefores: null,
305
304
  hookAfters: null,
305
+ fnTableTags: 'tableTags-web-api.json',
306
306
  })
307
307
 
308
308
 
@@ -0,0 +1 @@
1
+ {"apis":"c36gPY"}
@@ -1,12 +1,14 @@
1
- import rollupFiles from 'w-package-tools/src/rollupFiles.mjs'
1
+ // import rollupFiles from 'w-package-tools/src/rollupFiles.mjs'
2
+ import rollupFile from 'w-package-tools/src/rollupFile.mjs' //因只有1檔案且不需刪除dsit故改用rollupFile
2
3
 
3
4
 
4
5
  let fdSrc = './server' //'./src'
5
6
  let fdTar = './dist'
6
7
 
7
8
 
8
- rollupFiles({
9
- fns: ['WWebApi.mjs'],
9
+ rollupFile({
10
+ // fns: ['WWebApi.mjs'],
11
+ fn: 'WWebApi.mjs',
10
12
  fdSrc,
11
13
  fdTar,
12
14
  nameDistType: 'kebabCase',
package/tableTags.json DELETED
@@ -1 +0,0 @@
1
- {"apis":"gertCD"}