mindee 1.3.3 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/mindee/errors/handler.js +1 -1
- package/mindee/index.js +5 -2
- package/mindee/inputs.js +45 -22
- package/mindee/logger.js +8 -7
- package/package.json +13 -4
- package/.eslintrc +0 -24
- package/.mocharc.yaml +0 -2
- package/.nyc_output/f57ba3bc-1777-4ecc-81e1-230327c2a401.json +0 -1
- package/.nyc_output/processinfo/f57ba3bc-1777-4ecc-81e1-230327c2a401.json +0 -1
- package/.nyc_output/processinfo/index.json +0 -1
- package/.prettierrc +0 -4
- package/.tool-versions +0 -1
- package/CODE_OF_CONDUCT.md +0 -63
- package/CONTRIBUTING.md +0 -84
- package/ISSUE_TEMPLATE.md +0 -45
- package/PULL_REQUEST_TEMPLATE.md +0 -45
- package/babel.config.json +0 -10
- package/coverage/coverage.json +0 -1
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -79
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -171
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -170
- package/coverage/lcov.info +0 -1595
- package/coverage.lcov +0 -1595
- package/dist/api/financialDocument.js +0 -51
- package/dist/api/index.js +0 -13
- package/dist/api/invoice.js +0 -59
- package/dist/api/object.js +0 -80
- package/dist/api/receipt.js +0 -45
- package/dist/api/request.js +0 -90
- package/dist/api/response.js +0 -91
- package/dist/documents/document.js +0 -80
- package/dist/documents/fields/amount.js +0 -21
- package/dist/documents/fields/date.js +0 -17
- package/dist/documents/fields/field.js +0 -85
- package/dist/documents/fields/index.js +0 -17
- package/dist/documents/fields/locale.js +0 -25
- package/dist/documents/fields/orientation.js +0 -22
- package/dist/documents/fields/paymentDetails.js +0 -50
- package/dist/documents/fields/tax.js +0 -42
- package/dist/documents/financialDocument.js +0 -216
- package/dist/documents/index.js +0 -13
- package/dist/documents/invoice.js +0 -361
- package/dist/documents/receipt.js +0 -231
- package/dist/errors/handler.js +0 -17
- package/dist/index.js +0 -23
- package/dist/inputs.js +0 -208
- package/dist/logger.js +0 -34
- package/examples/.env.example +0 -2
- package/examples/documents/invoices/credit_note.pdf +0 -900
- package/examples/documents/invoices/invoice.pdf +0 -0
- package/examples/documents/invoices/invoice_6p.pdf +0 -0
- package/examples/documents/receipts/receipt.jpg +0 -0
- package/examples/financialDocument.js +0 -32
- package/examples/invoice.js +0 -74
- package/examples/receipt.js +0 -45
- package/lib/api/financialDocument.js +0 -59
- package/lib/api/index.js +0 -7
- package/lib/api/invoice.js +0 -73
- package/lib/api/object.js +0 -90
- package/lib/api/receipt.js +0 -58
- package/lib/api/request.js +0 -84
- package/lib/api/response.js +0 -92
- package/lib/documents/document.js +0 -97
- package/lib/documents/fields/amount.js +0 -35
- package/lib/documents/fields/date.js +0 -36
- package/lib/documents/fields/field.js +0 -102
- package/lib/documents/fields/index.js +0 -9
- package/lib/documents/fields/locale.js +0 -35
- package/lib/documents/fields/orientation.js +0 -33
- package/lib/documents/fields/paymentDetails.js +0 -71
- package/lib/documents/fields/tax.js +0 -57
- package/lib/documents/financialDocument.js +0 -280
- package/lib/documents/index.js +0 -7
- package/lib/documents/invoice.js +0 -451
- package/lib/documents/receipt.js +0 -332
- package/lib/errors/handler.js +0 -19
- package/lib/index.js +0 -40
- package/lib/inputs.js +0 -190
- package/lib/logger.js +0 -52
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"parent":null,"pid":49199,"argv":["/Users/fharper/.nvm/versions/node/v14.18.1/bin/node","/Users/fharper/.nvm/versions/node/v14.18.1/bin/mocha","tests/api","tests/data","tests/documents","tests/fields","tests/index.js","tests/input.js"],"execArgv":[],"cwd":"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs","time":1638211170779,"ppid":49198,"coverageFilename":"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/.nyc_output/f57ba3bc-1777-4ecc-81e1-230327c2a401.json","externalId":"","uuid":"f57ba3bc-1777-4ecc-81e1-230327c2a401","files":["/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/index.js","/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/errors/handler.js","/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/logger.js","/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/api/receipt.js","/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/api/object.js","/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/api/response.js","/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/index.js","/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/fields/index.js","/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/fields/field.js","/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/fields/date.js","/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/fields/amount.js","/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/fields/locale.js","/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/fields/orientation.js","/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/fields/paymentDetails.js","/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/fields/tax.js","/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/document.js","/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/receipt.js","/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/invoice.js","/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/financialDocument.js","/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/api/request.js","/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/inputs.js","/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/api/invoice.js","/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/api/financialDocument.js","/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/api/index.js"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"processes":{"f57ba3bc-1777-4ecc-81e1-230327c2a401":{"parent":null,"children":[]}},"files":{"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/index.js":["f57ba3bc-1777-4ecc-81e1-230327c2a401"],"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/errors/handler.js":["f57ba3bc-1777-4ecc-81e1-230327c2a401"],"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/logger.js":["f57ba3bc-1777-4ecc-81e1-230327c2a401"],"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/api/receipt.js":["f57ba3bc-1777-4ecc-81e1-230327c2a401"],"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/api/object.js":["f57ba3bc-1777-4ecc-81e1-230327c2a401"],"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/api/response.js":["f57ba3bc-1777-4ecc-81e1-230327c2a401"],"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/index.js":["f57ba3bc-1777-4ecc-81e1-230327c2a401"],"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/fields/index.js":["f57ba3bc-1777-4ecc-81e1-230327c2a401"],"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/fields/field.js":["f57ba3bc-1777-4ecc-81e1-230327c2a401"],"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/fields/date.js":["f57ba3bc-1777-4ecc-81e1-230327c2a401"],"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/fields/amount.js":["f57ba3bc-1777-4ecc-81e1-230327c2a401"],"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/fields/locale.js":["f57ba3bc-1777-4ecc-81e1-230327c2a401"],"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/fields/orientation.js":["f57ba3bc-1777-4ecc-81e1-230327c2a401"],"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/fields/paymentDetails.js":["f57ba3bc-1777-4ecc-81e1-230327c2a401"],"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/fields/tax.js":["f57ba3bc-1777-4ecc-81e1-230327c2a401"],"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/document.js":["f57ba3bc-1777-4ecc-81e1-230327c2a401"],"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/receipt.js":["f57ba3bc-1777-4ecc-81e1-230327c2a401"],"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/invoice.js":["f57ba3bc-1777-4ecc-81e1-230327c2a401"],"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/financialDocument.js":["f57ba3bc-1777-4ecc-81e1-230327c2a401"],"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/api/request.js":["f57ba3bc-1777-4ecc-81e1-230327c2a401"],"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/inputs.js":["f57ba3bc-1777-4ecc-81e1-230327c2a401"],"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/api/invoice.js":["f57ba3bc-1777-4ecc-81e1-230327c2a401"],"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/api/financialDocument.js":["f57ba3bc-1777-4ecc-81e1-230327c2a401"],"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/api/index.js":["f57ba3bc-1777-4ecc-81e1-230327c2a401"]},"externalIds":{}}
|
package/.prettierrc
DELETED
package/.tool-versions
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
nodejs 14.15.1
|
package/CODE_OF_CONDUCT.md
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
Contributor Covenant Code of Conduct
|
|
2
|
-
Our Pledge
|
|
3
|
-
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
|
4
|
-
|
|
5
|
-
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
|
|
6
|
-
|
|
7
|
-
Our Standards
|
|
8
|
-
Examples of behavior that contributes to a positive environment for our community include:
|
|
9
|
-
|
|
10
|
-
Demonstrating empathy and kindness toward other people
|
|
11
|
-
Being respectful of differing opinions, viewpoints, and experiences
|
|
12
|
-
Giving and gracefully accepting constructive feedback
|
|
13
|
-
Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
|
|
14
|
-
Focusing on what is best not just for us as individuals, but for the overall community
|
|
15
|
-
Examples of unacceptable behavior include:
|
|
16
|
-
|
|
17
|
-
The use of sexualized language or imagery, and sexual attention or advances of any kind
|
|
18
|
-
Trolling, insulting or derogatory comments, and personal or political attacks
|
|
19
|
-
Public or private harassment
|
|
20
|
-
Publishing others' private information, such as a physical or email address, without their explicit permission
|
|
21
|
-
Other conduct which could reasonably be considered inappropriate in a professional setting
|
|
22
|
-
Enforcement Responsibilities
|
|
23
|
-
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
|
|
24
|
-
|
|
25
|
-
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
|
|
26
|
-
|
|
27
|
-
Scope
|
|
28
|
-
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
|
|
29
|
-
|
|
30
|
-
Enforcement
|
|
31
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [INSERT CONTACT METHOD]. All complaints will be reviewed and investigated promptly and fairly.
|
|
32
|
-
|
|
33
|
-
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
|
|
34
|
-
|
|
35
|
-
Enforcement Guidelines
|
|
36
|
-
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
|
|
37
|
-
|
|
38
|
-
1. Correction
|
|
39
|
-
Community Impact: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
|
|
40
|
-
|
|
41
|
-
Consequence: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
|
|
42
|
-
|
|
43
|
-
2. Warning
|
|
44
|
-
Community Impact: A violation through a single incident or series of actions.
|
|
45
|
-
|
|
46
|
-
Consequence: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
|
|
47
|
-
|
|
48
|
-
3. Temporary Ban
|
|
49
|
-
Community Impact: A serious violation of community standards, including sustained inappropriate behavior.
|
|
50
|
-
|
|
51
|
-
Consequence: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
|
|
52
|
-
|
|
53
|
-
4. Permanent Ban
|
|
54
|
-
Community Impact: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
|
|
55
|
-
|
|
56
|
-
Consequence: A permanent ban from any sort of public interaction within the community.
|
|
57
|
-
|
|
58
|
-
Attribution
|
|
59
|
-
This Code of Conduct is adapted from the Contributor Covenant, version 2.0, available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
|
60
|
-
|
|
61
|
-
Community Impact Guidelines were inspired by Mozilla's code of conduct enforcement ladder.
|
|
62
|
-
|
|
63
|
-
For answers to common questions about this code of conduct, see the FAQ at https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
|
package/CONTRIBUTING.md
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
# Contributing to react-mindee-js
|
|
2
|
-
|
|
3
|
-
:+1::tada: First off, thanks for taking the time to contribute! :tada::+1:
|
|
4
|
-
|
|
5
|
-
The following is a set of guidelines for contributing to react-mindee-js which are hosted on GitHub. These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.
|
|
6
|
-
|
|
7
|
-
## Code of Conduct
|
|
8
|
-
|
|
9
|
-
This project and everyone participating in it is governed by the following [Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to [contact@mindee.com](mailto:contact@mindee.com).
|
|
10
|
-
|
|
11
|
-
## How Can I Contribute
|
|
12
|
-
|
|
13
|
-
### Reporting Bugs
|
|
14
|
-
|
|
15
|
-
Bugs are tracked as [GitHub issues](https://guides.github.com/features/issues/).
|
|
16
|
-
|
|
17
|
-
To help maintainers and the community to be efficient, follow these guidelines:
|
|
18
|
-
|
|
19
|
-
* **Use a clear and descriptive title** for the issue to identify the problem.
|
|
20
|
-
* **Describe the exact steps which reproduce the problem** in as many details as possible. When listing steps, **don't just say what you did, but explain how you did it**. For example, with canvas related problem, explain if you used the mouse or a keyboard shortcut, what kind of image input it is etc...
|
|
21
|
-
* **Provide specific examples to demonstrate the steps**. Include links to files or GitHub projects, or copy/pasteable snippets, which you use in those examples. If you're providing snippets in the issue, use [Markdown code blocks](https://help.github.com/articles/markdown-basics/#multiple-lines).
|
|
22
|
-
* **Describe the behavior you observed after following the steps** and point out what exactly is the problem with that behavior.
|
|
23
|
-
* **Explain which behavior you expected to see instead and why.**
|
|
24
|
-
* **If the problem wasn't triggered by a specific action**, describe what you were doing before the problem happened and share more information using the guidelines below.
|
|
25
|
-
* **Can you reliably reproduce the issue?** If not, provide details about how often the problem happens and under which conditions it normally happens.
|
|
26
|
-
|
|
27
|
-
> **Note:** If you find a **Closed** issue that seems like it is the same thing that you're experiencing, open a new issue and include a link to the original issue in the body of your new one.
|
|
28
|
-
|
|
29
|
-
Include details about your configuration and environment:
|
|
30
|
-
|
|
31
|
-
* **Which version of react-mindee-js are you using?**
|
|
32
|
-
* **What's the name and version of the browser you're using, on which OS**?
|
|
33
|
-
|
|
34
|
-
### Suggesting Enhancements
|
|
35
|
-
|
|
36
|
-
Enhancement suggestions are tracked as [GitHub issues](https://guides.github.com/features/issues/).
|
|
37
|
-
|
|
38
|
-
Make sure to provide the following information:
|
|
39
|
-
|
|
40
|
-
* **Use a clear and descriptive title** for the issue to identify the suggestion.
|
|
41
|
-
* **Provide a step-by-step description of the suggested enhancement** in as many details as possible.
|
|
42
|
-
* **Provide specific examples to demonstrate the steps**. Include copy/pasteable snippets which you use in those examples, as [Markdown code blocks](https://help.github.com/articles/markdown-basics/#multiple-lines).
|
|
43
|
-
* **Describe the current behavior** and **explain which behavior you expected to see instead** and why.
|
|
44
|
-
* **Include screenshots and animated GIFs** which help you demonstrate the steps or point out the part of the sdk which the suggestion is related to. You can use [this tool](https://www.cockos.com/licecap/) to record GIFs on macOS and Windows, and [this tool](https://github.com/colinkeenan/silentcast) or [this tool](https://github.com/GNOME/byzanz) on Linux.
|
|
45
|
-
* **Specify which version of react-mindee-js you're using.**
|
|
46
|
-
* **Specify the name and version of the browser and OS you're using.**
|
|
47
|
-
|
|
48
|
-
### Pull Requests
|
|
49
|
-
|
|
50
|
-
The process described here has several goals:
|
|
51
|
-
|
|
52
|
-
- Maintain mindee SDK quality
|
|
53
|
-
- Fix problems that are important to users
|
|
54
|
-
- Engage the community in working toward the best possible SDK
|
|
55
|
-
- Enable a sustainable system for mindee's maintainers to review contributions
|
|
56
|
-
|
|
57
|
-
Please follow these steps to have your contribution considered by the maintainers:
|
|
58
|
-
|
|
59
|
-
1. Follow all instructions in [the template](PULL_REQUEST_TEMPLATE.md)
|
|
60
|
-
2. Follow the [styleguides](#styleguides)
|
|
61
|
-
|
|
62
|
-
While the prerequisites above must be satisfied prior to having your pull request reviewed, the reviewer(s) may ask you to complete additional design work, tests, or other changes before your pull request can be ultimately accepted.
|
|
63
|
-
|
|
64
|
-
## Styleguides
|
|
65
|
-
|
|
66
|
-
### Git Commit Messages
|
|
67
|
-
|
|
68
|
-
* Use the present tense ("Add feature" not "Added feature")
|
|
69
|
-
* Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
|
|
70
|
-
* Limit the first line to 72 characters or less
|
|
71
|
-
* Reference issues and pull requests liberally after the first line
|
|
72
|
-
* Please prefix your commit message with `chg:`, `new:` or `fix:` according to the content
|
|
73
|
-
* Consider starting the commit message with an applicable emoji, see [gitmoji](https://gitmoji.carloscuesta.me/) as a reference.
|
|
74
|
-
|
|
75
|
-
Example:
|
|
76
|
-
|
|
77
|
-
* chg: :pencil: Add usage section in README
|
|
78
|
-
* new: :sparkles: Add CONTRIBUTING file in repository
|
|
79
|
-
* fix: :bug: MyComponent - Prevent MouseEvent from firing unexpectedly
|
|
80
|
-
|
|
81
|
-
### JavaScript Styleguide
|
|
82
|
-
|
|
83
|
-
We keep our code base consistent and we expect React/JavaScript code to must adhere to [JavaScript Standard Style](https://standardjs.com/).
|
|
84
|
-
When possible, adding [flow](https://flow.org/) types is also expected.
|
package/ISSUE_TEMPLATE.md
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
|
|
3
|
-
Have you read react-mindee-js's Code of Conduct? By filing an Issue, you are expected to comply with it, including treating everyone with respect: [Code of Conduct](CODE_OF_CONDUCT.md)
|
|
4
|
-
|
|
5
|
-
Do you want to ask a question? Are you looking for enterprise support? Get in touch via [email](contact@mindee.com)
|
|
6
|
-
|
|
7
|
-
-->
|
|
8
|
-
|
|
9
|
-
### Prerequisites
|
|
10
|
-
|
|
11
|
-
Put an X between the brackets on this line if you have done all of the following:
|
|
12
|
-
|
|
13
|
-
* [ ] Reproduced the problem or exposed a new need
|
|
14
|
-
* [ ] Checked the github existing issues
|
|
15
|
-
|
|
16
|
-
### Description
|
|
17
|
-
|
|
18
|
-
<!-- Description of the issue -->
|
|
19
|
-
|
|
20
|
-
### Steps to Reproduce
|
|
21
|
-
|
|
22
|
-
1. <!-- First Step -->
|
|
23
|
-
2. <!-- Second Step -->
|
|
24
|
-
3. <!-- and so on… -->
|
|
25
|
-
|
|
26
|
-
**Expected behavior:**
|
|
27
|
-
|
|
28
|
-
<!-- What you expect to happen -->
|
|
29
|
-
|
|
30
|
-
**Actual behavior:**
|
|
31
|
-
|
|
32
|
-
<!-- What actually happens -->
|
|
33
|
-
|
|
34
|
-
**Reproduces how often:**
|
|
35
|
-
|
|
36
|
-
<!-- What percentage of the time does it reproduce? -->
|
|
37
|
-
|
|
38
|
-
### Versions
|
|
39
|
-
|
|
40
|
-
<!-- You can get this information with `npm list | grep react-mindee-js`.
|
|
41
|
-
Also, please include the browser, OS and what version you're running. -->
|
|
42
|
-
|
|
43
|
-
### Additional Information
|
|
44
|
-
|
|
45
|
-
<!-- Any additional information, configuration or data that might be necessary to reproduce the issue. -->
|
package/PULL_REQUEST_TEMPLATE.md
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# PR Details
|
|
2
|
-
|
|
3
|
-
<!--- Provide a general summary of your changes in the Title above -->
|
|
4
|
-
|
|
5
|
-
## Description
|
|
6
|
-
|
|
7
|
-
<!--- Describe your changes in detail -->
|
|
8
|
-
|
|
9
|
-
## Related Issue
|
|
10
|
-
|
|
11
|
-
<!--- If suggesting a new feature or change, please discuss it in an issue first -->
|
|
12
|
-
<!--- If fixing a bug, there should be an issue describing it with steps to reproduce -->
|
|
13
|
-
<!--- Please link to the issue here: -->
|
|
14
|
-
|
|
15
|
-
## Motivation and Context
|
|
16
|
-
|
|
17
|
-
<!--- Why is this change required? What problem does it solve? -->
|
|
18
|
-
|
|
19
|
-
## How Has This Been Tested
|
|
20
|
-
|
|
21
|
-
<!--- Please describe in detail how you tested your changes. -->
|
|
22
|
-
<!--- Include details of your testing environment, and the tests you ran to -->
|
|
23
|
-
<!--- see how your change affects other areas of the code, etc. -->
|
|
24
|
-
|
|
25
|
-
## Types of changes
|
|
26
|
-
|
|
27
|
-
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
|
|
28
|
-
|
|
29
|
-
- [ ] Docs change / refactoring / dependency upgrade
|
|
30
|
-
- [ ] Bug fix (non-breaking change which fixes an issue)
|
|
31
|
-
- [ ] New feature (non-breaking change which adds functionality)
|
|
32
|
-
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
|
|
33
|
-
|
|
34
|
-
## Checklist
|
|
35
|
-
|
|
36
|
-
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
|
|
37
|
-
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
|
|
38
|
-
|
|
39
|
-
- [ ] My code follows the code style of this project.
|
|
40
|
-
- [ ] My change requires a change to the documentation.
|
|
41
|
-
- [ ] I have updated the documentation accordingly.
|
|
42
|
-
- [ ] I have read the **CONTRIBUTING** document.
|
|
43
|
-
- [ ] I have added tests to cover my changes.
|
|
44
|
-
- [ ] I have added type hints (flow) to cover my changes.
|
|
45
|
-
- [ ] All new and existing tests passed.
|
package/babel.config.json
DELETED
package/coverage/coverage.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/errors/handler.js":{"path":"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/errors/handler.js","s":{"1":1,"2":1,"3":0,"4":0,"5":0,"6":1,"7":1},"b":{"1":[0,0],"2":[0,0]},"f":{"1":1,"2":0},"fnMap":{"1":{"name":"(anonymous_1)","line":4,"loc":{"start":{"line":4,"column":13},"end":{"line":4,"column":35}}},"2":{"name":"(anonymous_2)","line":8,"loc":{"start":{"line":8,"column":7},"end":{"line":8,"column":29}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}},"2":{"start":{"line":5,"column":4},"end":{"line":5,"column":37}},"3":{"start":{"line":9,"column":4},"end":{"line":10,"column":37}},"4":{"start":{"line":9,"column":36},"end":{"line":9,"column":48}},"5":{"start":{"line":10,"column":9},"end":{"line":10,"column":37}},"6":{"start":{"line":14,"column":0},"end":{"line":14,"column":40}},"7":{"start":{"line":16,"column":0},"end":{"line":16,"column":30}}},"branchMap":{"1":{"line":9,"type":"if","locations":[{"start":{"line":9,"column":4},"end":{"line":9,"column":4}},{"start":{"line":9,"column":4},"end":{"line":9,"column":4}}]},"2":{"line":9,"type":"binary-expr","locations":[{"start":{"line":9,"column":8},"end":{"line":9,"column":25}},{"start":{"line":9,"column":29},"end":{"line":9,"column":34}}]}}},"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/logger.js":{"path":"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/logger.js","s":{"1":1,"2":1,"3":0,"4":1,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":1,"14":1},"b":{"1":[0,1],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0]},"f":{"1":1,"2":0,"3":0,"4":0,"5":0},"fnMap":{"1":{"name":"(anonymous_1)","line":9,"loc":{"start":{"line":9,"column":13},"end":{"line":9,"column":31}}},"2":{"name":"(anonymous_2)","line":14,"loc":{"start":{"line":14,"column":7},"end":{"line":14,"column":17}}},"3":{"name":"(anonymous_3)","line":18,"loc":{"start":{"line":18,"column":6},"end":{"line":18,"column":16}}},"4":{"name":"(anonymous_4)","line":22,"loc":{"start":{"line":22,"column":6},"end":{"line":22,"column":16}}},"5":{"name":"(anonymous_5)","line":26,"loc":{"start":{"line":26,"column":7},"end":{"line":26,"column":17}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":6,"column":2}},"2":{"start":{"line":10,"column":4},"end":{"line":10,"column":51}},"3":{"start":{"line":10,"column":35},"end":{"line":10,"column":51}},"4":{"start":{"line":11,"column":4},"end":{"line":11,"column":38}},"5":{"start":{"line":15,"column":4},"end":{"line":15,"column":66}},"6":{"start":{"line":15,"column":46},"end":{"line":15,"column":66}},"7":{"start":{"line":19,"column":4},"end":{"line":19,"column":64}},"8":{"start":{"line":19,"column":45},"end":{"line":19,"column":64}},"9":{"start":{"line":23,"column":4},"end":{"line":23,"column":64}},"10":{"start":{"line":23,"column":45},"end":{"line":23,"column":64}},"11":{"start":{"line":27,"column":4},"end":{"line":27,"column":66}},"12":{"start":{"line":27,"column":46},"end":{"line":27,"column":66}},"13":{"start":{"line":31,"column":0},"end":{"line":31,"column":28}},"14":{"start":{"line":33,"column":0},"end":{"line":33,"column":24}}},"branchMap":{"1":{"line":10,"type":"if","locations":[{"start":{"line":10,"column":4},"end":{"line":10,"column":4}},{"start":{"line":10,"column":4},"end":{"line":10,"column":4}}]},"2":{"line":15,"type":"if","locations":[{"start":{"line":15,"column":4},"end":{"line":15,"column":4}},{"start":{"line":15,"column":4},"end":{"line":15,"column":4}}]},"3":{"line":19,"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":19,"column":4}},{"start":{"line":19,"column":4},"end":{"line":19,"column":4}}]},"4":{"line":23,"type":"if","locations":[{"start":{"line":23,"column":4},"end":{"line":23,"column":4}},{"start":{"line":23,"column":4},"end":{"line":23,"column":4}}]},"5":{"line":27,"type":"if","locations":[{"start":{"line":27,"column":4},"end":{"line":27,"column":4}},{"start":{"line":27,"column":4},"end":{"line":27,"column":4}}]}}},"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/index.js":{"path":"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/index.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1},"b":{},"f":{},"fnMap":{},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":37}},"2":{"start":{"line":2,"column":0},"end":{"line":2,"column":41}},"3":{"start":{"line":3,"column":0},"end":{"line":3,"column":39}},"4":{"start":{"line":4,"column":0},"end":{"line":4,"column":39}},"5":{"start":{"line":5,"column":0},"end":{"line":5,"column":59}}},"branchMap":{}},"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/fields/index.js":{"path":"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/fields/index.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1},"b":{},"f":{},"fnMap":{},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}},"2":{"start":{"line":2,"column":0},"end":{"line":2,"column":33}},"3":{"start":{"line":3,"column":0},"end":{"line":3,"column":37}},"4":{"start":{"line":4,"column":0},"end":{"line":4,"column":37}},"5":{"start":{"line":5,"column":0},"end":{"line":5,"column":47}},"6":{"start":{"line":6,"column":0},"end":{"line":6,"column":53}},"7":{"start":{"line":7,"column":0},"end":{"line":7,"column":34}}},"branchMap":{}},"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/fields/field.js":{"path":"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/fields/field.js","s":{"1":420,"2":420,"3":420,"4":420,"5":420,"6":420,"7":236,"8":236,"9":172,"10":236,"11":39,"12":236,"13":4,"14":4,"15":2,"16":0,"17":2,"18":0,"19":2,"20":2,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":37,"33":37,"34":55,"35":55,"36":0,"37":37,"38":7,"39":7,"40":9,"41":9,"42":1,"43":6,"44":1},"b":{"1":[236,184],"2":[420,397],"3":[172,64],"4":[39,197],"5":[39,1],"6":[4,232],"7":[0,2],"8":[2,0],"9":[0,2],"10":[2,2],"11":[2,0],"12":[0,0],"13":[0,0],"14":[0,55],"15":[1,8]},"f":{"1":420,"2":2,"3":0,"4":37,"5":7},"fnMap":{"1":{"name":"(anonymous_1)","line":9,"loc":{"start":{"line":9,"column":13},"end":{"line":15,"column":5}}},"2":{"name":"(anonymous_2)","line":34,"loc":{"start":{"line":34,"column":9},"end":{"line":34,"column":17}}},"3":{"name":"(anonymous_3)","line":52,"loc":{"start":{"line":52,"column":22},"end":{"line":52,"column":55}}},"4":{"name":"(anonymous_4)","line":66,"loc":{"start":{"line":66,"column":25},"end":{"line":66,"column":33}}},"5":{"name":"(anonymous_5)","line":79,"loc":{"start":{"line":79,"column":17},"end":{"line":79,"column":25}}}},"statementMap":{"1":{"start":{"line":16,"column":4},"end":{"line":16,"column":33}},"2":{"start":{"line":17,"column":4},"end":{"line":17,"column":39}},"3":{"start":{"line":18,"column":4},"end":{"line":18,"column":27}},"4":{"start":{"line":19,"column":4},"end":{"line":19,"column":27}},"5":{"start":{"line":20,"column":4},"end":{"line":20,"column":19}},"6":{"start":{"line":21,"column":4},"end":{"line":31,"column":5}},"7":{"start":{"line":22,"column":6},"end":{"line":22,"column":40}},"8":{"start":{"line":23,"column":6},"end":{"line":23,"column":76}},"9":{"start":{"line":23,"column":34},"end":{"line":23,"column":76}},"10":{"start":{"line":24,"column":6},"end":{"line":25,"column":63}},"11":{"start":{"line":25,"column":8},"end":{"line":25,"column":63}},"12":{"start":{"line":26,"column":6},"end":{"line":30,"column":7}},"13":{"start":{"line":27,"column":8},"end":{"line":29,"column":9}},"14":{"start":{"line":28,"column":10},"end":{"line":28,"column":50}},"15":{"start":{"line":35,"column":4},"end":{"line":43,"column":5}},"16":{"start":{"line":35,"column":51},"end":{"line":35,"column":63}},"17":{"start":{"line":36,"column":9},"end":{"line":43,"column":5}},"18":{"start":{"line":36,"column":56},"end":{"line":36,"column":69}},"19":{"start":{"line":38,"column":6},"end":{"line":42,"column":7}},"20":{"start":{"line":39,"column":8},"end":{"line":39,"column":70}},"21":{"start":{"line":41,"column":8},"end":{"line":41,"column":42}},"22":{"start":{"line":53,"column":4},"end":{"line":53,"column":51}},"23":{"start":{"line":53,"column":39},"end":{"line":53,"column":49}},"24":{"start":{"line":54,"column":4},"end":{"line":54,"column":51}},"25":{"start":{"line":54,"column":39},"end":{"line":54,"column":49}},"26":{"start":{"line":55,"column":4},"end":{"line":55,"column":52}},"27":{"start":{"line":55,"column":39},"end":{"line":55,"column":52}},"28":{"start":{"line":56,"column":4},"end":{"line":58,"column":5}},"29":{"start":{"line":57,"column":6},"end":{"line":57,"column":47}},"30":{"start":{"line":57,"column":34},"end":{"line":57,"column":47}},"31":{"start":{"line":59,"column":4},"end":{"line":59,"column":16}},"32":{"start":{"line":67,"column":4},"end":{"line":67,"column":20}},"33":{"start":{"line":68,"column":4},"end":{"line":71,"column":5}},"34":{"start":{"line":69,"column":6},"end":{"line":69,"column":33}},"35":{"start":{"line":70,"column":6},"end":{"line":70,"column":35}},"36":{"start":{"line":70,"column":24},"end":{"line":70,"column":35}},"37":{"start":{"line":72,"column":4},"end":{"line":72,"column":17}},"38":{"start":{"line":80,"column":4},"end":{"line":80,"column":18}},"39":{"start":{"line":81,"column":4},"end":{"line":84,"column":5}},"40":{"start":{"line":82,"column":6},"end":{"line":82,"column":27}},"41":{"start":{"line":83,"column":6},"end":{"line":83,"column":35}},"42":{"start":{"line":83,"column":24},"end":{"line":83,"column":35}},"43":{"start":{"line":85,"column":4},"end":{"line":85,"column":17}},"44":{"start":{"line":89,"column":0},"end":{"line":89,"column":23}}},"branchMap":{"1":{"line":21,"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":21,"column":4}},{"start":{"line":21,"column":4},"end":{"line":21,"column":4}}]},"2":{"line":21,"type":"binary-expr","locations":[{"start":{"line":21,"column":8},"end":{"line":21,"column":30}},{"start":{"line":21,"column":34},"end":{"line":21,"column":64}}]},"3":{"line":23,"type":"if","locations":[{"start":{"line":23,"column":6},"end":{"line":23,"column":6}},{"start":{"line":23,"column":6},"end":{"line":23,"column":6}}]},"4":{"line":24,"type":"if","locations":[{"start":{"line":24,"column":6},"end":{"line":24,"column":6}},{"start":{"line":24,"column":6},"end":{"line":24,"column":6}}]},"5":{"line":25,"type":"binary-expr","locations":[{"start":{"line":25,"column":20},"end":{"line":25,"column":56}},{"start":{"line":25,"column":60},"end":{"line":25,"column":62}}]},"6":{"line":26,"type":"if","locations":[{"start":{"line":26,"column":6},"end":{"line":26,"column":6}},{"start":{"line":26,"column":6},"end":{"line":26,"column":6}}]},"7":{"line":35,"type":"if","locations":[{"start":{"line":35,"column":4},"end":{"line":35,"column":4}},{"start":{"line":35,"column":4},"end":{"line":35,"column":4}}]},"8":{"line":35,"type":"binary-expr","locations":[{"start":{"line":35,"column":8},"end":{"line":35,"column":26}},{"start":{"line":35,"column":30},"end":{"line":35,"column":49}}]},"9":{"line":36,"type":"if","locations":[{"start":{"line":36,"column":9},"end":{"line":36,"column":9}},{"start":{"line":36,"column":9},"end":{"line":36,"column":9}}]},"10":{"line":36,"type":"binary-expr","locations":[{"start":{"line":36,"column":13},"end":{"line":36,"column":31}},{"start":{"line":36,"column":35},"end":{"line":36,"column":54}}]},"11":{"line":38,"type":"if","locations":[{"start":{"line":38,"column":6},"end":{"line":38,"column":6}},{"start":{"line":38,"column":6},"end":{"line":38,"column":6}}]},"12":{"line":55,"type":"if","locations":[{"start":{"line":55,"column":4},"end":{"line":55,"column":4}},{"start":{"line":55,"column":4},"end":{"line":55,"column":4}}]},"13":{"line":57,"type":"if","locations":[{"start":{"line":57,"column":6},"end":{"line":57,"column":6}},{"start":{"line":57,"column":6},"end":{"line":57,"column":6}}]},"14":{"line":70,"type":"if","locations":[{"start":{"line":70,"column":6},"end":{"line":70,"column":6}},{"start":{"line":70,"column":6},"end":{"line":70,"column":6}}]},"15":{"line":83,"type":"if","locations":[{"start":{"line":83,"column":6},"end":{"line":83,"column":6}},{"start":{"line":83,"column":6},"end":{"line":83,"column":6}}]}}},"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/fields/date.js":{"path":"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/fields/date.js","s":{"1":1,"2":80,"3":80,"4":80,"5":69,"6":69,"7":69,"8":1},"b":{"1":[69,11],"2":[80,80]},"f":{"1":80},"fnMap":{"1":{"name":"(anonymous_1)","line":10,"loc":{"start":{"line":10,"column":13},"end":{"line":15,"column":5}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":33}},"2":{"start":{"line":16,"column":4},"end":{"line":16,"column":63}},"3":{"start":{"line":17,"column":4},"end":{"line":17,"column":43}},"4":{"start":{"line":18,"column":4},"end":{"line":25,"column":5}},"5":{"start":{"line":22,"column":6},"end":{"line":22,"column":34}},"6":{"start":{"line":23,"column":6},"end":{"line":23,"column":29}},"7":{"start":{"line":24,"column":6},"end":{"line":24,"column":29}},"8":{"start":{"line":29,"column":0},"end":{"line":29,"column":27}}},"branchMap":{"1":{"line":18,"type":"if","locations":[{"start":{"line":18,"column":4},"end":{"line":18,"column":4}},{"start":{"line":18,"column":4},"end":{"line":18,"column":4}}]},"2":{"line":19,"type":"binary-expr","locations":[{"start":{"line":19,"column":6},"end":{"line":19,"column":40}},{"start":{"line":20,"column":6},"end":{"line":20,"column":38}}]}}},"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/fields/amount.js":{"path":"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/fields/amount.js","s":{"1":1,"2":132,"3":132,"4":132,"5":65,"6":65,"7":1},"b":{"1":[65,67]},"f":{"1":132},"fnMap":{"1":{"name":"(anonymous_1)","line":10,"loc":{"start":{"line":10,"column":13},"end":{"line":15,"column":5}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":33}},"2":{"start":{"line":16,"column":4},"end":{"line":16,"column":63}},"3":{"start":{"line":17,"column":4},"end":{"line":17,"column":62}},"4":{"start":{"line":18,"column":4},"end":{"line":21,"column":5}},"5":{"start":{"line":19,"column":6},"end":{"line":19,"column":29}},"6":{"start":{"line":20,"column":6},"end":{"line":20,"column":27}},"7":{"start":{"line":25,"column":0},"end":{"line":25,"column":24}}},"branchMap":{"1":{"line":18,"type":"if","locations":[{"start":{"line":18,"column":4},"end":{"line":18,"column":4}},{"start":{"line":18,"column":4},"end":{"line":18,"column":4}}]}}},"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/fields/locale.js":{"path":"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/fields/locale.js","s":{"1":1,"2":34,"3":34,"4":34,"5":34,"6":34,"7":6,"8":34,"9":4,"10":34,"11":6,"12":1},"b":{"1":[6,28],"2":[34,32],"3":[4,30],"4":[34,9],"5":[6,28],"6":[34,32]},"f":{"1":34},"fnMap":{"1":{"name":"(anonymous_1)","line":10,"loc":{"start":{"line":10,"column":13},"end":{"line":15,"column":5}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":33}},"2":{"start":{"line":16,"column":4},"end":{"line":16,"column":63}},"3":{"start":{"line":18,"column":4},"end":{"line":18,"column":30}},"4":{"start":{"line":19,"column":4},"end":{"line":19,"column":29}},"5":{"start":{"line":20,"column":4},"end":{"line":20,"column":30}},"6":{"start":{"line":21,"column":4},"end":{"line":22,"column":42}},"7":{"start":{"line":22,"column":6},"end":{"line":22,"column":42}},"8":{"start":{"line":23,"column":4},"end":{"line":24,"column":40}},"9":{"start":{"line":24,"column":6},"end":{"line":24,"column":40}},"10":{"start":{"line":25,"column":4},"end":{"line":26,"column":42}},"11":{"start":{"line":26,"column":6},"end":{"line":26,"column":42}},"12":{"start":{"line":30,"column":0},"end":{"line":30,"column":24}}},"branchMap":{"1":{"line":21,"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":21,"column":4}},{"start":{"line":21,"column":4},"end":{"line":21,"column":4}}]},"2":{"line":21,"type":"binary-expr","locations":[{"start":{"line":21,"column":8},"end":{"line":21,"column":32}},{"start":{"line":21,"column":36},"end":{"line":21,"column":65}}]},"3":{"line":23,"type":"if","locations":[{"start":{"line":23,"column":4},"end":{"line":23,"column":4}},{"start":{"line":23,"column":4},"end":{"line":23,"column":4}}]},"4":{"line":23,"type":"binary-expr","locations":[{"start":{"line":23,"column":8},"end":{"line":23,"column":31}},{"start":{"line":23,"column":35},"end":{"line":23,"column":63}}]},"5":{"line":25,"type":"if","locations":[{"start":{"line":25,"column":4},"end":{"line":25,"column":4}},{"start":{"line":25,"column":4},"end":{"line":25,"column":4}}]},"6":{"line":25,"type":"binary-expr","locations":[{"start":{"line":25,"column":8},"end":{"line":25,"column":32}},{"start":{"line":25,"column":36},"end":{"line":25,"column":65}}]}}},"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/fields/orientation.js":{"path":"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/documents/fields/orientation.js","s":{"1":1,"2":35,"3":35,"4":35,"5":35,"6":2,"7":35,"8":3,"9":1},"b":{"1":[2,33],"2":[3,32]},"f":{"1":35},"fnMap":{"1":{"name":"(anonymous_1)","line":10,"loc":{"start":{"line":10,"column":13},"end":{"line":15,"column":5}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":33}},"2":{"start":{"line":16,"column":4},"end":{"line":16,"column":43}},"3":{"start":{"line":17,"column":4},"end":{"line":17,"column":63}},"4":{"start":{"line":18,"column":4},"end":{"line":18,"column":48}},"5":{"start":{"line":19,"column":4},"end":{"line":19,"column":50}},"6":{"start":{"line":19,"column":27},"end":{"line":19,"column":50}},"7":{"start":{"line":20,"column":4},"end":{"line":20,"column":59}},"8":{"start":{"line":20,"column":44},"end":{"line":20,"column":59}},"9":{"start":{"line":24,"column":0},"end":{"line":24,"column":29}}},"branchMap":{"1":{"line":19,"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":19,"column":4}},{"start":{"line":19,"column":4},"end":{"line":19,"column":4}}]},"2":{"line":20,"type":"if","locations":[{"start":{"line":20,"column":4},"end":{"line":20,"column":4}},{"start":{"line":20,"column":4},"end":{"line":20,"column":4}}]}}},"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/api/index.js":{"path":"/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-nodejs/mindee/api/index.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1},"b":{},"f":{},"fnMap":{},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":40}},"2":{"start":{"line":2,"column":0},"end":{"line":2,"column":42}},"3":{"start":{"line":3,"column":0},"end":{"line":3,"column":41}},"4":{"start":{"line":4,"column":0},"end":{"line":4,"column":40}},"5":{"start":{"line":5,"column":0},"end":{"line":5,"column":39}}},"branchMap":{}}}
|
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
body, html {
|
|
2
|
-
margin:0; padding: 0;
|
|
3
|
-
height: 100%;
|
|
4
|
-
}
|
|
5
|
-
body {
|
|
6
|
-
font-family: Helvetica Neue, Helvetica, Arial;
|
|
7
|
-
font-size: 14px;
|
|
8
|
-
color:#333;
|
|
9
|
-
}
|
|
10
|
-
.small { font-size: 12px; }
|
|
11
|
-
*, *:after, *:before {
|
|
12
|
-
-webkit-box-sizing:border-box;
|
|
13
|
-
-moz-box-sizing:border-box;
|
|
14
|
-
box-sizing:border-box;
|
|
15
|
-
}
|
|
16
|
-
h1 { font-size: 20px; margin: 0;}
|
|
17
|
-
h2 { font-size: 14px; }
|
|
18
|
-
pre {
|
|
19
|
-
font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
20
|
-
margin: 0;
|
|
21
|
-
padding: 0;
|
|
22
|
-
-moz-tab-size: 2;
|
|
23
|
-
-o-tab-size: 2;
|
|
24
|
-
tab-size: 2;
|
|
25
|
-
}
|
|
26
|
-
a { color:#0074D9; text-decoration:none; }
|
|
27
|
-
a:hover { text-decoration:underline; }
|
|
28
|
-
.strong { font-weight: bold; }
|
|
29
|
-
.space-top1 { padding: 10px 0 0 0; }
|
|
30
|
-
.pad2y { padding: 20px 0; }
|
|
31
|
-
.pad1y { padding: 10px 0; }
|
|
32
|
-
.pad2x { padding: 0 20px; }
|
|
33
|
-
.pad2 { padding: 20px; }
|
|
34
|
-
.pad1 { padding: 10px; }
|
|
35
|
-
.space-left2 { padding-left:55px; }
|
|
36
|
-
.space-right2 { padding-right:20px; }
|
|
37
|
-
.center { text-align:center; }
|
|
38
|
-
.clearfix { display:block; }
|
|
39
|
-
.clearfix:after {
|
|
40
|
-
content:'';
|
|
41
|
-
display:block;
|
|
42
|
-
height:0;
|
|
43
|
-
clear:both;
|
|
44
|
-
visibility:hidden;
|
|
45
|
-
}
|
|
46
|
-
.fl { float: left; }
|
|
47
|
-
@media only screen and (max-width:640px) {
|
|
48
|
-
.col3 { width:100%; max-width:100%; }
|
|
49
|
-
.hide-mobile { display:none!important; }
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.quiet {
|
|
53
|
-
color: #7f7f7f;
|
|
54
|
-
color: rgba(0,0,0,0.5);
|
|
55
|
-
}
|
|
56
|
-
.quiet a { opacity: 0.7; }
|
|
57
|
-
|
|
58
|
-
.fraction {
|
|
59
|
-
font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
|
60
|
-
font-size: 10px;
|
|
61
|
-
color: #555;
|
|
62
|
-
background: #E8E8E8;
|
|
63
|
-
padding: 4px 5px;
|
|
64
|
-
border-radius: 3px;
|
|
65
|
-
vertical-align: middle;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
div.path a:link, div.path a:visited { color: #333; }
|
|
69
|
-
table.coverage {
|
|
70
|
-
border-collapse: collapse;
|
|
71
|
-
margin: 10px 0 0 0;
|
|
72
|
-
padding: 0;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
table.coverage td {
|
|
76
|
-
margin: 0;
|
|
77
|
-
padding: 0;
|
|
78
|
-
vertical-align: top;
|
|
79
|
-
}
|
|
80
|
-
table.coverage td.line-count {
|
|
81
|
-
text-align: right;
|
|
82
|
-
padding: 0 5px 0 20px;
|
|
83
|
-
}
|
|
84
|
-
table.coverage td.line-coverage {
|
|
85
|
-
text-align: right;
|
|
86
|
-
padding-right: 10px;
|
|
87
|
-
min-width:20px;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
table.coverage td span.cline-any {
|
|
91
|
-
display: inline-block;
|
|
92
|
-
padding: 0 5px;
|
|
93
|
-
width: 100%;
|
|
94
|
-
}
|
|
95
|
-
.missing-if-branch {
|
|
96
|
-
display: inline-block;
|
|
97
|
-
margin-right: 5px;
|
|
98
|
-
border-radius: 3px;
|
|
99
|
-
position: relative;
|
|
100
|
-
padding: 0 4px;
|
|
101
|
-
background: #333;
|
|
102
|
-
color: yellow;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.skip-if-branch {
|
|
106
|
-
display: none;
|
|
107
|
-
margin-right: 10px;
|
|
108
|
-
position: relative;
|
|
109
|
-
padding: 0 4px;
|
|
110
|
-
background: #ccc;
|
|
111
|
-
color: white;
|
|
112
|
-
}
|
|
113
|
-
.missing-if-branch .typ, .skip-if-branch .typ {
|
|
114
|
-
color: inherit !important;
|
|
115
|
-
}
|
|
116
|
-
.coverage-summary {
|
|
117
|
-
border-collapse: collapse;
|
|
118
|
-
width: 100%;
|
|
119
|
-
}
|
|
120
|
-
.coverage-summary tr { border-bottom: 1px solid #bbb; }
|
|
121
|
-
.keyline-all { border: 1px solid #ddd; }
|
|
122
|
-
.coverage-summary td, .coverage-summary th { padding: 10px; }
|
|
123
|
-
.coverage-summary tbody { border: 1px solid #bbb; }
|
|
124
|
-
.coverage-summary td { border-right: 1px solid #bbb; }
|
|
125
|
-
.coverage-summary td:last-child { border-right: none; }
|
|
126
|
-
.coverage-summary th {
|
|
127
|
-
text-align: left;
|
|
128
|
-
font-weight: normal;
|
|
129
|
-
white-space: nowrap;
|
|
130
|
-
}
|
|
131
|
-
.coverage-summary th.file { border-right: none !important; }
|
|
132
|
-
.coverage-summary th.pct { }
|
|
133
|
-
.coverage-summary th.pic,
|
|
134
|
-
.coverage-summary th.abs,
|
|
135
|
-
.coverage-summary td.pct,
|
|
136
|
-
.coverage-summary td.abs { text-align: right; }
|
|
137
|
-
.coverage-summary td.file { white-space: nowrap; }
|
|
138
|
-
.coverage-summary td.pic { min-width: 120px !important; }
|
|
139
|
-
.coverage-summary tfoot td { }
|
|
140
|
-
|
|
141
|
-
.coverage-summary .sorter {
|
|
142
|
-
height: 10px;
|
|
143
|
-
width: 7px;
|
|
144
|
-
display: inline-block;
|
|
145
|
-
margin-left: 0.5em;
|
|
146
|
-
background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent;
|
|
147
|
-
}
|
|
148
|
-
.coverage-summary .sorted .sorter {
|
|
149
|
-
background-position: 0 -20px;
|
|
150
|
-
}
|
|
151
|
-
.coverage-summary .sorted-desc .sorter {
|
|
152
|
-
background-position: 0 -10px;
|
|
153
|
-
}
|
|
154
|
-
.status-line { height: 10px; }
|
|
155
|
-
/* yellow */
|
|
156
|
-
.cbranch-no { background: yellow !important; color: #111; }
|
|
157
|
-
/* dark red */
|
|
158
|
-
.red.solid, .status-line.low, .low .cover-fill { background:#C21F39 }
|
|
159
|
-
.low .chart { border:1px solid #C21F39 }
|
|
160
|
-
.highlighted,
|
|
161
|
-
.highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{
|
|
162
|
-
background: #C21F39 !important;
|
|
163
|
-
}
|
|
164
|
-
/* medium red */
|
|
165
|
-
.cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE }
|
|
166
|
-
/* light red */
|
|
167
|
-
.low, .cline-no { background:#FCE1E5 }
|
|
168
|
-
/* light green */
|
|
169
|
-
.high, .cline-yes { background:rgb(230,245,208) }
|
|
170
|
-
/* medium green */
|
|
171
|
-
.cstat-yes { background:rgb(161,215,106) }
|
|
172
|
-
/* dark green */
|
|
173
|
-
.status-line.high, .high .cover-fill { background:rgb(77,146,33) }
|
|
174
|
-
.high .chart { border:1px solid rgb(77,146,33) }
|
|
175
|
-
/* dark yellow (gold) */
|
|
176
|
-
.status-line.medium, .medium .cover-fill { background: #f9cd0b; }
|
|
177
|
-
.medium .chart { border:1px solid #f9cd0b; }
|
|
178
|
-
/* light yellow */
|
|
179
|
-
.medium { background: #fff4c2; }
|
|
180
|
-
|
|
181
|
-
.cstat-skip { background: #ddd; color: #111; }
|
|
182
|
-
.fstat-skip { background: #ddd; color: #111 !important; }
|
|
183
|
-
.cbranch-skip { background: #ddd !important; color: #111; }
|
|
184
|
-
|
|
185
|
-
span.cline-neutral { background: #eaeaea; }
|
|
186
|
-
|
|
187
|
-
.coverage-summary td.empty {
|
|
188
|
-
opacity: .5;
|
|
189
|
-
padding-top: 4px;
|
|
190
|
-
padding-bottom: 4px;
|
|
191
|
-
line-height: 1;
|
|
192
|
-
color: #888;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.cover-fill, .cover-empty {
|
|
196
|
-
display:inline-block;
|
|
197
|
-
height: 12px;
|
|
198
|
-
}
|
|
199
|
-
.chart {
|
|
200
|
-
line-height: 0;
|
|
201
|
-
}
|
|
202
|
-
.cover-empty {
|
|
203
|
-
background: white;
|
|
204
|
-
}
|
|
205
|
-
.cover-full {
|
|
206
|
-
border-right: none !important;
|
|
207
|
-
}
|
|
208
|
-
pre.prettyprint {
|
|
209
|
-
border: none !important;
|
|
210
|
-
padding: 0 !important;
|
|
211
|
-
margin: 0 !important;
|
|
212
|
-
}
|
|
213
|
-
.com { color: #999 !important; }
|
|
214
|
-
.ignore-none { color: #999; font-weight: normal; }
|
|
215
|
-
|
|
216
|
-
.wrapper {
|
|
217
|
-
min-height: 100%;
|
|
218
|
-
height: auto !important;
|
|
219
|
-
height: 100%;
|
|
220
|
-
margin: 0 auto -48px;
|
|
221
|
-
}
|
|
222
|
-
.footer, .push {
|
|
223
|
-
height: 48px;
|
|
224
|
-
}
|