w-json-stream 1.0.16 → 1.0.18
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/.eslintrc.js +17 -17
- package/README.md +2 -2
- package/babel.config.js +1 -0
- package/dist/into-stream.umd.js +2 -2
- package/dist/into-stream.umd.js.map +1 -1
- package/dist/json-stream-stringify.umd.js +2 -2
- package/dist/json-stream-stringify.umd.js.map +1 -1
- package/dist/through.umd.js +2 -2
- package/dist/through.umd.js.map +1 -1
- package/dist/w-json-stream.umd.js +2 -2
- package/dist/w-json-stream.umd.js.map +1 -1
- package/dist/w-json-stream.wk.umd.js +1 -1
- package/docs/WJsonStream.mjs.html +5 -2
- package/docs/examples/ex-large-webworker.html +2 -2
- package/docs/examples/ex-large.html +3 -3
- package/docs/examples/ex-small-stream.html +2 -2
- package/docs/examples/ex-small.html +2 -2
- package/docs/examples/ex-stream-createParseStream.html +2 -2
- package/docs/examples/ex-stream-createParseStreamWithFilter.html +3 -3
- package/docs/examples/ex-stream-createStringifyStream.html +2 -2
- package/docs/global.html +62 -52
- package/docs/index.html +5 -2
- package/docs/scripts/collapse.js +19 -0
- package/docs/scripts/commonNav.js +28 -0
- package/docs/scripts/search.js +16 -0
- package/docs/styles/jsdoc.css +13 -2
- package/docs/styles/prettify.css +1 -0
- package/examples/ex-large-webworker.html +1 -1
- package/examples/ex-large.html +2 -2
- package/examples/ex-small-stream.html +1 -1
- package/examples/ex-small.html +1 -1
- package/examples/ex-stream-createParseStream.html +1 -1
- package/examples/ex-stream-createParseStreamWithFilter.html +1 -1
- package/examples/ex-stream-createStringifyStream.html +1 -1
- package/package.json +3 -3
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
<link type="text/css" rel="stylesheet" href="styles/prettify.css">
|
|
15
15
|
<link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
|
|
16
16
|
<script src="scripts/nav.js" defer></script>
|
|
17
|
+
|
|
17
18
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
18
19
|
</head>
|
|
19
20
|
<body>
|
|
@@ -27,7 +28,9 @@
|
|
|
27
28
|
|
|
28
29
|
<nav >
|
|
29
30
|
|
|
30
|
-
|
|
31
|
+
|
|
32
|
+
<h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.html#WJsonStream">WJsonStream</a></li><li><a href="global.html#createParseStream">createParseStream</a></li><li><a href="global.html#createStringifyStream">createStringifyStream</a></li><li><a href="global.html#parse">parse</a></li><li><a href="global.html#parseByStream">parseByStream</a></li><li><a href="global.html#stringify">stringify</a></li><li><a href="global.html#stringifyByStream">stringifyByStream</a></li></ul>
|
|
33
|
+
|
|
31
34
|
</nav>
|
|
32
35
|
|
|
33
36
|
<div id="main">
|
|
@@ -284,7 +287,7 @@ export default WJsonStream
|
|
|
284
287
|
<br class="clear">
|
|
285
288
|
|
|
286
289
|
<footer>
|
|
287
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc
|
|
290
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Wed Mar 29 2023 14:59:43 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
288
291
|
</footer>
|
|
289
292
|
|
|
290
293
|
<script>prettyPrint();</script>
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
|
|
11
11
|
<script src="https://cdn.jsdelivr.net/npm/wsemi/dist/wsemi.umd.js"></script>
|
|
12
12
|
|
|
13
|
-
<script _src="https://cdn.jsdelivr.net/npm/w-json-stream@1.0.
|
|
14
|
-
<script src="https://cdn.jsdelivr.net/npm/w-json-stream@1.0.
|
|
13
|
+
<script _src="https://cdn.jsdelivr.net/npm/w-json-stream@1.0.18/dist/w-json-stream.umd.js"></script>
|
|
14
|
+
<script msg="封裝woker無法使用createStringifyStream回傳為stream對象" src="https://cdn.jsdelivr.net/npm/w-json-stream@1.0.18/dist/w-json-stream.wk.umd.js"></script>
|
|
15
15
|
|
|
16
16
|
<script>
|
|
17
17
|
console.log('WebWorkers(from blob) does not support IE11')
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
|
|
11
11
|
<script src="https://cdn.jsdelivr.net/npm/wsemi/dist/wsemi.umd.js"></script>
|
|
12
12
|
|
|
13
|
-
<script src="https://cdn.jsdelivr.net/npm/w-json-stream@1.0.
|
|
14
|
-
<script msg="封裝woker
|
|
15
|
-
|
|
13
|
+
<script src="https://cdn.jsdelivr.net/npm/w-json-stream@1.0.18/dist/w-json-stream.umd.js"></script>
|
|
14
|
+
<script msg="封裝woker無法使用createStringifyStream回傳為stream對象" _src="https://cdn.jsdelivr.net/npm/w-json-stream@1.0.18/dist/w-json-stream.wk.umd.js"></script>
|
|
15
|
+
|
|
16
16
|
<script>
|
|
17
17
|
|
|
18
18
|
let json = window['w-json-stream']
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
|
|
11
11
|
<script src="https://cdn.jsdelivr.net/npm/wsemi/dist/wsemi.umd.js"></script>
|
|
12
12
|
|
|
13
|
-
<script src="https://cdn.jsdelivr.net/npm/w-json-stream@1.0.
|
|
14
|
-
<script msg="封裝woker
|
|
13
|
+
<script src="https://cdn.jsdelivr.net/npm/w-json-stream@1.0.18/dist/w-json-stream.umd.js"></script>
|
|
14
|
+
<script msg="封裝woker無法使用createStringifyStream回傳為stream對象" _src="https://cdn.jsdelivr.net/npm/w-json-stream@1.0.18/dist/w-json-stream.wk.umd.js"></script>
|
|
15
15
|
|
|
16
16
|
<script>
|
|
17
17
|
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
|
|
11
11
|
<script src="https://cdn.jsdelivr.net/npm/wsemi/dist/wsemi.umd.js"></script>
|
|
12
12
|
|
|
13
|
-
<script src="https://cdn.jsdelivr.net/npm/w-json-stream@1.0.
|
|
14
|
-
<script msg="封裝woker
|
|
13
|
+
<script src="https://cdn.jsdelivr.net/npm/w-json-stream@1.0.18/dist/w-json-stream.umd.js"></script>
|
|
14
|
+
<script msg="封裝woker無法使用createStringifyStream回傳為stream對象" _src="https://cdn.jsdelivr.net/npm/w-json-stream@1.0.18/dist/w-json-stream.wk.umd.js"></script>
|
|
15
15
|
|
|
16
16
|
<script>
|
|
17
17
|
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
|
|
11
11
|
<script src="https://cdn.jsdelivr.net/npm/wsemi/dist/wsemi.umd.js"></script>
|
|
12
12
|
|
|
13
|
-
<script src="https://cdn.jsdelivr.net/npm/w-json-stream@1.0.
|
|
14
|
-
<script msg="封裝woker
|
|
13
|
+
<script src="https://cdn.jsdelivr.net/npm/w-json-stream@1.0.18/dist/w-json-stream.umd.js"></script>
|
|
14
|
+
<script msg="封裝woker無法使用createStringifyStream回傳為stream對象" _src="https://cdn.jsdelivr.net/npm/w-json-stream@1.0.18/dist/w-json-stream.wk.umd.js"></script>
|
|
15
15
|
|
|
16
16
|
<script>
|
|
17
17
|
console.log('ReadableStream does not support IE11')
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
|
|
13
13
|
<script src="https://cdn.jsdelivr.net/npm/wsemi/dist/wsemi.umd.js"></script>
|
|
14
14
|
|
|
15
|
-
<script src="https://cdn.jsdelivr.net/npm/w-json-stream@1.0.
|
|
16
|
-
<script src="https://cdn.jsdelivr.net/npm/w-json-stream@1.0.
|
|
17
|
-
<script msg="封裝woker
|
|
15
|
+
<script src="https://cdn.jsdelivr.net/npm/w-json-stream@1.0.18/dist/into-stream.umd.js"></script>
|
|
16
|
+
<script src="https://cdn.jsdelivr.net/npm/w-json-stream@1.0.18/dist/w-json-stream.umd.js"></script>
|
|
17
|
+
<script msg="封裝woker無法使用createStringifyStream回傳為stream對象" _src="https://cdn.jsdelivr.net/npm/w-json-stream@1.0.18/dist/w-json-stream.wk.umd.js"></script>
|
|
18
18
|
|
|
19
19
|
<script>
|
|
20
20
|
console.log('ReadableStream does not support IE11')
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
|
|
11
11
|
<script src="https://cdn.jsdelivr.net/npm/wsemi/dist/wsemi.umd.js"></script>
|
|
12
12
|
|
|
13
|
-
<script src="https://cdn.jsdelivr.net/npm/w-json-stream@1.0.
|
|
14
|
-
<script msg="封裝woker
|
|
13
|
+
<script src="https://cdn.jsdelivr.net/npm/w-json-stream@1.0.18/dist/w-json-stream.umd.js"></script>
|
|
14
|
+
<script msg="封裝woker無法使用createStringifyStream回傳為stream對象" _src="https://cdn.jsdelivr.net/npm/w-json-stream@1.0.18/dist/w-json-stream.wk.umd.js"></script>
|
|
15
15
|
|
|
16
16
|
<script>
|
|
17
17
|
console.log('WritableStream does not support IE11 and Firefox')
|
package/docs/global.html
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
<link type="text/css" rel="stylesheet" href="styles/prettify.css">
|
|
15
15
|
<link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
|
|
16
16
|
<script src="scripts/nav.js" defer></script>
|
|
17
|
+
|
|
17
18
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
18
19
|
</head>
|
|
19
20
|
<body>
|
|
@@ -27,7 +28,9 @@
|
|
|
27
28
|
|
|
28
29
|
<nav >
|
|
29
30
|
|
|
30
|
-
|
|
31
|
+
|
|
32
|
+
<h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.html#WJsonStream">WJsonStream</a></li><li><a href="global.html#createParseStream">createParseStream</a></li><li><a href="global.html#createStringifyStream">createStringifyStream</a></li><li><a href="global.html#parse">parse</a></li><li><a href="global.html#parseByStream">parseByStream</a></li><li><a href="global.html#stringify">stringify</a></li><li><a href="global.html#stringifyByStream">stringifyByStream</a></li></ul>
|
|
33
|
+
|
|
31
34
|
</nav>
|
|
32
35
|
|
|
33
36
|
<div id="main">
|
|
@@ -46,6 +49,8 @@
|
|
|
46
49
|
|
|
47
50
|
<h2>
|
|
48
51
|
|
|
52
|
+
|
|
53
|
+
|
|
49
54
|
</h2>
|
|
50
55
|
|
|
51
56
|
|
|
@@ -58,6 +63,7 @@
|
|
|
58
63
|
|
|
59
64
|
|
|
60
65
|
<dl class="details">
|
|
66
|
+
|
|
61
67
|
|
|
62
68
|
|
|
63
69
|
|
|
@@ -126,6 +132,10 @@
|
|
|
126
132
|
|
|
127
133
|
|
|
128
134
|
<dl class="details">
|
|
135
|
+
|
|
136
|
+
<dt class="tag-description">Description:</dt>
|
|
137
|
+
<dd class="tag-description"><ul class="dummy"><li><p>基於串流stream的JSON序列化(stringify)與反序列化(parse)</p></li></ul></dd>
|
|
138
|
+
|
|
129
139
|
|
|
130
140
|
|
|
131
141
|
<dt class="tag-source">Source:</dt>
|
|
@@ -199,6 +209,10 @@
|
|
|
199
209
|
|
|
200
210
|
|
|
201
211
|
<dl class="details">
|
|
212
|
+
|
|
213
|
+
<dt class="tag-description">Description:</dt>
|
|
214
|
+
<dd class="tag-description"><ul class="dummy"><li><p>JSON反序列化的stream</p></li></ul></dd>
|
|
215
|
+
|
|
202
216
|
|
|
203
217
|
|
|
204
218
|
<dt class="tag-source">Source:</dt>
|
|
@@ -242,11 +256,6 @@
|
|
|
242
256
|
|
|
243
257
|
|
|
244
258
|
|
|
245
|
-
<div class="description usertext">
|
|
246
|
-
<p>JSON反序列化的stream</p>
|
|
247
|
-
</div>
|
|
248
|
-
|
|
249
|
-
|
|
250
259
|
|
|
251
260
|
|
|
252
261
|
|
|
@@ -255,8 +264,7 @@
|
|
|
255
264
|
|
|
256
265
|
|
|
257
266
|
|
|
258
|
-
|
|
259
|
-
<h5>Parameters:</h5>
|
|
267
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
260
268
|
|
|
261
269
|
|
|
262
270
|
<table class="params">
|
|
@@ -297,6 +305,7 @@
|
|
|
297
305
|
<span class="param-type">Array</span>
|
|
298
306
|
|
|
299
307
|
|
|
308
|
+
|
|
300
309
|
|
|
301
310
|
</td>
|
|
302
311
|
|
|
@@ -342,7 +351,7 @@
|
|
|
342
351
|
|
|
343
352
|
|
|
344
353
|
|
|
345
|
-
<h5>Returns:</h5>
|
|
354
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
346
355
|
|
|
347
356
|
|
|
348
357
|
<div class="param-desc">
|
|
@@ -360,6 +369,7 @@
|
|
|
360
369
|
<span class="param-type">Stream</span>
|
|
361
370
|
|
|
362
371
|
|
|
372
|
+
|
|
363
373
|
</dd>
|
|
364
374
|
</dl>
|
|
365
375
|
|
|
@@ -380,6 +390,10 @@
|
|
|
380
390
|
|
|
381
391
|
|
|
382
392
|
<dl class="details">
|
|
393
|
+
|
|
394
|
+
<dt class="tag-description">Description:</dt>
|
|
395
|
+
<dd class="tag-description"><ul class="dummy"><li><p>JSON序列化的stream</p></li></ul></dd>
|
|
396
|
+
|
|
383
397
|
|
|
384
398
|
|
|
385
399
|
<dt class="tag-source">Source:</dt>
|
|
@@ -423,12 +437,6 @@
|
|
|
423
437
|
|
|
424
438
|
|
|
425
439
|
|
|
426
|
-
<div class="description usertext">
|
|
427
|
-
<p>JSON序列化的stream</p>
|
|
428
|
-
</div>
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
440
|
|
|
433
441
|
|
|
434
442
|
|
|
@@ -437,7 +445,7 @@
|
|
|
437
445
|
|
|
438
446
|
|
|
439
447
|
|
|
440
|
-
<h5>Parameters:</h5>
|
|
448
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
441
449
|
|
|
442
450
|
|
|
443
451
|
<table class="params">
|
|
@@ -474,6 +482,7 @@
|
|
|
474
482
|
<span class="param-type">Array</span>
|
|
475
483
|
|
|
476
484
|
|
|
485
|
+
|
|
477
486
|
|
|
478
487
|
</td>
|
|
479
488
|
|
|
@@ -503,7 +512,7 @@
|
|
|
503
512
|
|
|
504
513
|
|
|
505
514
|
|
|
506
|
-
<h5>Returns:</h5>
|
|
515
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
507
516
|
|
|
508
517
|
|
|
509
518
|
<div class="param-desc">
|
|
@@ -521,6 +530,7 @@
|
|
|
521
530
|
<span class="param-type">Stream</span>
|
|
522
531
|
|
|
523
532
|
|
|
533
|
+
|
|
524
534
|
</dd>
|
|
525
535
|
</dl>
|
|
526
536
|
|
|
@@ -533,7 +543,7 @@
|
|
|
533
543
|
|
|
534
544
|
|
|
535
545
|
|
|
536
|
-
<h4 class="name" id="parse"><span class="type-signature">(async) </span>parse<span class="signature">(str)</span><span class="type-signature"> → {Promise}</span></h4>
|
|
546
|
+
<h4 class="name" id="parse"><span class="type-signature type-signature-async">(async) </span>parse<span class="signature">(str)</span><span class="type-signature"> → {Promise}</span></h4>
|
|
537
547
|
|
|
538
548
|
|
|
539
549
|
|
|
@@ -541,6 +551,10 @@
|
|
|
541
551
|
|
|
542
552
|
|
|
543
553
|
<dl class="details">
|
|
554
|
+
|
|
555
|
+
<dt class="tag-description">Description:</dt>
|
|
556
|
+
<dd class="tag-description"><ul class="dummy"><li><p>Promise化的JSON.parse</p></li></ul></dd>
|
|
557
|
+
|
|
544
558
|
|
|
545
559
|
|
|
546
560
|
<dt class="tag-source">Source:</dt>
|
|
@@ -584,12 +598,6 @@
|
|
|
584
598
|
|
|
585
599
|
|
|
586
600
|
|
|
587
|
-
<div class="description usertext">
|
|
588
|
-
<p>Promise化的JSON.parse</p>
|
|
589
|
-
</div>
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
601
|
|
|
594
602
|
|
|
595
603
|
|
|
@@ -598,7 +606,7 @@
|
|
|
598
606
|
|
|
599
607
|
|
|
600
608
|
|
|
601
|
-
<h5>Parameters:</h5>
|
|
609
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
602
610
|
|
|
603
611
|
|
|
604
612
|
<table class="params">
|
|
@@ -632,6 +640,7 @@
|
|
|
632
640
|
<span class="param-type">String</span>
|
|
633
641
|
|
|
634
642
|
|
|
643
|
+
|
|
635
644
|
|
|
636
645
|
</td>
|
|
637
646
|
|
|
@@ -661,7 +670,7 @@
|
|
|
661
670
|
|
|
662
671
|
|
|
663
672
|
|
|
664
|
-
<h5>Returns:</h5>
|
|
673
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
665
674
|
|
|
666
675
|
|
|
667
676
|
<div class="param-desc">
|
|
@@ -679,6 +688,7 @@
|
|
|
679
688
|
<span class="param-type">Promise</span>
|
|
680
689
|
|
|
681
690
|
|
|
691
|
+
|
|
682
692
|
</dd>
|
|
683
693
|
</dl>
|
|
684
694
|
|
|
@@ -699,6 +709,10 @@
|
|
|
699
709
|
|
|
700
710
|
|
|
701
711
|
<dl class="details">
|
|
712
|
+
|
|
713
|
+
<dt class="tag-description">Description:</dt>
|
|
714
|
+
<dd class="tag-description"><ul class="dummy"><li><p>以stream為基底的JSON.parse</p></li></ul></dd>
|
|
715
|
+
|
|
702
716
|
|
|
703
717
|
|
|
704
718
|
<dt class="tag-source">Source:</dt>
|
|
@@ -742,11 +756,6 @@
|
|
|
742
756
|
|
|
743
757
|
|
|
744
758
|
|
|
745
|
-
<div class="description usertext">
|
|
746
|
-
<p>以stream為基底的JSON.parse</p>
|
|
747
|
-
</div>
|
|
748
|
-
|
|
749
|
-
|
|
750
759
|
|
|
751
760
|
|
|
752
761
|
|
|
@@ -755,8 +764,7 @@
|
|
|
755
764
|
|
|
756
765
|
|
|
757
766
|
|
|
758
|
-
|
|
759
|
-
<h5>Parameters:</h5>
|
|
767
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
760
768
|
|
|
761
769
|
|
|
762
770
|
<table class="params">
|
|
@@ -790,6 +798,7 @@
|
|
|
790
798
|
<span class="param-type">String</span>
|
|
791
799
|
|
|
792
800
|
|
|
801
|
+
|
|
793
802
|
|
|
794
803
|
</td>
|
|
795
804
|
|
|
@@ -819,7 +828,7 @@
|
|
|
819
828
|
|
|
820
829
|
|
|
821
830
|
|
|
822
|
-
<h5>Returns:</h5>
|
|
831
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
823
832
|
|
|
824
833
|
|
|
825
834
|
<div class="param-desc">
|
|
@@ -837,6 +846,7 @@
|
|
|
837
846
|
<span class="param-type">Promise</span>
|
|
838
847
|
|
|
839
848
|
|
|
849
|
+
|
|
840
850
|
</dd>
|
|
841
851
|
</dl>
|
|
842
852
|
|
|
@@ -849,7 +859,7 @@
|
|
|
849
859
|
|
|
850
860
|
|
|
851
861
|
|
|
852
|
-
<h4 class="name" id="stringify"><span class="type-signature">(async) </span>stringify<span class="signature">(data)</span><span class="type-signature"> → {Promise}</span></h4>
|
|
862
|
+
<h4 class="name" id="stringify"><span class="type-signature type-signature-async">(async) </span>stringify<span class="signature">(data)</span><span class="type-signature"> → {Promise}</span></h4>
|
|
853
863
|
|
|
854
864
|
|
|
855
865
|
|
|
@@ -857,6 +867,10 @@
|
|
|
857
867
|
|
|
858
868
|
|
|
859
869
|
<dl class="details">
|
|
870
|
+
|
|
871
|
+
<dt class="tag-description">Description:</dt>
|
|
872
|
+
<dd class="tag-description"><ul class="dummy"><li><p>Promise化的JSON.stringify</p></li></ul></dd>
|
|
873
|
+
|
|
860
874
|
|
|
861
875
|
|
|
862
876
|
<dt class="tag-source">Source:</dt>
|
|
@@ -900,12 +914,6 @@
|
|
|
900
914
|
|
|
901
915
|
|
|
902
916
|
|
|
903
|
-
<div class="description usertext">
|
|
904
|
-
<p>Promise化的JSON.stringify</p>
|
|
905
|
-
</div>
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
917
|
|
|
910
918
|
|
|
911
919
|
|
|
@@ -914,7 +922,7 @@
|
|
|
914
922
|
|
|
915
923
|
|
|
916
924
|
|
|
917
|
-
<h5>Parameters:</h5>
|
|
925
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
918
926
|
|
|
919
927
|
|
|
920
928
|
<table class="params">
|
|
@@ -951,6 +959,7 @@
|
|
|
951
959
|
<span class="param-type">Array</span>
|
|
952
960
|
|
|
953
961
|
|
|
962
|
+
|
|
954
963
|
|
|
955
964
|
</td>
|
|
956
965
|
|
|
@@ -980,7 +989,7 @@
|
|
|
980
989
|
|
|
981
990
|
|
|
982
991
|
|
|
983
|
-
<h5>Returns:</h5>
|
|
992
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
984
993
|
|
|
985
994
|
|
|
986
995
|
<div class="param-desc">
|
|
@@ -998,6 +1007,7 @@
|
|
|
998
1007
|
<span class="param-type">Promise</span>
|
|
999
1008
|
|
|
1000
1009
|
|
|
1010
|
+
|
|
1001
1011
|
</dd>
|
|
1002
1012
|
</dl>
|
|
1003
1013
|
|
|
@@ -1018,6 +1028,10 @@
|
|
|
1018
1028
|
|
|
1019
1029
|
|
|
1020
1030
|
<dl class="details">
|
|
1031
|
+
|
|
1032
|
+
<dt class="tag-description">Description:</dt>
|
|
1033
|
+
<dd class="tag-description"><ul class="dummy"><li><p>以stream為基底的JSON.stringify</p></li></ul></dd>
|
|
1034
|
+
|
|
1021
1035
|
|
|
1022
1036
|
|
|
1023
1037
|
<dt class="tag-source">Source:</dt>
|
|
@@ -1061,11 +1075,6 @@
|
|
|
1061
1075
|
|
|
1062
1076
|
|
|
1063
1077
|
|
|
1064
|
-
<div class="description usertext">
|
|
1065
|
-
<p>以stream為基底的JSON.stringify</p>
|
|
1066
|
-
</div>
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
1078
|
|
|
1070
1079
|
|
|
1071
1080
|
|
|
@@ -1074,8 +1083,7 @@
|
|
|
1074
1083
|
|
|
1075
1084
|
|
|
1076
1085
|
|
|
1077
|
-
|
|
1078
|
-
<h5>Parameters:</h5>
|
|
1086
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
1079
1087
|
|
|
1080
1088
|
|
|
1081
1089
|
<table class="params">
|
|
@@ -1112,6 +1120,7 @@
|
|
|
1112
1120
|
<span class="param-type">Array</span>
|
|
1113
1121
|
|
|
1114
1122
|
|
|
1123
|
+
|
|
1115
1124
|
|
|
1116
1125
|
</td>
|
|
1117
1126
|
|
|
@@ -1141,7 +1150,7 @@
|
|
|
1141
1150
|
|
|
1142
1151
|
|
|
1143
1152
|
|
|
1144
|
-
<h5>Returns:</h5>
|
|
1153
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
1145
1154
|
|
|
1146
1155
|
|
|
1147
1156
|
<div class="param-desc">
|
|
@@ -1159,6 +1168,7 @@
|
|
|
1159
1168
|
<span class="param-type">Promise</span>
|
|
1160
1169
|
|
|
1161
1170
|
|
|
1171
|
+
|
|
1162
1172
|
</dd>
|
|
1163
1173
|
</dl>
|
|
1164
1174
|
|
|
@@ -1186,7 +1196,7 @@
|
|
|
1186
1196
|
<br class="clear">
|
|
1187
1197
|
|
|
1188
1198
|
<footer>
|
|
1189
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc
|
|
1199
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Wed Mar 29 2023 14:59:43 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
1190
1200
|
</footer>
|
|
1191
1201
|
|
|
1192
1202
|
<script>prettyPrint();</script>
|
package/docs/index.html
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
<link type="text/css" rel="stylesheet" href="styles/prettify.css">
|
|
15
15
|
<link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
|
|
16
16
|
<script src="scripts/nav.js" defer></script>
|
|
17
|
+
|
|
17
18
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
18
19
|
</head>
|
|
19
20
|
<body>
|
|
@@ -27,7 +28,9 @@
|
|
|
27
28
|
|
|
28
29
|
<nav >
|
|
29
30
|
|
|
30
|
-
|
|
31
|
+
|
|
32
|
+
<h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.html#WJsonStream">WJsonStream</a></li><li><a href="global.html#createParseStream">createParseStream</a></li><li><a href="global.html#createStringifyStream">createStringifyStream</a></li><li><a href="global.html#parse">parse</a></li><li><a href="global.html#parseByStream">parseByStream</a></li><li><a href="global.html#stringify">stringify</a></li><li><a href="global.html#stringifyByStream">stringifyByStream</a></li></ul>
|
|
33
|
+
|
|
31
34
|
</nav>
|
|
32
35
|
|
|
33
36
|
<div id="main">
|
|
@@ -68,7 +71,7 @@
|
|
|
68
71
|
<br class="clear">
|
|
69
72
|
|
|
70
73
|
<footer>
|
|
71
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc
|
|
74
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Wed Mar 29 2023 14:59:43 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
72
75
|
</footer>
|
|
73
76
|
|
|
74
77
|
<script>prettyPrint();</script>
|
package/docs/scripts/collapse.js
CHANGED
|
@@ -1,15 +1,34 @@
|
|
|
1
1
|
function hideAllButCurrent(){
|
|
2
2
|
//by default all submenut items are hidden
|
|
3
3
|
//but we need to rehide them for search
|
|
4
|
+
document.querySelectorAll("nav > ul").forEach(function(parent) {
|
|
5
|
+
if (parent.className.indexOf("collapse_top") !== -1) {
|
|
6
|
+
parent.style.display = "none";
|
|
7
|
+
}
|
|
8
|
+
});
|
|
4
9
|
document.querySelectorAll("nav > ul > li > ul li").forEach(function(parent) {
|
|
5
10
|
parent.style.display = "none";
|
|
6
11
|
});
|
|
12
|
+
document.querySelectorAll("nav > h3").forEach(function(section) {
|
|
13
|
+
if (section.className.indexOf("collapsed_header") !== -1) {
|
|
14
|
+
section.addEventListener("click", function(){
|
|
15
|
+
if (section.nextSibling.style.display === "none") {
|
|
16
|
+
section.nextSibling.style.display = "block";
|
|
17
|
+
} else {
|
|
18
|
+
section.nextSibling.style.display = "none";
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
});
|
|
7
23
|
|
|
8
24
|
//only current page (if it exists) should be opened
|
|
9
25
|
var file = window.location.pathname.split("/").pop().replace(/\.html/, '');
|
|
10
26
|
document.querySelectorAll("nav > ul > li > a").forEach(function(parent) {
|
|
11
27
|
var href = parent.attributes.href.value.replace(/\.html/, '');
|
|
12
28
|
if (file === href) {
|
|
29
|
+
if (parent.parentNode.parentNode.className.indexOf("collapse_top") !== -1) {
|
|
30
|
+
parent.parentNode.parentNode.style.display = "block";
|
|
31
|
+
}
|
|
13
32
|
parent.parentNode.querySelectorAll("ul li").forEach(function(elem) {
|
|
14
33
|
elem.style.display = "block";
|
|
15
34
|
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
if (typeof fetch === 'function') {
|
|
2
|
+
const init = () => {
|
|
3
|
+
if (typeof scrollToNavItem !== 'function') return false
|
|
4
|
+
scrollToNavItem()
|
|
5
|
+
// hideAllButCurrent not always loaded
|
|
6
|
+
if (typeof hideAllButCurrent === 'function') hideAllButCurrent()
|
|
7
|
+
return true
|
|
8
|
+
}
|
|
9
|
+
fetch('./nav.inc.html')
|
|
10
|
+
.then(response => response.ok ? response.text() : `${response.url} => ${response.status} ${response.statusText}`)
|
|
11
|
+
.then(body => {
|
|
12
|
+
document.querySelector('nav').innerHTML += body
|
|
13
|
+
// nav.js should be quicker to load than nav.inc.html, a fallback just in case
|
|
14
|
+
return init()
|
|
15
|
+
})
|
|
16
|
+
.then(done => {
|
|
17
|
+
if (done) return
|
|
18
|
+
let i = 0
|
|
19
|
+
;(function waitUntilNavJs () {
|
|
20
|
+
if (init()) return
|
|
21
|
+
if (i++ < 100) return setTimeout(waitUntilNavJs, 300)
|
|
22
|
+
console.error(Error('nav.js not loaded after 30s waiting for it'))
|
|
23
|
+
})()
|
|
24
|
+
})
|
|
25
|
+
.catch(error => console.error(error))
|
|
26
|
+
} else {
|
|
27
|
+
console.error(Error('Browser too old to display commonNav (remove commonNav docdash option)'))
|
|
28
|
+
}
|
package/docs/scripts/search.js
CHANGED
|
@@ -33,6 +33,9 @@ document.getElementById("nav-search").addEventListener("keyup", function(event)
|
|
|
33
33
|
document.querySelectorAll("nav > ul > li").forEach(function(elem) {
|
|
34
34
|
elem.style.display = "block";
|
|
35
35
|
});
|
|
36
|
+
document.querySelectorAll("nav > ul").forEach(function(elem) {
|
|
37
|
+
elem.style.display = "block";
|
|
38
|
+
});
|
|
36
39
|
//hide all results
|
|
37
40
|
document.querySelectorAll("nav > ul > li > ul li").forEach(function(elem) {
|
|
38
41
|
elem.style.display = "none";
|
|
@@ -79,5 +82,18 @@ document.getElementById("nav-search").addEventListener("keyup", function(event)
|
|
|
79
82
|
parent.style.display = "none";
|
|
80
83
|
}
|
|
81
84
|
});
|
|
85
|
+
document.querySelectorAll("nav > ul.collapse_top").forEach(function(parent) {
|
|
86
|
+
var countVisible = 0;
|
|
87
|
+
parent.querySelectorAll("li").forEach(function(elem) {
|
|
88
|
+
if (elem.style.display !== "none") {
|
|
89
|
+
countVisible++;
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
if (countVisible == 0) {
|
|
94
|
+
//has no child at all and does not contain text
|
|
95
|
+
parent.style.display = "none";
|
|
96
|
+
}
|
|
97
|
+
});
|
|
82
98
|
}
|
|
83
99
|
});
|