w-orm-mongodb 1.1.28 → 1.1.30

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.
@@ -429,7 +429,7 @@
429
429
 
430
430
  <dt class="tag-source">Source:</dt>
431
431
  <dd class="tag-source"><ul class="dummy"><li>
432
- <a href="WOrmMongodb.mjs.html">WOrmMongodb.mjs</a>, <a href="WOrmMongodb.mjs.html#line306">line 306</a>
432
+ <a href="WOrmMongodb.mjs.html">WOrmMongodb.mjs</a>, <a href="WOrmMongodb.mjs.html#line309">line 309</a>
433
433
  </li></ul></dd>
434
434
 
435
435
 
@@ -590,7 +590,7 @@
590
590
 
591
591
  <dt class="tag-source">Source:</dt>
592
592
  <dd class="tag-source"><ul class="dummy"><li>
593
- <a href="WOrmMongodb.mjs.html">WOrmMongodb.mjs</a>, <a href="WOrmMongodb.mjs.html#line374">line 374</a>
593
+ <a href="WOrmMongodb.mjs.html">WOrmMongodb.mjs</a>, <a href="WOrmMongodb.mjs.html#line378">line 378</a>
594
594
  </li></ul></dd>
595
595
 
596
596
 
@@ -768,7 +768,7 @@
768
768
 
769
769
  <dt class="tag-source">Source:</dt>
770
770
  <dd class="tag-source"><ul class="dummy"><li>
771
- <a href="WOrmMongodb.mjs.html">WOrmMongodb.mjs</a>, <a href="WOrmMongodb.mjs.html#line728">line 728</a>
771
+ <a href="WOrmMongodb.mjs.html">WOrmMongodb.mjs</a>, <a href="WOrmMongodb.mjs.html#line736">line 736</a>
772
772
  </li></ul></dd>
773
773
 
774
774
 
@@ -946,7 +946,7 @@
946
946
 
947
947
  <dt class="tag-source">Source:</dt>
948
948
  <dd class="tag-source"><ul class="dummy"><li>
949
- <a href="WOrmMongodb.mjs.html">WOrmMongodb.mjs</a>, <a href="WOrmMongodb.mjs.html#line622">line 622</a>
949
+ <a href="WOrmMongodb.mjs.html">WOrmMongodb.mjs</a>, <a href="WOrmMongodb.mjs.html#line629">line 629</a>
950
950
  </li></ul></dd>
951
951
 
952
952
 
@@ -1104,7 +1104,7 @@
1104
1104
 
1105
1105
  <dt class="tag-source">Source:</dt>
1106
1106
  <dd class="tag-source"><ul class="dummy"><li>
1107
- <a href="WOrmMongodb.mjs.html">WOrmMongodb.mjs</a>, <a href="WOrmMongodb.mjs.html#line114">line 114</a>
1107
+ <a href="WOrmMongodb.mjs.html">WOrmMongodb.mjs</a>, <a href="WOrmMongodb.mjs.html#line115">line 115</a>
1108
1108
  </li></ul></dd>
1109
1109
 
1110
1110
 
@@ -1265,7 +1265,7 @@
1265
1265
 
1266
1266
  <dt class="tag-source">Source:</dt>
1267
1267
  <dd class="tag-source"><ul class="dummy"><li>
1268
- <a href="WOrmMongodb.mjs.html">WOrmMongodb.mjs</a>, <a href="WOrmMongodb.mjs.html#line425">line 425</a>
1268
+ <a href="WOrmMongodb.mjs.html">WOrmMongodb.mjs</a>, <a href="WOrmMongodb.mjs.html#line430">line 430</a>
1269
1269
  </li></ul></dd>
1270
1270
 
1271
1271
 
@@ -1423,7 +1423,7 @@
1423
1423
 
1424
1424
  <dt class="tag-source">Source:</dt>
1425
1425
  <dd class="tag-source"><ul class="dummy"><li>
1426
- <a href="WOrmMongodb.mjs.html">WOrmMongodb.mjs</a>, <a href="WOrmMongodb.mjs.html#line196">line 196</a>
1426
+ <a href="WOrmMongodb.mjs.html">WOrmMongodb.mjs</a>, <a href="WOrmMongodb.mjs.html#line198">line 198</a>
1427
1427
  </li></ul></dd>
1428
1428
 
1429
1429
 
@@ -1928,7 +1928,7 @@
1928
1928
 
1929
1929
  <dt class="tag-source">Source:</dt>
1930
1930
  <dd class="tag-source"><ul class="dummy"><li>
