{"version":3,"sources":["jsdelivr-header.js","/npm/cypress-postgres-10v-compatibility@1.0.0/cypress/plugins/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACMA,MAAM,IAAM,QAAQ,aAAR,GACN,gBAAkB,QAAQ,QAAQ,QAAQ,QAAQ,sBAExD,OAAO,QAAW,SAAS,EAAM,GAC/B,IAAI,EAAa,gBAAgB,GACP,MAAtB,IACF,EAAW,GAGb,IAAI,EADO,IAAI,GACG,IAAI,GAEtB,OADA,IAAI,MACG,CACT","file":"/npm/cypress-postgres-10v-compatibility@1.0.0/cypress/plugins/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/cypress-postgres-10v-compatibility@1.0.0/cypress/plugins/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","// ***********************************************************\r\n// This example plugins/index.js can be used to load plugins\r\n//\r\n// You can change the location of this file or turn off loading\r\n// the plugins file with the 'pluginsFile' configuration option.\r\n//\r\n// You can read more here:\r\n// https://on.cypress.io/plugins-guide\r\n// ***********************************************************\r\n\r\n// This function is called when a project is opened or re-opened (e.g. due to\r\n// the project's config changing)\r\nconst pgp = require('pg-promise')();\r\nconst postgressConfig = require(require('path').resolve('cypress.config.js'));\r\n\r\nmodule.exports =  function(query,userDefineConnection)  {\r\n  let connection = postgressConfig.db\r\n  if (userDefineConnection!=undefined){\r\n    connection=userDefineConnection\r\n  }\r\n  const db = pgp(connection);\r\n  let response = db.any(query);\r\n  pgp.end();\r\n  return response;\r\n}\r\n\r\n\r\n"]}