From d7aaab685ee23ebcd60b69211b02f6a66f57fa17 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 19 Jul 2020 22:05:37 -0400 Subject: Dev dependencies updates (#679) * Update eslint to 7.5.0 * Update eslint-plugin-no-unsanitized to 3.1.2 * Update fake-indexeddb to 3.1.1 * Rename DictionaryImporter.import to .importDictionary Conflicts with o-unsanitized/method --- ext/bg/js/backend.js | 4 ++-- ext/bg/js/dictionary-importer.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/bg') diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js index 9bdcc18a..74680099 100644 --- a/ext/bg/js/backend.js +++ b/ext/bg/js/backend.js @@ -757,7 +757,7 @@ class Backend { } async _onApiImportDictionaryArchive({archiveContent, details}, sender, onProgress) { - return await this._dictionaryImporter.import(this._dictionaryDatabase, archiveContent, details, onProgress); + return await this._dictionaryImporter.importDictionary(this._dictionaryDatabase, archiveContent, details, onProgress); } async _onApiDeleteDictionary({dictionaryName}, sender, onProgress) { @@ -1064,7 +1064,7 @@ class Backend { } async _importDictionary(archiveSource, onProgress, details) { - return await this._dictionaryImporter.import(this._dictionaryDatabase, archiveSource, onProgress, details); + return await this._dictionaryImporter.importDictionary(this._dictionaryDatabase, archiveSource, onProgress, details); } async _textParseScanning(text, options) { diff --git a/ext/bg/js/dictionary-importer.js b/ext/bg/js/dictionary-importer.js index 12f3129d..69d5c386 100644 --- a/ext/bg/js/dictionary-importer.js +++ b/ext/bg/js/dictionary-importer.js @@ -27,7 +27,7 @@ class DictionaryImporter { this._schemas = new Map(); } - async import(dictionaryDatabase, archiveSource, details, onProgress) { + async importDictionary(dictionaryDatabase, archiveSource, details, onProgress) { if (!dictionaryDatabase) { throw new Error('Invalid database'); } -- cgit v1.2.3