@antongolub/lockfile 0.0.0-snapshot.59 → 0.0.0-snapshot.60
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/dist/formats/yarn-classic.js +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
|
@@ -1345,7 +1345,7 @@ function stringify(graph, options = {}) {
|
|
|
1345
1345
|
if (dependencies.length > 0) {
|
|
1346
1346
|
lines.push(" dependencies:");
|
|
1347
1347
|
for (const [name, range] of dependencies) {
|
|
1348
|
-
lines.push(` ${quoteDepName(name)} "${escapeQuoted(range)}"`);
|
|
1348
|
+
lines.push(` ${quoteDepName(name)} ${mustQuoteSpec(range) ? `"${escapeQuoted(range)}"` : range}`);
|
|
1349
1349
|
}
|
|
1350
1350
|
}
|
|
1351
1351
|
const optionalDependencies = withUnresolvedDepRefs(
|
|
@@ -1355,7 +1355,7 @@ function stringify(graph, options = {}) {
|
|
|
1355
1355
|
if (optionalDependencies.length > 0) {
|
|
1356
1356
|
lines.push(" optionalDependencies:");
|
|
1357
1357
|
for (const [name, range] of optionalDependencies) {
|
|
1358
|
-
lines.push(` ${quoteDepName(name)} "${escapeQuoted(range)}"`);
|
|
1358
|
+
lines.push(` ${quoteDepName(name)} ${mustQuoteSpec(range) ? `"${escapeQuoted(range)}"` : range}`);
|
|
1359
1359
|
}
|
|
1360
1360
|
}
|
|
1361
1361
|
return { key, text: lines.join("\n") };
|
package/dist/index.js
CHANGED
|
@@ -7799,7 +7799,7 @@ function stringify16(graph, options = {}) {
|
|
|
7799
7799
|
if (dependencies.length > 0) {
|
|
7800
7800
|
lines.push(" dependencies:");
|
|
7801
7801
|
for (const [name, range] of dependencies) {
|
|
7802
|
-
lines.push(` ${quoteDepName(name)} "${escapeQuoted2(range)}"`);
|
|
7802
|
+
lines.push(` ${quoteDepName(name)} ${mustQuoteSpec(range) ? `"${escapeQuoted2(range)}"` : range}`);
|
|
7803
7803
|
}
|
|
7804
7804
|
}
|
|
7805
7805
|
const optionalDependencies = withUnresolvedDepRefs2(
|
|
@@ -7809,7 +7809,7 @@ function stringify16(graph, options = {}) {
|
|
|
7809
7809
|
if (optionalDependencies.length > 0) {
|
|
7810
7810
|
lines.push(" optionalDependencies:");
|
|
7811
7811
|
for (const [name, range] of optionalDependencies) {
|
|
7812
|
-
lines.push(` ${quoteDepName(name)} "${escapeQuoted2(range)}"`);
|
|
7812
|
+
lines.push(` ${quoteDepName(name)} ${mustQuoteSpec(range) ? `"${escapeQuoted2(range)}"` : range}`);
|
|
7813
7813
|
}
|
|
7814
7814
|
}
|
|
7815
7815
|
return { key, text: lines.join("\n") };
|