@antongolub/lockfile 0.0.0-snapshot.60 → 0.0.0-snapshot.61
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 +5 -3
- package/dist/index.js +5 -3
- package/package.json +1 -1
|
@@ -1320,7 +1320,9 @@ function stringify(graph, options = {}) {
|
|
|
1320
1320
|
warnPatchDrop(node, warnedPatches, emitDiagnostic);
|
|
1321
1321
|
warnPeerContextFlatten(node, warnedPeerContexts, emitDiagnostic);
|
|
1322
1322
|
warnDroppedPeerEdges(graph, node.id, warnedPeerEdges, emitDiagnostic);
|
|
1323
|
-
const
|
|
1323
|
+
const specs = entrySpecsOfNode(graph, node);
|
|
1324
|
+
const key = stringifyEntryKey(specs);
|
|
1325
|
+
const entrySortKey = specs[0] ?? key;
|
|
1324
1326
|
const lines = [
|
|
1325
1327
|
`${key}:`,
|
|
1326
1328
|
` version "${escapeQuoted(node.version)}"`
|
|
@@ -1358,8 +1360,8 @@ function stringify(graph, options = {}) {
|
|
|
1358
1360
|
lines.push(` ${quoteDepName(name)} ${mustQuoteSpec(range) ? `"${escapeQuoted(range)}"` : range}`);
|
|
1359
1361
|
}
|
|
1360
1362
|
}
|
|
1361
|
-
return { key, text: lines.join("\n") };
|
|
1362
|
-
}).sort((a, b) => cmpUtf16(a.
|
|
1363
|
+
return { key, text: lines.join("\n"), entrySortKey };
|
|
1364
|
+
}).sort((a, b) => cmpUtf16(a.entrySortKey, b.entrySortKey));
|
|
1363
1365
|
const body = entries.length === 0 ? "" : `${entries.map((entry) => entry.text).join("\n\n")}
|
|
1364
1366
|
`;
|
|
1365
1367
|
const output = HEADER + body;
|
package/dist/index.js
CHANGED
|
@@ -7774,7 +7774,9 @@ function stringify16(graph, options = {}) {
|
|
|
7774
7774
|
warnPatchDrop4(node, warnedPatches, emitDiagnostic);
|
|
7775
7775
|
warnPeerContextFlatten3(node, warnedPeerContexts, emitDiagnostic);
|
|
7776
7776
|
warnDroppedPeerEdges(graph, node.id, warnedPeerEdges, emitDiagnostic);
|
|
7777
|
-
const
|
|
7777
|
+
const specs = entrySpecsOfNode(graph, node);
|
|
7778
|
+
const key = stringifyEntryKey(specs);
|
|
7779
|
+
const entrySortKey = specs[0] ?? key;
|
|
7778
7780
|
const lines = [
|
|
7779
7781
|
`${key}:`,
|
|
7780
7782
|
` version "${escapeQuoted2(node.version)}"`
|
|
@@ -7812,8 +7814,8 @@ function stringify16(graph, options = {}) {
|
|
|
7812
7814
|
lines.push(` ${quoteDepName(name)} ${mustQuoteSpec(range) ? `"${escapeQuoted2(range)}"` : range}`);
|
|
7813
7815
|
}
|
|
7814
7816
|
}
|
|
7815
|
-
return { key, text: lines.join("\n") };
|
|
7816
|
-
}).sort((a, b) => cmpUtf16(a.
|
|
7817
|
+
return { key, text: lines.join("\n"), entrySortKey };
|
|
7818
|
+
}).sort((a, b) => cmpUtf16(a.entrySortKey, b.entrySortKey));
|
|
7817
7819
|
const body = entries.length === 0 ? "" : `${entries.map((entry) => entry.text).join("\n\n")}
|
|
7818
7820
|
`;
|
|
7819
7821
|
const output = HEADER + body;
|