@coana-tech/cli 14.12.217 → 14.12.219
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 +38 -7
- package/package.json +1 -1
- package/reachability-analyzers-cli.mjs +5 -0
- 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
|
@@ -205673,6 +205673,11 @@ async function getFilesRelative(dir, excludeDirs) {
|
|
|
205673
205673
|
if (!excludeDirs?.includes(item.name)) await helper(itemPath, arrayOfFiles);
|
|
205674
205674
|
} else if (item.isFile()) {
|
|
205675
205675
|
arrayOfFiles.push(itemPath);
|
|
205676
|
+
} else if (item.isSymbolicLink()) {
|
|
205677
|
+
try {
|
|
205678
|
+
if ((await stat(join3(dir, itemPath))).isFile()) arrayOfFiles.push(itemPath);
|
|
205679
|
+
} catch {
|
|
205680
|
+
}
|
|
205676
205681
|
}
|
|
205677
205682
|
}
|
|
205678
205683
|
return arrayOfFiles;
|
|
@@ -225843,14 +225848,25 @@ var YarnFixingManager = class extends NpmEcosystemFixingManager {
|
|
|
225843
225848
|
([pkgIdentifier, pkgObj2]) => pkgIdentifier.startsWith(`${fix.dependencyName}@`) && pkgObj2.version === fix.currentVersion
|
|
225844
225849
|
);
|
|
225845
225850
|
if (!packageToFix) return;
|
|
225846
|
-
const [, pkgObj] = packageToFix;
|
|
225851
|
+
const [oldKey, pkgObj] = packageToFix;
|
|
225847
225852
|
const packageDetails = await getPackageVersionDetailsFromNpm(fix.dependencyName, fix.fixedVersion);
|
|
225848
|
-
|
|
225849
|
-
|
|
225850
|
-
|
|
225851
|
-
|
|
225852
|
-
});
|
|
225853
|
+
pkgObj.version = fix.fixedVersion;
|
|
225854
|
+
pkgObj.resolution = `${fix.dependencyName}@npm:${fix.fixedVersion}`;
|
|
225855
|
+
setOrDelete(pkgObj, "dependencies", withBerryNpmDescriptors(packageDetails.dependencies));
|
|
225856
|
+
setOrDelete(pkgObj, "optionalDependencies", withBerryNpmDescriptors(packageDetails.optionalDependencies));
|
|
225853
225857
|
delete pkgObj.checksum;
|
|
225858
|
+
const exactOldKey = `${fix.dependencyName}@npm:${fix.currentVersion}`;
|
|
225859
|
+
const newKey = `${fix.dependencyName}@npm:${fix.fixedVersion}`;
|
|
225860
|
+
if (oldKey === exactOldKey && newKey !== oldKey) {
|
|
225861
|
+
const lock = yarnLock;
|
|
225862
|
+
if (lock[newKey] !== void 0 && lock[newKey] !== pkgObj) {
|
|
225863
|
+
throw new Error(
|
|
225864
|
+
`Cannot rename lockfile entry "${oldKey}" to "${newKey}": target key already exists with different contents`
|
|
225865
|
+
);
|
|
225866
|
+
}
|
|
225867
|
+
lock[newKey] = pkgObj;
|
|
225868
|
+
delete lock[oldKey];
|
|
225869
|
+
}
|
|
225854
225870
|
});
|
|
225855
225871
|
await this.writeYarnObj(yarnLock, yarnLockLocation);
|
|
225856
225872
|
}
|
|
@@ -225895,6 +225911,21 @@ var YarnFixingManager = class extends NpmEcosystemFixingManager {
|
|
|
225895
225911
|
}
|
|
225896
225912
|
}
|
|
225897
225913
|
};
|
|
225914
|
+
function withBerryNpmDescriptors(deps) {
|
|
225915
|
+
if (!deps) return deps;
|
|
225916
|
+
const result = {};
|
|
225917
|
+
for (const [name2, range2] of Object.entries(deps)) {
|
|
225918
|
+
result[name2] = /^[a-z][a-z0-9+.-]*:/i.test(range2) ? range2 : `npm:${range2}`;
|
|
225919
|
+
}
|
|
225920
|
+
return result;
|
|
225921
|
+
}
|
|
225922
|
+
function setOrDelete(obj, key, value2) {
|
|
225923
|
+
if (value2 === void 0) {
|
|
225924
|
+
delete obj[key];
|
|
225925
|
+
} else {
|
|
225926
|
+
obj[key] = value2;
|
|
225927
|
+
}
|
|
225928
|
+
}
|
|
225898
225929
|
async function checkForYarnResolutions(packageJsonPath, fixes) {
|
|
225899
225930
|
if (!existsSync16(packageJsonPath)) return;
|
|
225900
225931
|
const content = await readFile19(packageJsonPath, "utf-8");
|
|
@@ -251805,7 +251836,7 @@ async function onlineScan(dependencyTree, apiKey, timeout) {
|
|
|
251805
251836
|
}
|
|
251806
251837
|
|
|
251807
251838
|
// dist/version.js
|
|
251808
|
-
var version3 = "14.12.
|
|
251839
|
+
var version3 = "14.12.219";
|
|
251809
251840
|
|
|
251810
251841
|
// dist/cli-core.js
|
|
251811
251842
|
var { mapValues, omit, partition, pickBy: pickBy2 } = import_lodash15.default;
|
package/package.json
CHANGED
|
@@ -81412,6 +81412,11 @@ async function getFiles(dir, excludeDirs) {
|
|
|
81412
81412
|
if (!excludeDirs?.includes(item.name)) await helper(itemPath, arrayOfFiles);
|
|
81413
81413
|
} else if (item.isFile()) {
|
|
81414
81414
|
arrayOfFiles.push(itemPath);
|
|
81415
|
+
} else if (item.isSymbolicLink()) {
|
|
81416
|
+
try {
|
|
81417
|
+
if ((await stat(itemPath)).isFile()) arrayOfFiles.push(itemPath);
|
|
81418
|
+
} catch {
|
|
81419
|
+
}
|
|
81415
81420
|
}
|
|
81416
81421
|
}
|
|
81417
81422
|
return arrayOfFiles;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|