@cleocode/caamp 1.0.0 → 1.0.1
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.
|
@@ -294,8 +294,8 @@ function isQuiet() {
|
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
// src/core/registry/detection.ts
|
|
297
|
-
import { existsSync as existsSync2 } from "fs";
|
|
298
297
|
import { execFileSync } from "child_process";
|
|
298
|
+
import { existsSync as existsSync2 } from "fs";
|
|
299
299
|
import { join as join2 } from "path";
|
|
300
300
|
var DEFAULT_DETECTION_CACHE_TTL_MS = 3e4;
|
|
301
301
|
var detectionCache = null;
|
|
@@ -377,6 +377,7 @@ function providerSignature(provider) {
|
|
|
377
377
|
});
|
|
378
378
|
}
|
|
379
379
|
function buildProvidersSignature(providers) {
|
|
380
|
+
if (!providers || !Array.isArray(providers)) return "";
|
|
380
381
|
return providers.map(providerSignature).join("|");
|
|
381
382
|
}
|
|
382
383
|
function cloneDetectionResults(results) {
|
|
@@ -407,7 +408,7 @@ function detectProjectProvider(provider, projectDir) {
|
|
|
407
408
|
return existsSync2(resolveProviderProjectPath(provider, projectDir));
|
|
408
409
|
}
|
|
409
410
|
function detectAllProviders(options = {}) {
|
|
410
|
-
const providers = getAllProviders();
|
|
411
|
+
const providers = getAllProviders() ?? [];
|
|
411
412
|
const signature = buildProvidersSignature(providers);
|
|
412
413
|
const cached = getCachedResults(signature, options);
|
|
413
414
|
if (cached) {
|
|
@@ -3307,4 +3308,4 @@ export {
|
|
|
3307
3308
|
updateInstructionsSingleOperation,
|
|
3308
3309
|
configureProviderGlobalAndProject
|
|
3309
3310
|
};
|
|
3310
|
-
//# sourceMappingURL=chunk-
|
|
3311
|
+
//# sourceMappingURL=chunk-VAFYP7CI.js.map
|