Comparing version 1.0.0 to 1.0.2
// Generated by CoffeeScript 1.10.0 | ||
var ach, arg, editTransforms, i, inFormat, interactive, j, outFormat, ref, started; | ||
var ach, arg, editTransforms, i, inFormat, interactive, j, outFormat, pkg, ref, ref1, started; | ||
ach = require('../lib')(); | ||
if ((ref = process.argv[2]) === '-v' || ref === '--version') { | ||
pkg = require('../package.json'); | ||
console.log(pkg.name, pkg.version); | ||
process.exit(0); | ||
} | ||
inFormat = null; | ||
@@ -12,3 +18,3 @@ | ||
for (i = j = 2, ref = process.argv.length; 2 <= ref ? j < ref : j > ref; i = 2 <= ref ? ++j : --j) { | ||
for (i = j = 2, ref1 = process.argv.length; 2 <= ref1 ? j < ref1 : j > ref1; i = 2 <= ref1 ? ++j : --j) { | ||
arg = process.argv[i]; | ||
@@ -15,0 +21,0 @@ if (arg == null) { |
@@ -63,2 +63,3 @@ // Generated by CoffeeScript 1.10.0 | ||
debit: debit, | ||
data: this.data, | ||
object: ach, | ||
@@ -65,0 +66,0 @@ validate: validate.bind(ach, ach) |
@@ -15,3 +15,3 @@ // Generated by CoffeeScript 1.10.0 | ||
module.exports = wrap = function(object) { | ||
var data, entries, lastEntry, next, traceString; | ||
var data, entries, lastEntry, next, ref1, traceString; | ||
data = { | ||
@@ -32,6 +32,14 @@ from: { | ||
}); | ||
entries = object.batches[object.batches.length - 1].entries; | ||
lastEntry = entries[entries.length - 1]; | ||
traceString = ('' + lastEntry.traceNumber).slice(-7); | ||
data.entryCount = (Number(traceString)) + 1; | ||
if ((object != null ? (ref1 = object.batches) != null ? ref1.length : void 0 : void 0) > 0) { | ||
entries = object.batches[object.batches.length - 1].entries; | ||
if ((entries != null ? entries.length : void 0) > 0) { | ||
lastEntry = entries[entries.length - 1]; | ||
traceString = ('' + lastEntry.traceNumber).slice(-7); | ||
data.entryCount = (Number(traceString)) + 1; | ||
} else { | ||
data.entryCount = 0; | ||
} | ||
} else { | ||
data.entryCount = 0; | ||
} | ||
next = { | ||
@@ -38,0 +46,0 @@ data: data, |
{ | ||
"name": "@ach/ach", | ||
"version": "1.0.0", | ||
"version": "1.0.2", | ||
"description": "NACHA ACH EFT File Parser/Editor/Formatter for CCD+ / PPD+ / CTX+", | ||
@@ -27,3 +27,3 @@ "keywords": [ | ||
"compile": "coffee --bare --compile lib bin", | ||
"clean": "rm -rf ./lib/*.js ./bin/command.js", | ||
"clean": "rm -f ./bin/command.js ; find ./lib -name \"*.js\" -type f -delete", | ||
"prepublish": "npm run compile", | ||
@@ -30,0 +30,0 @@ "postpublish": "npm run clean", |
# NACHA ACH CCD+/PPD+ Formatter/Parser | ||
[![Build Status](https://travis-ci.org/elidoran/node-ach.svg?branch=master)](https://travis-ci.org/elidoran/node-ach) | ||
[![Dependency Status](https://gemnasium.com/elidoran/@ach/ach.png)](https://gemnasium.com/elidoran/@ach/ach) | ||
[![npm version](https://badge.fury.io/js/@ach/ach.svg)](http://badge.fury.io/js/@ach/ach) | ||
[![Dependency Status](https://gemnasium.com/badges/github.com/elidoran/node-ach.svg)](https://gemnasium.com/github.com/elidoran/node-ach) | ||
[![npm version](https://badge.fury.io/js/%40ach%2Fach.svg)](https://badge.fury.io/js/%40ach%2Fach) | ||
@@ -6,0 +6,0 @@ Parses and formats NACHA ACH standard CCD+/PPD+ bank transaction files. |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
56611
1618
1