Skip to content

Commit f19dbe7

Browse files
committed
4.3.0: also populate comment symbol strings
1 parent 6a1e616 commit f19dbe7

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "comment-json",
3-
"version": "4.2.5",
3+
"version": "4.3.0",
44
"description": "Parse and stringify JSON with comments. It will retain comments even after saved!",
55
"main": "src/index.js",
66
"types": "index.d.ts",

src/index.js

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,29 @@
11
const {parse, tokenize} = require('./parse')
22
const stringify = require('./stringify')
33
const {CommentArray} = require('./array')
4-
const {assign} = require('./common')
4+
const {
5+
PREFIX_BEFORE,
6+
PREFIX_AFTER_PROP,
7+
PREFIX_AFTER_COLON,
8+
PREFIX_AFTER_VALUE,
9+
PREFIX_AFTER,
10+
11+
PREFIX_BEFORE_ALL,
12+
PREFIX_AFTER_ALL,
13+
14+
assign
15+
} = require('./common')
516

617
module.exports = {
18+
PREFIX_BEFORE,
19+
PREFIX_AFTER_PROP,
20+
PREFIX_AFTER_COLON,
21+
PREFIX_AFTER_VALUE,
22+
PREFIX_AFTER,
23+
24+
PREFIX_BEFORE_ALL,
25+
PREFIX_AFTER_ALL,
26+
727
parse,
828
stringify,
929
tokenize,

0 commit comments

Comments
 (0)