w-json-stream 1.0.10 → 1.0.14
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 +1 -0
- package/.github/workflows/ci-test.yml +24 -0
- package/README.md +7 -8
- package/SECURITY.md +5 -0
- package/dist/into-stream.umd.js +1 -1
- package/dist/json-stream-stringify.umd.js +1 -1
- package/dist/through.umd.js +1 -1
- package/dist/w-json-stream.umd.js +1 -1
- package/dist/w-json-stream.wk.umd.js +1 -0
- package/docs/WJsonStream.mjs.html +1 -1
- package/docs/examples/ex-large-webworker.html +3 -3
- package/docs/examples/ex-large.html +2 -2
- 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 +1 -1
- package/docs/index.html +1 -1
- package/examples/ex-large-webworker.html +2 -2
- package/examples/ex-large.html +1 -1
- 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
- package/toolg/gDistRollup.mjs +4 -4
- package/toolg/gDocsExams.mjs +5 -2
- package/dist/w-json-stream.ww.umd.js +0 -1
package/.eslintrc.js
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
name: Node.js CI
|
|
2
|
+
|
|
3
|
+
on: [push]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
|
|
10
|
+
strategy:
|
|
11
|
+
matrix:
|
|
12
|
+
node-version: [16.x]
|
|
13
|
+
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v2
|
|
16
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
17
|
+
uses: actions/setup-node@v1
|
|
18
|
+
with:
|
|
19
|
+
node-version: ${{ matrix.node-version }}
|
|
20
|
+
- run: npm cache clean -f
|
|
21
|
+
- run: npm install
|
|
22
|
+
- run: npm test
|
|
23
|
+
env:
|
|
24
|
+
CI: true
|
package/README.md
CHANGED
|
@@ -3,7 +3,6 @@ A tool for JSON parse and stringify by stream and web worker.
|
|
|
3
3
|
|
|
4
4
|

|
|
5
5
|
[](https://npmjs.org/package/w-json-stream)
|
|
6
|
-
[](https://travis-ci.org/yuda-lyu/w-json-stream)
|
|
7
6
|
[](https://npmjs.org/package/w-json-stream)
|
|
8
7
|
[](https://github.com/yuda-lyu/w-json-stream)
|
|
9
8
|
[](https://npmjs.org/package/w-json-stream)
|
|
@@ -437,16 +436,16 @@ testStream()
|
|
|
437
436
|
```
|
|
438
437
|
|
|
439
438
|
### In a browser(UMD module):
|
|
440
|
-
> **Note:** w-json-stream
|
|
439
|
+
> **Note:** w-json-stream does not dependent on any package.
|
|
441
440
|
|
|
442
441
|
[Necessary] Add script for w-json-stream.
|
|
443
442
|
```alias
|
|
444
443
|
|
|
445
444
|
<!-- for basic -->
|
|
446
|
-
<script src="https://cdn.jsdelivr.net/npm/w-json-stream@1.0.
|
|
445
|
+
<script src="https://cdn.jsdelivr.net/npm/w-json-stream@1.0.14/dist/w-json-stream.umd.js"></script>
|
|
447
446
|
|
|
448
447
|
<!-- for web workers -->
|
|
449
|
-
<script src="https://cdn.jsdelivr.net/npm/w-json-stream@1.0.
|
|
448
|
+
<script src="https://cdn.jsdelivr.net/npm/w-json-stream@1.0.14/dist/w-json-stream.wk.umd.js"></script>
|
|
450
449
|
|
|
451
450
|
```
|
|
452
451
|
|
|
@@ -456,16 +455,16 @@ testStream()
|
|
|
456
455
|
|
|
457
456
|
> **stringify and parse for large data:** [ex-large.html](https://yuda-lyu.github.io/w-json-stream/examples/ex-large.html) [[source code](https://github.com/yuda-lyu/w-json-stream/blob/master/docs/examples/ex-large.html)]
|
|
458
457
|
|
|
459
|
-
> **createParseStream
|
|
458
|
+
> **createParseStream:** [ex-stream-createParseStream.html](https://yuda-lyu.github.io/w-json-stream/examples/ex-stream-createParseStream.html) [[source code](https://github.com/yuda-lyu/w-json-stream/blob/master/docs/examples/ex-stream-createParseStream.html)] * ReadableStream does not support IE11.
|
|
460
459
|
|
|
461
460
|
> **createParseStream with filter:** [ex-stream-createParseStreamWithFilter.html](https://yuda-lyu.github.io/w-json-stream/examples/ex-stream-createParseStreamWithFilter.html) [[source code](https://github.com/yuda-lyu/w-json-stream/blob/master/docs/examples/ex-stream-createParseStreamWithFilter.html)]
|
|
462
461
|
|
|
463
|
-
> **createStringifyStream
|
|
462
|
+
> **createStringifyStream:** [ex-stream-createStringifyStream.html](https://yuda-lyu.github.io/w-json-stream/examples/ex-stream-createStringifyStream.html) [[source code](https://github.com/yuda-lyu/w-json-stream/blob/master/docs/examples/ex-stream-createStringifyStream.html)] * WritableStream does not support IE11 and Firefox.
|
|
464
463
|
|
|
465
|
-
> **stringify and parse for large data in web worker
|
|
464
|
+
> **stringify and parse for large data in web worker:** [ex-large-webworker.html](https://yuda-lyu.github.io/w-json-stream/examples/ex-large-webworker.html) [[source code](https://github.com/yuda-lyu/w-json-stream/blob/master/docs/examples/ex-large-webworker.html)] * WebWorkers(from blob) does not support IE11.
|
|
466
465
|
```alias
|
|
467
466
|
|
|
468
|
-
console.log('
|
|
467
|
+
console.log('WebWorkers(from blob) does not support IE11')
|
|
469
468
|
|
|
470
469
|
let json = window['w-json-stream']
|
|
471
470
|
console.log(json)
|
package/SECURITY.md
ADDED
package/dist/into-stream.umd.js
CHANGED
package/dist/through.umd.js
CHANGED