{
  "version": 3,
  "sources": ["../../../../src/packages/plugin-commands-env/getNodeMirror.ts"],
  "sourcesContent": ["import type { Config } from '../config/index.ts';\n\nexport function getNodeMirror(\n  rawConfig: Config['rawConfig'],\n  releaseChannel: string\n): string {\n  // This is a dynamic lookup since the 'use-node-version' option is allowed to be '<releaseChannel>/<version>'\n  const configKey = `node-mirror:${releaseChannel}`;\n  const nodeMirror =\n    rawConfig[configKey] ?? `https://nodejs.org/download/${releaseChannel}/`;\n  return normalizeNodeMirror(nodeMirror);\n}\n\nfunction normalizeNodeMirror(nodeMirror: string): string {\n  return nodeMirror.endsWith('/') ? nodeMirror : `${nodeMirror}/`;\n}\n"],
  "mappings": "AAEO,SAAS,cACd,WACA,gBACQ;AAER,QAAM,YAAY,eAAe,cAAc;AAC/C,QAAM,aACJ,UAAU,SAAS,KAAK,+BAA+B,cAAc;AACvE,SAAO,oBAAoB,UAAU;AACvC;AAEA,SAAS,oBAAoB,YAA4B;AACvD,SAAO,WAAW,SAAS,GAAG,IAAI,aAAa,GAAG,UAAU;AAC9D;",
  "names": []
}
