From 953ddd82e48dd206cef5ac94456549aed13b3ad5 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Fri, 17 Nov 2023 23:25:29 +0100 Subject: Updated 30 files and deleted 2976 files (automated) --- .../matrix/node_modules/matrix-js-sdk/lib/indexeddb-helpers.js.map | 1 - 1 file changed, 1 deletion(-) delete mode 100644 includes/external/matrix/node_modules/matrix-js-sdk/lib/indexeddb-helpers.js.map (limited to 'includes/external/matrix/node_modules/matrix-js-sdk/lib/indexeddb-helpers.js.map') diff --git a/includes/external/matrix/node_modules/matrix-js-sdk/lib/indexeddb-helpers.js.map b/includes/external/matrix/node_modules/matrix-js-sdk/lib/indexeddb-helpers.js.map deleted file mode 100644 index 33a8ca1..0000000 --- a/includes/external/matrix/node_modules/matrix-js-sdk/lib/indexeddb-helpers.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"indexeddb-helpers.js","names":["exists","indexedDB","dbName","Promise","resolve","reject","req","open","onupgradeneeded","onblocked","error","onsuccess","db","result","close","deleteDatabase","onerror"],"sources":["../src/indexeddb-helpers.ts"],"sourcesContent":["/*\nCopyright 2019 New Vector Ltd\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\n/**\n * Check if an IndexedDB database exists. The only way to do so is to try opening it, so\n * we do that and then delete it did not exist before.\n *\n * @param indexedDB - The `indexedDB` interface\n * @param dbName - The database name to test for\n * @returns Whether the database exists\n */\nexport function exists(indexedDB: IDBFactory, dbName: string): Promise {\n return new Promise((resolve, reject) => {\n let exists = true;\n const req = indexedDB.open(dbName);\n req.onupgradeneeded = (): void => {\n // Since we did not provide an explicit version when opening, this event\n // should only fire if the DB did not exist before at any version.\n exists = false;\n };\n req.onblocked = (): void => reject(req.error);\n req.onsuccess = (): void => {\n const db = req.result;\n db.close();\n if (!exists) {\n // The DB did not exist before, but has been created as part of this\n // existence check. Delete it now to restore previous state. Delete can\n // actually take a while to complete in some browsers, so don't wait for\n // it. This won't block future open calls that a store might issue next to\n // properly set up the DB.\n indexedDB.deleteDatabase(dbName);\n }\n resolve(exists);\n };\n req.onerror = (): void => reject(req.error);\n });\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,MAAMA,CAACC,SAAqB,EAAEC,MAAc,EAAoB;EAC5E,OAAO,IAAIC,OAAO,CAAU,CAACC,OAAO,EAAEC,MAAM,KAAK;IAC7C,IAAIL,MAAM,GAAG,IAAI;IACjB,MAAMM,GAAG,GAAGL,SAAS,CAACM,IAAI,CAACL,MAAM,CAAC;IAClCI,GAAG,CAACE,eAAe,GAAG,MAAY;MAC9B;MACA;MACAR,MAAM,GAAG,KAAK;IAClB,CAAC;IACDM,GAAG,CAACG,SAAS,GAAG,MAAYJ,MAAM,CAACC,GAAG,CAACI,KAAK,CAAC;IAC7CJ,GAAG,CAACK,SAAS,GAAG,MAAY;MACxB,MAAMC,EAAE,GAAGN,GAAG,CAACO,MAAM;MACrBD,EAAE,CAACE,KAAK,EAAE;MACV,IAAI,CAACd,MAAM,EAAE;QACT;QACA;QACA;QACA;QACA;QACAC,SAAS,CAACc,cAAc,CAACb,MAAM,CAAC;MACpC;MACAE,OAAO,CAACJ,MAAM,CAAC;IACnB,CAAC;IACDM,GAAG,CAACU,OAAO,GAAG,MAAYX,MAAM,CAACC,GAAG,CAACI,KAAK,CAAC;EAC/C,CAAC,CAAC;AACN"} \ No newline at end of file -- cgit