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

pta-tools

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pta-tools - npm Package Compare versions

Comparing version 1.5.1 to 1.5.2

2

build/index.js

@@ -113,3 +113,3 @@ 'use strict';

function isTransaction(data) {
return (data === null || data === void 0 ? void 0 : data.date) instanceof Date && (data === null || data === void 0 ? void 0 : data.entries) instanceof Array;
return (data === null || data === void 0 ? void 0 : data.entries) instanceof Array;
}

@@ -116,0 +116,0 @@ function isComment$1(data) {

@@ -1,2 +0,2 @@

import { Comment, Directive, Posting, Transaction } from './types';
import { Comment, Directive, Posting, Transaction } from "./types";
export declare function isTransaction(data: any): data is Transaction;

@@ -3,0 +3,0 @@ export declare function isComment(data: any): data is Comment;

@@ -19,3 +19,3 @@ export declare type VirtualTypes = "round" | "square" | undefined;

comment?: string;
date: Date;
date: Date | string;
description?: string;

@@ -22,0 +22,0 @@ confirmed?: boolean;

@@ -6,2 +6,13 @@ # Change Log

## [1.5.2](https://github.com/kajyr/pta-tools/compare/pta-tools@1.5.1...pta-tools@1.5.2) (2022-07-13)
### Bug Fixes
* date might be a string ([906dbfb](https://github.com/kajyr/pta-tools/commit/906dbfbaa6856bb00a113292aee9f8818e890ecc))
## [1.5.1](https://github.com/kajyr/pta-tools/compare/pta-tools@1.5.0...pta-tools@1.5.1) (2022-01-01)

@@ -8,0 +19,0 @@

{
"name": "pta-tools",
"version": "1.5.1",
"version": "1.5.2",
"description": "Plain text accounting journal JS apis",

@@ -33,3 +33,3 @@ "main": "build/index.js",

},
"gitHead": "79cf8517883f2d526cd9db0ef2275ca3269a36ea"
"gitHead": "2dfd93072728dab0026b0fe575c8573e07866376"
}
# Plain text acounting node js api
[![Build Status](https://app.travis-ci.com/kajyr/pta-journal.svg?branch=main)](https://app.travis-ci.com/kajyr/pta-journal)
[![Build Status](https://app.travis-ci.com/kajyr/pta-tools.svg?branch=main)](https://app.travis-ci.com/kajyr/pta-tools)
Plain text accounting JS helpers to interact with the ledger / hledger journal file format.
On the TS / JS side Transactions are described by the [Transaction](src/types.ts) type
On the TS / JS side Transactions are described by the [Transaction](pta-tools/src/types.ts) type
## Apis
## Main APIs

@@ -11,0 +11,0 @@ ### formatTransaction

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