yves 1.1.2 → 1.1.3
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/lib/yves.mjs +2 -2
- package/package.json +6 -4
package/lib/yves.mjs
CHANGED
|
@@ -131,8 +131,8 @@ function stringify(obj, options, ctx) {
|
|
|
131
131
|
const escaped = options?.html ? htmlEscape(obj.replace(/`/g, '\\`')) : obj.replace(/`/g, '\\`')
|
|
132
132
|
return stylize('`' + escaped + '`', 'string')
|
|
133
133
|
}
|
|
134
|
-
const quoted = obj.indexOf(
|
|
135
|
-
? `'${obj.replace(/'/g,
|
|
134
|
+
const quoted = obj.indexOf('\'') === -1 && !options?.json
|
|
135
|
+
? `'${obj.replace(/'/g, '\\\'')}'`
|
|
136
136
|
: `"${obj.replace(/"/g, '\\"')}"`
|
|
137
137
|
return stylize(stringifyString(quoted, options), 'string')
|
|
138
138
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yves",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "a customizable value inspector",
|
|
5
5
|
"url": "http://github.com/jorisroling/yves",
|
|
6
6
|
"repository": {
|
|
@@ -39,13 +39,15 @@
|
|
|
39
39
|
"node": ">= 18"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
+
"@eslint/js": "^10.0.1",
|
|
42
43
|
"debug": "^4.4.3",
|
|
43
|
-
"deep-sort-object": "^1.0.2"
|
|
44
|
+
"deep-sort-object": "^1.0.2",
|
|
45
|
+
"globals": "^17.4.0"
|
|
44
46
|
},
|
|
45
47
|
"devDependencies": {
|
|
46
48
|
"browserify": "^17.0.1",
|
|
47
|
-
"eslint": "^10.
|
|
49
|
+
"eslint": "^10.2.0",
|
|
48
50
|
"esmify": "^2.1.1",
|
|
49
|
-
"vitest": "^
|
|
51
|
+
"vitest": "^4.1.3"
|
|
50
52
|
}
|
|
51
53
|
}
|