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 CHANGED
@@ -49,5 +49,6 @@ module.exports = {
49
49
  'node/no-callback-literal': 'off',
50
50
  'prefer-regex-literals': 'off',
51
51
  'array-callback-return': 'off',
52
+ 'no-unreachable-loop': 'off',
52
53
  }
53
54
  };
@@ -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
  ![language](https://img.shields.io/badge/language-JavaScript-orange.svg)
5
5
  [![npm version](http://img.shields.io/npm/v/w-json-stream.svg?style=flat)](https://npmjs.org/package/w-json-stream)
6
- [![Build Status](https://travis-ci.org/yuda-lyu/w-json-stream.svg?branch=master)](https://travis-ci.org/yuda-lyu/w-json-stream)
7
6
  [![license](https://img.shields.io/npm/l/w-json-stream.svg?style=flat)](https://npmjs.org/package/w-json-stream)
8
7
  [![gzip file size](http://img.badgesize.io/yuda-lyu/w-json-stream/master/dist/w-json-stream.umd.js.svg?compression=gzip)](https://github.com/yuda-lyu/w-json-stream)
9
8
  [![npm download](https://img.shields.io/npm/dt/w-json-stream.svg)](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 is not dependent on any package.
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.10/dist/w-json-stream.umd.js"></script>
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.10/dist/w-json-stream.ww.umd.js"></script>
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 [ReadableStream does not support IE11]:** [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)]
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 [WritableStream does not support IE11 and Firefox]:** [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)]
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 [WebWorkers(from blob) does not support IE11]:** [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)]
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('web worker does not support IE11')
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
@@ -0,0 +1,5 @@
1
+ # Security Policy
2
+
3
+ ## Reporting a Vulnerability
4
+
5
+ Please report security issues to `firsemisphere@gmail.com`
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * into-stream v1.0.10
2
+ * into-stream v1.0.14
3
3
  * (c) 2018-2021 yuda-lyu(semisphere)
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * json-stream-stringify v1.0.10
2
+ * json-stream-stringify v1.0.14
3
3
  * (c) 2018-2021 yuda-lyu(semisphere)
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * through v1.0.10
2
+ * through v1.0.14
3
3
  * (c) 2018-2021 yuda-lyu(semisphere)
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * w-json-stream v1.0.10
2
+ * w-json-stream v1.0.14
3
3
  * (c) 2018-2021 yuda-lyu(semisphere)
4
4
  * Released under the MIT License.
5
5
  */