{"version":3,"sources":["jsdelivr-header.js","/npm/@adobe/create-helix-service@2.2.17/src/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OCKO,SAAU,kCACR,WAAc,+CACN,WAAc,6BACtB,aAAgB,eAQzB,SAAS,IAAI,EAAS,GACpB,MAAM,EAAO,IAAI,IAAI,EAAQ,KAAK,aAAa,IAAI,SAAW,QAE9D,OADA,EAAQ,IAAI,KAAK,oBAAoB,MAC9B,IAAI,SAAS,UAAU,KAChC,QAEO,MAAM,KAAO,KAAK,KACtB,KAAK,QACL,KAAK,OAAO,OACZ,KAAK","file":"/npm/@adobe/create-helix-service@2.2.17/src/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@adobe/create-helix-service@2.2.17/src/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/*\n * Copyright 2019 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nimport wrap from '@adobe/helix-shared-wrap';\nimport { logger } from '@adobe/helix-universal-logger';\nimport { wrap as status } from '@adobe/helix-status';\nimport { Response } from '@adobe/fetch';\n\n/**\n * This is the main function\n * @param {Request} request the request object (see fetch api)\n * @param {UniversalContext} context the context of the universal serverless function\n * @returns {Response} a response\n */\nfunction run(request, context) {\n  const name = new URL(request.url).searchParams.get('name') || 'world';\n  context.log.info(`Saying hello to: ${name}.`);\n  return new Response(`Hello, ${name}.`);\n}\n\nexport const main = wrap(run)\n  .with(status)\n  .with(logger.trace)\n  .with(logger);\n"]}