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

@ach/ach

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ach/ach - npm Package Compare versions

Comparing version 1.0.0 to 1.0.2

10

bin/command.js
// 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) {

1

lib/api/create/batch-ccd-ppd.js

@@ -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.

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