@a_kawashiro/jendeley
Advanced tools
Comparing version 2.2.3 to 2.3.0
@@ -300,2 +300,12 @@ "use strict"; | ||
const sande = (0, score_1.getScoreAndEntry)(e, requestGetDB); | ||
const score = sande[0]; | ||
if (score.title == Number.NEGATIVE_INFINITY || | ||
score.text == Number.NEGATIVE_INFINITY || | ||
score.authors == Number.NEGATIVE_INFINITY || | ||
score.tags == Number.NEGATIVE_INFINITY || | ||
score.comments == Number.NEGATIVE_INFINITY || | ||
score.year == Number.NEGATIVE_INFINITY || | ||
score.publisher == Number.NEGATIVE_INFINITY) { | ||
continue; | ||
} | ||
scoreAndEntry.push(sande); | ||
@@ -302,0 +312,0 @@ } |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.MAX_ENTRIES_IN_GET_API = exports.JENDELEY_DIR = exports.JENDELEY_VERSION = exports.ARXIV_API_URL = exports.ID_TYPE_URL = exports.ID_TYPE_META = exports.ID_TYPE_BOOK = exports.ID_TYPE_PATH = exports.ID_TYPE_ISBN = exports.ID_TYPE_DOI = exports.ID_TYPE_ARXIV = exports.ENTRY_DATA_FROM_ARXIV = exports.ENTRY_TITLE = exports.ENTRY_TEXT = exports.ENTRY_COMMENTS = exports.ENTRY_TAGS = exports.ENTRY_URL = exports.ENTRY_PATH = exports.ENTRY_AUTHORS = exports.ENTRY_ID_TYPE = exports.DB_META_KEY = exports.JENDELEY_NO_ID = exports.JENDELEY_NO_TRACK = exports.TITLE_EDITABLE_ID_TYPES = exports.AUTHORES_EDITABLE_ID_TYPES = void 0; | ||
const JENDELEY_VERSION = "2.2.3"; | ||
const JENDELEY_VERSION = "2.3.0"; | ||
exports.JENDELEY_VERSION = JENDELEY_VERSION; | ||
@@ -6,0 +6,0 @@ const JENDELEY_NO_TRACK = "[jendeley no track]"; |
@@ -71,3 +71,3 @@ "use strict"; | ||
if (query == undefined) { | ||
return [Number.NEGATIVE_INFINITY, text.slice(0, 140) + "..."]; | ||
return [0, text.slice(0, 140) + "..."]; | ||
} | ||
@@ -105,3 +105,3 @@ else { | ||
const end = process.hrtime.bigint(); | ||
// logger.info(" in " + (end - start) / BigInt(1000 * 1000) + " ms"); | ||
logger_1.logger.debug("Text search in " + (end - start) / BigInt(1000 * 1000) + " ms"); | ||
entry.text = text; | ||
@@ -150,2 +150,16 @@ const [titleScore, _] = getScoreAndText(entry.title, requestGetDB.title, undefined); | ||
}; | ||
logger_1.logger.debug("title: " + | ||
titleScore + | ||
" text: " + | ||
textScore + | ||
" authors: " + | ||
authorsScore + | ||
" tags: " + | ||
tagsScore + | ||
" comments: " + | ||
commentsScore + | ||
" year: " + | ||
yearScore + | ||
" publisher: " + | ||
publisherScore); | ||
return [score, entry]; | ||
@@ -152,0 +166,0 @@ } |
@@ -16,3 +16,5 @@ "use strict"; | ||
const load_db_1 = require("./load_db"); | ||
const constants_1 = require("./constants"); | ||
function startServer(dbPath, allowCors, port) { | ||
logger_1.logger.info("startServer version: " + constants_1.JENDELEY_VERSION); | ||
if (fs_1.default.existsSync((0, path_util_1.concatDirs)(dbPath))) { | ||
@@ -19,0 +21,0 @@ { |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "2.2.3", | ||
"version": "2.3.0", | ||
"description": "", | ||
@@ -9,0 +9,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
6954662
8484
2