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

aba-generate

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aba-generate - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

6

index.js

@@ -15,2 +15,7 @@ const moment = require('moment');

const format = bsb => {
const value = bsb.replace(/(\s|-)+/, '');
return `${value.slice(0, 3)}-${value.slice(3, 6)}`;
};
const PAYMENT_FORMAT = [

@@ -71,2 +76,3 @@ '1',

amount: toCents(transaction.amount),
bsb: format(transaction.bsb),
taxAmount: toCents(transaction.taxAmount),

@@ -73,0 +79,0 @@ })

18

package.json
{
"name": "aba-generate",
"version": "1.0.1",
"version": "1.0.2",
"description": "ABA file generation",

@@ -10,4 +10,13 @@ "main": "index.js",

"devDependencies": {
"eslint": "^4.10.0",
"eslint-config-ordermentum": "^0.0.2",
"babel-eslint": "^8.0.2",
"eslint": "^4.11.0",
"eslint-config-airbnb": "^16.1.0",
"eslint-config-ordermentum": "^0.0.3",
"eslint-config-prettier": "^2.7.0",
"eslint-plugin-flowtype": "^2.39.1",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-jsx-a11y": "^6.0.2",
"eslint-plugin-mocha": "^4.11.0",
"eslint-plugin-prettier": "^2.3.1",
"eslint-plugin-react": "^7.4.0",
"flow": "flow check",

@@ -18,3 +27,4 @@ "flow-bin": "^0.57.3",

"jest": "^21.2.1",
"lint-staged": "^4.3.0"
"lint-staged": "^4.3.0",
"prettier": "^1.8.2"
},

@@ -21,0 +31,0 @@ "scripts": {

@@ -202,3 +202,3 @@ const moment = require('moment');

const defaults = {
bsb: '666-1337',
bsb: '666-133',
account: '123456',

@@ -205,0 +205,0 @@ accountTitle: 'Transfer',

@@ -16,3 +16,3 @@ const ABA = require('../index');

const aba = new ABA({
bsb: '',
bsb: '123123',
account: '',

@@ -37,4 +37,7 @@ bank: '',

};
expect(aba.generate([transaction])).not.toBe(undefined);
const file = aba.generate([transaction]);
expect(file).not.toBe(undefined);
const lines = file.split('\r\n');
expect(lines[1].slice(0, 3)).toBe('106');
});
});

Sorry, the diff of this file is not supported yet

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