Socket
Socket
Sign inDemoInstall

aba-parser

Package Overview
Dependencies
0
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.1 to 1.1.2

6

dist/lib/index.d.ts

@@ -30,4 +30,4 @@ export declare class ABA {

}
type RecordTypeNumber = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9";
interface ParserOptions {
export type RecordTypeNumber = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9";
export interface ParserOptions {
validation?: boolean;

@@ -39,3 +39,3 @@ schemas?: {

export type RecordType = "header" | "transaction" | "footer";
interface RecordSchema {
export interface RecordSchema {
recordType: RecordType;

@@ -42,0 +42,0 @@ fields: {

@@ -30,3 +30,3 @@ "use strict";

{ name: "reference", boundaries: [62, 80], type: "string" },
{ name: "traceBSB", boundaries: [80, 87], type: "bsb" },
{ name: "traceBsb", boundaries: [80, 87], type: "bsb" },
{ name: "traceAccount", boundaries: [87, 96], type: "string" },

@@ -33,0 +33,0 @@ { name: "remitter", boundaries: [96, 112], type: "string" },

{
"name": "aba-parser",
"version": "1.1.1",
"version": "1.1.2",
"description": "Parse ABA (Australian Bankers Association or Cemtext) file format",

@@ -14,3 +14,4 @@ "main": "dist/lib/index.js",

"ci": "npm ci && npm test && npm run lint",
"build": "tsc"
"build": "tsc",
"prepublishOnly": "npm run ci && npm run build"
},

@@ -17,0 +18,0 @@ "license": "MIT",

@@ -128,5 +128,5 @@ # ABA parser

```typescript
const customSchemas = {
const customSchemas: RecordSchema = {
"5": {
recordType: "transaction" as RecordType,
recordType: "transaction",
fields: [

@@ -148,3 +148,3 @@ { name: "transactionType", boundaries: [0, 1], type: "string" },

"6": {
recordType: "header" as RecordType,
recordType: "header",
fields: [

@@ -151,0 +151,0 @@ { name: "bsb", boundaries: [1, 8], type: "bsb" },

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc