comment-variables 0.12.3 → 0.12.4
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/comments.config.js +7 -4
- package/comments.config.json +0 -5
- package/package.json +2 -2
package/comments.config.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
// const obj = { test: "Testing." }; // errors, object string values in config files are reserved for exports from the config.
|
|
2
|
+
|
|
1
3
|
const data = {
|
|
2
4
|
// for testing
|
|
3
5
|
levelOne: {
|
|
4
6
|
levelTwo: {
|
|
5
7
|
levelThree: "Level three." /* $COMMENT#LEVELONE#LEVELTWO#LEVELTHREE */, // New placeholder structure. Not as sexy, but first and foremost guaranteed to be functional appended right at the end of the value as a Block comment, and last but not least also guaranteed to not modify Value Locations in the process. So `comment-variables placeholders` it is, and this justifies enforcing strings only for values even outside of the use of the VS Code extension.
|
|
6
|
-
levelThreeEscape:
|
|
7
|
-
|
|
8
|
-
fdff\
|
|
9
|
-
" /* $COMMENT#LEVELONE#LEVELTWO#LEVELTHREEESCAPE */, //
|
|
8
|
+
// levelThreeEscape:
|
|
9
|
+
// "Level three. \
|
|
10
|
+
// fdff\
|
|
11
|
+
// " /* $COMMENT#LEVELONE#LEVELTWO#LEVELTHREEESCAPE */, // NOW ERRORS AS INTENDED, unrecognizedValuesSet
|
|
10
12
|
stillLevelThree:
|
|
11
13
|
"LEVELONE#LEVELTWO#LEVELTHREE" /* $COMMENT#LEVELONE#LEVELTWO#STILLLEVELTHREE */, // now is an alias
|
|
12
14
|
otherLevelThree:
|
|
@@ -44,6 +46,7 @@ const data = {
|
|
|
44
46
|
// key: "key not allowed", // errors, "key", "value" and "placeholder" not allowed
|
|
45
47
|
// value: "value not allowed", // errors, "key", "value" and "placeholder" not allowed
|
|
46
48
|
// placeholder: "placeholder not allowed", // errors, "key", "value" and "placeholder" not allowed
|
|
49
|
+
// noConcat: "no" + "concat", // errors, unrecognized value
|
|
47
50
|
},
|
|
48
51
|
},
|
|
49
52
|
// for deving
|
package/comments.config.json
CHANGED
|
@@ -6,11 +6,6 @@
|
|
|
6
6
|
"key": "LEVELONE#LEVELTWO#LEVELTHREE",
|
|
7
7
|
"placeholder": "$COMMENT#LEVELONE#LEVELTWO#LEVELTHREE"
|
|
8
8
|
},
|
|
9
|
-
"levelThreeEscape": {
|
|
10
|
-
"value": "Level three. fdff",
|
|
11
|
-
"key": "LEVELONE#LEVELTWO#LEVELTHREEESCAPE",
|
|
12
|
-
"placeholder": "$COMMENT#LEVELONE#LEVELTWO#LEVELTHREEESCAPE"
|
|
13
|
-
},
|
|
14
9
|
"stillLevelThree": {
|
|
15
10
|
"value": "Level three.",
|
|
16
11
|
"key": "LEVELONE#LEVELTWO#STILLLEVELTHREE",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "comment-variables",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.4",
|
|
4
4
|
"description": "A CLI tool for configuring, managing and maintaining JavaScript comments as JavaScript variables.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"jscomments": "./library/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"type": "module",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@eslint/markdown": "^6.5.0",
|
|
30
|
-
"comment-variables-resolve-config": "^1.
|
|
30
|
+
"comment-variables-resolve-config": "^1.11.0",
|
|
31
31
|
"eslint": "^9.29.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|