aba-parser
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -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" }, |
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
25255
1