1931
- <a href="WOrmMongodb.mjs.html">WOrmMongodb.mjs</a>, <a href="WOrmMongodb.mjs.html#line511">line 511</a>
1931
+ <a href="WOrmMongodb.mjs.html">WOrmMongodb.mjs</a>, <a href="WOrmMongodb.mjs.html#line517">line 517</a>
1932
1932
  </li></ul></dd>
1933
1933
 
1934
1934
 
@@ -2085,7 +2085,7 @@
2085
2085
  <br class="clear">
2086
2086
 
2087
2087
  <footer>
2088
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 30 2023 11:53:34 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
2088
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Wed Mar 20 2024 16:44:25 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
2089
2089
  </footer>
2090
2090
 
2091
2091
  <script>prettyPrint();</script>
@@ -48,22 +48,22 @@
48
48
  <pre class="prettyprint source linenums"><code>import events from 'events'
49
49
  import mongodb from 'mongodb'
50
50
  import stream from 'stream'
51
- import cloneDeep from 'lodash/cloneDeep'
52
- import get from 'lodash/get'
53
- import map from 'lodash/map'
54
- import omit from 'lodash/omit'
55
- import size from 'lodash/size'
51
+ import cloneDeep from 'lodash-es/cloneDeep'
52
+ import get from 'lodash-es/get'
53
+ import map from 'lodash-es/map'
54
+ import omit from 'lodash-es/omit'
55
+ import size from 'lodash-es/size'
56
56
  import genPm from 'wsemi/src/genPm.mjs'
57
57
  import genID from 'wsemi/src/genID.mjs'
58
58
  import isarr from 'wsemi/src/isarr.mjs'
59
59
  import pmSeries from 'wsemi/src/pmSeries.mjs'
60
60
 
61
61
 
62
- //optMGConn
63
- let optMGConn = {
64
- useNewUrlParser: true,
65
- useUnifiedTopology: true
66
- }
62
+ // //optMGConn
63
+ // let optMGConn = {
64
+ // useNewUrlParser: true,
65
+ // useUnifiedTopology: true
66
+ // }
67
67
 
68
68
 
