bnz-ynab-sync
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,3 +0,5 @@ | ||
import pino from "pino"; | ||
declare const _default: pino.Logger; | ||
declare const _default: { | ||
info(...args: any[]): void; | ||
debug(...args: any[]): void; | ||
}; | ||
export default _default; |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = { | ||
info(...args) { | ||
console.error("INFO", ...args); | ||
}, | ||
debug(...args) { | ||
console.error("DEBUG", ...args); | ||
} | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const pino_1 = __importDefault(require("pino")); | ||
exports.default = pino_1.default({ | ||
level: "debug" | ||
}); | ||
//# sourceMappingURL=logger.js.map |
@@ -10,3 +10,2 @@ "use strict"; | ||
const moment = require("moment"); | ||
const logger = logger_1.default.child({ module: "ynab" }); | ||
class YnabWrapperClient { | ||
@@ -57,3 +56,3 @@ static async ofxToTransactions(accountID, input) { | ||
const transactions = await YnabWrapperClient.ofxToTransactions(accountID, input); | ||
logger.debug(`Importing ${transactions.length} transactions`); | ||
logger_1.default.debug(`Importing ${transactions.length} transactions`); | ||
if (!transactions.length) { | ||
@@ -60,0 +59,0 @@ return; |
{ | ||
"name": "bnz-ynab-sync", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Import BNZ transactions into YNAB", | ||
@@ -31,3 +31,2 @@ "main": "dist/index.js", | ||
"ofx-js": "^0.1.1", | ||
"pino": "^5.8.1", | ||
"puppeteer": "^1.10.0", | ||
@@ -34,0 +33,0 @@ "ynab": "^1.9.0" |
@@ -1,5 +0,9 @@ | ||
import pino from "pino"; | ||
export default { | ||
info(...args: any[]) { | ||
console.error("INFO", ...args); | ||
}, | ||
export default pino({ | ||
level: "debug" | ||
}); | ||
debug(...args: any[]) { | ||
console.error("DEBUG", ...args); | ||
} | ||
}; |
@@ -1,2 +0,2 @@ | ||
import parentLogger from "./logger"; | ||
import logger from "./logger"; | ||
import { API, SaveTransaction } from "ynab"; | ||
@@ -6,4 +6,2 @@ import { parse, TTransactionList } from "ofx-js"; | ||
const logger = parentLogger.child({ module: "ynab" }); | ||
export class YnabWrapperClient { | ||
@@ -10,0 +8,0 @@ public static async ofxToTransactions(accountID: string, input: string) { |
@@ -6,4 +6,5 @@ { | ||
"no-var-requires": false, | ||
"no-submodule-imports": false | ||
"no-submodule-imports": false, | ||
"no-console": false | ||
} | ||
} |
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
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
4
559
24969
- Removedpino@^5.8.1
- Removedatomic-sleep@1.0.0(transitive)
- Removedfast-redact@2.1.0(transitive)
- Removedfast-safe-stringify@2.1.1(transitive)
- Removedflatstr@1.0.12(transitive)
- Removedpino@5.17.0(transitive)
- Removedpino-std-serializers@2.5.0(transitive)
- Removedquick-format-unescaped@3.0.3(transitive)
- Removedsonic-boom@0.7.7(transitive)