-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: bump version number and update changelog
- Loading branch information
1 parent
65dd5cc
commit 2d827e9
Showing
21 changed files
with
58 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ const replaceDependenciesByJsdelivr = { | |
}); | ||
|
||
const dependencies = { | ||
'@streamparser/json': 'https://cdn.jsdelivr.net/npm/@streamparser/[email protected].9/dist/mjs/index.mjs', | ||
'@streamparser/json': 'https://cdn.jsdelivr.net/npm/@streamparser/[email protected].12/dist/mjs/index.mjs', | ||
'lodash.get': 'https://cdn.jsdelivr.net/gh/lodash/lodash@master/get.js' | ||
}; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// packages/plainjs/src/StreamParser.js | ||
import { Tokenizer, TokenParser, TokenType } from "https://cdn.jsdelivr.net/npm/@streamparser/[email protected].9/dist/mjs/index.mjs"; | ||
import { Tokenizer, TokenParser, TokenType } from "https://cdn.jsdelivr.net/npm/@streamparser/[email protected].12/dist/mjs/index.mjs"; | ||
import JSON2CSVBase from "./BaseParser.js"; | ||
var JSON2CSVStreamParser = class extends JSON2CSVBase { | ||
constructor(opts, asyncOpts) { | ||
|
@@ -37,7 +37,7 @@ var JSON2CSVStreamParser = class extends JSON2CSVBase { | |
if (!this.tokenParser.isEnded) | ||
this.tokenParser.end(); | ||
}; | ||
tokenParser.onValue = (value) => this.pushLine(value); | ||
tokenParser.onValue = ({ value }) => this.pushLine(value); | ||
tokenParser.onError = (err) => this.onError(err); | ||
tokenParser.onEnd = () => { | ||
this.pushHeaderIfNotWritten(); | ||
|
@@ -56,7 +56,7 @@ var JSON2CSVStreamParser = class extends JSON2CSVBase { | |
} | ||
getBinaryModeTokenizer(asyncOpts) { | ||
const tokenizer = new Tokenizer(asyncOpts); | ||
tokenizer.onToken = (token, value, offset) => { | ||
tokenizer.onToken = ({ token, value, offset }) => { | ||
if (token === TokenType.LEFT_BRACKET) { | ||
this.tokenParser = new TokenParser({ | ||
paths: ["$.*"], | ||
|
@@ -69,7 +69,7 @@ var JSON2CSVStreamParser = class extends JSON2CSVBase { | |
return; | ||
} | ||
this.configureCallbacks(tokenizer, this.tokenParser); | ||
this.tokenParser.write(token, value, offset); | ||
this.tokenParser.write({ token, value, offset }); | ||
}; | ||
tokenizer.onError = () => this.onError(new Error("Data should be a JSON object or array")); | ||
tokenizer.onEnd = () => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,7 +81,7 @@ You can also select a specific version: | |
|
||
```html | ||
<script type="module"> | ||
import default from 'https://cdn.jsdelivr.net/npm/@json2csv/[email protected].2/src/default.js'; | ||
import default from 'https://cdn.jsdelivr.net/npm/@json2csv/[email protected].3/src/default.js'; | ||
</script> | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,7 +53,7 @@ You can also select a specific version: | |
|
||
```html | ||
<script type="module"> | ||
import unwind from 'https://cdn.jsdelivr.net/npm/@json2csv/[email protected].2/src/unwind.js'; | ||
import unwind from 'https://cdn.jsdelivr.net/npm/@json2csv/[email protected].3/src/unwind.js'; | ||
</script> | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -170,9 +170,9 @@ | |
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-bash.min.js"></script> | ||
<script src="//cdn.jsdelivr.net/npm/vue@3/dist/vue.global.js"></script> | ||
<script type="module"> | ||
import Json2csvStreamParser from "//cdn.jsdelivr.net/gh/juanjoDiaz/[email protected].2/dist/cdn/plainjs/StreamParser.js"; | ||
import Json2csvStreamParser from "//cdn.jsdelivr.net/gh/juanjoDiaz/[email protected].3/dist/cdn/plainjs/StreamParser.js"; | ||
window.Json2csvStreamParser = Json2csvStreamParser; | ||
import { flatten, unwind } from "//cdn.jsdelivr.net/gh/juanjoDiaz/[email protected].2/dist/cdn/transforms/index.js"; | ||
import { flatten, unwind } from "//cdn.jsdelivr.net/gh/juanjoDiaz/[email protected].3/dist/cdn/transforms/index.js"; | ||
window.Json2csvTransforms = { flatten, unwind }; | ||
</script> | ||
</body> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ You can also select a specific version: | |
|
||
```html | ||
<script type="module"> | ||
import Parser from 'https://cdn.jsdelivr.net/npm/@json2csv/[email protected].2/src/Parser.js'; | ||
import Parser from 'https://cdn.jsdelivr.net/npm/@json2csv/[email protected].3/src/Parser.js'; | ||
</script> | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,7 +46,7 @@ You can also select a specific version: | |
|
||
```html | ||
<script type="module"> | ||
import Parser from 'https://cdn.jsdelivr.net/npm/@json2csv/[email protected].2/src/StreamParser.js'; | ||
import Parser from 'https://cdn.jsdelivr.net/npm/@json2csv/[email protected].3/src/StreamParser.js'; | ||
</script> | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ You can also select a specific version: | |
|
||
```html | ||
<script type="module"> | ||
import Parser from 'https://cdn.jsdelivr.net/npm/@json2csv/[email protected].2/src/AsyncParser.js'; | ||
import Parser from 'https://cdn.jsdelivr.net/npm/@json2csv/[email protected].3/src/AsyncParser.js'; | ||
</script> | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,7 +44,7 @@ You can also select a specific version: | |
|
||
```html | ||
<script type="module"> | ||
import Parser from 'https://cdn.jsdelivr.net/npm/@json2csv/[email protected].2/src/TransformStream.js'; | ||
import Parser from 'https://cdn.jsdelivr.net/npm/@json2csv/[email protected].3/src/TransformStream.js'; | ||
</script> | ||
``` | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters