From 0bbe8de4f087180d67d292320d795d6c788d6bcd Mon Sep 17 00:00:00 2001 From: Zdravko Iliev <zdravko.iliev@vereign.com> Date: Wed, 19 Jan 2022 17:45:58 +0200 Subject: [PATCH] fix build --- dist/index.js | 5 ++++- dist/pdfParser.js | 5 ++++- tsconfig.json | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index 8ee3e72..69e9efc 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,4 +1,7 @@ "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const pdfParser_1 = require("./pdfParser"); +const pdfParser_1 = __importDefault(require("./pdfParser")); exports.default = pdfParser_1.default; diff --git a/dist/pdfParser.js b/dist/pdfParser.js index 45a9adc..0677a9c 100644 --- a/dist/pdfParser.js +++ b/dist/pdfParser.js @@ -8,8 +8,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -const verify_pdf_1 = require("@ninja-labs/verify-pdf"); +const verify_pdf_1 = __importDefault(require("@ninja-labs/verify-pdf")); const pdfdataextract_1 = require("pdfdataextract"); const config_1 = require("./config"); class PDFparser { diff --git a/tsconfig.json b/tsconfig.json index 090b2c4..c8ea31e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,7 +5,7 @@ "declaration": true, "outDir": "./dist", "allowJs": true, - "allowSyntheticDefaultImports": true + "esModuleInterop": true }, "include": ["src/**/*"] } -- GitLab