@a_kawashiro/jendeley
Advanced tools
Comparing version 2.1.3 to 2.2.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.1.3"; | ||
const JENDELEY_VERSION = "2.2.0"; | ||
exports.JENDELEY_VERSION = JENDELEY_VERSION; | ||
@@ -6,0 +6,0 @@ const JENDELEY_NO_TRACK = "[jendeley no track]"; |
@@ -59,3 +59,2 @@ #!/usr/bin/env node | ||
.requiredOption("--db <db>", "Database JSON file generated by scan command") | ||
.option("--no_browser", "Don't launch browser") | ||
.option("--allow_cors", "Allow all CORS request. Only for developers.") | ||
@@ -65,3 +64,3 @@ .option("--port <port>", "Use if the default port 5000 is used.", "5000") | ||
const port_n = parseInt(options._optionValues.port, 10); | ||
(0, server_1.startServer)((0, path_util_1.pathStrToDirs)(path_1.default.resolve(options._optionValues.db)), options._optionValues.no_browser, options._optionValues.allow_cors, port_n); | ||
(0, server_1.startServer)((0, path_util_1.pathStrToDirs)(path_1.default.resolve(options._optionValues.db)), options._optionValues.allow_cors, port_n); | ||
}); | ||
@@ -68,0 +67,0 @@ program |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -39,3 +16,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
const load_db_1 = require("./load_db"); | ||
function startServer(dbPath, noBrowser, allowCors, port) { | ||
function startServer(dbPath, allowCors, port) { | ||
if (fs_1.default.existsSync((0, path_util_1.concatDirs)(dbPath))) { | ||
@@ -82,5 +59,2 @@ { | ||
logger_1.logger.info(`Open http://localhost:${port} with your browser`); | ||
if (!noBrowser) { | ||
Promise.resolve().then(() => __importStar(require("open"))).then((open) => open.default(`http://localhost:${port}`)); | ||
} | ||
}); | ||
@@ -87,0 +61,0 @@ } |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "2.1.3", | ||
"version": "2.2.0", | ||
"description": "", | ||
@@ -18,3 +18,3 @@ "main": "index.js", | ||
"profile_scan_test_pdfs": "npm run build && node --require source-map-support/register --prof dist/index.js scan --papers_dir test_pdfs", | ||
"scan_test_pdfs_and_launch": "npm run build && node --require source-map-support/register dist/index.js scan --papers_dir test_pdfs --book_dirs test_pdfs/dummyTapl && node --require source-map-support/register dist/index.js launch --db test_pdfs/jendeley_db.json --port 5001 --no_browser --allow_cors", | ||
"scan_test_pdfs_and_launch": "npm run build && node --require source-map-support/register dist/index.js scan --papers_dir test_pdfs --book_dirs test_pdfs/dummyTapl && node --require source-map-support/register dist/index.js launch --db test_pdfs/jendeley_db.json --port 5001 --allow_cors", | ||
"fix:prettier": "prettier --write src", | ||
@@ -66,3 +66,2 @@ "check:prettier": "prettier --check src" | ||
"node-isbn": "^1.6.1", | ||
"open": "^9.1.0", | ||
"pdf-parse": "^1.1.1", | ||
@@ -69,0 +68,0 @@ "pdf.js-extract": "^0.2.1", |
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
16
6892856
8456
- Removedopen@^9.1.0
- Removedbig-integer@1.6.52(transitive)
- Removedbplist-parser@0.2.0(transitive)
- Removedbundle-name@3.0.0(transitive)
- Removedcross-spawn@7.0.6(transitive)
- Removeddefault-browser@4.0.0(transitive)
- Removeddefault-browser-id@3.0.0(transitive)
- Removeddefine-lazy-prop@3.0.0(transitive)
- Removedexeca@5.1.17.2.0(transitive)
- Removedget-stream@6.0.1(transitive)
- Removedhuman-signals@2.1.04.3.1(transitive)
- Removedis-docker@2.2.13.0.0(transitive)
- Removedis-inside-container@1.0.0(transitive)
- Removedis-stream@2.0.13.0.0(transitive)
- Removedis-wsl@2.2.0(transitive)
- Removedisexe@2.0.0(transitive)
- Removedmerge-stream@2.0.0(transitive)
- Removedmimic-fn@2.1.04.0.0(transitive)
- Removednpm-run-path@4.0.15.3.0(transitive)
- Removedonetime@5.1.26.0.0(transitive)
- Removedopen@9.1.0(transitive)
- Removedpath-key@3.1.14.0.0(transitive)
- Removedrun-applescript@5.0.0(transitive)
- Removedshebang-command@2.0.0(transitive)
- Removedshebang-regex@3.0.0(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedstrip-final-newline@2.0.03.0.0(transitive)
- Removedtitleize@3.0.0(transitive)
- Removeduntildify@4.0.0(transitive)
- Removedwhich@2.0.2(transitive)