Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ledger-pivot

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ledger-pivot - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

4

api/source.js

@@ -28,3 +28,5 @@ // Generated by LiveScript 1.5.0

log("run command: " + cmd);
return Cp.exec(cmd, function(err, stdout, stderr){
return Cp.exec(cmd, {
maxBuffer: 1000 * 1024
}, function(err, stdout, stderr){
if (err) {

@@ -31,0 +33,0 @@ return cb(err);

@@ -22,13 +22,19 @@ // Generated by LiveScript 1.5.0

return cb(null, _.map(parsed.data, function(it){
var date, code, payee, account, commodity, amount, status, notes, tx, i$, i;
var date, code, payee, account, commodity, amount, status, notes, d, y, m, tx, i$, i;
date = it[0], code = it[1], payee = it[2], account = it[3], commodity = it[4], amount = it[5], status = it[6], notes = it[7];
d = new Date(date);
y = d.getUTCFullYear() + ((m = d.getUTCMonth() < 3) ? 0 : 1);
if (m === 3 && d.getUTCDate() < 6) {
y--;
}
tx = {
AgeYears: M().subtract(1, 'month').endOf('month').diff(new Date(date), 'years'),
AgeYears: M().subtract(1, 'month').endOf('month').diff(d, 'years'),
Amount: amount,
Code: code,
Commodity: commodity,
Date: date,
Code: code,
Notes: notes,
Payee: payee,
Commodity: commodity,
Amount: amount,
Status: status,
Notes: notes
TaxYear: (y - 1) + "/" + y
};

@@ -35,0 +41,0 @@ for (i$ = 0; i$ <= 3; ++i$) {

{
"name": "ledger-pivot",
"version": "0.3.0",
"version": "0.4.0",
"description": "View ledger transactions in a pivot-table in a web browser.",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc