Skip to content

Commit 24a7270

Browse files
committed
v0.1.0
1 parent daeb448 commit 24a7270

File tree

6 files changed

+11
-15
lines changed

6 files changed

+11
-15
lines changed

jsonc.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jsonc.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jsonc.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jsonc.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
/* Copyright (c) 2021-2023 Richard Rodger, MIT License */
22

33
// Import Jsonic types used by plugin.
4-
import {
5-
Jsonic,
6-
RuleSpec,
7-
} from '@jsonic/jsonic-next'
8-
4+
import { Jsonic, RuleSpec } from '@jsonic/jsonic-next'
95

106
type JsoncOptions = {
117
allowTrailingComma?: boolean
@@ -22,7 +18,7 @@ function Jsonc(jsonic: Jsonic, options: JsoncOptions) {
2218
oct: false,
2319
bin: false,
2420
sep: null,
25-
exclude: /^\./
21+
exclude: /^\./,
2622
},
2723
string: {
2824
chars: '"',
@@ -53,8 +49,8 @@ function Jsonc(jsonic: Jsonic, options: JsoncOptions) {
5349
rs.open([
5450
{
5551
s: [ZZ],
56-
g: 'jsonc'
57-
}
52+
g: 'jsonc',
53+
},
5854
])
5955
})
6056
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jsonic/jsonc",
3-
"version": "0.0.2",
3+
"version": "0.1.0",
44
"description": "This plugin allows the [Jsonic](https://jsonic.senecajs.org) JSON parser to support JSONC syntax.",
55
"main": "jsonc.js",
66
"type": "commonjs",

test/quick.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ const jsonc = Jsonic.make()
1515

1616
// console.dir(jsonc(`// comment`),{depth:null})
1717
// console.dir(jsonc('"\\v"'),{depth:null})
18-
console.dir(jsonc('.0'),{depth:null})
18+
console.dir(jsonc('.0'), { depth: null })

0 commit comments

Comments
 (0)