verdaccio
Version:
A lightweight private npm proxy registry
1 lines • 1.22 kB
Source Map (JSON)
{"version":3,"file":"experiments.mjs","names":[],"sources":["../../src/lib/experiments.ts"],"sourcesContent":["// the local wrapper keeps a live binding; importing `logger` straight from the\n// CJS @verdaccio/logger package snapshots `undefined` in the ESM build\nimport { logger } from './logger';\n\nexport function displayExperimentsInfoBox(flags) {\n if (!flags) {\n return {\n searchRemote: false,\n };\n }\n\n const experimentList = Object.keys(flags);\n if (experimentList.length >= 1) {\n logger.warn(\n `experiments are enabled, it is recommended do not use experiments in production comment out this section to disable it`\n );\n experimentList.forEach((experiment) => {\n logger.info(\n `support for experiment [${experiment}] ${\n flags[experiment] ? 'is enabled' : ' is disabled'\n }`\n );\n });\n }\n return { ...flags, searchRemote: false };\n}\n"],"mappings":";;AAIA,SAAgB,0BAA0B,OAAO;CAC/C,IAAI,CAAC,OACH,OAAO,EACL,cAAc,MAChB;CAGF,MAAM,iBAAiB,OAAO,KAAK,KAAK;CACxC,IAAI,eAAe,UAAU,GAAG;EAC9B,OAAO,KACL,wHACF;EACA,eAAe,SAAS,eAAe;GACrC,OAAO,KACL,2BAA2B,WAAW,IACpC,MAAM,cAAc,eAAe,gBAEvC;EACF,CAAC;CACH;CACA,OAAO;EAAE,GAAG;EAAO,cAAc;CAAM;AACzC"}