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

1 line
5.8 KiB
JSON

{"ast":null,"code":"\"use strict\";\n\nvar __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = {\n enumerable: true,\n get: function () {\n return m[k];\n }\n };\n }\n Object.defineProperty(o, k2, desc);\n} : function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar __exportStar = this && this.__exportStar || function (m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createClient = void 0;\nconst config_1 = require(\"@libsql/core/config\");\nconst sqlite3_js_1 = require(\"./sqlite3.js\");\nconst ws_js_1 = require(\"./ws.js\");\nconst http_js_1 = require(\"./http.js\");\n__exportStar(require(\"@libsql/core/api\"), exports);\n/** Creates a {@link Client} object.\n *\n * You must pass at least an `url` in the {@link Config} object.\n */\nfunction createClient(config) {\n return _createClient((0, config_1.expandConfig)(config, true));\n}\nexports.createClient = createClient;\nfunction _createClient(config) {\n if (config.scheme === \"wss\" || config.scheme === \"ws\") {\n return (0, ws_js_1._createClient)(config);\n } else if (config.scheme === \"https\" || config.scheme === \"http\") {\n return (0, http_js_1._createClient)(config);\n } else {\n return (0, sqlite3_js_1._createClient)(config);\n }\n}","map":{"version":3,"names":["__createBinding","Object","create","o","m","k","k2","undefined","desc","getOwnPropertyDescriptor","__esModule","writable","configurable","enumerable","get","defineProperty","__exportStar","exports","p","prototype","hasOwnProperty","call","value","createClient","config_1","require","sqlite3_js_1","ws_js_1","http_js_1","config","_createClient","expandConfig","scheme"],"sources":["/Users/shoofle/Projects/the-forest/node_modules/@libsql/client/lib-cjs/node.js"],"sourcesContent":["\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createClient = void 0;\nconst config_1 = require(\"@libsql/core/config\");\nconst sqlite3_js_1 = require(\"./sqlite3.js\");\nconst ws_js_1 = require(\"./ws.js\");\nconst http_js_1 = require(\"./http.js\");\n__exportStar(require(\"@libsql/core/api\"), exports);\n/** Creates a {@link Client} object.\n *\n * You must pass at least an `url` in the {@link Config} object.\n */\nfunction createClient(config) {\n return _createClient((0, config_1.expandConfig)(config, true));\n}\nexports.createClient = createClient;\nfunction _createClient(config) {\n if (config.scheme === \"wss\" || config.scheme === \"ws\") {\n return (0, ws_js_1._createClient)(config);\n }\n else if (config.scheme === \"https\" || config.scheme === \"http\") {\n return (0, http_js_1._createClient)(config);\n }\n else {\n return (0, sqlite3_js_1._createClient)(config);\n }\n}\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,eAAe,GAAI,IAAI,IAAI,IAAI,CAACA,eAAe,KAAMC,MAAM,CAACC,MAAM,GAAI,UAASC,CAAC,EAAEC,CAAC,EAAEC,CAAC,EAAEC,EAAE,EAAE;EAC5F,IAAIA,EAAE,KAAKC,SAAS,EAAED,EAAE,GAAGD,CAAC;EAC5B,IAAIG,IAAI,GAAGP,MAAM,CAACQ,wBAAwB,CAACL,CAAC,EAAEC,CAAC,CA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