1 line
5.8 KiB
JSON
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,
|