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

mindee

Package Overview
Dependencies
Maintainers
7
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mindee - npm Package Compare versions

Comparing version 4.6.1 to 4.7.0

6

CHANGELOG.md
# CHANGELOG
## v4.7.0 - 2024-01-30
### Changes
* :arrow_up: update invoices to 4.4
* :sparkles: add rawValue to string fields.
## v4.6.1 - 2023-12-15

@@ -4,0 +10,0 @@ ### Changes

2

package.json
{
"name": "mindee",
"version": "4.6.1",
"version": "4.7.0",
"description": "Mindee Client Library for Node.js",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -50,3 +50,3 @@ [![License: MIT](https://img.shields.io/github/license/mindee/mindee-api-nodejs)](https://opensource.org/licenses/MIT) [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/mindee/mindee-api-nodejs/test.yml)](https://github.com/mindee/mindee-api-nodejs) [![NPM Version](https://img.shields.io/npm/v/mindee)](https://www.npmjs.com/package/mindee) [![Downloads](https://img.shields.io/npm/dm/mindee)](https://www.npmjs.com/package/mindee)

```js
const inputSource = mindeeClient.docFromBuffer(myReadableStream, "my-file-name")
const inputSource = mindeeClient.docFromStream(myReadableStream, "my-file-name")
```

@@ -53,0 +53,0 @@

@@ -15,3 +15,5 @@ import { StringDict } from "../common";

value?: string;
/** Value as it appears on the document. */
rawValue?: string;
constructor({ prediction, valueKey, reconstructed, pageId, }: FieldConstructor);
}

@@ -11,4 +11,7 @@ "use strict";

super({ prediction, valueKey, reconstructed, pageId });
if (prediction["raw_value"]) {
this.rawValue = prediction["raw_value"];
}
}
}
exports.StringField = StringField;

@@ -42,2 +42,4 @@ import { Prediction, StringDict } from "../../parsing/common";

totalNet: AmountField;
/** The total tax: includes all the taxes paid for this invoice. */
totalTax: AmountField;
constructor(rawPrediction: StringDict, pageId?: number);

@@ -44,0 +46,0 @@ /**

@@ -90,2 +90,6 @@ "use strict";

});
this.totalTax = new standard_1.AmountField({
prediction: rawPrediction["total_tax"],
pageId: pageId,
});
}

@@ -121,2 +125,3 @@ /**

:Total Amount: ${this.totalAmount}
:Total Tax: ${this.totalTax}
:Taxes: ${this.taxes}

@@ -123,0 +128,0 @@ :Supplier Payment Details: ${supplierPaymentDetails}

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