snyk 1.1292.0 → 1.1292.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.
@@ -148,7 +148,13 @@ async function monitor(...args0) {
148
148
  const [monitorResults, monitorErrors] = commandResult;
149
149
  return await (0, monitor_2.getFormattedMonitorOutput)(results, monitorResults, monitorErrors, options);
150
150
  }
151
- const hasPnpmSupport = await (0, feature_flags_1.hasFeatureFlag)(package_managers_1.PNPM_FEATURE_FLAG, options);
151
+ let hasPnpmSupport = false;
152
+ try {
153
+ hasPnpmSupport = (await (0, feature_flags_1.hasFeatureFlag)(package_managers_1.PNPM_FEATURE_FLAG, options));
154
+ }
155
+ catch (err) {
156
+ hasPnpmSupport = false;
157
+ }
152
158
  const featureFlags = hasPnpmSupport
153
159
  ? new Set([package_managers_1.PNPM_FEATURE_FLAG])
154
160
  : new Set();
@@ -7355,9 +7361,13 @@ async function test(root, options, callback) {
7355
7361
  }
7356
7362
 
7357
7363
  async function executeTest(root, options) {
7364
+ let hasPnpmSupport = false;
7365
+ try {
7366
+ hasPnpmSupport = await hasFeatureFlag(PNPM_FEATURE_FLAG, options);
7367
+ } catch (err) {
7368
+ hasPnpmSupport = false;
7369
+ }
7358
7370
  try {
7359
- const hasPnpmSupport = await hasFeatureFlag(PNPM_FEATURE_FLAG, options);
7360
-
7361
7371
  const featureFlags = hasPnpmSupport
7362
7372
  ? new Set([PNPM_FEATURE_FLAG])
7363
7373
  : new Set([]);