69
69
  /**
@@ -111,7 +111,8 @@ function WOrmMongodb(opt = {}) {
111
111
 
112
112
  //client
113
113
  // let client = await MongoClient.connect(opt.url, optMGConn)
114
- let client = new MongoClient(opt.url, optMGConn)
114
+ // let client = new MongoClient(opt.url, optMGConn)
115
+ let client = new MongoClient(opt.url)
115
116
 
116
117
  //res
117
118
  let res = null
@@ -166,7 +167,8 @@ function WOrmMongodb(opt = {}) {
166
167
 
167
168
  //client
168
169
  // let client = await MongoClient.connect(opt.url, optMGConn)
169
- let client = new MongoClient(opt.url, optMGConn)
170
+ // let client = new MongoClient(opt.url, optMGConn)
171
+ let client = new MongoClient(opt.url)
170
172
 
171
173
  //res
172
174
  let res = null
@@ -252,7 +254,8 @@ function WOrmMongodb(opt = {}) {
252
254
 
253
255
  //client
254
256
  // let client = await MongoClient.connect(opt.url, optMGConn)
255
- let client = new MongoClient(opt.url, optMGConn)
257
+ // let client = new MongoClient(opt.url, optMGConn)
258
+ let client = new MongoClient(opt.url)
256
259
 
257
260
  //res
258
261
  let res = null
@@ -283,7 +286,7 @@ function WOrmMongodb(opt = {}) {
283
286
  let rest = null
284
287
 
285
288
  //oper
286
- rest = await collection[oper]({ id: v.id }, { $set: v },)
289
+ rest = await collection[oper]({ id: v.id }, { $set: v })
287
290
 
288
291
  //lastErrorObject for findOneAndUpdate
289
292
  if (rest.lastErrorObject) {
@@ -358,7 +361,8 @@ function WOrmMongodb(opt = {}) {
358
361
 
359
362
  //client
360
363
  // let client = await MongoClient.connect(opt.url, optMGConn)
361
- let client = new MongoClient(opt.url, optMGConn)
364
+ // let client = new MongoClient(opt.url, optMGConn)
365
+ let client = new MongoClient(opt.url)
362
366
 
363
367
  //res
364
368
  let res = null
@@ -423,7 +427,8 @@ function WOrmMongodb(opt = {}) {
423
427
 
424
428
  //client
425
429
  // let client = await MongoClient.connect(opt.url, optMGConn)
426
- let client = new MongoClient(opt.url, optMGConn)
430
+ // let client = new MongoClient(opt.url, optMGConn)
431
+ let client = new MongoClient(opt.url)
427
432
 
428
433
  //res
429
434
  let res = null
@@ -480,7 +485,8 @@ function WOrmMongodb(opt = {}) {
480
485
 
481
486
  //client
482
487
  // let client = await MongoClient.connect(opt.url, optMGConn)
483
- let client = new MongoClient(opt.url, optMGConn)
488
+ // let client = new MongoClient(opt.url, optMGConn)
489
+ let client = new MongoClient(opt.url)
484
490
 
485
491
  //core
486
492
  let core = async (id, buf) => {
@@ -560,7 +566,8 @@ function WOrmMongodb(opt = {}) {
560
566
 
561
567
  //client
562
568
  // let client = await MongoClient.connect(opt.url, optMGConn)
563
- let client = new MongoClient(opt.url, optMGConn)
569
+ // let client = new MongoClient(opt.url, optMGConn)
570
+ let client = new MongoClient(opt.url)
564
571
 
565
572
  //core
566
573
  let core = async (id) => {
@@ -671,7 +678,8 @@ function WOrmMongodb(opt = {}) {
671
678
 
672
679
  //client
673
680
  // let client = await MongoClient.connect(opt.url, optMGConn)
674
- let client = new MongoClient(opt.url, optMGConn)
681
+ // let client = new MongoClient(opt.url, optMGConn)
682
+ let client = new MongoClient(opt.url)
675
683
 
676
684
  //res
677
685
  let res = null
@@ -777,7 +785,8 @@ function WOrmMongodb(opt = {}) {
777
785
 
778
786
  //client
779
787
  // let client = await MongoClient.connect(opt.url, optMGConn)
780
- let client = new MongoClient(opt.url, optMGConn)
788
+ // let client = new MongoClient(opt.url, optMGConn)
789
+ let client = new MongoClient(opt.url)
781
790
 
782
791
  //res
783
792
  let res = null
@@ -863,7 +872,7 @@ export default WOrmMongodb
863
872
  <br class="clear">
864
873
 
865
874
  <footer>
866
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 30 2023 11:53:34 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
875
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Wed Mar 20 2024 16:44:25 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
867
876
  </footer>
868
877
 
869
878
  <script>prettyPrint();</script>
package/docs/index.html CHANGED
@@ -71,7 +71,7 @@
71
71
  <br class="clear">
72
72
 
73
73
  <footer>
74
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 30 2023 11:53:34 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
74
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Wed Mar 20 2024 16:44:25 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
75
75
  </footer>
76
76
 
77
77
  <script>prettyPrint();</script>
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "w-orm-mongodb",
3
- "version": "1.1.28",
3
+ "version": "1.1.30",
4
4
  "main": "dist/w-orm-mongodb.umd.js",
5
5
  "dependencies": {
6
- "mongodb": "^5.1.0",
6
+ "mongodb": "^6.5.0",
7
7
  "saslprep": "^1.0.3",
8
- "lodash": "^4.17.21",
9
- "wsemi": "^1.7.1"
8
+ "lodash-es": "^4.17.21",
9
+ "wsemi": "^1.7.47"
10
10
  },
11
11
  "devDependencies": {
12
- "w-package-tools": "^1.0.68"
12
+ "w-package-tools": "^1.0.73"
13
13
  },
14
14
  "scripts": {
15
15
  "test": "mocha --parallel --timeout 60000 --experimental-modules --es-module-specifier-resolution=node",
@@ -1,22 +1,22 @@
1
1
  import events from 'events'
2
2
  import mongodb from 'mongodb'
3
3
  import stream from 'stream'
4
- import cloneDeep from 'lodash/cloneDeep'
5
- import get from 'lodash/get'
6
- import map from 'lodash/map'
7
- import omit from 'lodash/omit'
8
- import size from 'lodash/size'
4
+ import cloneDeep from 'lodash-es/cloneDeep'
5
+ import get from 'lodash-es/get'
6
+ import map from 'lodash-es/map'
7
+ import omit from 'lodash-es/omit'
8
+ import size from 'lodash-es/size'
9
9
  import genPm from 'wsemi/src/genPm.mjs'
10
10
  import genID from 'wsemi/src/genID.mjs'
11
11
  import isarr from 'wsemi/src/isarr.mjs'
12
12
  import pmSeries from 'wsemi/src/pmSeries.mjs'
13
13
 
14
14
 
15
- //optMGConn
16
- let optMGConn = {
17
- useNewUrlParser: true,
18
- useUnifiedTopology: true
19
- }
15
+ // //optMGConn
16
+ // let optMGConn = {
17
+ // useNewUrlParser: true,
18
+ // useUnifiedTopology: true
19
+ // }
20
20
 
21
21
 
22
22
  /**
@@ -64,7 +64,8 @@ function WOrmMongodb(opt = {}) {
64
64
 
65
65
  //client
66
66
  // let client = await MongoClient.connect(opt.url, optMGConn)
67
- let client = new MongoClient(opt.url, optMGConn)
67
+ // let client = new MongoClient(opt.url, optMGConn)
68
+ let client = new MongoClient(opt.url)
68
69
 
69
70
  //res
70
71
  let res = null
@@ -119,7 +120,8 @@ function WOrmMongodb(opt = {}) {
119
120
 
120
121
  //client
121
122
  // let client = await MongoClient.connect(opt.url, optMGConn)
122
- let client = new MongoClient(opt.url, optMGConn)
123
+ // let client = new MongoClient(opt.url, optMGConn)
124
+ let client = new MongoClient(opt.url)
123
125
 
124
126
  //res
125
127
  let res = null
@@ -205,7 +207,8 @@ function WOrmMongodb(opt = {}) {
205
207
 
206
208
  //client
207
209
  // let client = await MongoClient.connect(opt.url, optMGConn)
208
- let client = new MongoClient(opt.url, optMGConn)
210
+ // let client = new MongoClient(opt.url, optMGConn)
211
+ let client = new MongoClient(opt.url)
209
212
 
210
213
  //res
211
214
  let res = null
@@ -236,7 +239,7 @@ function WOrmMongodb(opt = {}) {
236
239
  let rest = null
237
240
 
238
241
  //oper
239
- rest = await collection[oper]({ id: v.id }, { $set: v },)
242
+ rest = await collection[oper]({ id: v.id }, { $set: v })
240
243
 
241
244
  //lastErrorObject for findOneAndUpdate
242
245
  if (rest.lastErrorObject) {
@@ -311,7 +314,8 @@ function WOrmMongodb(opt = {}) {
311
314
 
312
315
  //client
313
316
  // let client = await MongoClient.connect(opt.url, optMGConn)
314
- let client = new MongoClient(opt.url, optMGConn)
317
+ // let client = new MongoClient(opt.url, optMGConn)
318
+ let client = new MongoClient(opt.url)
315
319
 
316
320
  //res
317
321
  let res = null
@@ -376,7 +380,8 @@ function WOrmMongodb(opt = {}) {
376
380
 
377
381
  //client
378
382
  // let client = await MongoClient.connect(opt.url, optMGConn)
379
- let client = new MongoClient(opt.url, optMGConn)
383
+ // let client = new MongoClient(opt.url, optMGConn)
384
+ let client = new MongoClient(opt.url)
380
385
 
381
386
  //res
382
387
  let res = null
@@ -433,7 +438,8 @@ function WOrmMongodb(opt = {}) {
433
438
 
434
439
  //client
435
440
  // let client = await MongoClient.connect(opt.url, optMGConn)
436
- let client = new MongoClient(opt.url, optMGConn)
441
+ // let client = new MongoClient(opt.url, optMGConn)
442
+ let client = new MongoClient(opt.url)
437
443
 
438
444
  //core
439
445
  let core = async (id, buf) => {
@@ -513,7 +519,8 @@ function WOrmMongodb(opt = {}) {
513
519
 
514
520
  //client
515
521
  // let client = await MongoClient.connect(opt.url, optMGConn)
516
- let client = new MongoClient(opt.url, optMGConn)
522
+ // let client = new MongoClient(opt.url, optMGConn)
523
+ let client = new MongoClient(opt.url)
517
524
 
518
525
  //core
519
526
  let core = async (id) => {
@@ -624,7 +631,8 @@ function WOrmMongodb(opt = {}) {
624
631
 
625
632
  //client
626
633
  // let client = await MongoClient.connect(opt.url, optMGConn)
627
- let client = new MongoClient(opt.url, optMGConn)
634
+ // let client = new MongoClient(opt.url, optMGConn)
635
+ let client = new MongoClient(opt.url)
628
636
 
629
637
  //res
630
638
  let res = null
@@ -730,7 +738,8 @@ function WOrmMongodb(opt = {}) {
730
738
 
731
739
  //client
732
740
  // let client = await MongoClient.connect(opt.url, optMGConn)
733
- let client = new MongoClient(opt.url, optMGConn)
741
+ // let client = new MongoClient(opt.url, optMGConn)
742
+ let client = new MongoClient(opt.url)
734
743
 
735
744
  //res
736
745
  let res = null