From 64b57b93432a29d811956d7dcdfafb144b03c6e4 Mon Sep 17 00:00:00 2001 From: Ives van Hoorne Date: Fri, 22 Apr 2022 10:17:52 +0200 Subject: [PATCH] fix: make private npm backwards compatible with the server --- packages/app/src/sandbox/compile.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/app/src/sandbox/compile.ts b/packages/app/src/sandbox/compile.ts index 72d994a07a6..a8f8108049e 100644 --- a/packages/app/src/sandbox/compile.ts +++ b/packages/app/src/sandbox/compile.ts @@ -345,6 +345,10 @@ async function initializeManager( options.scopeWhitelist = registry.enabledScopes; } + // In case the API is not including the field yet + if (typeof registry.proxyEnabled === 'undefined') { + registry.proxyEnabled = true; + } if (registry.proxyEnabled) { // With our custom proxy on the server we want to handle downloading // the tarball. So we proxy it.