@coana-tech/cli 14.12.216 → 14.12.218
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/cli.mjs +47 -7
- package/package.json +1 -1
- package/repos/coana-tech/goana/bin/goana-darwin-amd64.gz +0 -0
- package/repos/coana-tech/goana/bin/goana-darwin-arm64.gz +0 -0
- package/repos/coana-tech/goana/bin/goana-linux-amd64.gz +0 -0
- package/repos/coana-tech/goana/bin/goana-linux-arm64.gz +0 -0
- package/repos/coana-tech/javap-service/javap-service.jar +0 -0
package/cli.mjs
CHANGED
|
@@ -225843,14 +225843,25 @@ var YarnFixingManager = class extends NpmEcosystemFixingManager {
|
|
|
225843
225843
|
([pkgIdentifier, pkgObj2]) => pkgIdentifier.startsWith(`${fix.dependencyName}@`) && pkgObj2.version === fix.currentVersion
|
|
225844
225844
|
);
|
|
225845
225845
|
if (!packageToFix) return;
|
|
225846
|
-
const [, pkgObj] = packageToFix;
|
|
225846
|
+
const [oldKey, pkgObj] = packageToFix;
|
|
225847
225847
|
const packageDetails = await getPackageVersionDetailsFromNpm(fix.dependencyName, fix.fixedVersion);
|
|
225848
|
-
|
|
225849
|
-
|
|
225850
|
-
|
|
225851
|
-
|
|
225852
|
-
});
|
|
225848
|
+
pkgObj.version = fix.fixedVersion;
|
|
225849
|
+
pkgObj.resolution = `${fix.dependencyName}@npm:${fix.fixedVersion}`;
|
|
225850
|
+
setOrDelete(pkgObj, "dependencies", withBerryNpmDescriptors(packageDetails.dependencies));
|
|
225851
|
+
setOrDelete(pkgObj, "optionalDependencies", withBerryNpmDescriptors(packageDetails.optionalDependencies));
|
|
225853
225852
|
delete pkgObj.checksum;
|
|
225853
|
+
const exactOldKey = `${fix.dependencyName}@npm:${fix.currentVersion}`;
|
|
225854
|
+
const newKey = `${fix.dependencyName}@npm:${fix.fixedVersion}`;
|
|
225855
|
+
if (oldKey === exactOldKey && newKey !== oldKey) {
|
|
225856
|
+
const lock = yarnLock;
|
|
225857
|
+
if (lock[newKey] !== void 0 && lock[newKey] !== pkgObj) {
|
|
225858
|
+
throw new Error(
|
|
225859
|
+
`Cannot rename lockfile entry "${oldKey}" to "${newKey}": target key already exists with different contents`
|
|
225860
|
+
);
|
|
225861
|
+
}
|
|
225862
|
+
lock[newKey] = pkgObj;
|
|
225863
|
+
delete lock[oldKey];
|
|
225864
|
+
}
|
|
225854
225865
|
});
|
|
225855
225866
|
await this.writeYarnObj(yarnLock, yarnLockLocation);
|
|
225856
225867
|
}
|
|
@@ -225895,6 +225906,21 @@ var YarnFixingManager = class extends NpmEcosystemFixingManager {
|
|
|
225895
225906
|
}
|
|
225896
225907
|
}
|
|
225897
225908
|
};
|
|
225909
|
+
function withBerryNpmDescriptors(deps) {
|
|
225910
|
+
if (!deps) return deps;
|
|
225911
|
+
const result = {};
|
|
225912
|
+
for (const [name2, range2] of Object.entries(deps)) {
|
|
225913
|
+
result[name2] = /^[a-z][a-z0-9+.-]*:/i.test(range2) ? range2 : `npm:${range2}`;
|
|
225914
|
+
}
|
|
225915
|
+
return result;
|
|
225916
|
+
}
|
|
225917
|
+
function setOrDelete(obj, key, value2) {
|
|
225918
|
+
if (value2 === void 0) {
|
|
225919
|
+
delete obj[key];
|
|
225920
|
+
} else {
|
|
225921
|
+
obj[key] = value2;
|
|
225922
|
+
}
|
|
225923
|
+
}
|
|
225898
225924
|
async function checkForYarnResolutions(packageJsonPath, fixes) {
|
|
225899
225925
|
if (!existsSync16(packageJsonPath)) return;
|
|
225900
225926
|
const content = await readFile19(packageJsonPath, "utf-8");
|
|
@@ -229728,11 +229754,13 @@ var PipSocketUpgradeManager = class {
|
|
|
229728
229754
|
);
|
|
229729
229755
|
pyprojectTomlMatcher = (0, import_picomatch8.default)("pyproject.toml", { basename: true });
|
|
229730
229756
|
uvLockMatcher = (0, import_picomatch8.default)("uv.lock", { basename: true });
|
|
229757
|
+
poetryLockMatcher = (0, import_picomatch8.default)("poetry.lock", { basename: true });
|
|
229731
229758
|
async applySocketArtifactUpgrades(ctxt) {
|
|
229732
229759
|
const pyprojectTomlFiles = ctxt.manifestFiles.filter((f6) => this.pyprojectTomlMatcher(f6));
|
|
229733
229760
|
const patches = [];
|
|
229734
229761
|
const uvLockFilesToValidate = /* @__PURE__ */ new Set();
|
|
229735
229762
|
const lockFileToDepTree = /* @__PURE__ */ new Map();
|
|
229763
|
+
const poetryLockArtifacts = /* @__PURE__ */ new Map();
|
|
229736
229764
|
for (const [idx, upgradeVersion] of ctxt.upgrades) {
|
|
229737
229765
|
const artifact = ctxt.artifacts[idx];
|
|
229738
229766
|
assert13(artifact.name);
|
|
@@ -229804,6 +229832,10 @@ var PipSocketUpgradeManager = class {
|
|
|
229804
229832
|
patches.push(...await this.createUvLockPatches(mf.file, idx, upgradeVersion, ctxt));
|
|
229805
229833
|
uvLockFilesToValidate.add(mf.file);
|
|
229806
229834
|
patches.push(...await this.createOverrideDependencyUpdatePatches(rootTomlFile, idx, upgradeVersion, ctxt));
|
|
229835
|
+
} else if (this.poetryLockMatcher(mf.file)) {
|
|
229836
|
+
const existing = poetryLockArtifacts.get(mf.file) ?? [];
|
|
229837
|
+
existing.push(idx);
|
|
229838
|
+
poetryLockArtifacts.set(mf.file, existing);
|
|
229807
229839
|
} else {
|
|
229808
229840
|
ctxt.statusUpdater?.({
|
|
229809
229841
|
status: "error",
|
|
@@ -229823,6 +229855,14 @@ var PipSocketUpgradeManager = class {
|
|
|
229823
229855
|
}
|
|
229824
229856
|
}
|
|
229825
229857
|
}
|
|
229858
|
+
for (const [file, artifacts] of poetryLockArtifacts) {
|
|
229859
|
+
ctxt.statusUpdater?.({
|
|
229860
|
+
status: "error",
|
|
229861
|
+
file,
|
|
229862
|
+
artifacts,
|
|
229863
|
+
message: "The Poetry package manager is not currently supported for upgrades"
|
|
229864
|
+
});
|
|
229865
|
+
}
|
|
229826
229866
|
await applyPatches("PIP", this.rootDir, patches, ctxt);
|
|
229827
229867
|
for (const lockFile of uvLockFilesToValidate) {
|
|
229828
229868
|
const upgradesForLockFile = [];
|
|
@@ -251791,7 +251831,7 @@ async function onlineScan(dependencyTree, apiKey, timeout) {
|
|
|
251791
251831
|
}
|
|
251792
251832
|
|
|
251793
251833
|
// dist/version.js
|
|
251794
|
-
var version3 = "14.12.
|
|
251834
|
+
var version3 = "14.12.218";
|
|
251795
251835
|
|
|
251796
251836
|
// dist/cli-core.js
|
|
251797
251837
|
var { mapValues, omit, partition, pickBy: pickBy2 } = import_lodash15.default;
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|