latinfo 0.14.0 → 0.14.1
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/dist/index.js +6 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -47,7 +47,7 @@ const local_search_1 = require("./local-search");
|
|
|
47
47
|
const client_search_1 = require("./client-search");
|
|
48
48
|
const odis_search_1 = require("./odis-search");
|
|
49
49
|
const mphf_search_1 = require("./mphf-search");
|
|
50
|
-
const VERSION = '0.14.
|
|
50
|
+
const VERSION = '0.14.1';
|
|
51
51
|
const API_URL = process.env.LATINFO_API_URL || 'https://api.latinfo.dev';
|
|
52
52
|
const GITHUB_CLIENT_ID = process.env.GITHUB_CLIENT_ID || 'Ov23li5fcQaiCsVtaMKK';
|
|
53
53
|
const CONFIG_DIR = path_1.default.join(os_1.default.homedir(), '.latinfo');
|
|
@@ -1753,15 +1753,8 @@ Examples:
|
|
|
1753
1753
|
fs_1.default.writeFileSync(yamlPath, yaml);
|
|
1754
1754
|
const { execSync: run } = await Promise.resolve().then(() => __importStar(require('child_process')));
|
|
1755
1755
|
if (isPython) {
|
|
1756
|
-
console.log(`[pipe]
|
|
1757
|
-
|
|
1758
|
-
run(`pip3 install ${deps.join(' ')}`, { cwd: repo, stdio: 'inherit' });
|
|
1759
|
-
console.log(`[pipe] Python dependencies installed and added to YAML.`);
|
|
1760
|
-
}
|
|
1761
|
-
catch {
|
|
1762
|
-
console.error(`[pipe] Failed to install Python dependencies.`);
|
|
1763
|
-
process.exit(1);
|
|
1764
|
-
}
|
|
1756
|
+
console.log(`[pipe] Python deps added to YAML: ${deps.join(', ')}`);
|
|
1757
|
+
console.log(`[pipe] Will be installed on Linux Mint during pipe stage.`);
|
|
1765
1758
|
}
|
|
1766
1759
|
else {
|
|
1767
1760
|
console.log(`[pipe] Installing npm: ${deps.join(', ')}...`);
|
|
@@ -1807,9 +1800,10 @@ async function pipeTest(args) {
|
|
|
1807
1800
|
if (pyDepsMatch) {
|
|
1808
1801
|
const pyDeps = pyDepsMatch[1].split('\n').map(l => l.replace(/^\s*-\s*/, '').trim()).filter(Boolean);
|
|
1809
1802
|
if (pyDeps.length > 0) {
|
|
1810
|
-
console.log(`[pipe]
|
|
1803
|
+
console.log(`[pipe] Python deps: ${pyDeps.join(', ')} (installed on Linux Mint during stage)`);
|
|
1804
|
+
// Try local install but don't fail if it can't (Mac blocks pip)
|
|
1811
1805
|
try {
|
|
1812
|
-
run(`pip3 install ${pyDeps.join(' ')}`, { cwd: repo, stdio: 'pipe' });
|
|
1806
|
+
run(`pip3 install --user ${pyDeps.join(' ')} 2>/dev/null`, { cwd: repo, stdio: 'pipe' });
|
|
1813
1807
|
}
|
|
1814
1808
|
catch { }
|
|
1815
1809
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "latinfo",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.1",
|
|
4
4
|
"description": "Tax registry & procurement API for Latin America. Query RUC, DNI, NIT, licitaciones from Peru & Colombia. Offline MPHF search, full OCDS data, updated daily.",
|
|
5
5
|
"homepage": "https://latinfo.dev",
|
|
6
6
|
"repository": {
|