the-forest/client/node_modules/.cache/babel-loader/f82f65b67d65c9d40f19258113a02f513c8a0f28c0ea4df5e7d6cd6727f10b8b.json
2024-09-17 20:35:18 -04:00

1 line
2.2 KiB
JSON

{"ast":null,"code":"import http from 'http';\nimport https from 'https';\nconst _Request = Request;\nconst _Headers = Headers;\nconst httpAgent = new http.Agent({\n keepAlive: true\n});\nconst httpsAgent = new https.Agent({\n keepAlive: true\n});\nfunction agentSelector(parsedUrl) {\n if (parsedUrl.protocol === 'https:') {\n return httpsAgent;\n } else {\n return httpAgent;\n }\n}\nfunction fetchWithAgentSelection(resource, options = {}) {\n return fetch(resource, {\n agent: agentSelector,\n ...options\n });\n}\nexport { fetchWithAgentSelection as fetch, _Request as Request, _Headers as Headers };","map":{"version":3,"names":["http","https","_Request","Request","_Headers","Headers","httpAgent","Agent","keepAlive","httpsAgent","agentSelector","parsedUrl","protocol","fetchWithAgentSelection","resource","options","fetch","agent"],"sources":["/Users/shoofle/Projects/the-forest/node_modules/@libsql/isomorphic-fetch/node.js"],"sourcesContent":["import http from 'http';\nimport https from 'https';\n\nconst _Request = Request;\nconst _Headers = Headers;\n\nconst httpAgent = new http.Agent({ keepAlive: true });\nconst httpsAgent = new https.Agent({ keepAlive: true });\n\nfunction agentSelector(parsedUrl) {\n if (parsedUrl.protocol === 'https:') {\n return httpsAgent;\n } else {\n return httpAgent;\n }\n}\n\nfunction fetchWithAgentSelection(resource, options = {}) {\n return fetch(resource, { agent: agentSelector, ...options });\n}\nexport { fetchWithAgentSelection as fetch, _Request as Request, _Headers as Headers};"],"mappings":"AAAA,OAAOA,IAAI,MAAM,MAAM;AACvB,OAAOC,KAAK,MAAM,OAAO;AAEzB,MAAMC,QAAQ,GAAGC,OAAO;AACxB,MAAMC,QAAQ,GAAGC,OAAO;AAExB,MAAMC,SAAS,GAAG,IAAIN,IAAI,CAACO,KAAK,CAAC;EAAEC,SAAS,EAAE;AAAK,CAAC,CAAC;AACrD,MAAMC,UAAU,GAAG,IAAIR,KAAK,CAACM,KAAK,CAAC;EAAEC,SAAS,EAAE;AAAK,CAAC,CAAC;AAEvD,SAASE,aAAaA,CAACC,SAAS,EAAE;EAC9B,IAAIA,SAAS,CAACC,QAAQ,KAAK,QAAQ,EAAE;IACjC,OAAOH,UAAU;EACrB,CAAC,MAAM;IACH,OAAOH,SAAS;EACpB;AACJ;AAEA,SAASO,uBAAuBA,CAACC,QAAQ,EAAEC,OAAO,GAAG,CAAC,CAAC,EAAE;EACrD,OAAOC,KAAK,CAACF,QAAQ,EAAE;IAAEG,KAAK,EAAEP,aAAa;IAAE,GAAGK;EAAQ,CAAC,CAAC;AAChE;AACA,SAASF,uBAAuB,IAAIG,KAAK,EAAEd,QAAQ,IAAIC,OAAO,EAAEC,QAAQ,IAAIC,OAAO","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}