{"version":3,"sources":["jsdelivr-header.js","/npm/rethinkdb-ensuretable@1.1.0/lib/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aACA,MAAM,EAAI,QAAQ,aAClB,SAAS,YAAY,EAAY,EAAI,GACjC,OAAO,EAAE,GAAG,GAAI,YAAY,IAAI,GAC3B,MAAM,IACP,IAA+B,IAA3B,EAAO,QAAQ,GACf,OAAO,EAAE,GAAG,GAAI,YAAY,GAAO,IAAI,EAC3C,IAEC,MAAK,IAAM,EAAE,GAAG,GAAI,MAAM,IACnC,CACA,OAAO,eAAe,QAAS,aAAc,CAAE,OAAO,IACtD,QAAQ,QAAU","file":"/npm/rethinkdb-ensuretable@1.1.0/lib/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/rethinkdb-ensuretable@1.1.0/lib/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","\"use strict\";\nconst r = require(\"rethinkdb\");\nfunction ensureTable(connection, db, table) {\n    return r.db(db).tableList().run(connection)\n        .then((tables) => {\n        if (tables.indexOf(table) === -1) {\n            return r.db(db).tableCreate(table).run(connection);\n        }\n    })\n        .then(() => r.db(db).table(table));\n}\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = ensureTable;\n"]}