| Hash | Commit message | Author | Date | Files | + | - |
1 | commit 88b7f2000ee60791d68cfaa3d0ed45c24135286a |
2 | Author: Connor Etherington <[email protected]> |
3 | Date: Mon Oct 2 08:30:26 2023 +0200 |
4 | |
5 | Auto-Commit Update - 20231002 |
6 | --- |
7 | usr/share/lfp/ocr/node_modules/.yarn-integrity | 13 ++------ |
8 | .../node_modules/node-tesseract-ocr/package.json | 9 ++++++ |
9 | .../ocr/node_modules/node-tesseract-ocr/yarn.lock | 4 --- |
10 | usr/share/lfp/ocr/ocr.js | 2 +- |
11 | usr/share/lfp/ocr/yarn.lock | 35 ---------------------- |
12 | 5 files changed, 12 insertions(+), 51 deletions(-) |
13 | |
14 | diff --git a/usr/share/lfp/ocr/node_modules/.yarn-integrity b/usr/share/lfp/ocr/node_modules/.yarn-integrity |
15 | index 929bff4..1e6bd54 100644 |
16 | --- a/usr/share/lfp/ocr/node_modules/.yarn-integrity |
17 | +++ b/usr/share/lfp/ocr/node_modules/.yarn-integrity |
18 | @@ -6,19 +6,10 @@ |
19 | "flags": [], |
20 | "linkedModules": [], |
21 | "topLevelPatterns": [ |
22 | - "child_process@^1.0.2", |
23 | - "fs@^0.0.1-security", |
24 | - "node-tesseract-ocr@^2.2.1", |
25 | - "path@^0.12.7" |
26 | + "node-tesseract-ocr@^2.2.1" |
27 | ], |
28 | "lockfileEntries": { |
29 | - "child_process@^1.0.2": "https://registry.yarnpkg.com/child_process/-/child_process-1.0.2.tgz#b1f7e7fc73d25e7fd1d455adc94e143830182b5a", |
30 | - "fs@^0.0.1-security": "https://registry.yarnpkg.com/fs/-/fs-0.0.1-security.tgz#8a7bd37186b6dddf3813f23858b57ecaaf5e41d4", |
31 | - "[email protected]": "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de", |
32 | - "node-tesseract-ocr@^2.2.1": "https://registry.yarnpkg.com/node-tesseract-ocr/-/node-tesseract-ocr-2.2.1.tgz#465fea1a1acd6720efb582d5f6c2bcbb82cce94d", |
33 | - "path@^0.12.7": "https://registry.yarnpkg.com/path/-/path-0.12.7.tgz#d4dc2a506c4ce2197eb481ebfcd5b36c0140b10f", |
34 | - "process@^0.11.1": "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182", |
35 | - "util@^0.10.3": "https://registry.yarnpkg.com/util/-/util-0.10.4.tgz#3aa0125bfe668a4672de58857d3ace27ecb76901" |
36 | + "node-tesseract-ocr@^2.2.1": "https://registry.yarnpkg.com/node-tesseract-ocr/-/node-tesseract-ocr-2.2.1.tgz#465fea1a1acd6720efb582d5f6c2bcbb82cce94d" |
37 | }, |
38 | "files": [], |
39 | "artifacts": {} |
40 | diff --git a/usr/share/lfp/ocr/node_modules/node-tesseract-ocr/package.json b/usr/share/lfp/ocr/node_modules/node-tesseract-ocr/package.json |
41 | index 493058c..02521a9 100755 |
42 | --- a/usr/share/lfp/ocr/node_modules/node-tesseract-ocr/package.json |
43 | +++ b/usr/share/lfp/ocr/node_modules/node-tesseract-ocr/package.json |
44 | @@ -24,5 +24,14 @@ |
45 | "test:lint": "eslint .", |
46 | "test:tape": "tape test/**/*.js", |
47 | "test:audit": "npm audit --audit-level=high" |
48 | + }, |
49 | + "devDependencies": { |
50 | + "eslint": "^7.25.0", |
51 | + "eslint-config-silence": "^0.7.1", |
52 | + "eslint-plugin-prettier": "^3.4.0", |
53 | + "npm-run-all": "^4.1.5", |
54 | + "prettier": "^2.2.1", |
55 | + "rewire": "^5.0.0", |
56 | + "tape": "^5.2.2" |
57 | } |
58 | } |
59 | diff --git a/usr/share/lfp/ocr/node_modules/node-tesseract-ocr/yarn.lock b/usr/share/lfp/ocr/node_modules/node-tesseract-ocr/yarn.lock |
60 | deleted file mode 100644 |
61 | index fb57ccd..0000000 |
62 | --- a/usr/share/lfp/ocr/node_modules/node-tesseract-ocr/yarn.lock |
63 | +++ /dev/null |
64 | @@ -1,4 +0,0 @@ |
65 | -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. |
66 | -# yarn lockfile v1 |
67 | - |
68 | - |
69 | diff --git a/usr/share/lfp/ocr/ocr.js b/usr/share/lfp/ocr/ocr.js |
70 | index db2b655..e9071d7 100755 |
71 | --- a/usr/share/lfp/ocr/ocr.js |
72 | +++ b/usr/share/lfp/ocr/ocr.js |
73 | @@ -3,7 +3,7 @@ |
74 | const fs = require('fs'); |
75 | const fsp = require('fs').promises; |
76 | const path = require('path'); |
77 | -const tesseract = require('node-tesseract-ocr'); |
78 | +const tesseract = require('./node_modules/node-tesseract-ocr'); |
79 | const { spawn } = require('child_process'); |
80 | |
81 | const config = { lang: 'eng', oem: 1, psm: 3 }; |
82 | diff --git a/usr/share/lfp/ocr/yarn.lock b/usr/share/lfp/ocr/yarn.lock |
83 | index 75651cd..a2d073d 100644 |
84 | --- a/usr/share/lfp/ocr/yarn.lock |
85 | +++ b/usr/share/lfp/ocr/yarn.lock |
86 | @@ -2,42 +2,7 @@ |
87 | # yarn lockfile v1 |
88 | |
89 | |
90 | -child_process@^1.0.2: |
91 | - version "1.0.2" |
92 | - resolved "https://registry.yarnpkg.com/child_process/-/child_process-1.0.2.tgz#b1f7e7fc73d25e7fd1d455adc94e143830182b5a" |
93 | - integrity sha512-Wmza/JzL0SiWz7kl6MhIKT5ceIlnFPJX+lwUGj7Clhy5MMldsSoJR0+uvRzOS5Kv45Mq7t1PoE8TsOA9bzvb6g== |
94 | - |
95 | -fs@^0.0.1-security: |
96 | - version "0.0.1-security" |
97 | - resolved "https://registry.yarnpkg.com/fs/-/fs-0.0.1-security.tgz#8a7bd37186b6dddf3813f23858b57ecaaf5e41d4" |
98 | - integrity sha512-3XY9e1pP0CVEUCdj5BmfIZxRBTSDycnbqhIOGec9QYtmVH2fbLpj86CFWkrNOkt/Fvty4KZG5lTglL9j/gJ87w== |
99 | - |
100 | [email protected]: |
101 | - version "2.0.3" |
102 | - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" |
103 | - integrity sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw== |
104 | - |
105 | node-tesseract-ocr@^2.2.1: |
106 | version "2.2.1" |
107 | resolved "https://registry.yarnpkg.com/node-tesseract-ocr/-/node-tesseract-ocr-2.2.1.tgz#465fea1a1acd6720efb582d5f6c2bcbb82cce94d" |
108 | integrity sha512-Q9cD79JGpPNQBxbi1fV+OAsTxYKLpx22sagsxSyKbu1u+t6UarApf5m32uVc8a5QAP1Wk7fIPN0aJFGGEE9DyQ== |
109 | - |
110 | -path@^0.12.7: |
111 | - version "0.12.7" |
112 | - resolved "https://registry.yarnpkg.com/path/-/path-0.12.7.tgz#d4dc2a506c4ce2197eb481ebfcd5b36c0140b10f" |
113 | - integrity sha512-aXXC6s+1w7otVF9UletFkFcDsJeO7lSZBPUQhtb5O0xJe8LtYhj/GxldoL09bBj9+ZmE2hNoHqQSFMN5fikh4Q== |
114 | - dependencies: |
115 | - process "^0.11.1" |
116 | - util "^0.10.3" |
117 | - |
118 | -process@^0.11.1: |
119 | - version "0.11.10" |
120 | - resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182" |
121 | - integrity sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A== |
122 | - |
123 | -util@^0.10.3: |
124 | - version "0.10.4" |
125 | - resolved "https://registry.yarnpkg.com/util/-/util-0.10.4.tgz#3aa0125bfe668a4672de58857d3ace27ecb76901" |
126 | - integrity sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A== |
127 | - dependencies: |
128 | - inherits "2.0.3" |